/*
Theme Name: Jay's Catering
Theme URI: https://jayscatering.local/
Author: Foxtrot
Description: Custom block theme for the Jay's Catering Figma-to-WordPress build.
Version: 0.2.0
Requires at least: 7.0
Requires PHP: 8.4
Text Domain: jays-catering
*/

:root {
  --jays-red: #e30513;
  --jays-wine: #86120c;
  --jays-blue: #124f68;
  --jays-ink: #181818;
  --jays-paper: #f8f8f6;
  --jays-muted: #767676;
  --jays-max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--jays-paper);
  color: var(--jays-ink);
  font-family: Inter, Arial, sans-serif;
  margin: 0;
  overflow-x: clip;
}

.wp-site-blocks {
  overflow-x: clip;
}

a {
  color: inherit;
}

.site-shell {
  background: var(--jays-paper);
}

.site-header {
  color: #fff;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  min-height: 92px;
  padding: 18px 0;
}

.site-nav {
  flex: 1;
}

.site-nav--right {
  justify-content: flex-end;
}

.site-header .wp-block-navigation-item__content {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-logo {
  flex: 0 0 auto;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 42px;
  font-weight: 700;
  line-height: 0.82;
  margin: 0;
  min-width: 150px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.site-logo a,
.site-footer__logo a {
  text-decoration: none;
}

.site-logo::after,
.site-footer__logo::after {
  background: #fff;
  border-radius: 0 0 50% 50% / 0 0 22% 22%;
  color: var(--jays-ink);
  content: "CATERING";
  display: block;
  font-family: Inter, Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1;
  margin: 8px auto 0;
  padding: 7px 8px 8px 10px;
  text-shadow: none;
  width: 92px;
}

.home-hero {
  color: #fff;
  isolation: isolate;
  min-height: 710px;
  overflow: hidden;
  position: relative;
}

.home-hero::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0) 0 26%, rgba(0, 0, 0, 0.38) 70%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.home-hero__media {
  inset: -26px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: -2;
}

.home-hero__media img {
  filter: blur(8px) saturate(0.95);
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  width: 100%;
}

.home-hero__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 690px;
  padding: 120px 20px 94px;
  text-align: center;
}

.script-heading {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 94px;
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.42);
}

.hero-kicker {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin: 0 0 34px;
  text-transform: uppercase;
}

.wp-block-button__link {
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 13px 22px;
  text-transform: none;
}

.button-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
}

.button-dark .wp-block-button__link {
  background: var(--jays-ink);
  color: #fff;
}

.intro-band {
  background: var(--jays-red);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.intro-band::after {
  bottom: -70px;
  color: rgba(255, 255, 255, 0.08);
  content: "J";
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 360px;
  line-height: 1;
  position: absolute;
  right: 10%;
  transform: rotate(-18deg);
}

.intro-band__inner {
  max-width: 720px;
  padding: 90px 20px 110px;
  position: relative;
  z-index: 1;
}

.intro-band h2,
.partners-section h2,
.review-band h2 {
  font-weight: 900;
  margin-bottom: 18px;
}

.intro-band p,
.partners-section p {
  line-height: 1.55;
}

.wave-bottom::before,
.wave-top::before,
.wave-bottom::after,
.wave-top::after {
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.wave-bottom::before {
  background: var(--jays-paper);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  bottom: -1px;
  height: 70px;
}

.wave-top::before {
  background: var(--jays-paper);
  border-radius: 0 0 50% 50% / 0 0 42% 42%;
  height: 70px;
  top: -1px;
}

.partners-section {
  background: var(--jays-paper);
  padding: 70px 0 88px;
}

.partners-section__inner {
  max-width: var(--jays-max);
}

.partners-section p {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.partner-logo-strip {
  margin: 44px auto 34px;
  max-width: 920px;
  width: min(920px, calc(100vw - 48px));
}

.partner-logo-strip img {
  display: block;
  height: auto;
  max-width: 100% !important;
  width: 100% !important;
}

.testimonial-band {
  background: var(--jays-wine);
  color: #fff;
  overflow: hidden;
  padding: 145px 20px 128px;
  position: relative;
}

.testimonial-quote {
  border: 0;
  margin: 0 auto;
  max-width: 680px;
  padding: 0;
}

.testimonial-quote p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.testimonial-quote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  margin-top: 16px;
}

.review-band {
  background: var(--jays-blue);
  color: #fff;
  overflow: hidden;
  padding: 98px 20px 92px;
  position: relative;
}

.review-band.wave-top::before {
  background: var(--jays-wine);
}

.review-band.wave-bottom::after {
  background: var(--jays-paper);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  bottom: -1px;
  height: 70px;
}

.site-footer {
  background: var(--jays-paper);
  color: var(--jays-ink);
  padding: 64px 20px 34px;
}

.site-footer__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  max-width: 980px;
}

.site-footer h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.site-footer p,
.site-footer li {
  font-size: 12px;
  line-height: 1.55;
}

.site-footer__links {
  border-left: 1px solid #b8b8b8;
  padding-left: 36px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
}

.site-footer__logo {
  align-self: center;
  color: #c8c8c8;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 54px;
  font-weight: 700;
  line-height: 0.82;
  margin: 0;
  text-align: center;
}

.site-footer__logo::after {
  background: #c8c8c8;
  color: #fff;
}

.social-row {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.copyright {
  margin: 34px auto 0;
  max-width: 980px;
}

.interior-page {
  background: var(--jays-paper);
}

.interior-hero {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  padding: 126px 20px 110px;
  position: relative;
  text-align: center;
}

.interior-hero--red {
  background: var(--jays-wine);
}

.interior-hero--image {
  isolation: isolate;
}

.interior-hero--image::after {
  background: rgba(0, 0, 0, 0.42);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.interior-hero__media {
  inset: -24px;
  margin: 0;
  position: absolute;
  z-index: -2;
}

.interior-hero__media img {
  filter: blur(8px) saturate(0.9);
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  width: 100%;
}

.interior-hero__subcopy {
  line-height: 1.45;
  margin: 8px auto 0;
  max-width: 560px;
}

.about-intro {
  max-width: 640px;
  padding: 76px 20px 42px;
}

.story-section {
  padding: 26px 20px 110px;
}

.story-pair {
  align-items: center;
  display: grid;
  gap: clamp(44px, 9vw, 140px);
  grid-template-columns: minmax(220px, 360px) minmax(260px, 1fr);
  margin-bottom: 74px;
  max-width: 900px;
}

.story-pair--reverse {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 360px);
}

.image-placeholder {
  aspect-ratio: 1;
  background: #242221;
  min-height: 230px;
}

.story-copy {
  max-width: 420px;
}

.story-copy h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 14px;
}

.about-blue {
  padding-bottom: 104px;
  padding-top: 120px;
}

.testimonial-band--compact {
  padding-bottom: 118px;
  padding-top: 130px;
}

.faq-section {
  max-width: 860px;
  padding: 88px 20px 104px;
}

.faq-section h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 26px;
}

.faq-list {
  border-top: 1px solid #cfcfcf;
}

.faq-list details {
  border-bottom: 1px solid #cfcfcf;
}

.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  list-style: none;
  padding: 18px 42px 18px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 800;
  position: absolute;
  right: 6px;
  top: 16px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  color: #444;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 0 42px 20px 0;
}

.contact-section {
  padding: 76px 20px 96px;
}

.contact-grid {
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
}

.contact-details h2,
.business-hours h2,
.message-form h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin: 18px 0 8px;
}

.hours-list {
  font-size: 13px;
  line-height: 1.85;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-map {
  border: 1px solid #d3d9dc;
  box-sizing: border-box;
  max-width: 860px;
  overflow: hidden;
}

.contact-map img {
  display: block;
  height: auto;
  width: 100%;
}

.message-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  margin-top: 54px;
  max-width: 860px;
}

.jays-quote-form,
.message-form .gform_wrapper {
  display: grid;
  gap: 14px;
}

.message-form .gform_wrapper .gform_fields,
.message-form .gform_fields {
  display: grid !important;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.message-form .gfield {
  margin: 0;
  min-width: 0;
}

.message-form .gform_wrapper .gfield.field-half {
  grid-column: span 1 !important;
}

.message-form .gform_wrapper .gfield.field-wide,
.message-form .field-wide,
.message-form .gfield--type-textarea {
  grid-column: 1 / -1 !important;
}

.message-form .gfield_label,
.message-form .gform-field-label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.message-form .ginput_container {
  max-width: 100%;
  min-width: 0;
}

.message-form input:not([type="submit"]),
.message-form select,
.message-form textarea {
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  box-sizing: border-box;
  font: inherit;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  width: 100%;
}

.message-form textarea {
  min-height: 96px;
  resize: vertical;
}

.message-form .gform_footer {
  margin: 0;
  padding: 0;
}

.message-form input[type="submit"],
.message-form .gform_button,
.message-form .gform_footer button {
  background: var(--jays-ink) !important;
  border: 0;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 10px 18px !important;
}

.message-form .gform_validation_errors,
.message-form .validation_error {
  border: 1px solid var(--jays-red);
  color: var(--jays-red);
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
}

.message-note {
  align-self: end;
  color: #333;
  max-width: 260px;
}

.client-section {
  padding: 78px 20px 108px;
}

.client-logo-sheet {
  margin: 0 auto;
  max-width: 900px;
}

.client-logo-sheet img {
  display: block;
  height: auto;
  max-width: 100% !important;
  width: 100% !important;
}

.client-grid {
  display: grid;
  gap: 30px 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 860px;
}

.client-grid span {
  align-items: center;
  color: #555;
  display: flex;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  justify-content: center;
  min-height: 56px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header__inner {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-nav {
    justify-content: center;
    order: 2;
  }

  .site-logo {
    order: 1;
  }

  .home-hero,
  .home-hero__content {
    min-height: 620px;
  }

  .script-heading,
  .script-heading.has-display-font-size {
    font-size: 70px;
  }

  .hero-kicker,
  .hero-kicker.has-large-font-size {
    font-size: 28px;
  }

  .site-footer__grid,
  .contact-grid,
  .message-grid,
  .story-pair,
  .story-pair--reverse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__links {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header .wp-block-navigation__container {
    gap: 14px;
  }

  .home-hero,
  .home-hero__content {
    min-height: 560px;
  }

  .home-hero__content {
    padding-top: 150px;
  }

  .script-heading,
  .script-heading.has-display-font-size {
    font-size: 54px !important;
    max-width: 100%;
  }

  .hero-kicker,
  .hero-kicker.has-large-font-size {
    font-size: 18px !important;
    line-height: 1.15;
    max-width: calc(100vw - 36px);
    white-space: normal;
  }

  .intro-band h2.has-medium-font-size,
  .partners-section h2.has-medium-font-size,
  .review-band h2.has-small-font-size {
    font-size: 22px;
    line-height: 1.15;
  }

  .intro-band p.has-small-font-size,
  .partners-section p.has-small-font-size,
  .interior-hero__subcopy.has-small-font-size {
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 36px)) !important;
    white-space: normal !important;
  }

  .partner-logo-strip {
    box-sizing: border-box;
    width: min(300px, calc(100vw - 36px));
  }

  .intro-band__inner {
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 36px)) !important;
    width: min(300px, calc(100vw - 36px)) !important;
  }

  .home-hero__content,
  .partners-section__inner,
  .contact-grid,
  .message-grid,
  .message-form,
  .jays-quote-form,
  .message-form .gform_wrapper,
  .message-note,
  .testimonial-quote {
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 36px)) !important;
    width: min(300px, calc(100vw - 36px)) !important;
  }

  .intro-band h2,
  .partners-section h2,
  .intro-band p,
  .partners-section p,
  .testimonial-quote p {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .testimonial-quote {
    max-width: min(300px, calc(100vw - 36px));
  }

  .testimonial-quote p {
    font-size: 16px;
  }

  .intro-band__inner,
  .partners-section,
  .testimonial-band,
  .review-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer__grid,
  .contact-grid,
  .message-grid,
  .story-pair,
  .story-pair--reverse,
  .message-form .gform_wrapper .gform_fields,
  .message-form .gform_fields,
  .client-grid {
    grid-template-columns: 1fr !important;
  }

  .interior-hero {
    min-height: 350px;
    padding-top: 150px;
  }

  .message-note {
    max-width: none;
  }

  .client-logo-sheet {
    max-width: min(300px, calc(100vw - 36px)) !important;
    width: min(300px, calc(100vw - 36px)) !important;
  }
}
