/* ==========================================================================
   Pastry Eiffel — v2 "Home Kitchen" stylesheet (final elevation, 09-spec)
   Flour / butter / parchment / coffee. Warm, refined, handmade.
   Palette: cream #FAF6EF · ivory #FFFDF8 · butter beige #E9D8BC ·
            muted olive #7A7953 · warm brown #5A3E2B · espresso #2F2119 ·
            soft gold #B98A4B · muted rose #C9A18F.
   Contrast (computed, WCAG):
     espresso on cream 14.41 · brown on cream 9.03 · espresso on gold 5.03 ✓
     olive on cream 4.16 (large text/decor only) → small text uses
     --olive-deep #57563A (6.97 on cream, 5.37 on beige) ✓
     gold on ivory 3.04 (decorative graphics only) → text uses
     --gold-deep #8A6134 (5.08 on cream, 5.38 on ivory) ✓
     rose: decorative only, never text.
   Mobile-first 360 → 1440.
   ========================================================================== */

/* ------------------------------------------------------------------
   1 · Custom properties
------------------------------------------------------------------- */
:root {
  /* core palette (08 spec) */
  --cream: #FAF6EF;        /* warm cream — page background */
  --ivory: #FFFDF8;        /* soft ivory — header, cards */
  --beige: #E9D8BC;        /* butter beige — borders, washes */
  --olive: #7A7953;        /* muted olive — decorative, large accents */
  --brown: #5A3E2B;        /* warm brown — body text */
  --espresso: #2F2119;     /* espresso — headings; never pure black */
  --gold: #B98A4B;         /* soft gold — CTAs, stars (decorative) */
  --rose: #C9A18F;         /* muted rose — decorative accents only */

  /* derived tints & AA-safe text variants (documented in header comment) */
  --beige-soft: #F4EBDA;   /* light wash of butter beige for section bands */
  --olive-tint: #EDECDF;   /* olive wash for badges */
  --rose-tint: #F4E4DB;    /* rose wash for the Signature badge */
  --gold-tint: #F5EAD8;    /* gold wash for the order section */
  --olive-deep: #57563A;   /* olive for small text — AA on cream/beige */
  --gold-deep: #8A6134;    /* gold for links/small text — AA on cream/ivory */
  --text-soft: #6E5645;    /* secondary text — 6.33 on cream, 4.87 on beige */
  --ube: #6B4E9B;          /* tiny accent tied to the ensaymada only */

  /* type */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  /* shape & shadow — soft, rounded, homemade */
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 6px 24px rgba(90, 62, 43, 0.10);
  --shadow-lift: 0 12px 32px rgba(90, 62, 43, 0.14);

  --container: 1160px;
  --reveal-delay: 0ms;
}

/* ------------------------------------------------------------------
   2 · Reset & base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* mobile headings breathe — never cramped (09 §16) */
@media (max-width: 639.98px) {
  h1, h2 { line-height: 1.22; }
  h3 { line-height: 1.3; }
}

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* anchor jumps land clear of the sticky header */
[id] { scroll-margin-top: 5rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--espresso);
  color: var(--ivory);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* handwritten accent — tiny notes only, never paragraphs/nav/buttons */
.script-accent {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  font-size: 1.5em;
  color: var(--gold-deep);
  line-height: 1.2;
}

/* ------------------------------------------------------------------
   3 · Buttons — strict hierarchy (09 §17)
   Primary   = .btn.btn-gold  (Order Fresh Today, Reserve Your Batch,
               Start Your Order, Submit Order Request, nav Order Now)
   Secondary = .btn.btn-soft  (View the Menu, Ask a Question,
               View the Full Menu, Follow Along)
   Text link = .text-link     (More About the Baker, Order this,
               View More on Instagram, Start another order)
   Shared geometry: pill radius, 0.8rem × 1.5rem padding, ≥44px tap
   height, identical hover lift / focus ring / disabled state.
------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 44px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* espresso on gold = 5.03 (computed) ✓ */
.btn-gold {
  background: var(--gold);
  color: var(--espresso);
  border-color: #A87C40;
}
.btn-gold:hover { background: #C69A5F; color: var(--espresso); }

.btn-soft {
  background: var(--ivory);
  color: var(--brown);
  border-color: var(--beige);
}
.btn-soft:hover { color: var(--espresso); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; min-height: 40px; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.ig-icon { width: 1.05em; height: 1.05em; }

/* sticker labels — kraft-and-twine vibe */
.sticker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--brown);
  border: 1.5px dashed var(--rose);
}
.sticker-ube { background: #F0EAF8; color: var(--ube); border-color: #C9B8E4; }

/* product badges — truthful only: Signature / Small batch / Baked to order */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--olive-tint);
  color: var(--olive-deep);
  white-space: nowrap;
}
.badge-rose { background: var(--rose-tint); color: var(--espresso); }

/* owner-placeholder marker — visible tag, matches OWNER-TODO.md */
.todo-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  border: 1px dashed var(--gold);
  vertical-align: middle;
}

.text-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1.5px solid var(--beige);
  padding: 0 0 0.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { color: var(--espresso); border-color: var(--gold); }

/* ------------------------------------------------------------------
   4 · Header / nav — soft ivory, subtle bottom border, sticky
------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(90, 62, 43, 0.10); }

.nav {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--espresso);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { font-style: italic; font-weight: 400; color: var(--gold-deep); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--espresso);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.75rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--beige);
  box-shadow: var(--shadow-soft);
}
.nav-open .nav-menu { display: flex; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  font-size: 1.05rem;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--espresso); border-color: var(--gold); }

.nav-cta { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links { flex-direction: row; gap: 1.35rem; }
  .nav-links a { font-size: 0.95rem; }
  .nav-cta { align-self: auto; }
}

/* ------------------------------------------------------------------
   5 · Sections — shared rhythm (tighter on mobile, 09 §13/§15)
------------------------------------------------------------------- */
section { padding-block: 3.25rem; }
@media (min-width: 900px) { section { padding-block: 4.5rem; } }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
@media (min-width: 900px) { .section-head { margin-bottom: 2.5rem; } }
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--brown); }

.section-sub { color: var(--text-soft); max-width: 42rem; }

/* image cards — soft rounded photos, no layout shift.
   Product treatment (menu/signature): consistent crop + a whisper of
   warmth/brightness. Process/BTS shots stay candid and untouched. */
.img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige-soft);
  box-shadow: var(--shadow-soft);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.bake-img img, .spotlight-img img, .hero-img img { filter: saturate(1.04) brightness(1.02); }
.ratio-45 { aspect-ratio: 4 / 5; }

.photo-tag {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--gold-deep);
  margin-top: 0.7rem;
  text-align: center;
}

/* ------------------------------------------------------------------
   6 · Hero — copy ~43% / photo ~57%, tighter appetizing crop (09 §2)
------------------------------------------------------------------- */
.hero { padding-block: 2.5rem 3.5rem; }

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 450;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.hero-title em { font-style: italic; font-weight: 350; color: var(--brown); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }

.hero-trust {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--olive-deep);
  margin: 0;
}
.hero-trust span { margin-inline: 0.35rem; color: var(--gold); }

.hero-photo { margin: 0; min-width: 0; }
.hero-img {
  aspect-ratio: 4 / 3.6;
  border: 6px solid var(--ivory);
  border-radius: 40% 40% var(--radius-lg) var(--radius-lg) / 22% 22% var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
/* landscape source (3:2) in a 4/3.6 frame — hold the ensaymada centrepiece and
   the plated macarons, trim a little empty tabletop off the bottom */
.hero-img img { object-position: 50% 46%; }

@media (min-width: 900px) {
  /* photo column ≈ 57.5% of the grid — per spec 55–58%; the photo dips
     slightly into the next section for an editorial overlap */
  .hero { padding-block: 3.75rem 0; }
  .hero-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
  .hero-copy { padding-block: 2.5rem 4.5rem; }
  .hero-img { aspect-ratio: 4 / 3.55; }
  .hero-photo { position: relative; z-index: 2; margin-bottom: -2.75rem; }
}

/* ------------------------------------------------------------------
   7 · Meet the Baker — soft beige wash, short and personal (09 §4)
------------------------------------------------------------------- */
.baker { background: var(--beige-soft); }
@media (min-width: 900px) { .baker { padding-top: 6.5rem; } }

.baker-grid { display: grid; gap: 2.25rem; align-items: center; }

.baker-photo { margin: 0; }

.baker-hi { display: block; margin-bottom: 0.35rem; }

.baker-lead {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 450;
  color: var(--espresso);
  line-height: 1.5;
}

.value-list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.value-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-item h3 { font-size: 1.05rem; margin: 0 0 0.1rem; }
.value-item p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.value-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--beige);
  color: var(--gold-deep);
}
.value-icon svg { width: 1.35rem; height: 1.35rem; }

/* single-column widths: keep tall crops from towering over the copy */
@media (max-width: 899.98px) {
  .baker-photo .ratio-45 { aspect-ratio: 4 / 3; }
}

@media (min-width: 900px) {
  .baker-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; }
}

/* ------------------------------------------------------------------
   8 · Signature spotlight — the emotional centerpiece (09 §5)
------------------------------------------------------------------- */
.spotlight { background: var(--beige); }

.spotlight-grid { display: grid; gap: 2.25rem; align-items: center; }

.spotlight-photo { margin: 0; }
.spotlight-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 6px solid var(--ivory);
}
@media (max-width: 899.98px) { .spotlight-img { aspect-ratio: 1 / 1; } }

.card-sticker {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}

.spotlight-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.015em;
}
.spotlight-title em { font-style: italic; font-weight: 400; color: var(--brown); }

.spotlight-body {
  font-size: 1.05rem;
  color: var(--brown);
  max-width: 30rem;
  margin-bottom: 1.6rem;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin: 0 0 1.9rem;
  padding: 1.1rem 0;
  max-width: 30rem;
  border-top: 1px solid rgba(90, 62, 43, 0.18);
  border-bottom: 1px solid rgba(90, 62, 43, 0.18);
}
.spotlight-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.15rem;
}
.spotlight-meta dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--espresso);
}

@media (min-width: 900px) {
  /* image side carries more weight than the copy; photo sits right so the
     page alternates hero-right → baker-left → signature-right (09 §14) */
  .spotlight-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; }
  .spotlight-photo { order: 2; }
  .spotlight-copy { order: 1; }
}

/* ------------------------------------------------------------------
   9 · Menu — 4 featured cards + expandable full menu (09 §6)
------------------------------------------------------------------- */
.bakes { background: var(--ivory); }

.bakes-grid { display: grid; gap: 1.5rem; }

.bake-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bake-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bake-card .img-card { border-radius: 0; box-shadow: none; }
.bake-img { aspect-ratio: 4 / 3.2; }

.bake-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}
.bake-body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.bake-body p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 0.75rem; }

.bake-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}
.bake-price { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
.bake-link { align-self: flex-start; }

@media (min-width: 640px) { .bakes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bakes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* full menu — native <details>, styled summary, animated by main.js */
.full-menu { margin-top: 2rem; }
.full-menu-summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  border-radius: 999px;
}
.full-menu-summary::-webkit-details-marker { display: none; }
.full-menu-summary:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.full-menu-btn .chev { width: 0.7rem; height: auto; transition: transform 0.25s ease; }
.full-menu[open] .full-menu-btn .chev { transform: rotate(180deg); }

.full-menu-panel {
  overflow: hidden;
  display: grid;
  gap: 1.75rem;
  padding-top: 1.75rem;
}
@media (min-width: 800px) { .full-menu-panel { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
@media (min-width: 800px) { .full-menu-note { grid-column: 1 / -1; } }

.menu-group-title {
  font-size: 1.05rem;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--beige);
}
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.menu-list li { display: block; }
.menu-item-name { display: block; font-weight: 600; color: var(--espresso); }
.menu-item-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0.1rem 0 0.35rem;
}
.full-menu-note { margin: 0.25rem 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* ------------------------------------------------------------------
   10 · The handmade process — steps 2 & 4 carry images (09 §8)
------------------------------------------------------------------- */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  position: relative;
}

/* flex column + margin-top:auto on the art keeps all four photos on one
   baseline even when the step copy runs to a different number of lines */
.process-card { position: relative; display: flex; flex-direction: column; }
.process-card .process-art { margin-top: auto; }
.process-card h3 { font-size: 1.15rem; margin: 0.9rem 0 0.35rem; }
.process-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.process-card p:last-child { margin-bottom: 0; }

.process-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--espresso);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 0 0 5px var(--cream);
}

.process-art { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.process-art img { height: 100%; }

@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  /* connecting line behind the numbered markers */
  .process-grid::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--beige);
  }
}

/* ------------------------------------------------------------------
   11 · Customer reviews — 3 compact honest placeholders (09 §9)
   Mobile: horizontal scroll-snap with pagination dots (wired in main.js)
------------------------------------------------------------------- */
.reviews { background: var(--beige-soft); }

.reviews-scroller { display: grid; gap: 1.25rem; }

.review-card {
  margin: 0;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}
.review-card blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--brown);
  line-height: 1.5;
}
.review-card figcaption { font-size: 0.88rem; color: var(--text-soft); }

.review-placeholder { border: 1.5px dashed var(--rose); box-shadow: none; }

/* stars are decorative (aria-label carries meaning): gold on ivory 3.04 */
.stars {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 799.98px) {
  .reviews-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    scrollbar-width: none;
  }
  .reviews-scroller::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
}
@media (min-width: 800px) { .reviews-scroller { grid-template-columns: repeat(3, 1fr); } }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.reviews-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  background: transparent;
  cursor: pointer;
}
.reviews-dot.is-active { background: var(--gold-deep); }
@media (min-width: 800px) { .reviews-dots { display: none; } }

/* ------------------------------------------------------------------
   12 · Instagram gallery — 6 desktop / 4 mobile (09 §10)
------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--beige-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory);
  background: linear-gradient(transparent 55%, rgba(47, 33, 25, 0.72));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-hover,
.gallery-item:focus-visible .gallery-hover { opacity: 1; }

.gallery-more { margin: 1.75rem 0 0; }

/* mobile shows the first 4 only */
@media (max-width: 799.98px) { .gallery-item-extra { display: none; } }
@media (min-width: 800px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }

/* ------------------------------------------------------------------
   13 · Order — compact intro, collapsed form panel (09 §11)
------------------------------------------------------------------- */
.order { background: var(--gold-tint); }

/* wide invitation photo above the three ordering steps */
.order-photo {
  margin: 0 auto 2rem;
  max-width: 58rem;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--ivory);
  box-shadow: var(--shadow-lift);
}
/* hold the open box and the pastries inside it, not the empty tabletop */
.order-photo img { object-position: 55% 62%; }
@media (min-width: 800px) { .order-photo { aspect-ratio: 16 / 9; } }

.order-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.order-step {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.order-step h3 { font-size: 1.15rem; margin: 0.7rem 0 0.3rem; }
.order-step p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--espresso);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.order-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 800px) { .order-steps { grid-template-columns: repeat(3, 1fr); } }

/* collapsible panel — ships open for no-JS; main.js collapses on load */
.order-panel { max-width: 52rem; }
.js .order-panel[data-collapsed] { display: none; }

.order-form,
.order-confirm {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.order-form-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.order-form-title:focus-visible,
.order-form-title:focus { outline: none; }

.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--espresso);
  margin-bottom: 0.45rem;
}
.field .hint { font-weight: 400; color: var(--text-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--brown);
  background: var(--cream);
  border: 1.5px solid var(--beige);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 1px;
}

.field-items { border: 0; padding: 0; margin: 0 0 1.25rem; }

.items-groups { display: grid; gap: 1rem; }
.items-group {
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}
.items-group > legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
  padding-inline: 0.4rem;
  margin-bottom: 0.2rem;
}

.items-grid { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .items-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .items-grid { grid-template-columns: 1fr 1fr 1fr; } }

.field label.check,
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--beige);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--brown);
  cursor: pointer;
}
.check input { accent-color: var(--olive-deep); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }

.order-facts {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--cream);
  border: 1px dashed var(--beige);
  border-radius: var(--radius);
}
.order-facts strong { color: var(--espresso); font-weight: 600; }

.order-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.order-form-alt { font-size: 0.92rem; color: var(--text-soft); }

.form-status { margin: 0.9rem 0 0; font-weight: 500; color: var(--olive-deep); min-height: 1.2em; }

.order-confirm h3 { font-size: 1.35rem; margin: 0.35rem 0 0.6rem; }
.order-confirm p:last-of-type { margin-bottom: 1.1rem; }

/* ------------------------------------------------------------------
   14 · Practical details — 3 consolidated cards (09 §12)
------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 1.25rem; }

.contact-card {
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.contact-card p { margin: 0 0 0.6rem; color: var(--text-soft); font-size: 0.95rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-todo { font-size: 0.85rem; }

@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------
   15 · Footer — light and warm, never dark
------------------------------------------------------------------- */
.footer {
  background: var(--ivory);
  border-top: 1px solid var(--beige);
  padding-block: 3rem 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.25rem;
}
.footer-tagline { color: var(--text-soft); margin-bottom: 1.1rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  padding-block: 0.35rem;
}
.footer-nav a:hover { color: var(--espresso); text-decoration: underline; }

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--beige);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.footer-ig:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--espresso); }

.footer-detail { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 0.75rem; }
.footer-meta { margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.85rem; color: var(--text-soft); margin: 0; }

/* ------------------------------------------------------------------
   16 · Sticky mobile order bar — hidden on load, revealed after the
        hero CTAs scroll away; hides near the order form & footer (09 §3)
------------------------------------------------------------------- */
.mobile-order-bar { display: none; }

@media (max-width: 799.98px) {
  .js .mobile-order-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem
             calc(1rem + env(safe-area-inset-right, 0px))
             calc(0.55rem + env(safe-area-inset-bottom, 0px))
             calc(1rem + env(safe-area-inset-left, 0px));
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--beige);
    box-shadow: 0 -4px 18px rgba(90, 62, 43, 0.10);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .js .mobile-order-bar.is-shown { transform: none; visibility: visible; }
}

.mobile-order-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--olive-deep);
  line-height: 1.3;
}

/* ------------------------------------------------------------------
   17 · Reveal animation — soft fade-up only, guarded
------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease var(--reveal-delay), transform 0.6s ease var(--reveal-delay);
}
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bake-card, .gallery-item img, .footer-ig, .full-menu-btn .chev,
  .js .mobile-order-bar, .text-link, .nav-links a { transition: none; }
  .gallery-item:hover img { transform: none; }
  .btn:hover, .bake-card:hover, .footer-ig:hover { transform: none; }
}
