/* =========================================================
   Jiaozi House — "Bamboo Garden" theme
   Custom theme built from the brand logo (green/cream/yellow),
   playful-toy aesthetic direction, pleat/steam motifs throughout.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

@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; }
}

/* ---------- Design tokens ---------- */
:root {
  /* core palette, sampled from the brand logo */
  --cream:        #FFFBF5;
  --cream-2:      #FAEDD6;
  --paper:        #FFF7E9;
  --green-900:    #26311A;
  --green-800:    #35461F;
  --green-700:    #4C6430;
  --green-600:    #628140;
  --green-500:    #7FA050;
  --green-400:    #94B460;
  --green-200:    #D9E6C4;
  --green-100:    #EEF4E5;
  --yellow:       #F1CB2F;
  --yellow-dark:  #C99A12;
  --red:          #C8564D;
  --pink:         #FAB0B0;
  --ink:          #23271C;
  --white:        #FFFFFF;

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --font-accent: "Caveat", cursive;

  --text-sm:   clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  --text-lg:   clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --text-2xl:  clamp(2rem, 1.6rem + 2vw, 2.8rem);
  --text-3xl:  clamp(2.6rem, 1.9rem + 3.5vw, 4.4rem);

  --space-section: clamp(3.5rem, 3rem + 3vw, 7rem);
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -20px rgba(38, 49, 26, 0.35);
  --shadow-pop: 0 12px 28px -10px rgba(38, 49, 26, 0.28);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* visible, brand-coloured focus ring instead of the browser default */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-900); line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); font-weight: 700; }
p { font-size: var(--text-base); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* keep anchor-jump targets clear of the sticky header */
#top, #menu, #story, #gallery, #reviews, #order {
  scroll-margin-top: 90px;
}

.eyebrow {
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 0.4rem;
  display: inline-block;
}
.eyebrow-light { color: var(--yellow); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-900); color: var(--cream);
  padding: 0.75rem 1.25rem; z-index: 999; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--green-500), var(--yellow));
  transform: scaleX(0); transform-origin: 0 0;
  will-change: transform;
}

/* subtle paper grain, purely decorative */
.grain-overlay {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  padding: 0.75rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-pop); }
.btn-primary:hover { background: var(--green-800); }

.btn-outline { border-color: var(--green-700); color: var(--green-800); }
.btn-outline:hover { background: var(--green-100); }

.btn-outline-light { border-color: rgba(255,255,255,0.65); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-ghost { color: var(--green-800); font-weight: 700; }
.btn-ghost:hover { color: var(--green-500); }

.btn-ghost-solid { background: var(--white); color: var(--green-800); box-shadow: var(--shadow-pop); }

.btn-lg { padding: 1rem 1.9rem; font-size: var(--text-base); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--green-200);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { background: rgba(255, 251, 245, 0.97); box-shadow: var(--shadow-pop); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; transition: padding 0.3s ease; }
.site-header.scrolled .header-inner { padding-block: 0.45rem; }
.site-header.scrolled .brand-badge { width: 40px; height: 40px; }

.main-nav a.active { color: var(--green-900); }
.main-nav a.active::after { right: 0; background: var(--green-500); }

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-badge { border-radius: 50%; transition: width 0.3s ease, height 0.3s ease; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--green-900); }
.brand-sub { font-size: 0.7rem; color: var(--green-600); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav { display: none; gap: 1.75rem; font-weight: 700; font-size: var(--text-sm); }
.main-nav a { position: relative; padding-block: 0.3rem; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--yellow-dark); transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta { display: none; align-items: center; gap: 0.75rem; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 0.9rem;
  max-height: 0; overflow: hidden; padding-inline: 1.25rem;
  background: var(--cream-2); font-weight: 700;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-nav.open { max-height: 420px; padding-block: 1.25rem; }
.mobile-nav .btn { width: 100%; margin-top: 0.25rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 3rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; position: relative; z-index: 2; }

.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; opacity: 0.55; }
.blob-1 { width: 420px; height: 420px; background: var(--green-200); top: -140px; right: -120px; animation: float-slow 14s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: var(--yellow); opacity: 0.25; bottom: -100px; left: -100px; animation: float-slow 18s ease-in-out infinite reverse; }
@keyframes float-slow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-25px) scale(1.06); } }

.steam { position: absolute; width: 40px; height: auto; fill: none; stroke: var(--green-400); stroke-width: 6; stroke-linecap: round; opacity: 0.35; z-index: 1; }
.steam-a { top: 6%; left: 46%; animation: drift 7s ease-in-out infinite; }
.steam-b { top: 10%; left: 52%; opacity: 0.22; animation: drift 9s ease-in-out infinite 1.2s; }
@keyframes drift { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 0.35; } 100% { transform: translateY(-40px); opacity: 0; } }

.eyebrow { }
.hero h1 { margin-bottom: 1rem; }
.hero-lede { max-width: 46ch; color: var(--green-800); margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge-pill {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--white); border: 1px solid var(--green-200);
  border-radius: 16px; padding: 0.6rem 1rem; box-shadow: var(--shadow-pop);
  font-size: var(--text-sm);
}
.badge-pill strong { font-family: var(--font-display); color: var(--green-900); font-size: 1.05rem; }
.badge-pill .star { color: var(--yellow-dark); }
.badge-pill span { color: var(--green-700); }

.hero-art { position: relative; justify-self: center; }
.hero-photo-frame { width: min(420px, 88vw); aspect-ratio: 1/1; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-tag {
  position: absolute; bottom: -6px; right: -6px;
  background: var(--yellow); color: var(--green-900);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  padding: 0.7rem 1.1rem; border-radius: 18px; text-align: center; line-height: 1.25;
  box-shadow: var(--shadow-pop); transform: rotate(6deg);
}
.hero-tag span { display: block; font-weight: 600; font-size: 0.75rem; }
.hero-tag { animation: tag-pop 0.6s cubic-bezier(.34,1.56,.64,1) 1.1s backwards; }
@keyframes tag-pop { from { opacity: 0; transform: rotate(6deg) scale(0.4); } to { opacity: 1; transform: rotate(6deg) scale(1); } }

/* hero load-in sequence: fades/slides in on page load, staggered */
.load-in { opacity: 0; transform: translateY(22px); animation: load-in 0.8s cubic-bezier(.16,1,.3,1) forwards; }
.load-in-1 { animation-delay: 0.05s; }
.load-in-2 { animation-delay: 0.2s; }
.load-in-3 { animation-delay: 0.35s; }
.load-in-4 { animation-delay: 0.5s; }
@keyframes load-in { to { opacity: 1; transform: none; } }

/* hero headline: word-by-word mask reveal */
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .word { display: inline-block; animation: word-up 0.85s cubic-bezier(.16,1,.3,1) backwards; }
.hero-headline .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
.hero-headline .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.15s; }
.hero-headline .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.25s; }
.hero-headline .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.35s; }
@keyframes word-up { from { transform: translateY(105%) rotate(3deg); } to { transform: translateY(0) rotate(0); } }

/* floating ambient particles in the hero */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.crumb { position: absolute; font-size: 1.4rem; opacity: 0.5; animation: crumb-float 9s ease-in-out infinite; }
.crumb-1 { top: 18%; left: 8%; font-size: 1.1rem; animation-duration: 8s; }
.crumb-2 { top: 65%; left: 4%; color: var(--yellow-dark); animation-duration: 10s; animation-delay: 1s; }
.crumb-3 { top: 78%; left: 42%; font-size: 1rem; animation-duration: 11s; animation-delay: 2s; }
.crumb-4 { top: 12%; left: 60%; color: var(--green-400); animation-duration: 7s; animation-delay: 0.5s; }
.crumb-5 { top: 55%; left: 92%; font-size: 1rem; animation-duration: 9.5s; animation-delay: 1.5s; }
@keyframes crumb-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.35; }
  50% { transform: translate(10px, -26px) rotate(12deg); opacity: 0.6; }
}

/* pulsing glow nudge for primary WhatsApp CTAs */
.btn.pulse { animation: pulse-glow 2.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 100, 48, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(76, 100, 48, 0); }
}

/* clip-path wipe reveal for showcase photos */
.img-wipe { clip-path: inset(0 0 0 0); }
.img-wipe.reveal { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(.16,1,.3,1); }
.img-wipe.reveal.in-view, .img-wipe.reveal.reveal-done { clip-path: inset(0 0 0 0); }

/* organic "pleat" photo frame — brand motif standing in for the dumpling fold */
.photo-frame, .hero-photo-frame {
  position: relative; overflow: hidden;
  border-radius: 63% 37% 54% 46% / 45% 48% 52% 55%;
  border: 8px solid var(--cream);
  box-shadow: var(--shadow-soft), 0 0 0 3px var(--green-400);
  transform: rotate(-3deg);
}
.photo-frame::before, .hero-photo-frame::before {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border-radius: inherit; border: 3px dashed var(--yellow-dark);
  opacity: 0.6; animation: spin 50s linear infinite;
}
.photo-frame img, .hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.small { width: min(340px, 80vw); aspect-ratio: 4/5; transform: rotate(3deg); border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--green-900); color: var(--cream-2); overflow: hidden; padding-block: 0.65rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  white-space: nowrap; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: 0.03em; padding-right: 1rem;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story { padding-block: var(--space-section); }
.story-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.story-art { justify-self: center; }
.story-copy p { color: var(--green-800); margin-block: 1rem; max-width: 58ch; }
.story-copy h2 { margin-bottom: 0.25rem; }

.story-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; flex-wrap: wrap; }
.story-stats strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--green-700); }
.story-stats span { font-size: var(--text-sm); color: var(--green-800); }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-lede { color: var(--green-800); margin-top: 0.5rem; }

/* ---------- Menu ---------- */
.menu { padding-block: var(--space-section); background: var(--cream-2); position: relative; }
.menu-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.menu-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--green-200); padding-bottom: 0.75rem; }
.menu-group-tag { font-family: var(--font-accent); font-size: 1.2rem; color: var(--green-600); font-weight: 700; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.menu-grid-sides { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.menu-card {
  background: var(--white); border-radius: 22px; padding: 1.1rem;
  box-shadow: var(--shadow-pop); position: relative;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
}
.menu-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-soft); }
.menu-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.6deg); }
.menu-card.featured { outline: 3px solid var(--yellow); }
.menu-card.side { justify-content: space-between; min-height: 100%; }

.menu-card-media {
  aspect-ratio: 4/3; overflow: hidden; border-radius: 16px;
  border: 4px solid var(--cream-2);
}
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-card:hover .menu-card-media img { transform: scale(1.08) rotate(1deg); }

.menu-card-body h4 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.menu-card-body p { font-size: var(--text-sm); color: var(--green-700); margin-top: 0.25rem; }
.menu-card-body .half { font-size: var(--text-sm); font-weight: 500; color: var(--green-600); }

.tag-hot {
  background: var(--red); color: var(--white); font-size: 0.62rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
  font-family: var(--font-body);
}

.price {
  align-self: flex-start;
  background: var(--yellow); color: var(--green-900);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  padding: 0.55rem 1rem 0.4rem;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0% 22%, 8% 8%, 16% 22%, 24% 8%, 32% 22%, 40% 8%, 48% 22%, 56% 8%, 64% 22%, 72% 8%, 80% 22%, 88% 8%, 96% 22%, 100% 8%, 100% 100%, 0% 100%);
}

.menu-note { text-align: center; color: var(--green-600); font-size: var(--text-sm); margin-top: 1rem; }

/* ---------- Gallery ---------- */
.gallery { padding-block: var(--space-section); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; box-shadow: var(--shadow-pop); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.span-2 { grid-column: span 2; aspect-ratio: 16/10; }

.scallop-sm {
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  border: 5px solid var(--cream);
}
.gallery-item.scallop-sm:nth-child(even) { border-radius: 55% 45% 38% 62% / 55% 60% 40% 45%; transform: rotate(1.5deg); }
.gallery-item.scallop-sm:nth-child(odd) { transform: rotate(-1.5deg); }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--space-section); background: var(--green-100); }
.reviews-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.reviews-copy h2 { margin-bottom: 1.5rem; max-width: 16ch; }

.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { font-size: 1.6rem; line-height: 1; }
.feature-list strong { display: block; font-family: var(--font-display); color: var(--green-900); margin-bottom: 0.15rem; }
.feature-list span { font-size: var(--text-sm); color: var(--green-700); }

.reviews-card {
  background: var(--green-900); color: var(--cream);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft); position: relative;
}
.rating-badge { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.rating-number { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--yellow); }
.rating-stars { color: var(--yellow); letter-spacing: 0.05em; }
.rating-source { font-size: var(--text-sm); color: var(--green-200); }
.reviews-card blockquote { font-size: var(--text-lg); line-height: 1.5; font-family: var(--font-display); font-weight: 500; }
.reviews-card cite { display: block; margin-top: 1rem; font-style: normal; color: var(--green-200); font-size: var(--text-sm); }

/* ---------- Order ---------- */
.order {
  position: relative; overflow: hidden;
  background: var(--green-900); color: var(--cream);
  padding-block: var(--space-section); text-align: center;
}
.order-blob {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: var(--green-700); opacity: 0.5; filter: blur(70px);
  top: -200px; left: 50%; transform: translateX(-50%);
}
.order-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.order h2 { color: var(--cream); }
.order-lede { max-width: 50ch; color: var(--green-200); margin-block: 1rem 2rem; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.order-note { margin-top: 1.75rem; color: var(--green-200); font-size: var(--text-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: flex; flex-direction: column; gap: 1.75rem; align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid var(--green-200); }
.footer-brand .brand-name { color: var(--green-900); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 700; font-size: var(--text-sm); }
.footer-nav a, .footer-contact a { transition: color 0.2s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green-500); }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--text-sm); color: var(--green-700); }
.footer-contact a { font-family: var(--font-display); font-weight: 700; color: var(--green-900); }
.footer-bottom { padding-block: 1.25rem 6rem; font-size: 0.8rem; color: var(--green-600); }

/* ---------- Sticky mobile order bar ---------- */
.sticky-order {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; gap: 0.6rem;
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 251, 245, 0.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--green-200); box-shadow: 0 -10px 25px -15px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.sticky-order.visible { transform: translateY(0); }
.sticky-order .btn { flex: 1; }

/* ---------- Reveal on scroll ----------
   Uses a CSS *animation* (not transition) so it never fights with an
   element's own hover transitions (e.g. .menu-card lift on hover).
   Once the reveal finishes, JS swaps in .reveal-done which pins the
   final state with plain properties and releases the animation. */
.reveal { opacity: 0; transform: translateY(38px) scale(0.96); }
.reveal.in-view { animation: reveal-in 0.8s cubic-bezier(.16,1,.3,1) forwards; }
.reveal.reveal-done { animation: none; opacity: 1; transform: none; }
@keyframes reveal-in { to { opacity: 1; transform: none; } }
.reveal-delay-1.in-view { animation-delay: 0.12s; }

/* staggered entrance for repeating grids/lists */
.menu-grid > .reveal:nth-child(1), .gallery-grid > .reveal:nth-child(1), .feature-list > .reveal:nth-child(1), .hero-badges > .reveal:nth-child(1), .story-stats > .reveal:nth-child(1) { animation-delay: 0s; }
.menu-grid > .reveal:nth-child(2), .gallery-grid > .reveal:nth-child(2), .feature-list > .reveal:nth-child(2), .hero-badges > .reveal:nth-child(2), .story-stats > .reveal:nth-child(2) { animation-delay: 0.08s; }
.menu-grid > .reveal:nth-child(3), .gallery-grid > .reveal:nth-child(3), .feature-list > .reveal:nth-child(3), .story-stats > .reveal:nth-child(3) { animation-delay: 0.16s; }
.menu-grid > .reveal:nth-child(4), .gallery-grid > .reveal:nth-child(4), .feature-list > .reveal:nth-child(4) { animation-delay: 0.24s; }
.menu-grid > .reveal:nth-child(5), .gallery-grid > .reveal:nth-child(5) { animation-delay: 0.32s; }
.menu-grid > .reveal:nth-child(6) { animation-delay: 0.4s; }

/* animated count-up numerals */
.count { font-variant-numeric: tabular-nums; }

/* =========================================================
   Responsive — mobile-first (min-width breakpoints)
   ========================================================= */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.span-2 { grid-column: span 2; }
  .hero-badges { flex-wrap: nowrap; }
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .header-cta { display: flex; }

  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .story-inner { grid-template-columns: 0.9fr 1.1fr; }
  .reviews-inner { grid-template-columns: 1.1fr 0.9fr; }
  .sticky-order { display: none; }
}

@media (min-width: 1024px) {
  .wrap { padding-inline: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-grid-sides { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .hero-inner { gap: 4.5rem; }
}
