/* ==========================================================================
   Chloe's Cakes & Bakes — Stylesheet
   Design tokens are drawn directly from Chloe's own signature flavours
   (pandan, matcha, ube) so every accent colour has a real reason to exist.
   ========================================================================== */

:root {
  /* ---- Colour tokens ---- */
  --cream:        #FFFEFB;   /* primary background — warm white */
  --white:        #FFFFFF;
  --pandan:       #C3E8C9;   /* soft pandan green */
  --pandan-deep:  #7FB88C;
  --matcha:       #B7C99A;   /* muted matcha olive-green */
  --matcha-deep:  #8A9F68;
  --ube:          #DCC6EC;   /* soft ube lavender */
  --ube-deep:     #B48FD1;
  --icing-pink:   #F7CBDA;   /* soft icing pink — primary warmth */
  --icing-pink-deep: #EFA9C2;
  --gold:         #EFC26B;   /* gold sprinkle accent, used sparingly */
  --cocoa:        #4A372C;   /* primary text — warm cocoa brown */
  --cocoa-soft:   #7D6858;   /* secondary text */
  --cocoa-faint:  #B7A896;   /* tertiary / placeholder text */
  --line:         #F1E7DC;   /* hairline borders */

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Georgia", serif;
  --font-hand:    "Caveat", cursive;
  --font-body:    "Quicksand", "Segoe UI", sans-serif;

  /* ---- Shape & elevation ---- */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 100px;
  --shadow-soft: 0 10px 30px -12px rgba(74, 55, 44, 0.16);
  --shadow-hover: 0 18px 40px -14px rgba(74, 55, 44, 0.24);
  /* Layered "premium" shadows: a tight contact shadow + a soft ambient one */
  --shadow-card: 0 2px 6px -2px rgba(74, 55, 44, 0.10), 0 16px 34px -16px rgba(74, 55, 44, 0.20);
  --shadow-card-hover: 0 4px 10px -2px rgba(74, 55, 44, 0.14), 0 28px 54px -18px rgba(74, 55, 44, 0.28);
  --shadow-photo: 0 6px 16px -6px rgba(74, 55, 44, 0.18), 0 30px 60px -20px rgba(74, 55, 44, 0.30);

  /* ---- Motion ---- */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Layout ---- */
  --max-width: 1200px;
  --section-pad: clamp(40px, 5vw, 72px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  /* Extremely subtle depth instead of flat white — barely perceptible,
     warms the corners without ever reading as "coloured background". */
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(247, 203, 218, 0.07), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 25%, rgba(195, 232, 201, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(220, 198, 236, 0.06), transparent 60%),
    var(--cream);
  color: var(--cocoa);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Fixed attachment only on larger screens — avoids repaint cost on mobile scroll */
@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cocoa);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Visible keyboard focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ube-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cocoa);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Eyebrow / labels / shared type
   ========================================================================== */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--icing-pink-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--cocoa-soft);
  font-size: 1.08rem;
}

.section-head.align-left {
  margin: 0 0 36px;
  text-align: left;
}

/* ==========================================================================
   Decorative sprinkle dots (the site's signature motif)
   Hand-scattered, irregular — never a uniform repeating grid.
   ========================================================================== */
.sprinkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sprinkle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}

.sprinkle.rod {
  border-radius: 40%;
}

.sprinkle.float {
  animation: sprinkle-float 12s var(--ease-soft) infinite;
}

@keyframes sprinkle-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3px, -12px) rotate(6deg); }
}

/* ==========================================================================
   Scalloped piped-icing divider (signature structural element)
   Mimics the shell border piped along the edge of a cake tier.
   ========================================================================== */
.scallop-divider {
  display: block;
  width: 100%;
  height: 28px;
  line-height: 0;
}
.scallop-divider svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.45s var(--ease-premium),
              box-shadow 0.45s var(--ease-premium),
              background 0.35s var(--ease-soft),
              filter 0.35s var(--ease-soft);
  white-space: nowrap;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--icing-pink) 0%, var(--ube) 100%);
  color: var(--cocoa);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  filter: brightness(1.04) saturate(1.08);
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.15s;
}

.btn-secondary {
  background: var(--white);
  color: var(--cocoa);
  border: 2px solid var(--pandan-deep);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover {
  transform: translateY(-4px);
  background: var(--pandan);
  box-shadow: var(--shadow-card-hover);
}
.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.15s;
}

.btn-ghost {
  background: var(--white);
  color: var(--cocoa);
  padding: 10px 22px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover { background: var(--icing-pink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Reassurance microcopy shown under CTA buttons — removes price anxiety
   without ever mentioning numbers */
.cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cocoa-soft);
}
.cta-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--matcha-deep);
}
.cta-banner .cta-note {
  color: rgba(255, 254, 251, 0.9);
  justify-content: center;
  margin-top: 18px;
}
.cta-banner .cta-note svg { color: var(--gold); }

/* ==========================================================================
   Header / Sticky Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 254, 251, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -10px rgba(74, 55, 44, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px -4px rgba(74, 55, 44, 0.3);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--cocoa-soft);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cocoa-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cocoa); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--icing-pink-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-order-btn {
  padding: 11px 22px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--cream);
  z-index: 99;
  padding: 30px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--cocoa);
}
.mobile-nav .cta-row { flex-direction: column; margin-top: 28px; }
.mobile-nav .btn { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(96px + 56px);
  padding-bottom: 72px;
  overflow: hidden;
  position: relative;
  /* Real cake photography (from the site's own image set) as a soft,
     luxurious backdrop — veiled under a cream wash so the badge, copy
     and CTAs stay crisp and fully readable on top of it. */
  background-image:
    linear-gradient(180deg, rgba(255, 254, 251, 0.93) 0%, rgba(255, 254, 251, 0.90) 55%, rgba(255, 254, 251, 0.97) 100%),
    url("images/hero-cake-2000.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center 30%;
  background-size: cover, cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-media {
  position: relative;
  order: -1;
  max-width: 460px;
  margin: 0 auto;
}

.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  aspect-ratio: 1 / 1;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-ken-burns 22s var(--ease-soft) infinite alternate;
  will-change: transform;
}

@keyframes hero-ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1%, -1%); }
}

/* Subtle depth overlay — grounds the cake and adds a premium, editorial feel */
.hero-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,55,44,0) 55%, rgba(74,55,44,0.22) 100%),
              linear-gradient(0deg, rgba(74,55,44,0.06), rgba(74,55,44,0) 30%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  z-index: 2;
}
.hero-badge .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--icing-pink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cocoa);
}
.hero-badge span {
  font-size: 0.78rem;
  color: var(--cocoa-soft);
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--icing-pink-deep);
}

.hero-copy p.lead {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--cocoa-soft);
  max-width: 480px;
  margin-bottom: 8px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--cocoa-soft);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg { width: 18px; height: 18px; color: var(--matcha-deep); }

/* ==========================================================================
   Featured Bakes
   ========================================================================== */
.bakes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 899px) {
  .bakes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .bakes-grid { grid-template-columns: 1fr; }
}

.bake-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}
.bake-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.bake-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.bake-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}
.bake-card:hover .thumb img { transform: scale(1.045); }

/* Each feature photo has a different subject position within its frame
   (tall multi-item flat-lays vs a single centred cake), so every thumb
   is framed individually rather than sharing one object-position value. */
.bake-card.featured .thumb img { object-position: 50% 40%; }
.thumb-cupcakes { object-position: 50% 12%; }
.thumb-cookies { object-position: 50% 40%; }
.thumb-minicakes { object-position: 50% 5%; }

.bake-card .thumb .scallop-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 20px;
}

.bake-card .info { padding: 20px 22px 24px; }
.bake-card .info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.bake-card .info p {
  font-size: 0.92rem;
  color: var(--cocoa-soft);
}

/* Small supporting image strip inside the Most Requested card — gives the
   text side visual weight without competing with the main thumb/video */
.featured-strip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.featured-strip img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.also-available {
  margin-top: 28px;
  text-align: center;
  padding: 24px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.also-available-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cocoa-faint);
  margin-bottom: 14px;
  font-weight: 700;
}

/* Editorial hero card — first item in Featured Bakes receives visual priority */
.bake-card.featured { grid-column: 1 / -1; }
.featured-tag {
  display: inline-block;
  background: var(--icing-pink);
  color: var(--cocoa);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
@media (min-width: 720px) {
  .bake-card.featured {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    max-height: 460px;
  }
  .bake-card.featured .thumb { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .bake-card.featured .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 42px;
  }
  .bake-card.featured .info h3 { font-size: 1.55rem; }
  .bake-card.featured .info p { font-size: 1rem; max-width: 380px; }
}

/* ==========================================================================
   Click-to-play video trigger (used on Featured Bakes hero card,
   the review section, and reused visually for the gallery video tile)
   ========================================================================== */
.video-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(180deg, rgba(74,55,44,0.04) 0%, rgba(74,55,44,0.38) 100%);
  transition: background 0.35s ease;
}
.video-trigger:hover,
.video-trigger:focus-visible { background: linear-gradient(180deg, rgba(74,55,44,0.14) 0%, rgba(74,55,44,0.52) 100%); }

.play-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--cocoa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card-hover);
  transition: transform 0.45s var(--ease-premium);
}
.play-ring svg { width: 24px; height: 24px; margin-left: 3px; }
.video-trigger:hover .play-ring,
.video-trigger:focus-visible .play-ring { transform: scale(1.08); }
.play-ring.sm { width: 42px; height: 42px; }
.play-ring.sm svg { width: 16px; height: 16px; margin-left: 2px; }
.play-ring.lg { width: 84px; height: 84px; }
.play-ring.lg svg { width: 32px; height: 32px; margin-left: 4px; }

.video-trigger-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(74,55,44,0.4);
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Video actively playing in place of the trigger */
.thumb video,
.review-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--cocoa);
  font-weight: 600;
}
.chip.pandan { background: var(--pandan); border-color: var(--pandan-deep); }
.chip.ube { background: var(--ube); border-color: var(--ube-deep); }
.chip.pink { background: var(--icing-pink); border-color: var(--icing-pink-deep); }

/* "Also Available" chip marquee — seamless loop moving right, mirroring the
   flavour marquee below it which moves left. Same pause/reduced-motion rules. */
.chip-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.chip-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 10px;
  animation: chip-marquee-scroll 30s linear infinite;
}
.chip-marquee-track .chip { flex: 0 0 auto; }
.chip-marquee:hover .chip-marquee-track,
.chip-marquee:focus-within .chip-marquee-track {
  animation-play-state: paused;
}
@keyframes chip-marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-marquee-track { animation: none; }
  .chip-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   Why Choose Chloe
   ========================================================================== */
.why-section { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), border-color 0.4s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.why-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-card .why-card-body { min-width: 0; }
.why-card h3 {
  font-size: 0.98rem;
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-weight: 700;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--cocoa-soft);
  line-height: 1.5;
}

.icon-pandan { background: var(--pandan); }
.icon-matcha { background: var(--matcha); }
.icon-ube { background: var(--ube); }
.icon-pink { background: var(--icing-pink); }
.icon-gold { background: var(--gold); }

.flavours-panel {
  background: linear-gradient(120deg, var(--cream) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  padding: 36px clamp(24px, 5vw, 48px);
  text-align: center;
  border: 1px solid var(--line);
}
.flavours-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.flavours-panel > p {
  color: var(--cocoa-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}
/* ==========================================================================
   Premium flavour marquee — slow, elegant, seamless horizontal loop.
   Pauses on hover/focus and freezes for reduced-motion users.
   ========================================================================== */
.flavour-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.flavour-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 14px;
  animation: marquee-scroll 34s linear infinite;
}
.flavour-marquee:hover .flavour-marquee-track,
.flavour-marquee:focus-within .flavour-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.flavour-pill {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--cocoa);
  padding: 10px 6px;
  transition: color 0.3s ease;
}
.flavour-marquee-track:hover .flavour-pill:hover { color: var(--icing-pink-deep); }
.marquee-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.marquee-dot:nth-of-type(4n+1) { background: var(--pandan-deep); }
.marquee-dot:nth-of-type(4n+2) { background: var(--ube-deep); }
.marquee-dot:nth-of-type(4n+3) { background: var(--icing-pink-deep); }

@media (prefers-reduced-motion: reduce) {
  .flavour-marquee-track { animation: none; }
  .flavour-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   About Chloe
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-portrait {
  position: relative;
}
.about-portrait .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin: 0 auto;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-tag {
  position: absolute;
  top: -18px;
  right: calc(50% - 210px + 16px);
  background: var(--icing-pink);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--cocoa);
  box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
}

.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { margin-bottom: 16px; color: var(--cocoa-soft); }
.about-copy p strong { color: var(--cocoa); }

.video-card {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
}
.video-card .video-frame {
  width: 132px;
  flex-shrink: 0;
  background: var(--white);
  padding: 7px 7px 24px 7px;
  border-radius: 10px;
  box-shadow: var(--shadow-photo);
  position: relative;
  transform: rotate(-3.5deg);
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}
.video-card:hover .video-frame {
  transform: rotate(-1deg) translateY(-5px);
}
.video-card .video-media {
  aspect-ratio: 9 / 16;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: var(--cocoa);
}
.video-card video,
.video-card .video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid-caption {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--cocoa-soft);
}
.video-card .video-text .video-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.video-card .video-text p {
  font-size: 0.88rem;
  color: var(--cocoa-soft);
  margin: 0;
}
.play-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cocoa);
}

/* ==========================================================================
   Gallery — editorial horizontal scroll
   ========================================================================== */
.gallery-section { background: var(--white); }

.gallery-scroll-wrap {
  position: relative;
}

.gallery-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  padding: 4px 24px 28px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  background: var(--cream);
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  transition: box-shadow 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}
.gallery-item.tall { width: 300px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.8s var(--ease-premium);
  display: block;
}
.gallery-item.tall img { aspect-ratio: 3/4.6; }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(74,55,44,0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item .overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.gallery-item:hover .overlay,
.gallery-item:focus-visible .overlay { opacity: 1; }
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.045); }

.gallery-item:focus-visible { outline-offset: 4px; }

/* Edge fades hint that the gallery scrolls — invisible on mobile where the
   native swipe affordance is already obvious */
.gallery-edge-fade {
  display: none;
  position: absolute;
  top: 4px;
  bottom: 28px;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.gallery-edge-fade.left {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0) 100%);
}
.gallery-edge-fade.right {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.gallery-nav {
  display: none;
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: var(--shadow-card-hover); }
.gallery-nav svg { width: 20px; height: 20px; color: var(--cocoa); }
.gallery-nav.prev { left: -4px; }
.gallery-nav.next { right: -4px; }

@media (min-width: 700px) {
  .gallery-edge-fade, .gallery-nav { display: flex; }
  .gallery-item { width: 300px; }
  .gallery-item.tall { width: 340px; }
}

/* Gallery video tile — visually distinct from photo tiles so the mix of
   media reads as curated rather than a uniform photo feed */
.gallery-item.video .overlay-video {
  opacity: 1;
  background: linear-gradient(180deg, rgba(74,55,44,0.1) 0%, rgba(74,55,44,0.6) 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.gallery-item.video .overlay-video span:not(.play-ring) {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.gallery-item.video:hover .play-ring,
.gallery-item.video:focus-visible .play-ring { transform: scale(1.08); }
.gallery-item.video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(74, 55, 44, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  object-fit: contain;
  width: auto;
  height: auto;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav svg { width: 22px; height: 22px; }

/* ==========================================================================
   How to Order
   ========================================================================== */
.order-steps {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.order-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--icing-pink) 0 10px,
    transparent 10px 18px
  );
}

.step {
  display: flex;
  gap: 22px;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--icing-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: var(--shadow-card);
}

.step-body {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  flex: 1;
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.step-body:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.step-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step-body p, .step-body ul {
  font-size: 0.92rem;
  color: var(--cocoa-soft);
}
.step-body ul {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step-body ul li {
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   Customer Review — trust-building section
   ========================================================================== */
.review-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 720px) {
  .review-grid { grid-template-columns: 1fr 0.85fr; gap: 48px; }
}
.review-copy .eyebrow { justify-content: flex-start; }
.review-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 12px; }
.review-copy p { color: var(--cocoa-soft); margin-bottom: 8px; max-width: 460px; }

/* Featured trust element: the frame gets its own soft spotlight so the
   testimonial video reads as a highlight, not another content block. */
.review-media {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 28px 0;
}
.review-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 90%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(239, 194, 107, 0.16) 0%, rgba(220, 198, 236, 0.10) 45%, transparent 72%);
  z-index: 0;
}
.review-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  background: var(--cocoa);
  border: 6px solid var(--white);
  outline: 1px solid var(--line);
}
.review-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--icing-pink) 0%, var(--ube) 55%, var(--pandan) 100%);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .container { max-width: 640px; padding: 0; position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: 16px;
  color: var(--cocoa);
}
.cta-banner p {
  font-size: 1.08rem;
  color: var(--cocoa);
  opacity: 0.85;
  margin-bottom: 8px;
}
.cta-banner .cta-row { justify-content: center; margin-top: 30px; }
.cta-banner .btn-secondary { background: var(--white); border-color: var(--white); }
.cta-banner .btn-primary { background: var(--cocoa); color: var(--white); }
.cta-banner .btn-primary:hover { background: #3a2a21; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cocoa);
  color: #F3E9DF;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-grid-compact { gap: 24px; }
@media (min-width: 640px) {
  .footer-grid-compact { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand-col .tagline { margin-top: 4px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.site-footer .tagline {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--icing-pink);
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C9B6A5;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p {
  color: #EADFD3;
  font-size: 0.94rem;
}
.footer-col a:hover { color: var(--icing-pink); }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--icing-pink); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #C9B6A5;
}
.footer-bottom a { color: #C9B6A5; }
.footer-bottom a:hover { color: var(--icing-pink); }

/* ==========================================================================
   Scroll reveal (progressive enhancement — content visible without JS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js .reveal { opacity: 1; transform: none; }

/* Gentle cascade for card grids — supports storytelling rather than
   drawing attention to the animation itself */
.bakes-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.bakes-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.bakes-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }

.why-grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.why-grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.why-grid > .reveal:nth-child(4) { transition-delay: 0.18s; }
.why-grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.why-grid > .reveal:nth-child(6) { transition-delay: 0.30s; }
.why-grid > .reveal:nth-child(7) { transition-delay: 0.36s; }

/* Cards rise slightly further and gently scale — photography-led sections
   (hero, about, gallery) fade only, keeping focus on the image itself */
.bake-card.reveal, .why-card.reveal {
  transform: translateY(30px) scale(0.98);
}
.bake-card.reveal.is-visible, .why-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { order: 1; }
  .hero-copy { order: 0; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-order-btn.desktop-only { display: none; }
  .menu-toggle { display: flex; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

@media (max-width: 540px) {
  .hero-badge { left: 0; right: 0; margin: 0 auto; bottom: -18px; }
  .about-tag { right: auto; left: 12px; }
  .video-card { flex-direction: column; text-align: center; }
}

/* Cocoa/matcha text tone on icon circles for contrast */
.why-card .icon { color: var(--cocoa); }
