/* =============================================================
   STEPHY SOURDOUGH BAKEHOUSE
   Blackform Labs — Handwritten CSS, no frameworks
   Every line is a design decision.
   ============================================================= */

/* Fonts are loaded via <link> in index.html — do not @import here (blocks CSS parsing). */

/* =============================================================
   DESIGN SYSTEM — ALL VARIABLES DEFINED HERE
   Never hardcode a color, spacing value, or motion property.
   ============================================================= */

:root {
  /* Brand Colors */
  --cream:        #f5efe6;
  --warm-white:   #faf7f2;
  --wheat:        #c9923a;
  --wheat-light:  #e8c07a;
  --wheat-dark:   #a67520;
  --brown:        #6b4226;
  --brown-dark:   #3d2010;
  --rose:         #c4917e;
  --rose-light:   #e8c5b8;
  --text:         #2c1a0e;
  --muted:        #8a6f5c;
  --line:         rgba(107, 66, 38, 0.12);
  --line-warm:    rgba(107, 66, 38, 0.22);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --max-width:    1200px;
  --section-pad:  clamp(80px, 12vw, 160px);
  --gutter:       clamp(20px, 5vw, 56px);

  /* Shape */
  --radius-full:  999px;
  --radius-card:  4px;

  /* Motion */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 240ms;
  --duration-base: 600ms;
  --duration-slow: 1100ms;
}


/* =============================================================
   RESET & BASE
   ============================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay — always present, never distracting */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.site-wrapper {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

.section {
  position: relative;
}


/* =============================================================
   TYPOGRAPHY SCALE
   ============================================================= */

.t-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.t-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.t-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 300;
  line-height: 1.8;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}


/* =============================================================
   BUTTON SYSTEM
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: 16px 32px;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-out),
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    box-shadow var(--duration-base) ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--wheat);
  color: var(--warm-white);
  border-color: var(--wheat);
}

.btn-primary:hover {
  background: var(--wheat-dark);
  border-color: var(--wheat-dark);
  box-shadow: 0 8px 24px rgba(201, 146, 58, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(250, 247, 242, 0.35);
}

.btn-ghost:hover {
  background: rgba(250, 247, 242, 0.08);
  border-color: rgba(250, 247, 242, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--wheat);
  border-color: var(--wheat);
}

.btn-outline:hover {
  background: var(--wheat);
  color: var(--warm-white);
  box-shadow: 0 4px 16px rgba(201, 146, 58, 0.22);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.6rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 18px 32px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0;
  transition:
    background var(--duration-fast) ease,
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.32);
}

.btn-whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}


/* =============================================================
   REVEAL ANIMATION SYSTEM
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    filter var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays for grouped reveals */
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 120ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 360ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 480ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 600ms; }
.reveal-group .reveal:nth-child(7) { transition-delay: 720ms; }
.reveal-group .reveal:nth-child(8) { transition-delay: 840ms; }
.reveal-group .reveal:nth-child(9) { transition-delay: 960ms; }
.reveal-group .reveal:nth-child(10) { transition-delay: 1080ms; }


/* =============================================================
   SECTION SHARED STYLES
   ============================================================= */

.section-header {
  max-width: 680px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.section-header .t-display {
  margin-top: 20px;
}

.section-intro {
  margin-top: 24px;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wheat);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--wheat);
  flex-shrink: 0;
}


/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition:
    background var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 101;
}

.nav-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0);
  transition: opacity var(--duration-fast) ease;
}

.nav-brand:hover img {
  opacity: 0.72;
}

/* On hero (not scrolled), make logo white for legibility */
.nav:not(.scrolled) .nav-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(44, 26, 14, 0.5));
}

/* Keep nav links readable over bright hero photos */
.nav:not(.scrolled) .nav-links a,
.nav:not(.scrolled) .lang-toggle {
  text-shadow: 0 1px 6px rgba(44, 26, 14, 0.5);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
  position: relative;
  transition: color var(--duration-fast) ease;
  padding-bottom: 4px;
}

/* Switch nav link color after scroll */
.nav.scrolled .nav-links a {
  color: var(--brown);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--wheat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--wheat-light);
}

.nav.scrolled .nav-links a:hover {
  color: var(--wheat);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  background: none;
  border: 1px solid rgba(250, 247, 242, 0.4);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--warm-white);
  transition: all var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav.scrolled .lang-toggle {
  border-color: var(--line-warm);
  color: var(--muted);
}

.lang-toggle:hover {
  border-color: var(--wheat-light);
  color: var(--wheat-light);
}

.nav.scrolled .lang-toggle:hover {
  border-color: var(--wheat);
  color: var(--wheat);
}

.lang-divider {
  opacity: 0.5;
}

/* Active language highlight */
body[data-lang="en"] .lang-en {
  color: var(--wheat-light);
  font-weight: 400;
}

body[data-lang="en"] .nav.scrolled .lang-en {
  color: var(--wheat);
}

body[data-lang="es"] .lang-es {
  color: var(--wheat-light);
  font-weight: 400;
}

body[data-lang="es"] .nav.scrolled .lang-es {
  color: var(--wheat);
}

/* Hide nav CTA on initial hero (not scrolled) — keep it minimal */
.btn-nav-cta {
  font-size: 0.62rem;
  padding: 12px 24px;
}

/* Hamburger — hidden by default on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--warm-white);
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-fast) ease;
}

.nav.scrolled .nav-hamburger span {
  background: var(--brown-dark);
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroReveal 2.2s var(--ease-out) forwards;
}

@keyframes heroReveal {
  from {
    transform: scale(1.08);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Gradient overlay — readability over darkness.
   Top band keeps nav + logo legible on bright photos (hero is replaceable). */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(44, 26, 14, 0.45) 0%,
      rgba(44, 26, 14, 0.0) 22%
    ),
    linear-gradient(
      to top,
      rgba(44, 26, 14, 0.86) 0%,
      rgba(44, 26, 14, 0.32) 45%,
      rgba(44, 26, 14, 0.0) 72%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(52px, 8vh, 100px);
}

/* Logo badge — a wax-seal stamp over the hero image.
   Solid chip (no CSS filters) so contrast survives any photo,
   dark-mode extensions, and forced-colors modes. */
.hero-badge {
  position: absolute;
  top: clamp(80px, 10vh, 120px);
  left: var(--gutter);
  width: clamp(88px, 10vw, 128px);
  aspect-ratio: 1;
  background: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 6px 28px rgba(44, 26, 14, 0.35);
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 300ms forwards;
}

.hero-badge img {
  width: 100%;
  height: auto;
}

.hero-text-block {
  max-width: 720px;
}

/* Kicker pill — guaranteed contrast over any photo */
.hero-eyebrow {
  display: inline-block;
  color: var(--wheat-light);
  background: rgba(44, 26, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 500ms forwards;
}

/* The headline and sub sit in the same photo band — same insurance */
.hero-headline {
  text-shadow: 0 2px 18px rgba(44, 26, 14, 0.45);
}

.hero-sub {
  text-shadow: 0 1px 8px rgba(44, 26, 14, 0.6);
}

.hero-headline {
  color: var(--warm-white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 900ms var(--ease-out) 650ms forwards;
}

.hero-sub {
  color: rgba(250, 247, 242, 0.72);
  max-width: 44ch;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 800ms forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 950ms forwards;
}

/* Scroll hint — animated vertical line */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 2;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--wheat-light));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


/* =============================================================
   WHY SOURDOUGH
   ============================================================= */

.why {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(48px, 8vw, 96px);
}

.pillar {
  background: var(--warm-white);
  padding: clamp(28px, 4vw, 48px);
  transition: background var(--duration-base) ease;
}

.pillar:hover {
  background: var(--cream);
}

.pillar-num {
  display: block;
  color: var(--wheat);
  margin-bottom: 20px;
}

.pillar h3 {
  margin-bottom: 16px;
  color: var(--brown-dark);
}

.pillar p {
  color: var(--muted);
}

/* Proof images */
.why-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.proof-crumb img,
.proof-label img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.proof-caption {
  margin-top: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Four loaves abundance image */
.why-abundance {
  margin-top: 0;
}

.why-abundance img {
  width: 100%;
  height: clamp(240px, 32vw, 480px);
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-card);
}


/* =============================================================
   MENU
   ============================================================= */

.menu {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

/* Tab switcher */
.menu-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}

.menu-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 28px;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: -1px;
  transition: all var(--duration-fast) ease;
}

.menu-tab.active,
.menu-tab:hover {
  color: var(--brown-dark);
  border-bottom-color: var(--wheat);
}

.menu-tab:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Menu card */
.menu-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 26, 14, 0.1);
}

/* Circular image crop — echoes the logo badge. Non-negotiable. */
.menu-card-img-wrap {
  position: relative;
  padding: 28px 28px 0;
}

.menu-card-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--line);
  transition: transform var(--duration-slow) var(--ease-out);
}

.menu-card:hover .menu-card-img-wrap img {
  transform: scale(1.03);
}

.menu-card-body {
  padding: 20px 28px 24px;
}

.menu-card-tag {
  color: var(--wheat);
  margin-bottom: 8px;
  display: block;
}

.menu-card-body h3 {
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.menu-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1;
}


/* =============================================================
   ABOUT / LA HISTORIA DE STEPHY
   ============================================================= */

.about {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Three-image collage */
.about-images {
  position: relative;
  height: clamp(400px, 60vw, 640px);
}

.about-img-primary {
  position: absolute;
  top: 0;
  left: 0;
  width: 68%;
  height: 78%;
}

.about-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-card);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  height: 50%;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.about-img-kitchen {
  position: absolute;
  bottom: 8%;
  left: 4%;
  width: 44%;
  height: 36%;
  border: 4px solid var(--cream);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 26, 14, 0.14);
}

.about-img-kitchen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About content */
.about-content h2 {
  margin: 20px 0 32px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.about-body p {
  color: var(--muted);
}


/* =============================================================
   GALLERY STRIP
   ============================================================= */

.gallery-strip {
  overflow: hidden;
  background: var(--brown-dark);
  padding: 0;
  line-height: 0;
}

.gallery-track {
  display: flex;
  gap: 3px;
  animation: galleryScroll 36s linear infinite;
  width: max-content;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 380px);
  height: clamp(240px, 28vw, 380px);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter var(--duration-base) ease, transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  filter: saturate(1.1);
  transform: scale(calc(var(--z, 1) * 1.03));
}

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =============================================================
   ORDER / HACER UN PEDIDO
   ============================================================= */

.order {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.order-content h2 {
  margin: 20px 0 24px;
}

.order-intro {
  color: var(--muted);
  max-width: 48ch;
}

/* Form */
.order-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
}

.order-divider::before,
.order-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  color: var(--muted);
  display: block;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus {
  border-color: var(--wheat);
  box-shadow: 0 0 0 3px rgba(201, 146, 58, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-note {
  color: var(--wheat);
  margin-top: 4px;
}

/* Venmo block */
.venmo-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.venmo-label {
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}

.venmo-options {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.venmo-option .t-label {
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.venmo-handle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.2;
}

/* Order image */
.order-image img {
  width: 100%;
  height: clamp(400px, 60vw, 640px);
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-card);
}


/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  margin-bottom: 16px;
}

.footer-tagline {
  color: rgba(245, 239, 230, 0.5);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-contact a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.5);
  transition: color var(--duration-fast) ease;
  width: fit-content;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--wheat-light);
}

.footer-nav a:focus-visible,
.footer-contact a:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

/* Icon badges — links come from the admin panel; empty = hidden */
.social-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 239, 230, 0.25);
  border-radius: var(--radius-full);
  color: rgba(245, 239, 230, 0.6);
  transition: color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out);
}

.social-badge svg {
  width: 18px;
  height: 18px;
}

.social-badge:hover {
  color: var(--wheat-light);
  border-color: var(--wheat-light);
  transform: translateY(-2px);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

.footer-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245, 239, 230, 0.08);
  padding-top: 24px;
}

.footer-copy {
  color: rgba(245, 239, 230, 0.28);
}

.footer-credit {
  color: rgba(245, 239, 230, 0.28);
}

.footer-credit a {
  color: rgba(245, 239, 230, 0.5);
  transition: color var(--duration-fast) ease;
}

.footer-credit a:hover {
  color: var(--wheat-light);
}

/* Simplified order section */
.order-ctas {
  margin: 28px 0 8px;
}

.order-alt {
  color: var(--muted);
  margin-top: 20px;
  font-size: 0.92rem;
}


/* =============================================================
   CART — floating pill + drawer
   ============================================================= */

.cart-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown-dark);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(44, 26, 14, 0.35);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) ease;
}

.cart-pill:hover {
  transform: translateY(-2px);
  background: var(--brown);
}

.cart-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--wheat);
  color: var(--warm-white);
  font-size: 0.68rem;
}

.cart-pill-total {
  color: var(--wheat-light);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(44, 26, 14, 0.45);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 170;
  width: min(400px, 100vw);
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(44, 26, 14, 0.25);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  color: var(--brown-dark);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.cart-close:hover { color: var(--brown-dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-empty {
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown-dark);
  line-height: 1.2;
}

.cart-item-price {
  color: var(--muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-qty button {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-warm);
  background: none;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.cart-item-qty button:hover {
  border-color: var(--wheat);
  color: var(--wheat);
}

.cart-item-qty span {
  min-width: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cart-item-remove {
  margin-left: 6px;
  color: var(--muted);
}

.cart-foot {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-subtotal .t-label { color: var(--muted); }

.cart-note {
  color: var(--muted);
  margin-bottom: 4px;
}

.cart-foot .btn-whatsapp {
  width: 100%;
  justify-content: center;
  margin: 12px 0 10px;
}

.cart-clear {
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  text-align: center;
}

.cart-clear:hover { color: var(--brown-dark); }

@media (max-width: 640px) {
  .cart-pill {
    left: 24px;
    justify-content: center;
  }
}

/* --- checkout step inside the drawer --- */

.cart-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* display:flex above would defeat the hidden attribute — never show both steps */
.cart-step[hidden] {
  display: none;
}

.cart-checkout {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-back {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  padding: 4px 0 8px;
}

.cart-back:hover { color: var(--brown-dark); }

.cart-checkout select {
  width: 100%;
  padding: 14px 18px;
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.co-pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-card);
  cursor: pointer;
  font-size: 0.92rem;
}

.co-pay-option:has(input:checked) {
  border-color: var(--wheat);
  background: rgba(201, 146, 58, 0.06);
}

.co-pay-option input {
  accent-color: var(--wheat);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
}

.cart-continue {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.cart-wa-alt {
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-wa-alt:hover { color: var(--brown-dark); }

.co-error {
  color: #b3402a;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- customer order page (/order/:token) --- */

.order-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter) 64px;
}

.order-nav {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.order-nav img { height: 48px; }

.order-page .lang-toggle {
  border-color: var(--line-warm);
  color: var(--muted);
}

.order-card {
  width: 100%;
  max-width: 560px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 40px);
}

.order-loading { color: var(--muted); }

.order-num {
  color: var(--wheat);
  margin-bottom: 10px;
}

.order-status-line {
  color: var(--brown-dark);
  margin-bottom: 14px;
}

.order-meta {
  color: var(--muted);
  margin-bottom: 20px;
}

.order-lines {
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.order-total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-dark);
}

.pay-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.pay-title {
  color: var(--wheat);
  display: block;
  margin-bottom: 10px;
}

.pay-box .t-body { margin-bottom: 12px; line-height: 1.6; }

.pay-btn, .pay-sent {
  width: 100%;
  justify-content: center;
}

.pay-sent { margin-top: 4px; }

.pay-expiry {
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.zelle-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--brown-dark);
}

.order-help {
  color: var(--muted);
  font-size: 0.88rem;
}

.order-lookup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.order-help a {
  color: var(--wheat-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =============================================================
   EDITABLE IMAGE FRAMES
   Every admin-adjustable image sits in a frame that clips it.
   Position comes from inline object-position; zoom from --z.
   ============================================================= */

.slot-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  width: 100%;
}

/* Only collage/fixed-box layouts want full-height frames; everywhere else
   the frame sizes to the image so captions below keep their space. */
.about-images .slot-frame {
  height: 100%;
}

.slot-frame img {
  border-radius: 0;
  transform: scale(var(--z, 1));
}

.gallery-item img {
  transform: scale(var(--z, 1));
}

/* Circular menu frame — the crop lives on the frame so zoom can't break it */
.menu-img-frame {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid var(--line);
}

.menu-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  transform: scale(var(--z, 1));
  transition: transform var(--duration-slow) var(--ease-out);
}

.menu-card:hover .menu-img-frame img {
  transform: scale(calc(var(--z, 1) * 1.03));
}

/* Starter heritage note — the 900-year masa madre */
.heritage-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--brown);
  max-width: 34ch;
  margin: 0 auto clamp(48px, 8vw, 96px);
  text-align: center;
}

.heritage-note::before,
.heritage-note::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--wheat);
  margin: 0 auto;
}

.heritage-note::before { margin-bottom: 24px; }
.heritage-note::after  { margin-top: 24px; }


/* =============================================================
   RESPONSIVE — MID VIEWPORTS (max 1100px)
   ============================================================= */

/* The headline's forced line break fights natural wrapping below ~1280px */
@media (max-width: 1280px) {
  .hero-headline br {
    display: none;
  }
}


/* =============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================= */

@media (max-width: 900px) {
  .about-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    height: clamp(280px, 60vw, 420px);
  }

  /* Order image goes above content on tablet */
  .order-image {
    order: -1;
  }

  .order-image img {
    height: clamp(280px, 50vw, 480px);
  }

  .why-pillars {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}


/* =============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================= */

@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav links */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 0.82rem;
    color: var(--brown-dark);
    letter-spacing: 0.2em;
  }

  .nav-links a::after {
    background: var(--wheat);
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hide the nav CTA on mobile — order button is enough via WhatsApp */
  .btn-nav-cta {
    display: none;
  }

  /* Hero adjustments */
  .hero-headline {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  /* Sections */
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .why-proof {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Buttons go full width on mobile */
  .btn:not(.btn-sm):not(.btn-whatsapp):not(.btn-nav-cta) {
    width: 100%;
    justify-content: center;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .order-image img {
    height: clamp(240px, 70vw, 360px);
  }

  .about-images {
    height: clamp(320px, 80vw, 480px);
  }

  .gallery-item {
    width: clamp(200px, 60vw, 280px);
    height: clamp(200px, 60vw, 280px);
  }

  .venmo-options {
    flex-direction: column;
    gap: 16px;
  }
}


/* =============================================================
   NO-ANIM MODE (?noanim) — QA/screenshot aid, mirrors reduced motion
   ============================================================= */

.no-anim *, .no-anim *::before, .no-anim *::after {
  animation: none !important;
  transition: none !important;
}

.no-anim .reveal,
.no-anim .hero-badge, .no-anim .hero-eyebrow, .no-anim .hero-headline,
.no-anim .hero-sub, .no-anim .hero-actions, .no-anim .hero-img {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}


/* =============================================================
   PREFERS REDUCED MOTION
   All animations must degrade gracefully.
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Reveals appear immediately */
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Hero content appears immediately */
  .hero-badge,
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* Hero image doesn't zoom */
  .hero-img {
    transform: scale(1);
    opacity: 1;
    animation: none;
  }

  /* Gallery strip becomes a static grid */
  .gallery-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  /* The loop needs duplicate items; a static grid doesn't */
  .gallery-item[aria-hidden="true"] {
    display: none;
  }

  /* Scroll line doesn't pulse */
  .scroll-line {
    animation: none;
    opacity: 0.6;
  }
}
