/* ===================================================================
   Marie's Caribbean Bakery — Tropical Warmth
   Palette: cream + mango + guava + hibiscus, cocoa ink, leaf accent
   Type: Fraunces (display) · Caveat (script) · Outfit (body)
=================================================================== */

:root {
  --cream:        #FFF7EF;
  --cream-deep:   #FBE7D2;
  --surface:      #FFFFFF;
  --ink:          #2E1A11;
  --ink-soft:     #7A5642;
  --mango:        #F39B19;
  --mango-deep:   #E07B0C;
  --guava:        #EC5A6E;
  --hibiscus:     #C2294A;
  --leaf:         #4E8D5B;
  --gold:         #E2A53F;

  --shadow-sm: 0 4px 14px rgba(99, 53, 20, .10);
  --shadow-md: 0 16px 40px rgba(99, 53, 20, .16);
  --shadow-lg: 0 30px 70px rgba(99, 53, 20, .22);

  --radius:    22px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-script:  "Caveat", "Segoe Script", cursive;
  --font-body:    "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* clip (not hidden) contains the off-canvas mobile nav + cart drawer without
     forcing overflow-y to auto, which would break the sticky header */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* warm grain overlay for atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--guava);
  line-height: 1;
}

.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--mango-deep);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .92rem 1.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  border: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }

.btn--mango  { --bg: linear-gradient(135deg, var(--mango), var(--mango-deep)); --fg: #fff; }
.btn--guava  { --bg: linear-gradient(135deg, var(--guava), var(--hibiscus)); --fg: #fff; }
.btn--ghost  { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px rgba(46,26,17,.2); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 247, 239, .82);
  border-bottom: 1px solid rgba(46, 26, 17, .07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
}
.brand { display: flex; align-items: baseline; gap: .5rem; line-height: 1; }
.brand__mark { font-family: var(--font-script); font-size: 2.1rem; color: var(--guava); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: .2rem 0;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--mango);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .9rem; }

.cart-toggle {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(46,26,17,.1);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.cart-toggle:hover { transform: translateY(-2px) rotate(-6deg); }
.cart-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  background: var(--hibiscus);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }

.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.blob--1 { width: 460px; height: 460px; background: var(--mango); top: -120px; right: -80px; }
.blob--2 { width: 380px; height: 380px; background: var(--guava); bottom: -140px; left: -100px; animation-delay: -5s; }
.blob--3 { width: 280px; height: 280px; background: var(--leaf); top: 40%; left: 45%; opacity: .3; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.08); }
  66%      { transform: translate(-25px, 25px) scale(.95); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
}
.hero__title .script {
  display: block;
  font-size: clamp(3.4rem, 9vw, 7rem);
  margin-bottom: -.15em;
  transform: rotate(-4deg);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 1.6rem 0 2.2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__badge {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__badge strong { color: var(--ink); font-family: var(--font-display); }

/* hero art: stacked cake */
.hero__art { position: relative; display: grid; place-items: center; }
.cake-art {
  width: min(100%, 420px);
  filter: drop-shadow(0 30px 40px rgba(120, 50, 20, .25));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.sticker {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: .55rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.sticker .dot { width: 10px; height: 10px; border-radius: 50%; }
.sticker--1 { top: 6%; left: -4%; transform: rotate(-7deg); }
.sticker--2 { bottom: 12%; right: -6%; transform: rotate(6deg); }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave path { fill: var(--surface); }
.wave--cream path { fill: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 60ch; margin-bottom: 3rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; }
.section__sub { color: var(--ink-soft); margin-top: .9rem; font-size: 1.1rem; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(46,26,17,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.section--surface .feature { background: var(--cream); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--mango), var(--guava));
}
.feature__icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; }
.feature h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* flavor strip */
.flavors { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.flavor-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface);
  padding: .7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46,26,17,.06);
  transition: transform .3s var(--ease);
}
.flavor-chip:hover { transform: translateY(-4px) scale(1.03); }
.flavor-chip .swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 -3px 6px rgba(0,0,0,.15); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--mango);
  line-height: 1;
  -webkit-text-stroke: 1px var(--mango-deep);
}
.step h3 { font-size: 1.3rem; margin: .6rem 0 .4rem; }
.step p { color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--hibiscus), var(--guava) 60%, var(--mango));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; }
.cta-band p { opacity: .92; margin: .5rem auto 1.3rem; max-width: 52ch; font-size: 1.02rem; }
.cta-band .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { --bg: #fff; --fg: var(--hibiscus); }

/* ===================================================================
   ORDER PAGE
=================================================================== */
.order-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.size-tabs { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.size-tab {
  flex: 1 1 200px;
  text-align: left;
  background: var(--surface);
  border: 2px solid rgba(46,26,17,.08);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: var(--font-body);
}
.size-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.size-tab.is-active {
  border-color: var(--mango);
  background: linear-gradient(160deg, #fff, var(--cream-deep));
  box-shadow: var(--shadow-md);
}
.size-tab__name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; display: flex; align-items: baseline; gap: .5rem; }
.size-tab__dim { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.size-tab__price { margin-top: .4rem; font-weight: 700; color: var(--hibiscus); font-size: 1.1rem; }
.size-tab__note { font-size: .82rem; color: var(--mango-deep); font-weight: 600; margin-top: .25rem; }

.builder {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46,26,17,.06);
}
.builder__label { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 1rem; }
.flavor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.flavor-opt { position: relative; }
.flavor-opt input { position: absolute; opacity: 0; pointer-events: none; }
.flavor-opt label {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem;
  border: 2px solid rgba(46,26,17,.1);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all .25s var(--ease);
  background: var(--cream);
}
.flavor-opt label:hover { border-color: var(--guava); }
.flavor-opt input:checked + label {
  border-color: var(--hibiscus);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flavor-opt input:checked + label .swatch { box-shadow: 0 0 0 3px rgba(194,41,74,.25), inset 0 -3px 6px rgba(0,0,0,.15); }
.flavor-opt .swatch { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 -3px 6px rgba(0,0,0,.15); }
.flavor-opt input:focus-visible + label { outline: 3px solid var(--mango); outline-offset: 2px; }

.qty-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px dashed rgba(46,26,17,.18);
}
.qty-control { display: flex; align-items: center; gap: .9rem; }
.qty-control label { font-weight: 600; }
.stepper { display: flex; align-items: center; background: var(--cream); border-radius: var(--radius-pill); padding: .3rem; gap: .3rem; }
.stepper button {
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: var(--surface); cursor: pointer; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s;
  display: grid; place-items: center;
}
.stepper button:hover { transform: scale(1.08); color: var(--hibiscus); }
.stepper input {
  width: 60px; text-align: center; border: none; background: transparent;
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--ink);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-min-note { font-size: .85rem; color: var(--mango-deep); font-weight: 600; width: 100%; }
.add-line { display: flex; align-items: center; gap: 1.2rem; }
.add-line__price { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; }

/* ===================================================================
   CART DRAWER
=================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(46, 26, 17, .45);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 201;
  /* 100dvh (not 100%/100vh) so the footer + Checkout button stay above the
     mobile address bar instead of falling behind it */
  width: min(420px, 92vw); height: 100vh; height: 100dvh;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.6rem 1.2rem;
  border-bottom: 1px solid rgba(46,26,17,.08);
}
.drawer__head h2 { font-size: 1.7rem; font-weight: 900; }
.drawer__close { background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); width: 44px; height: 44px; display: grid; place-items: center; margin-right: -.5rem; }
.drawer__close:hover { color: var(--hibiscus); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; }
.drawer__foot { padding: 1.4rem 1.6rem; border-top: 1px solid rgba(46,26,17,.08); background: var(--surface); }

.cart-empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }
.cart-empty .script { font-size: 2rem; display: block; margin-bottom: .4rem; }

.cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid rgba(46,26,17,.08); align-items: center; }
.cart-item__thumb { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.cart-item__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cart-item__meta { font-size: .85rem; color: var(--ink-soft); }
.cart-item__price { font-weight: 700; }
.cart-item__remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .82rem; text-decoration: underline; margin-top: .2rem; }
.cart-item__remove:hover { color: var(--hibiscus); }
.cart-line-qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.cart-line-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(46,26,17,.15); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 1rem; display: grid; place-items: center; }
.cart-line-qty span { font-weight: 700; min-width: 22px; text-align: center; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total span { color: var(--ink-soft); }
.cart-total strong { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; }

/* ===================================================================
   CHECKOUT
=================================================================== */
.checkout-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .85rem 1.1rem;
  border: 2px solid rgba(46,26,17,.12);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--mango); box-shadow: 0 0 0 4px rgba(243,155,25,.18);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.summary-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-md); position: sticky; top: 90px; border: 1px solid rgba(46,26,17,.06); }
.summary-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid rgba(46,26,17,.07); font-size: .95rem; }
.summary-line span:first-child { color: var(--ink-soft); }
.summary-grand { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; }
.summary-grand strong { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; }

.form-status { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 600; margin-bottom: 1.2rem; display: none; }
.form-status.is-error { display: block; background: #FCE8EC; color: var(--hibiscus); }
.form-status.is-success { display: block; background: #E9F5EC; color: var(--leaf); }

.empty-checkout { text-align: center; padding: 4rem 1rem; }
.empty-checkout .script { font-size: 2.6rem; color: var(--guava); display: block; }

/* ===================================================================
   ABOUT
=================================================================== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.about-portrait {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--mango), var(--guava));
  aspect-ratio: 4/5;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.about-portrait .cake-art { width: 70%; animation: bob 7s ease-in-out infinite; }
.about-portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='2' fill='white' opacity='.25'/%3E%3C/svg%3E");
}
.about-text p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.1rem; }
.about-text p strong { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(46,26,17,.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section--surface .contact-card { background: var(--cream); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card__icon { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg,var(--leaf),#3a6e44); display: grid; place-items: center; margin-bottom: 1rem; }
.contact-card__icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.contact-card a, .contact-card p { color: var(--ink-soft); font-size: 1rem; }
.contact-card a:hover { color: var(--hibiscus); }

.hours-list { display: grid; gap: .6rem; }
.hours-list li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid rgba(46,26,17,.07); }
.hours-list .day { font-weight: 600; }
.hours-list .time { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(3rem,6vw,4.5rem) 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .brand__name { color: var(--cream); }
.footer-brand p { color: rgba(255,247,239,.6); margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mango); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,247,239,.7); margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,247,239,.14); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(255,247,239,.5); font-size: .88rem; }
.footer-bottom .script { color: var(--guava); font-size: 1.2rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 120%);
  background: var(--ink); color: var(--cream);
  padding: .9rem 1.5rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); z-index: 300;
  font-weight: 600; display: flex; align-items: center; gap: .6rem;
  transition: transform .45s var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); }

.drawer-note {
  background: linear-gradient(135deg, var(--mango), var(--mango-deep));
  color: #fff; font-size: .86rem; font-weight: 600;
  padding: .7rem .9rem; border-radius: 12px; margin-bottom: .9rem;
}

/* ---------- Order page: item picker grid ---------- */
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.item-card {
  text-align: left; background: var(--surface);
  border: 2px solid rgba(46,26,17,.08); border-radius: var(--radius);
  padding: 1.4rem; cursor: pointer; font-family: var(--font-body);
  transition: all .3s var(--ease); display: flex; flex-direction: column; gap: .5rem;
}
.item-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.item-card.is-active { border-color: var(--mango); background: linear-gradient(160deg, #fff, var(--cream-deep)); box-shadow: var(--shadow-md); }
.item-card__top { display: flex; align-items: center; justify-content: space-between; }
.item-card__cake { width: 46px; height: 46px; }
.item-card__price { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--hibiscus); }
.item-card__price small { font-size: .7rem; color: var(--ink-soft); font-weight: 600; display: block; }
.item-card__name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; display: flex; align-items: baseline; gap: .45rem; }
.item-card__dim { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.item-card__blurb { font-size: .9rem; color: var(--ink-soft); }
.item-card__note { font-size: .8rem; color: var(--mango-deep); font-weight: 600; margin-top: auto; }

.custom-fields .field { margin-bottom: 1.1rem; }
.builder__hint { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* order page → pointer to checkout personalization */
.builder-note {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.4rem; padding: 1.1rem 1.4rem;
  background: linear-gradient(160deg, #fff, var(--cream-deep));
  border: 2px dashed rgba(236,90,110,.4);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.builder-note:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.builder-note__icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.builder-note__text { font-size: .95rem; color: var(--ink-soft); }
.builder-note__text strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.builder-note__arrow { margin-left: auto; font-size: 1.4rem; color: var(--guava); font-weight: 700; flex-shrink: 0; }

/* special occasion block */
.occasion-box { background: linear-gradient(160deg, #fff, var(--cream-deep)); border: 2px dashed rgba(236,90,110,.4); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; }
.occasion-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; margin-bottom: .3rem; }
.occasion-box > p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: .95rem; }
.toggle-hint { font-size: .85rem; color: var(--ink-soft); }

.catering-fields { background: linear-gradient(135deg, rgba(243,155,25,.1), rgba(236,90,110,.1)); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; border: 1px solid rgba(243,155,25,.3); }
.catering-fields h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.catering-fields > p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: .95rem; }
.badge-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--hibiscus); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Admin portal ---------- */
.admin-body { background: radial-gradient(1200px 600px at 100% -10%, #FFEFD9 0%, transparent 55%), radial-gradient(900px 500px at -10% 110%, #FBE0E4 0%, transparent 50%), #F4ECE2; min-height: 100vh; min-height: 100dvh; }

/* Passcode gate */
.admin-gate { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.25rem; overflow: hidden; }
.admin-gate__bg { position: absolute; inset: 0; z-index: 0; }
.gate-card { position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius-lg); padding: 2.8rem 2.6rem 2.4rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; border: 1px solid rgba(255,255,255,.6); }
.gate-lock { width: 64px; height: 64px; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--mango), var(--guava)); box-shadow: 0 10px 24px rgba(236,90,110,.35); }
.gate-lock svg { width: 30px; height: 30px; stroke: #fff; }
.gate-card .brand__mark { font-size: 2.4rem; display: block; line-height: 1; }
.gate-card h1 { font-size: 1.55rem; margin: .1rem 0 .4rem; }
.gate-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6rem; }
.gate-card .field { text-align: left; margin-bottom: .4rem; }
.gate-err { color: var(--hibiscus); font-size: .9rem; min-height: 1.3em; margin: .3rem 0 .7rem; font-weight: 600; }
.gate-back { position: absolute; z-index: 1; top: 1.5rem; left: 1.5rem; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.gate-back:hover { color: var(--ink); }

/* Dashboard shell */
.admin-shell { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem 6rem; }
.admin-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.8rem; background: rgba(255,251,245,.82); backdrop-filter: blur(12px); border: 1px solid rgba(46,26,17,.08); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.admin-bar__brand { display: flex; align-items: baseline; gap: .6rem; }
.admin-bar__brand .brand__mark { font-size: 1.9rem; }
.admin-bar__tag { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Layout: sidebar + main */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.8rem; align-items: start; }
.admin-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: .25rem; background: var(--surface); padding: .7rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(46,26,17,.06); }
.admin-nav__link { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 13px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.admin-nav__link svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }
.admin-nav__link:hover { background: var(--cream); color: var(--ink); }
.admin-nav__link.is-active { background: linear-gradient(135deg, rgba(243,155,25,.16), rgba(236,90,110,.16)); color: var(--hibiscus); }

.admin-main { min-width: 0; }

.admin-note { font-size: .88rem; color: var(--ink-soft); background: #FFF8EE; border: 1px solid rgba(243,155,25,.25); border-left: 4px solid var(--mango); padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.6rem; line-height: 1.55; }
.admin-note strong { color: var(--ink); }

/* Cards */
.admin-card { background: var(--surface); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; border: 1px solid rgba(46,26,17,.06); scroll-margin-top: 100px; }
.admin-card__head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.5rem; }
.admin-card__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mango), var(--guava)); box-shadow: 0 6px 16px rgba(236,90,110,.28); }
.admin-card__icon svg { width: 22px; height: 22px; stroke: #fff; }
.admin-card__head h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.admin-card__head p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }

.admin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.admin-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.admin-pill-row { display: flex; align-items: center; gap: .7rem; background: var(--cream); padding: .55rem .7rem; border-radius: 14px; border: 1px solid rgba(46,26,17,.06); transition: border-color .2s; }
.admin-pill-row:hover { border-color: rgba(236,90,110,.4); }
.admin-pill-row input[type=text] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .6rem .8rem;
  border: 1.5px solid rgba(46,26,17,.14);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.admin-pill-row input[type=text]:focus { outline: none; border-color: var(--mango); box-shadow: 0 0 0 3px rgba(243,155,25,.18); }
.admin-pill-row input[type=color] { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 10px; background: none; cursor: pointer; padding: 0; }
.admin-pill-row .remove-x { flex-shrink: 0; background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.admin-pill-row .remove-x:hover { color: var(--hibiscus); }

.admin-size { border: 1px solid rgba(46,26,17,.1); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; background: linear-gradient(160deg, #fff, var(--cream)); }
.admin-size:last-child { margin-bottom: 0; }
.admin-size h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .9rem; color: var(--hibiscus); }

/* Save bar */
.admin-save-bar { position: sticky; bottom: 1rem; z-index: 20; background: rgba(255,251,245,.92); backdrop-filter: blur(10px); padding: .9rem 1.1rem; margin-top: 1.6rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; border: 1px solid rgba(46,26,17,.1); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }
.admin-save-bar__spacer { flex: 1; }
.admin-import-btn { cursor: pointer; }
.admin-saved { color: var(--leaf); font-weight: 700; opacity: 0; transform: translateY(2px); transition: opacity .3s, transform .3s; }
.admin-saved.show { opacity: 1; transform: translateY(0); }

/* Admin entry link in the public footer */
.footer-admin { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,247,239,.55); font-weight: 600; transition: color .2s; }
.footer-admin svg { width: 14px; height: 14px; stroke: currentColor; }
.footer-admin:hover { color: var(--mango); }

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; gap: 1rem; }
  .admin-nav { position: sticky; top: 76px; z-index: 25; flex-direction: row; overflow-x: auto; gap: .35rem; padding: .5rem; -webkit-overflow-scrolling: touch; }
  .admin-nav__link { white-space: nowrap; padding: .55rem .8rem; }
  .admin-nav__link span { font-size: .9rem; }
  .admin-card { padding: 1.4rem; }
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; margin-inline: auto; }
  .features, .steps { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .about-hero { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; margin-inline: auto; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    /* explicit height: .site-header's backdrop-filter makes it the containing
       block for this fixed panel, so top/bottom:0 alone only fills the header.
       100dvh forces full-screen height regardless of the containing block. */
    height: 100vh;
    height: 100dvh;
    width: min(300px, 80vw);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 150;
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.3rem; display: block; width: 100%; padding: .5rem 0; }
  /* the sliding underline is a desktop affordance; skip it in the vertical menu */
  .nav__links a::after { display: none; }
  .nav__burger { display: block; z-index: 160; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .features, .flavor-grid { gap: .7rem; }
  .item-grid { grid-template-columns: 1fr; }
  .add-line { flex-direction: column; align-items: stretch; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
