/* ==========================================================================
   Fleur & Bakerie — Styles
   --------------------------------------------------------------------------
    1. Design tokens          11. Menu
    2. Base                   12. Christmas special
    3. Layout & utilities     13. How to order
    4. Buttons & links        14. Order form
    5. Icons                  15. Order summary
    6. Page loader            16. FAQ
    7. Header & navigation    17. Footer
    8. Floating order button  18. Modal, confetti, toast
    9. Hero                   19. Scroll reveal
   10. About                  20. Reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
  /* Brand colors */
  --cream: #FBF6F1;          /* page background */
  --cream-deep: #F4E9DE;     /* alternate section background */
  --paper: #FFFDFA;          /* cards */
  --cocoa: #7A4E3F;          /* text & headings */
  --cocoa-dark: #5E3A2E;
  --caramel: #E8C39E;        /* accent */
  --caramel-soft: #F6E6D4;
  --caramel-deep: #B07A4F;   /* accent text that still passes contrast at large sizes */
  --choc: #2B1A14;           /* logo */
  --blush: #F3DDD5;
  --error: #A93F32;
  --success: #52704A;

  --line: rgba(122, 78, 63, 0.16);
  --line-strong: rgba(122, 78, 63, 0.34);

  --shadow-sm: 0 1px 3px rgba(43, 26, 20, 0.05), 0 10px 24px -16px rgba(43, 26, 20, 0.28);
  --shadow-lg: 0 4px 10px rgba(43, 26, 20, 0.06), 0 26px 48px -22px rgba(43, 26, 20, 0.4);

  --radius: 22px;
  --radius-sm: 12px;

  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Soft paper grain (SVG noise) layered with a faint linen weave */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .31 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --linen:
    repeating-linear-gradient(0deg, rgba(122, 78, 63, 0.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(122, 78, 63, 0.018) 0 1px, transparent 1px 4px);
}

/* 2. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cocoa);
  background-color: var(--cream);
  background-image: var(--paper-grain), var(--linen);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading,
body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { color: var(--cocoa-dark); }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--caramel-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--caramel); color: var(--choc); }

/* 3. LAYOUT & UTILITIES =================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}
.container--narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding-inline: 28px; } }

.section { padding-block: clamp(72px, 11vw, 128px); position: relative; }
.section--alt {
  background-color: var(--cream-deep);
  background-image: var(--paper-grain), var(--linen);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 56px);
}
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin-bottom: 0.9rem;
}
.eyebrow .icon { color: var(--caramel-deep); }
.eyebrow--light { color: var(--caramel); }
.eyebrow--light .icon { color: var(--caramel); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.3em;
  color: var(--caramel-deep);
  line-height: 0.9;
  display: inline-block;
  padding-inline: 0.06em;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--choc);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.mt { margin-top: 20px; }

/* 4. BUTTONS & LINKS ====================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cocoa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-sans);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  --btn-bg: var(--cocoa);
  --btn-fg: var(--cream);
  box-shadow: 0 10px 22px -12px rgba(94, 58, 46, 0.7);
}
.btn--primary:hover { --btn-bg: var(--cocoa-dark); box-shadow: 0 16px 26px -14px rgba(94, 58, 46, 0.8); }

.btn--outline { border-color: var(--cocoa); }
.btn--outline:hover { --btn-bg: var(--cocoa); --btn-fg: var(--cream); }

.btn--gold {
  --btn-bg: var(--caramel);
  --btn-fg: var(--choc);
  box-shadow: 0 0 0 0 rgba(232, 195, 158, 0.5), 0 12px 26px -14px rgba(232, 195, 158, 0.9);
}
.btn--gold:hover { --btn-bg: #F0D2B2; }

.btn--ghost {
  --btn-fg: var(--cocoa);
  border: 1.5px dashed var(--line-strong);
  width: 100%;
  border-radius: var(--radius-sm);
}
.btn--ghost:hover { --btn-bg: var(--caramel-soft); border-color: var(--caramel-deep); transform: none; }

.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.08rem; }

.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* "Add to Order" bounce */
.btn.is-bouncing { animation: bounce 0.55s var(--ease); }
@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.9); }
  55%  { transform: scale(1.08); }
  75%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* Submit spinner */
.spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(251, 246, 241, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cocoa);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--caramel);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link:hover { text-decoration-color: var(--cocoa); }
.link--light { color: var(--caramel); }
.link--light:hover { text-decoration-color: var(--caramel); }

/* 5. ICONS ================================================================ */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sparkle { width: 12px; height: 12px; }
.icon--butterfly { width: 26px; height: 20px; stroke-width: 3.2; color: var(--caramel-deep); }

/* 6. PAGE LOADER ========================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background-color: var(--cream);
  background-image: var(--paper-grain);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }

.loader__logo { width: min(86vw, 560px); height: auto; overflow: visible; }
.loader__logo text {
  font-family: var(--font-script);
  font-size: 104px;
  fill: transparent;
  stroke: var(--choc);
  stroke-width: 1.1;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  opacity: 0;
}
.loader.is-drawing .loader__logo text {
  opacity: 1;
  animation:
    write 2.1s var(--ease) forwards,
    inkFill 0.8s 1.5s ease forwards;
}
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes inkFill { to { fill: var(--choc); stroke-width: 0.3; } }

.loader__sparkle {
  width: 18px; height: 18px;
  color: var(--caramel-deep);
  opacity: 0;
}
.loader.is-drawing .loader__sparkle { animation: sparklePop 0.9s 1.8s var(--ease-bounce) forwards; }
@keyframes sparklePop {
  0%   { opacity: 0; transform: scale(0) rotate(-90deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* 7. HEADER & NAVIGATION ================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 241, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(43, 26, 20, 0.35);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--choc);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 4px;
}
.nav__logo span { color: var(--caramel-deep); }

/* Hamburger */
.nav__toggle {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--cocoa);
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--cocoa);
  position: relative;
}

/* Mobile dropdown panel */
@media (max-width: 1099.98px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px 16px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(43, 26, 20, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__links a.is-active { color: var(--caramel-deep); }
  .nav__links .nav__cta {
    margin-top: 16px;
    text-align: center;
    border: 0;
    border-radius: 999px;
    background: var(--cocoa);
    color: var(--cream);
  }
}

/* Desktop inline links */
@media (min-width: 1100px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: 30px; }
  .nav__links a { padding: 8px 0; }
  .nav__links a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--caramel);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav__links a:hover::after,
  .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__cta {
    padding: 10px 22px !important;
    border-radius: 999px;
    background: var(--cocoa);
    color: var(--cream) !important;
    transition: background-color 0.2s, transform 0.2s;
  }
  .nav__cta:hover { background: var(--cocoa-dark); transform: translateY(-1px); }
}

/* 8. FLOATING ORDER BUTTON ================================================ */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--choc);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(43, 26, 20, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(43, 26, 20, 0.6); }
.fab .icon { color: var(--caramel); }
.fab__badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--choc);
  font-size: 0.8rem;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--cream);
}
.fab__badge.is-popping { animation: badgePop 0.5s var(--ease-bounce); }
@keyframes badgePop {
  0%   { transform: scale(0.4); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.fab.is-wiggling { animation: wiggle 0.6s var(--ease); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}

/* 9. HERO ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 88px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(243, 221, 213, 0.75), transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(232, 195, 158, 0.35), transparent 70%);
}
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: 48px; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; text-align: left; }
}

.hero__logo {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 7.5rem);
  line-height: 1;
  color: var(--choc);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.hero__logo span { color: var(--caramel-deep); font-size: 0.85em; }

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  color: var(--cocoa);
  margin-bottom: 1rem;
}
.hero__lead { max-width: 30em; margin-inline: auto; }
@media (min-width: 900px) { .hero__lead { margin-inline: 0; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.hero__actions .btn { flex: 1 1 160px; max-width: 220px; }
@media (min-width: 900px) { .hero__actions { justify-content: flex-start; } }

.hero__media {
  position: relative;
  margin: 0 auto;
  width: min(100%, 460px);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 28px 28px;   /* bakery-window arch */
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--paper);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1.5px solid var(--caramel);
  border-radius: 999px 999px 32px 32px;
  z-index: -1;
}
.hero__badge-butterfly {
  position: absolute;
  top: 12%;
  left: -6px;
  width: 54px;
  height: 42px;
  stroke-width: 2.4;
  animation: hover 4s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* Floating sparkles (positioned by JS via custom properties) */
.hero__sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  color: var(--c, var(--caramel));
  animation:
    twinkle var(--t, 3s) var(--d, 0s) ease-in-out infinite,
    floaty calc(var(--t, 3s) * 2.3) var(--d, 0s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; scale: 0.6; }
  50% { opacity: 1; scale: 1; }
}
@keyframes floaty {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 20deg; }
}
.is-paused .sparkle,
.is-paused .flake,
.is-paused .bulb { animation-play-state: paused; }

/* Flying butterfly */
.flyer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  color: var(--cocoa);
}
.flyer__svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flyer__wing { transform-box: fill-box; animation: flap 0.28s ease-in-out infinite alternate; }
.flyer__wing--left { transform-origin: right center; }
.flyer__wing--right { transform-origin: left center; }
@keyframes flap { to { transform: scaleX(0.25); } }

.flyer.is-flying { animation: flyAcross 11s ease-in-out forwards; }
@keyframes flyAcross {
  0%   { opacity: 0; transform: translate(-80px, 72vh) rotate(18deg); }
  6%   { opacity: 1; }
  25%  { transform: translate(22vw, 46vh) rotate(8deg); }
  45%  { transform: translate(44vw, 58vh) rotate(-6deg); }
  65%  { transform: translate(66vw, 26vh) rotate(12deg); }
  85%  { transform: translate(86vw, 18vh) rotate(-4deg); }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100vw + 80px), 6vh) rotate(10deg); }
}

/* 10. ABOUT =============================================================== */
.about__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .about__inner { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }

.about__media { margin: 0; position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--paper);
  rotate: -2deg;
}
.about__media::after {
  content: "";
  position: absolute;
  right: -10px; bottom: -14px;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  z-index: -1;
}

.about__features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) { .about__features { grid-template-columns: repeat(3, 1fr); } }
.about__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
}
.about__features .icon { width: 14px; height: 14px; color: var(--caramel-deep); margin-top: 4px; }
.about__features strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; margin-bottom: 2px; }

/* 11. MENU ================================================================ */
.menu__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-style: italic;
}

/* Category tabs: scroll sideways on small phones */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  margin: 0 -16px 28px;
  padding-inline: 16px;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .tabs { justify-content: center; flex-wrap: wrap; margin-inline: 0; } }

.tab {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--cocoa);
  font: 700 0.92rem var(--font-sans);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.tab:hover { border-color: var(--cocoa); transform: translateY(-1px); }
.tab[aria-pressed="true"] {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--cream);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 24px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.menu__grid.is-fading { opacity: 0; transform: translateY(8px); }

/* Product card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card.is-entering { animation: cardIn 0.5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
}

.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--caramel-soft); }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.94);
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 14px -8px rgba(43, 26, 20, 0.45);
}
.card__badge .icon--butterfly { width: 24px; height: 18px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 4px;
}
.card__title { font-size: 1.35rem; margin-bottom: 6px; }
.card__desc { font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }

/* Size / price chips (radio buttons) */
.sizes {
  border: 0;
  padding: 0;
  margin: auto 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.sizes__legend {
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.size { position: relative; flex: 1 1 0; min-width: 84px; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--cream);
  text-align: center;
  line-height: 1.25;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.size__label { font-size: 0.74rem; letter-spacing: 0.02em; }
.size__price { font-weight: 700; font-size: 1.02rem; color: var(--cocoa-dark); }
.size:hover .size__box { border-color: var(--cocoa); }
.size input:checked + .size__box { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.size input:checked + .size__box .size__price { color: var(--cream); }
.size input:focus-visible + .size__box { outline: 3px solid var(--caramel-deep); outline-offset: 2px; }

.card .btn--add { width: 100%; }
.btn--add.is-added { --btn-bg: var(--success); --btn-fg: var(--cream); }

/* 12. CHRISTMAS SPECIAL =================================================== */
.christmas {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 13vw, 150px) clamp(72px, 11vw, 128px);
  color: var(--cream);
  background:
    radial-gradient(ellipse 60% 60% at 20% 40%, rgba(232, 195, 158, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 90%, rgba(181, 82, 74, 0.22), transparent 70%),
    linear-gradient(160deg, #3A241B 0%, var(--choc) 60%, #22140F 100%);
}
.christmas h2 { color: var(--cream); font-size: clamp(2.6rem, 7vw, 4rem); }
.christmas h2 .script { color: var(--caramel); }
.christmas strong { color: var(--caramel); }

.christmas__inner { position: relative; z-index: 2; display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .christmas__inner { grid-template-columns: 1fr 1fr; gap: 72px; } }

.christmas__media { position: relative; margin: 0; }
.christmas__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1.5px solid rgba(232, 195, 158, 0.5);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(232, 195, 158, 0.08);
}
.christmas__ribbon {
  position: absolute;
  top: 18px;
  right: -8px;
  padding: 8px 18px;
  background: var(--caramel);
  color: var(--choc);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.christmas__ribbon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  border-left: 8px solid #A88360;
  border-bottom: 8px solid transparent;
}
.christmas__desc { font-size: 1.1rem; color: #F1E4D8; max-width: 32em; }
.christmas__note { margin: 16px 0 0; font-size: 0.9rem; color: #D9C7B7; font-style: italic; }

.sizes--dark { margin: 24px 0 22px; }
.sizes--dark .sizes__legend { color: var(--caramel); }
.sizes--dark .size__box { background: rgba(255, 253, 250, 0.06); border-color: rgba(232, 195, 158, 0.45); color: #F1E4D8; padding-block: 12px; }
.sizes--dark .size__price { color: var(--cream); font-size: 1.15rem; }
.sizes--dark .size:hover .size__box { border-color: var(--caramel); }
.sizes--dark .size input:checked + .size__box { background: var(--caramel); border-color: var(--caramel); color: var(--choc); }
.sizes--dark .size input:checked + .size__box .size__price { color: var(--choc); }
.christmas .btn--add { min-width: 220px; }

/* Twinkling string lights */
.lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='30'%3E%3Cpath d='M0 4 Q32 30 64 4' fill='none' stroke='%23E8C39E' stroke-opacity='.45' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0 / 64px 30px;
}
.bulb {
  justify-self: center;
  margin-top: 15px;
  width: 11px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 10px 2px var(--c);
  position: relative;
  animation: glow 2.6s var(--d, 0s) ease-in-out infinite alternate;
}
.bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2.5px;
  width: 6px;
  height: 5px;
  border-radius: 2px;
  background: #8C6A4F;
}
@keyframes glow {
  0%   { opacity: 0.35; box-shadow: 0 0 2px 0 var(--c); }
  100% { opacity: 1;    box-shadow: 0 0 16px 4px var(--c); }
}

/* Falling snow */
.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flake {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #FFF8F0;
  opacity: var(--o, 0.8);
  filter: blur(var(--b, 0px));
  animation: fall var(--t) var(--d) linear infinite;
}
/* --fall is set by JS to the section's height so flakes cross the whole banner */
.snow { --fall: 1200px; }
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(var(--drift), calc(var(--fall) / 2), 0); }
  100% { transform: translate3d(0, var(--fall), 0); }
}

/* 13. HOW TO ORDER ======================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.step {
  position: relative;
  padding: 30px 24px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.97rem; }
.step__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--caramel-soft);
  color: var(--cocoa);
  border: 1.5px dashed var(--caramel-deep);
}
.step__icon .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.step__num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--caramel);
}
/* Dotted connectors between steps on wide screens */
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 66px;
    right: -26px;
    width: 24px;
    border-top: 2px dotted var(--caramel-deep);
  }
}

/* 14. ORDER FORM ========================================================== */
.order__layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .order__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; } }

.order__form { display: grid; gap: 20px; min-width: 0; }

.form-card {
  min-width: 0;
  margin: 0;
  padding: 26px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .form-card { padding: 30px 30px 28px; } }

.form-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  float: left;            /* lets the legend sit inside the card padding */
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cocoa);
}
.form-card__title + * { clear: both; }
.form-card__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--choc);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.grid-2 { display: grid; gap: 16px 18px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; min-width: 0; }
.field label,
.label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--cocoa-dark);
}
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--cocoa); font-size: 0.85rem; }

input[type="text"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--choc);
  font: 400 1rem/1.4 var(--font-sans);   /* 16px stops iOS from zooming */
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A4E3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select:disabled { background-color: #F7F1EB; color: #8C7268; cursor: not-allowed; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #A08679; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cocoa);
  box-shadow: 0 0 0 4px rgba(232, 195, 158, 0.55);
}
[aria-invalid="true"] { border-color: var(--error) !important; background-color: #FFF8F6; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(169, 63, 50, 0.18); }

.field__hint { margin: 6px 0 0; font-size: 0.84rem; color: var(--cocoa); }
.field__hint--right { text-align: right; }
.field__error {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--error);
}
.field__error:empty { display: none; }
.field__error::before { content: "⚠ "; }
.field__error--block { margin: 0 0 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #FCEDEA;
  border: 1px solid rgba(169, 63, 50, 0.35);
  color: var(--error);
  font-weight: 700;
  font-size: 0.95rem;
}
.form-alert[hidden] { display: none; }

/* Dynamic item rows */
.items { display: grid; gap: 14px; margin-bottom: 14px; }
.item-row {
  padding: 16px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  animation: rowIn 0.4s var(--ease);
}
.item-row.is-removing { animation: rowOut 0.3s var(--ease) forwards; }
.item-row.is-highlight { animation: rowFlash 1s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes rowOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes rowFlash {
  0%   { box-shadow: 0 0 0 0 rgba(232, 195, 158, 0); }
  30%  { box-shadow: 0 0 0 5px rgba(232, 195, 158, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(232, 195, 158, 0); }
}

.item-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.item-row__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
}
.item-row__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cocoa);
  font: 700 0.85rem var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.item-row__remove:hover { background: #FCEDEA; color: var(--error); }
.item-row__remove .icon { width: 18px; height: 18px; }

.item-row__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item-row__fields .field label { font-size: 0.8rem; margin-bottom: 4px; }
.item-row__fields select { min-height: 46px; font-size: 1rem; }
@media (max-width: 420px) {
  .item-row__fields { grid-template-columns: 1fr; }
}
@media (min-width: 760px) {
  .item-row__fields { grid-template-columns: 1fr 1.4fr 1fr 128px; }
}

.item-row__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.9rem;
}
.item-row__foot strong { font-size: 1.1rem; }
.item-row .field__error { margin-top: 10px; }

/* Quantity stepper */
.qty {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: stretch;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  min-height: 46px;
}
.qty:focus-within { border-color: var(--cocoa); box-shadow: 0 0 0 4px rgba(232, 195, 158, 0.55); }
.qty button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  transition: background-color 0.2s;
}
.qty button:hover { background: var(--caramel-soft); }
.qty button .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.qty input {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Pickup / delivery segmented toggle */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}
.segmented__option { position: relative; cursor: pointer; }
.segmented__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.3s var(--ease), color 0.3s, box-shadow 0.3s;
}
.segmented__option input:checked + span {
  background: var(--cocoa);
  color: var(--cream);
  box-shadow: 0 8px 16px -10px rgba(94, 58, 46, 0.8);
}
.segmented__option input:focus-visible + span { outline: 3px solid var(--caramel-deep); outline-offset: 2px; }

.label-delivery { display: none; }
.is-delivery .label-delivery { display: inline; }
.is-delivery .label-pickup { display: none; }

/* Smooth expand/collapse for delivery address */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s 0.4s;
}
.collapse.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s;
}
.collapse__inner { overflow: hidden; }
.collapse__inner > :first-child { margin-top: 18px; }

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--caramel-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.note .icon { color: var(--caramel-deep); margin-top: 1px; }

/* Payment tiles */
.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
@media (min-width: 760px) { .pay-options { grid-template-columns: repeat(4, 1fr); } }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-option span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.pay-option span .icon { color: var(--caramel-deep); }
.pay-option:hover span { border-color: var(--cocoa); }
.pay-option input:checked + span {
  border-color: var(--cocoa);
  background: var(--caramel-soft);
  box-shadow: inset 0 0 0 1.5px var(--cocoa);
}
.pay-option input:focus-visible + span { outline: 3px solid var(--caramel-deep); outline-offset: 2px; }
.pay-options.is-invalid span { border-color: var(--error); }

.form-foot { margin: -6px 0 0; text-align: center; font-size: 0.86rem; }

/* 15. ORDER SUMMARY ======================================================= */
.summary { min-width: 0; }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--nav-h) + 20px); } }

.summary__card {
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}
/* Scalloped paper-receipt top edge */
.summary__card::before {
  content: "";
  position: absolute;
  top: -1px; left: 18px; right: 18px;
  height: 6px;
  background: radial-gradient(circle at 6px -1px, transparent 5px, var(--caramel) 5.5px) 0 0 / 12px 6px repeat-x;
  opacity: 0.8;
}
.summary__title { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 16px; }
.summary__title .icon { color: var(--caramel-deep); }

.summary__empty { text-align: center; padding: 10px 6px 18px; font-size: 0.95rem; }
.summary__empty .icon--butterfly { width: 46px; height: 36px; margin: 0 auto 8px; stroke-width: 2.4; }
.summary__empty[hidden] { display: none; }

.summary__list { list-style: none; padding: 0; margin: 0 0 6px; }
.summary__list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.95rem;
  line-height: 1.4;
}
.summary__list small { display: block; color: var(--cocoa); opacity: 0.85; }
.summary__list strong { white-space: nowrap; }

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.summary__total strong {
  font-size: 1.9rem;
  color: var(--cocoa-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.summary__total strong.is-bumped { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--caramel-deep); } }
.summary__fee { margin: 2px 0 0; font-size: 0.84rem; text-align: right; font-style: italic; }
.summary__submit { margin-top: 18px; }
@media (max-width: 999.98px) { .summary__submit { display: none; } }

/* 16. FAQ ================================================================= */
.faq__list {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--cocoa);
  font: 600 1.1rem/1.35 var(--font-serif);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.faq__q:hover { background: var(--cream); }
.faq__q:focus-visible { outline-offset: -3px; }
.faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--caramel-soft);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--cocoa);
  transition: transform 0.4s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--caramel); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s 0.4s;
}
.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s;
}
.faq__panel > div { overflow: hidden; }
.faq__panel p { margin: 0; padding: 0 22px 22px; }

/* 17. FOOTER ============================================================== */
.footer {
  /* extra bottom space so the floating Order button never covers footer links */
  padding: 72px 0 calc(100px + env(safe-area-inset-bottom));
  background-color: var(--choc);
  background-image: var(--paper-grain);
  color: #E9DCCF;
  font-size: 0.97rem;
}

.footer__grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.footer__logo {
  font-family: var(--font-script);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 10px;
}
.footer__logo span { color: var(--caramel); }
.footer__heading {
  font-size: 1.15rem;
  color: var(--caramel);
  margin-bottom: 16px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer__list .icon { width: 20px; height: 20px; color: var(--caramel); margin-top: 2px; }
.footer__list a { color: #F6EDE4; text-decoration: none; border-bottom: 1px solid rgba(232, 195, 158, 0.4); }
.footer__list a:hover { border-bottom-color: var(--caramel); }
.footer__list small { color: #C9B6A6; }
.footer__list strong { color: var(--cream); }
.footer__closed { font-style: italic; color: #C9B6A6; padding-left: 32px; }

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 195, 158, 0.5);
  color: var(--caramel);
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.footer__social a:hover { background: var(--caramel); color: var(--choc); transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 195, 158, 0.2);
  font-size: 0.88rem;
}
.footer__bottom p { margin: 0; }

/* 18. MODAL, CONFETTI, TOAST ============================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 26, 20, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.modal__dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 36px 22px 26px;
  border-radius: 28px;
  background-color: var(--paper);
  background-image: var(--paper-grain);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: popIn 0.55s var(--ease-bounce);
}
@media (min-width: 560px) { .modal__dialog { padding: 40px 36px 30px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.92); } }

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
}
.modal__close:hover { background: var(--cream-deep); }
.modal__title { font-size: clamp(1.6rem, 5vw, 2rem); outline: none; }

.checkmark { width: 84px; height: 84px; margin: 0 auto 16px; }
.checkmark__circle {
  fill: var(--caramel-soft);
  stroke: var(--caramel-deep);
  stroke-width: 3;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw 0.7s 0.15s var(--ease) forwards;
}
.checkmark__tick {
  fill: none;
  stroke: var(--cocoa);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.45s 0.75s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.modal__warn {
  display: flex;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: #FFF4E4;
  border: 1px solid #E8C39E;
  font-size: 0.92rem;
  line-height: 1.5;
}
.modal__warn[hidden] { display: none; }
.modal__warn p { margin: 0; }
.modal__warn .icon { color: var(--caramel-deep); }

.modal__summary {
  text-align: left;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  font-size: 0.93rem;
  line-height: 1.5;
}
.modal__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.modal__summary dt { font-weight: 700; color: var(--cocoa-dark); }
.modal__summary dd { margin: 0; overflow-wrap: anywhere; }
.modal__summary ul { list-style: none; padding: 0; margin: 0 0 12px; }
.modal__summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.modal__summary .total { display: flex; justify-content: space-between; font-family: var(--font-serif); font-variant-numeric: lining-nums; font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }

.modal__actions { display: grid; gap: 10px; margin-bottom: 10px; }
.modal__hint { font-size: 0.86rem; margin-bottom: 18px; }
@media (min-width: 480px) { .modal__actions { grid-template-columns: 1fr 1fr; } }
.modal__actions .btn { padding-inline: 16px; }
.modal__done { margin-top: 18px; }

.confetti {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 250;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--cocoa-dark);
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 30px -14px rgba(43, 26, 20, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 19. SCROLL REVEAL ======================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 20. REDUCED MOTION ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .snow, .flyer { display: none; }
  .sparkle { opacity: 0.7; }
  .bulb { opacity: 1; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}
