/* ===== Design tokens ===== */
:root {
  --pink: #f7a8b8;
  --pink-deep: #e6789a;
  --rose: #c65f7e;
  --cream: #fff7f2;
  --cream-2: #fdeef0;
  --gold: #c9a15a;
  --ink: #3a2b2f;
  --ink-soft: #6b585d;
  --white: #ffffff;
  --wa: #25d366;
  --shadow: 0 18px 40px -18px rgba(120, 60, 80, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(120, 60, 80, 0.3);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1160px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, 0.7);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -10px rgba(37, 211, 102, 0.8); }
/* Slow periodic gold shine on the big order CTAs (every ~5s, not continuous) */
.btn--lg.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 38%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 220, 150, 0.6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: gold-shine 5s ease-in-out infinite;
}
@keyframes gold-shine {
  0% { left: -60%; }
  14% { left: 150%; }
  100% { left: 150%; }
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose);
  border-color: var(--pink);
}
.btn--ghost:hover { background: #fff; transform: translateY(-3px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ===== Navbar ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(255, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -16px rgba(120, 60, 80, 0.5);
  padding: 10px 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--rose); letter-spacing: 0.01em; }
.nav__brand-tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--rose); }
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #e6c88a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--rose);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--pink-deep); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--rose); border-radius: 2px; transition: 0.3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 22px 80px;
}
.hero__content { position: relative; z-index: 1; }
.hero__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background:
    radial-gradient(circle at 30% 20%, rgba(247, 168, 184, 0.35), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(201, 161, 90, 0.18), transparent 50%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  background-size: 160% 160%, 170% 170%, 100% 100%;
  background-repeat: no-repeat;
}
.hero__badge {
  display: inline-block;
  background: #fff;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); margin-bottom: 20px; }
.hero__title em { font-family: var(--font-script); font-style: normal; color: var(--rose); font-size: 1.25em; display: inline-block; }
.hero__content { text-align: left; }
.hero__sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 560px; margin: 0 0 30px; }
.hero__sub strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; justify-content: flex-start; }
.hero__note { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }

/* Hero illustration */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
@property --floatY {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
.hero__cake {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 22px 30px rgba(198, 95, 126, 0.22));
  /* --floatY = gentle idle float, --parY = scroll parallax (set from JS) */
  transform: translateY(var(--floatY, 0px)) translateY(var(--parY, 0px));
  animation: floaty 9s ease-in-out infinite;
}
.hero__logo {
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  filter: none;
  box-shadow: 0 26px 50px -18px rgba(198, 95, 126, 0.45);
}
@keyframes floaty {
  0%, 100% { --floatY: -8px; }
  50% { --floatY: 8px; }
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  z-index: 0;
}
.hero__blob--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 35% 30%, rgba(247, 168, 184, 0.55), rgba(247, 168, 184, 0) 70%);
  top: 4%; left: 6%;
}
.hero__blob--2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle at 60% 40%, rgba(201, 161, 90, 0.35), rgba(201, 161, 90, 0) 70%);
  bottom: 6%; right: 6%;
}

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 22px; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.section__lead { margin-top: 14px; color: var(--ink-soft); }

/* ===== Compact pills (Why / Offerings) ===== */
.why { background: var(--cream-2); max-width: none; padding-block: 56px; }
.why .section__head { margin-bottom: 28px; }
#offerings { padding-block: 56px; }
#offerings .section__head { margin-bottom: 28px; }
.pills {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.offer-note { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: 0.98rem; }
.offer-note a { color: var(--rose); font-weight: 600; border-bottom: 2px solid rgba(198, 95, 126, 0.3); }
.offer-note a:hover { border-color: var(--rose); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(247, 168, 184, 0.4);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pill__ic { font-size: 1.2rem; line-height: 1; }

/* ===== Cake price menu ===== */
.cakemenu { background: var(--cream-2); max-width: none; }
.cakemenu > * { max-width: var(--maxw); margin-inline: auto; }
.cakegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cakecard {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 168, 184, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cakecard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cakecard:hover .cakecard__icon { transform: scale(1.05); }
.cakecard__icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%,
      color-mix(in srgb, var(--accent) 26%, #fff),
      color-mix(in srgb, var(--accent) 13%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, #fff);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 10px 20px -12px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cakecard__icon .ic { width: 42px; height: 42px; display: block; }
.cakecard h3 { font-size: 1.12rem; color: var(--rose); margin-bottom: 12px; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.cakecard__prices { display: flex; flex-direction: column; gap: 6px; }
.cakecard__prices span {
  background: var(--cream-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ===== Cake menu category flip tiles ===== */
/* Cake Menu title styled like a full heading (no separate h2 now) */
.cakemenu .section__head { margin-bottom: 16px; }
.cakemenu .eyebrow {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0;
}
.tilegrid__hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.tilegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
  transition: max-width 0.4s ease;
}
/* When a tile is open it spans full width at the top; the other tiles stay
   visible below the flavours list (better for scanning on mobile). */
.fliptile.flipped {
  grid-column: 1 / -1;
  order: -1;
}
.fliptile {
  perspective: 1500px;
  height: 190px;
  cursor: pointer;
  border-radius: var(--radius);
  outline: none;
  transition: height 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fliptile:focus-visible { box-shadow: 0 0 0 3px rgba(198, 95, 126, 0.45); }
.fliptile__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fliptile.flipped .fliptile__inner { transform: rotateY(180deg); }
.fliptile__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.fliptile__front {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(150deg, var(--tint2, var(--pink-deep)) 0%, var(--tint, var(--rose)) 100%);
}
.fliptile__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}
.fliptile__ic { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); }
.fliptile__front h3 { font-family: var(--font-head); font-size: 1.45rem; color: #fff; }
.fliptile__front .fliptile__hint { color: rgba(255, 255, 255, 0.85); }
.fliptile__hint {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.fliptile__back {
  transform: rotateY(180deg);
  background: #fff;
  border: 1px solid rgba(247, 168, 184, 0.4);
  padding: 20px 22px 16px;
}
.fliptile__backhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.fliptile__backhead h4 { font-family: var(--font-head); font-size: 1.25rem; color: var(--rose); }
.fliptile__backhead span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.fliptile__back .fliptile__hint { color: var(--ink-soft); text-align: center; margin-top: 8px; flex-shrink: 0; }
.flavlist {
  list-style: none;
  margin: 0;
}
.flavlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(198, 95, 126, 0.18);
  font-size: 0.9rem;
}
.flavlist li:last-child { border-bottom: none; }
.flavlist li span:first-child { color: var(--ink); }
.flavlist li span:last-child { color: var(--rose); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flav-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  gap: 6px;
}
.flav-soon a { color: var(--rose); font-weight: 600; }

/* Custom-idea CTA tile — spans full width under the categories */
.tile-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, var(--cream-2) 100%);
  border: 1.5px dashed rgba(198, 95, 126, 0.5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* While a category is open, the CTA becomes a normal cell so the remaining
   four tiles form a clean 2x2 with no empty gap. */
.tilegrid.is-open .tile-cta { grid-column: auto; height: 190px; }
.tile-cta__title { font-family: var(--font-head); font-size: 1.35rem; color: var(--rose); }
.tile-cta__text { color: var(--ink-soft); font-size: 1rem; }
.tile-cta__text strong { color: var(--ink); }
.tile-cta__arrow { color: var(--gold); font-weight: 700; }
.cta-strike {
  position: relative;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 3px;
  font-weight: 500;
}
.cta-fix {
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--rose);
  font-size: 1.5em;
  line-height: 1;
  display: inline-block;
  transform: rotate(-5deg);
  margin: 0 0.12em;
}
.tile-cta__chat {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #128c4b;
}
.tile-cta__waicon { width: 16px; height: 16px; fill: #25d366; }
.tile-cta__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 1.9s ease-out infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.tile-cta__chat .tile-cta__arrow { color: #128c4b; transition: transform 0.2s ease; }
.tile-cta:hover .tile-cta__chat .tile-cta__arrow { transform: translateX(4px); }

@media (max-width: 620px) {
  .tilegrid { gap: 12px; }
  .fliptile { height: 140px; }
  .fliptile__ic { width: 38px; height: 38px; }
  .fliptile__front h3 { font-size: 1.2rem; }
  .fliptile__hint { font-size: 0.72rem; }
  .tilegrid.is-open .tile-cta { height: 140px; padding: 10px 12px; gap: 6px; }
  .tilegrid.is-open .tile-cta .tile-cta__title { font-size: 0.98rem; }
  .tilegrid.is-open .tile-cta .tile-cta__text { display: none; }
  .tilegrid.is-open .tile-cta .tile-cta__chat { margin-top: 4px; font-size: 0.8rem; }
}

.goodtoknow {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 168, 184, 0.3);
}
.goodtoknow h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.goodtoknow ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
}
.goodtoknow li { color: var(--ink-soft); font-size: 0.98rem; }
.goodtoknow strong { color: var(--ink); }

.cakemenu__cta { text-align: center; margin-top: 34px; }

/* ===== Areas ===== */
.areas { text-align: center; }
.areas__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.areas__pills span {
  background: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 168, 184, 0.3);
}

/* ===== Order ===== */
.order { max-width: none; padding-top: 30px; }
.order__card {
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(150deg, var(--rose), var(--pink-deep));
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.order__card h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; max-width: 780px; margin-inline: auto; }
.order__card p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 30px; }
.order__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.order .btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }
.order .btn--ghost:hover { background: rgba(255,255,255,0.28); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #fff; padding: 46px 22px 30px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__brand { margin-bottom: 16px; }
.footer__name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; display: block; }
.footer__by { font-family: var(--font-script); font-size: 1.4rem; color: var(--pink); }
.footer__links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer__links a { opacity: 0.85; transition: opacity 0.2s ease; font-weight: 500; }
.footer__links a:hover { opacity: 1; color: var(--pink); }
.footer__copy { font-size: 0.82rem; opacity: 0.6; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.7);
  animation: fab-pulse 8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.fab:hover { animation: none; transform: scale(1.08); }
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); }
  4% { transform: scale(1.05); }
  9% { transform: scale(1); }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.7, 0.25, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Staggered child reveals ===== */
/* Let the container act only as a trigger (fade, no slide) so children can cascade */
.pills.reveal,
.cakegrid.reveal,
.areas__pills.reveal,
.goodtoknow.reveal { transform: none; }

/* Hide children only until their container is revealed; the entrance
   animation (backwards fill) covers the staggered delay, then reverts
   to this visible resting state so hover transforms keep working. */
.pills:not(.visible) .pill,
.cakegrid:not(.visible) .cakecard,
.areas__pills:not(.visible) span,
.goodtoknow:not(.visible) li { opacity: 0; }

.pills.visible .pill,
.cakegrid.visible .cakecard,
.areas__pills.visible span,
.goodtoknow.visible li { animation: rise-in 0.8s cubic-bezier(0.22, 0.7, 0.25, 1) backwards; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cascade timing (~100ms between items; harmless until an animation runs) */
.pill:nth-child(1), .cakecard:nth-child(1), .areas__pills span:nth-child(1), .goodtoknow li:nth-child(1) { animation-delay: 0s; }
.pill:nth-child(2), .cakecard:nth-child(2), .areas__pills span:nth-child(2), .goodtoknow li:nth-child(2) { animation-delay: 0.10s; }
.pill:nth-child(3), .cakecard:nth-child(3), .areas__pills span:nth-child(3), .goodtoknow li:nth-child(3) { animation-delay: 0.20s; }
.pill:nth-child(4), .cakecard:nth-child(4), .areas__pills span:nth-child(4), .goodtoknow li:nth-child(4) { animation-delay: 0.30s; }
.pill:nth-child(5), .cakecard:nth-child(5) { animation-delay: 0.40s; }
.pill:nth-child(6), .cakecard:nth-child(6) { animation-delay: 0.50s; }
.cakecard:nth-child(7) { animation-delay: 0.60s; }
.cakecard:nth-child(8) { animation-delay: 0.70s; }
.cakecard:nth-child(9) { animation-delay: 0.80s; }
.cakecard:nth-child(10) { animation-delay: 0.90s; }
.cakecard:nth-child(11) { animation-delay: 1.00s; }
.cakecard:nth-child(12) { animation-delay: 1.10s; }
.cakecard:nth-child(13) { animation-delay: 1.20s; }

/* ===== Cinematic hero entrance (plays as the loader clears) ===== */
.hero__bg { opacity: 0; animation: fade-in 0.8s ease forwards 0.75s, bg-drift 24s ease-in-out 1.6s infinite alternate; }
.hero__art { opacity: 0; animation: cake-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards 0.8s; }
.hero__content > * { opacity: 0; }
.hero__content > *:nth-child(1) { animation: hero-rise 0.55s cubic-bezier(0.22, 0.7, 0.25, 1) forwards 0.85s; }
.hero__title { animation: hero-curtain 0.7s cubic-bezier(0.22, 0.7, 0.25, 1) forwards 0.92s; }
.hero__content > *:nth-child(3) { animation: hero-rise 0.55s cubic-bezier(0.22, 0.7, 0.25, 1) forwards 1.02s; }
.hero__content > *:nth-child(4) { animation: hero-rise 0.55s cubic-bezier(0.22, 0.7, 0.25, 1) forwards 1.12s; }
.hero__content > *:nth-child(5) { animation: hero-rise 0.55s cubic-bezier(0.22, 0.7, 0.25, 1) forwards 1.2s; }

@keyframes fade-in { to { opacity: 1; } }
@keyframes cake-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-curtain {
  from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(18px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes bg-drift {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to { background-position: 14% 8%, 86% 92%, 0 0; }
}

/* ===== Hero decorative motion ===== */
.hero__blob--1 { animation: drift-1 16s ease-in-out infinite; }
.hero__blob--2 { animation: drift-2 20s ease-in-out infinite; }
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.06); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 12px) scale(1.05); }
}
.hero__cake .flame {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: flicker 1.9s ease-in-out infinite;
}
.hero__cake .flame--alt { animation-delay: -0.95s; }
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.72; transform: scaleY(0.88) translateY(0.8px); }
}

/* ===== Section heading accent ===== */
.section__head h2 { position: relative; }
.section__head h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width 0.7s ease 0.15s;
}
.section__head.visible h2::after { width: 56px; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold), #e8c98a);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ===== Loading screen ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  animation: loader-hide 0.45s ease forwards 0.75s;
}
.loader__name {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.loader__name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--gold);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: gold-fill 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards 0.1s;
}
@keyframes gold-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes loader-hide { to { opacity: 0; visibility: hidden; } }

/* ===== Premium cursor (desktop only) ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: none;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(201, 161, 90, 0.55);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(201, 161, 90, 0.12);
  border-color: var(--gold);
}
.cursor-ring.is-view {
  width: 76px;
  height: 76px;
  background: rgba(58, 43, 47, 0.55);
  border-color: transparent;
}
.cursor-ring.is-view::after {
  content: "View";
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
body.cursor-ready { cursor: none; }
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready .pill,
body.cursor-ready .cakecard { cursor: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: grid; place-items: center; }
}

/* ===== Gold sparkles (hero) ===== */
.sparkle {
  position: absolute;
  z-index: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 90, 0.9), rgba(201, 161, 90, 0) 70%);
  pointer-events: none;
  opacity: 0;
  animation: sparkle-float 7s ease-in-out infinite;
}
@keyframes sparkle-float {
  0%, 100% { opacity: 0; transform: translateY(4px) scale(0.7); }
  50% { opacity: 0.5; transform: translateY(-12px) scale(1.2); }
}

/* ===== Section dividers ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 22px;
}
.divider__mark { color: var(--gold); font-size: 0.95rem; opacity: 0.85; }
.divider__line {
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
  transition: width 0.9s cubic-bezier(0.22, 0.7, 0.25, 1) 0.1s;
}
.divider__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider.visible .divider__line { width: clamp(60px, 18vw, 130px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 116px; gap: 6px; }
  .hero__content { order: 2; text-align: center; }
  .hero__art { order: 1; min-height: 260px; }
  .hero__cake { max-width: 260px; }
  .hero__badge { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .cakegrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav__brand, .nav__toggle { position: relative; z-index: 120; }
  .nav__links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(165deg, var(--cream) 0%, var(--cream-2) 100%);
    padding: 96px 32px 48px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
    z-index: 110;
  }
  .nav__links.open { transform: translateX(0); opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.5rem; color: var(--ink); }
  .nav__links .nav__cta { margin-top: 6px; padding: 14px 42px; font-size: 1.2rem; }
  .nav__toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .goodtoknow ul { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .order__card { padding: 46px 24px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
}

/* ===== Compact list-style menu on phones/tablets (one short row per cake) ===== */
@media (max-width: 820px) {
  .cakegrid { grid-template-columns: 1fr !important; gap: 10px; }
  .cakecard {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .cakecard__icon {
    width: 46px;
    height: 46px;
    margin: 0;
  }
  .cakecard__icon .ic { width: 26px; height: 26px; }
  .cakecard h3 {
    margin: 0;
    min-height: 0;
    display: block;
    text-align: left;
    font-size: 1.02rem;
  }
  .cakecard:hover { transform: none; }
  .cakecard__prices {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
  }
  .cakecard__prices span {
    padding: 4px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .cakecard__prices { flex-direction: column; align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal * { opacity: 1 !important; transform: none !important; }
  .pills .pill, .cakegrid .cakecard, .areas__pills span, .goodtoknow li,
  .hero__content > *, .hero__bg, .hero__art { opacity: 1 !important; }
  .hero__title { clip-path: none !important; }
  .section__head h2::after { width: 56px; }
  .divider__line { width: clamp(60px, 18vw, 130px) !important; }
  .scroll-progress { display: none; }
  .loader { display: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.cursor-ready { cursor: auto !important; }
  .sparkle { opacity: 0 !important; }
  html { scroll-behavior: auto; }
}
