/* ============================================================
   Eat Me Texas — Landing page layout
   Base reset, page sections, and all responsive rules.
   Colors/type/spacing/shadows come from css/tokens/*.
   Breakpoints (design has no explicit tokens for these; derived
   from --container-max 1200 / --container-narrow 720):
     - Desktop  >= 1024px  (as designed)
     - Tablet   640-1023px
     - Mobile   < 640px
   ============================================================ */

/* ---- Reset / base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brick-300); color: var(--cream-50); }
.lucide { display: inline-block; vertical-align: middle; }

/* shared layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);     /* 1200px */
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.section-head { text-align: center; margin: 0 auto 46px; }
.section-head h2 {
  font-family: var(--font-display);
  color: var(--ink-800);
  font-size: 46px;
  line-height: 1.02;
  margin: 16px 0 14px;
}
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-hairline);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-brand img {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: block;
  box-shadow: var(--shadow-sm);
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  color: var(--ink-700);
  text-decoration: none;
}
.header-nav a:hover { color: var(--brick-500); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.social-row { display: flex; gap: 8px; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--ink-700);
  text-decoration: none;
  transition: color var(--dur-base), background var(--dur-base);
}
.social-btn:hover { color: var(--brick-500); background: var(--accent-soft); }
.header-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: var(--weight-semibold);
  color: var(--ink-800); text-decoration: none; white-space: nowrap;
}

/* mobile menu toggle — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--ink-800);
}

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  background: var(--ink-900);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(96deg,
    rgba(18,28,37,.94) 0%,
    rgba(18,28,37,.82) 40%,
    rgba(18,28,37,.45) 72%,
    rgba(18,28,37,.28) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px 32px;
}
.hero__content { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display);
  color: var(--cream-50);
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: 74px;
  margin: 20px 0 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--brick-400); }
.hero__lead {
  font-size: 19px;
  line-height: 1.62;
  color: #dfe6ea;
  max-width: 520px;
  margin: 24px 0 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__trust > div {
  display: flex; align-items: center; gap: 9px;
  color: #dfe6ea; font-size: 14.5px;
}
.hero__trust .lucide { color: var(--brick-300); }

/* ---- Generic section spacing --------------------------------------- */
/* One consistent vertical rhythm for every content section:
   80px top and bottom, so the gap between any two sections is uniform. */
.section,
.section--cater,
.section--make,
.section--gallery,
.section--testimonials,
.section--quote {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 32px;
}

/* ---- Gallery -------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.gallery-grid .image-slot { height: 100%; }
.gallery-grid .span-2 { grid-row: span 2; }
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--surface-inset);
}
.gallery-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-subtle);
  margin: 20px 0 0;
}

/* ---- Story band ----------------------------------------------------- */
.story {
  background: var(--surface-ink);
  border-top: 3px solid var(--brick-500);
}
.story__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story h2 {
  font-family: var(--font-display);
  color: var(--cream-50);
  font-size: 44px;
  line-height: 1.02;
  margin: 16px 0 18px;
}
.story p { font-size: 16.5px; line-height: 1.66; color: #c8d2d8; margin: 0 0 16px; }
.story p:last-of-type { margin-bottom: 30px; }
.story__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.story__stats .num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--brick-400);
  line-height: 1;
}
.story__stats .label {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
  margin-top: 6px;
}
.story__media {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ---- Testimonials --------------------------------------------------- */
.testimonials-head { text-align: center; margin-bottom: 44px; }
.testimonials-head h2 {
  font-family: var(--font-display);
  color: var(--ink-800);
  font-size: 42px;
  line-height: 1.02;
  margin: 16px 0 0;
}
/* two real testimonials, centered 2-up (no empty third slot) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.quote-card .quote-mark { color: var(--brick-400); margin-bottom: 12px; }
.quote-card p {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.quote-card .cite { font-size: 14px; color: var(--text-muted); font-weight: var(--weight-semibold); }

/* ---- Quote form ----------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 44px;
  align-items: start;
}
.quote-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.quote-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.quote-form .full { margin-top: 18px; }
.quote-form .submit-row { margin-top: 24px; }

/* included card (ink) */
.included h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--cream-50);
  font-size: 22px;
  margin: 0 0 4px;
}
.included__list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.included__item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 11px 0;
  color: var(--text-on-ink);
}
.included__item + .included__item { border-top: 1px solid var(--ink-700); }
.included__item .lucide { color: var(--brick-400); flex: none; margin-top: 1px; }
.included__item span { font-size: 15px; line-height: 1.45; }
.included__call {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--ink-700);
  display: flex; align-items: center; gap: 11px;
}
.included__call .lucide { color: var(--brick-400); }
.included__call .label {
  color: var(--text-on-ink-muted); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.included__call a {
  color: var(--cream-50);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 18px;
  text-decoration: none;
}

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--surface-ink-deep);
  border-top: 3px solid var(--brick-500);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.footer-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--text-on-ink-muted); font-size: 14px;
}
.footer-meta span, .footer-meta a {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-on-ink-muted); text-decoration: none;
}
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social .social-row { gap: 10px; }
.footer-social .social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--cream-50);
}
.footer-social .social-btn:hover { background: var(--brick-500); border-color: var(--brick-500); }
.footer-tag {
  font-family: var(--font-accent);
  color: var(--sand-500);
  letter-spacing: 0.06em;
  font-size: 15px;
}
.footer-credit {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: var(--text-on-ink-muted);
}
.footer-credit a {
  color: var(--cream-50);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color var(--dur-base), color var(--dur-base);
}
.footer-credit a:hover {
  color: var(--brick-300);
  border-bottom-color: var(--brick-300);
}
@media (max-width: 639px) {
  .footer-credit { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet: <= 1023px ---------------------------------------------- */
@media (max-width: 1023px) {
  /* nav collapses into a toggle-driven drawer */
  .nav-toggle { display: inline-flex; }
  .header-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 32px 20px;
    background: var(--cream-50);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 10px 0; font-size: 16px; width: 100%; }
  /* keep the quote button; drop the inline phone + socials to save room */
  .header-actions .social-row,
  .header-actions .header-phone { display: none; }

  /* 3-up card grids become 2-up */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* gallery to 2 columns; drop the tall row-spans so it stays tidy */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .span-2 { grid-row: span 1; }

  /* two-column bands stack */
  .story__inner { grid-template-columns: 1fr; gap: 36px; }
  .story__media { height: 320px; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }

  /* soften the biggest display type */
  .hero h1 { font-size: 60px; }
  .section-head h2, .story h2 { font-size: 40px; }
}

/* ---- Mobile: <= 639px ----------------------------------------------- */
@media (max-width: 639px) {
  .container,
  .header-inner,
  .hero__inner,
  .section, .section--cater, .section--make, .section--gallery,
  .section--quote, .section--testimonials,
  .story__inner, .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* tighter but still uniform vertical rhythm on mobile */
  .section, .section--cater, .section--make, .section--gallery,
  .section--testimonials, .section--quote { padding-top: 56px; padding-bottom: 56px; }
  .hero__inner { padding-top: 64px; padding-bottom: 64px; }

  /* single-column everything */
  .grid-3 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .span-2 { grid-row: span 1; }
  .quote-form .field-row { grid-template-columns: 1fr; }

  /* fluid hero + heading type */
  .hero { min-height: 560px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 auto; }

  .section-head h2 { font-size: 32px; }
  .story h2 { font-size: 30px; }
  .testimonials-head h2 { font-size: 30px; }

  /* footer stacks left-aligned */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }

  .story__stats { gap: 28px; }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
