/* GoGo Sweet — strawberry-milk fondant, cocoa ink, topper gold */
:root {
  --fondant: #fbe3ea;   /* page pink, like the fondant on her cakes */
  --fondant-2: #f6cfdb;
  --sugar: #fffafb;     /* white icing panels */
  --raspberry: #b8124f; /* primary action / headings */
  --cocoa: #3d1f1b;     /* text */
  --cocoa-2: #6e4a44;
  --gold: #c5973a;      /* "Happy Birthday" topper gold */
  --mint: #a8dcd6;      /* Stitch / Frozen accents */
  --wa: #17783f;   /* 5.3:1 with white text */
  --wa-hover: #10602f;
  --r-lg: 28px;
  --r-sm: 12px;
  --display: "Marhey", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondant);
  color: var(--cocoa);
  font: 400 1.0625rem/1.85 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--raspberry); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; margin: 0; color: var(--raspberry); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--cocoa); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }

section { padding: clamp(56px, 9vw, 112px) var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { max-width: 56ch; margin: 12px auto 0; color: var(--cocoa-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1.05rem/1 var(--body); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa::before, .wa-link::before {
  content: ""; flex: none; width: 1.25em; height: 1.25em; background: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat; mask: var(--wa-icon) center / contain no-repeat;
}
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
:root { --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3a13 13 0 0 0-11.2 19.6L3 29l6.6-1.7A13 13 0 1 0 16 3Zm0 23.6c-2 0-4-.6-5.7-1.6l-.4-.2-3.9 1 1-3.8-.3-.4A10.6 10.6 0 1 1 16 26.6Zm5.8-7.9c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2l-1 1.2c-.2.2-.4.2-.7.1a8.7 8.7 0 0 1-4.3-3.8c-.3-.6.3-.5.9-1.7.1-.2 0-.4 0-.5l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.1 1.1-1.1 2.7s1.2 3.2 1.3 3.4c.2.2 2.3 3.5 5.6 4.9 2.1.9 2.9 1 4 .8.6-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5l-.6-.3Z'/%3E%3C/svg%3E"); }
.btn-ghost { border-color: var(--raspberry); color: var(--raspberry); background: transparent; }
.btn-ghost:hover { background: var(--sugar); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--fondant) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-ar { font: 700 1.6rem/1.1 var(--display); color: var(--raspberry); }
.brand-en { font: 400 .78rem/1 var(--body); color: var(--cocoa-2); letter-spacing: .04em; direction: ltr; text-align: end; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { color: var(--cocoa); text-decoration: none; font-weight: 400; }
.top nav a:hover { color: var(--raspberry); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-inline-start: auto; } }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: none; padding-top: clamp(24px, 5vw, 64px);
}
.hero > * { max-width: none; margin: 0; }
.hero-copy { justify-self: end; max-width: 560px; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1.12;
  color: var(--raspberry);
  /* piped-icing feel: soft white outline + gold shadow */
  text-shadow: 3px 3px 0 var(--sugar), 6px 6px 0 color-mix(in srgb, var(--gold) 45%, transparent);
}
.hero-lede { margin-top: 20px; font-size: 1.15rem; color: var(--cocoa-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { position: relative; justify-self: start; width: min(420px, 80vw); }
.arch {
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden; aspect-ratio: 3 / 4;
  outline: 3px solid var(--gold); outline-offset: 8px;
  box-shadow: 0 30px 60px -30px rgba(120, 20, 60, .45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.price-sticker {
  position: absolute; top: 12%; inset-inline-end: -28px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--raspberry); color: #fff;
  display: grid; place-content: center; text-align: center; line-height: 1.2;
  font-size: .82rem; transform: rotate(-10deg);
  box-shadow: 0 0 0 5px var(--sugar);
}
.price-sticker b { font: 700 2rem/1 var(--display); }
.hero-mini {
  position: absolute; width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--sugar); box-shadow: 0 14px 30px -14px rgba(120, 20, 60, .5);
}
.hm1 { bottom: -6%; inset-inline-end: -14%; }
.hm2 { bottom: 22%; inset-inline-start: -18%; width: 28%; }
/* scalloped icing edge hanging into next section */
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -17px; height: 18px; max-width: none;
  background: radial-gradient(circle at 50% 0, var(--fondant) 12px, transparent 13px) 0 0 / 34px 18px repeat-x;
  z-index: 2;
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { justify-self: center; }
  .hero-cta { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-art { justify-self: center; width: 74vw; margin-top: 12px; }
  .price-sticker { width: 92px; height: 92px; inset-inline-end: -12px; }
  .hm2 { inset-inline-start: -8%; }
  .hm1 { inset-inline-end: -6%; }
}

/* What we make */
.make { background: var(--sugar); padding-block: 48px; }
.make-list {
  list-style: none; padding: 0; margin-inline: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.make-list li { padding: 8px 20px; font-size: .98rem; color: var(--cocoa-2); border-inline-start: 2px dotted var(--fondant-2); }
.make-list li:first-child { border-inline-start: 0; }
.make-list b { display: block; font: 700 1.25rem/1.4 var(--display); color: var(--raspberry); }
@media (max-width: 900px) {
  .make-list { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .make-list li:nth-child(odd) { border-inline-start: 0; }
}

/* Gallery */
.cakes { background: var(--sugar); padding-top: 24px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.chip {
  font: 400 1rem/1 var(--body); padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--fondant-2); background: transparent; color: var(--cocoa);
}
.chip.is-on { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.masonry { columns: 4 220px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; position: relative; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; background: var(--fondant); }
.masonry figure[hidden] { display: none; }
.masonry img { width: 100%; transition: transform .4s ease; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(61, 31, 27, .78));
  color: #fff; font-size: .95rem; line-height: 1.5;
}
.masonry button { all: unset; display: block; cursor: zoom-in; }
.masonry button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Builder */
.builder { background: var(--fondant); }
.builder-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--sugar); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 44px);
}
.stage { position: relative; text-align: center; }
.stage svg { width: 100%; height: auto; overflow: visible; }
.stage-size { font: 700 1.6rem/1 var(--display); color: var(--cocoa-2); margin-top: 6px; }
.controls fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.controls legend { font-weight: 600; margin-bottom: 10px; }
.seg, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .sizes label { position: relative; }
.seg input, .sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span, .sizes span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 2px solid var(--fondant-2); background: #fff; font-size: .98rem; line-height: 1.2;
}
.sizes span { min-width: 64px; text-align: center; direction: ltr; }
.seg small { color: var(--cocoa-2); font-size: .8rem; }
.seg input:checked + span, .sizes input:checked + span { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.seg input:checked + span small { color: #ffd9e6; }
.seg input:focus-visible + span, .sizes input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.total { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px dotted var(--fondant-2); padding-top: 18px; margin-bottom: 16px; }
.total-label { color: var(--cocoa-2); }
.total-num { font: 700 2.6rem/1 var(--display); color: var(--raspberry); }
.total-num span { font-size: 1.1rem; }
.fine { font-size: .85rem; color: var(--cocoa-2); margin-top: 12px; line-height: 1.7; }
@media (max-width: 860px) { .builder-grid { grid-template-columns: 1fr; } }

/* Menu */
.menu { background: var(--sugar); }
.trays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tray { background: var(--fondant); border-radius: var(--r-lg); padding: 28px 26px; }
.tray h3 + .price-list { margin-top: 10px; }
.price-list + h3 { margin-top: 26px; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.price-list span { flex: 0 1 auto; }
.price-list i { flex: 1; border-bottom: 2px dotted var(--cocoa-2); opacity: .35; transform: translateY(-5px); min-width: 16px; }
.price-list b { font: 600 1.2rem/1 var(--display); color: var(--raspberry); }
.happy-box { margin-top: 26px; background: var(--raspberry); color: #fff; border-radius: var(--r-sm); padding: 18px 20px; }
.happy-box h3 { color: #fff; }
.happy-box p { font-size: .95rem; margin-top: 4px; }
.happy-price b { font: 700 1.8rem/1 var(--display); }
@media (max-width: 900px) { .trays { grid-template-columns: 1fr; } }

/* Steps */
.steps { background: var(--fondant); text-align: center; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; color: var(--cocoa-2); }
.steps li::before {
  content: counter(s, arabic-indic); display: grid; place-items: center; margin: 0 auto 14px;
  width: 64px; height: 64px; border-radius: 50%; background: var(--sugar);
  font: 700 1.8rem/1 var(--display); color: var(--raspberry); border: 3px dashed var(--fondant-2);
}
.steps li b { display: block; font: 700 1.25rem/1.4 var(--display); color: var(--cocoa); margin-bottom: 4px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

/* Areas */
.areas { background: var(--sugar); text-align: center; }
.areas > p { margin-top: 10px; color: var(--cocoa-2); }
.area-list { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.area-list li { padding: 6px 14px; border-radius: 999px; background: var(--fondant); font-size: .95rem; }

/* FAQ */
.faq { background: var(--fondant); }
.faq h2 { text-align: center; margin-bottom: 28px; }
.faq details { max-width: 760px; background: var(--sugar); border-radius: var(--r-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 16px; height: 16px; background: linear-gradient(var(--raspberry) 0 0) center / 100% 2.5px no-repeat, linear-gradient(var(--raspberry) 0 0) center / 2.5px 100% no-repeat; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--cocoa-2); }
.todo { background: #fff3c4; border-radius: 6px; }

/* Final CTA + footer */
.final-cta { background: var(--raspberry); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { margin: 12px auto 28px; max-width: 48ch; opacity: .92; }
.foot { background: var(--cocoa); color: #f3dcd6; text-align: center; padding: 40px var(--gutter) 96px; font-size: .95rem; }
.foot .brand-ar { color: var(--fondant); margin-bottom: 8px; }
.foot a { color: var(--fondant); }

/* Lightbox */
dialog#lightbox { border: 0; border-radius: var(--r-lg); padding: 16px; max-width: min(560px, 92vw); background: var(--sugar); text-align: center; }
dialog#lightbox::backdrop { background: rgba(61, 31, 27, .7); }
#lbImg { max-height: 70vh; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
#lbCap { margin: 12px 0; }
.lb-close { position: absolute; top: 8px; inset-inline-start: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fondant); font-size: 1.6rem; cursor: pointer; color: var(--cocoa); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flame, .cake-pop { animation: none; }
  .masonry img, .btn { transition: none; }
  .masonry figure:hover img { transform: none; }
}

/* builder motion: responds to each choice */
.cake-pop { animation: pop .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1); } }
.flame { transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes flicker { from { transform: scaleY(1); } to { transform: scaleY(.85) skewX(4deg); } }

.more-wrap { text-align: center; margin-top: 12px; }
.more-wrap [hidden] { display: none; }
.hero { overflow-x: clip; }
.masonry button { width: 100%; }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } .masonry figcaption { font-size: .82rem; padding: 22px 10px 8px; } }
.brand img { width: 140px; height: auto; margin-bottom: -40px; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(184, 18, 79, .35)); }
@media (max-width: 760px) { .brand img { width: 96px; margin-bottom: -28px; } }
.top { padding-block: 6px; }
.foot-logo { width: 150px; margin: 0 auto 12px; background: var(--fondant); border-radius: 50%; padding: 6px; }

/* browser surfaces carry the palette */
::selection { background: var(--raspberry); color: #fff; }
html { scrollbar-color: var(--fondant-2) var(--sugar); accent-color: var(--raspberry); caret-color: var(--raspberry); }
a { text-underline-offset: .25em; }
.price-list b, .total-num, .sizes span { font-variant-numeric: tabular-nums; }
/* touch targets ≥44px */
.chip, .seg span, .sizes span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.top nav a { padding-block: 10px; }
.lb-close { display: grid; place-items: center; }
.lb-close:hover { background: var(--fondant-2); }
.chip:hover:not(.is-on) { border-color: var(--raspberry); }
.seg label:hover span, .sizes label:hover span { border-color: var(--raspberry); }
