/* Koons Cakery — shared tokens and chrome for the Round 1 hero explorations.
   Prototype only: visual and motion spec, not production code. */

:root {
  --plum: #782446;
  --blush: #F0E6E6;
  --rose: #D0ABA7;
  --terracotta: #D8977B;
  --butter: #E4CF76;
  /* derived shades (shadow and body-text tones of plum, not new brand colours) */
  --plum-deep: #561731;
  --plum-ink: #3E1023;

  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: var(--font-body); /* each exploration sets its own stand-in */

  --nav-h: 64px;
  --pad: clamp(20px, 5vw, 56px);
  --ease-ganache: cubic-bezier(.6, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--plum-ink);
  background: var(--blush);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible { outline-color: var(--plum); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 0;
  font: 700 1.0625rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  background: var(--butter); color: var(--plum-ink);
  transition: transform .5s var(--ease-ganache), background-color .3s;
}
.btn:hover { transform: translateY(-2px); background: #EDDB8C; }
.btn--plum { background: var(--plum); color: var(--blush); }
.btn--plum:hover { background: var(--plum-deep); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: transparent; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- sticky menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--blush);
}
.nav__logo { display: block; height: 40px; flex: none; }
.nav__logo img { height: 100%; width: auto; }
.nav__links { display: none; gap: clamp(16px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .98rem; }
.nav__links a { text-decoration: none; padding: 10px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__cta { min-height: 44px; padding: 0 1.2em; font-size: .95rem; transition: opacity .35s, transform .5s var(--ease-ganache), background-color .3s, visibility 0s; }
.nav__toggle {
  min-height: 44px; padding: 0 1.1em; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--font-body); color: inherit; background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
}
.nav__sheet {
  position: fixed; inset: var(--nav-h) 12px auto 12px; z-index: 49;
  background: var(--blush); color: var(--plum-ink);
  border-radius: 22px; padding: 10px 22px 22px;
  box-shadow: 0 18px 50px rgba(62, 16, 35, .35);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s, transform .45s var(--ease-ganache), visibility .3s;
}
.nav__sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__sheet ul { list-style: none; margin: 0 0 14px; padding: 0; }
.nav__sheet li a { display: block; padding: 13px 0; font-weight: 700; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--rose); }
.nav__sheet .btn { width: 100%; }
@media (min-width: 900px) {
  :root { --nav-h: 76px; }
  .nav__logo { height: 46px; }
  .nav__links { display: flex; }
  .nav__toggle, .nav__sheet { display: none; }
}
@media (max-width: 899px) { .nav__cta { margin-left: auto; } }
@media (max-width: 599px) { .nav__cta { display: none; } } /* phones: the floating WhatsApp button and the menu sheet carry the CTA */

/* ---------- floating WhatsApp button ----------
   56px icon-only circle below 1024px, labelled pill from 1024px up.
   Layouts keep their bottom-right corner clear for it (88px on small screens, 250px for the pill). */
.wa-fab {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 56px; height: 56px; padding: 0; border-radius: 999px;
  background: var(--butter); color: var(--plum-ink);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(62, 16, 35, .38);
  transition: opacity .35s, transform .5s var(--ease-ganache), visibility 0s;
}
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab svg { width: 28px; height: 28px; flex: none; }
.wa-fab span { display: none; }
@media (min-width: 1024px) {
  .wa-fab { width: auto; right: calc(28px + env(safe-area-inset-right)); bottom: calc(28px + env(safe-area-inset-bottom)); padding: 0 22px 0 18px; }
  .wa-fab span { display: inline; }
}
.wa-fab--plum { background: var(--plum); color: var(--blush); }

/* ---------- one CTA at a time ----------
   While the hero's "Plan your order" button is on screen, the menu CTA and the floating
   WhatsApp button stay hidden. base.js removes .cta-wait once the hero button is out of view. */
.cta-wait .nav__cta, .cta-wait .wa-fab {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s, transform .5s var(--ease-ganache), visibility 0s .25s;
}
.cta-wait .wa-fab { transform: translateY(14px); }

/* ---------- exploration note (review aid, not part of the design) ---------- */
.design-note {
  background: var(--plum-ink); color: var(--blush);
  padding: 28px var(--pad) 110px; font-size: .92rem; line-height: 1.55;
}
.design-note strong { color: var(--butter); }
.design-note p { max-width: 70ch; }
.design-note p + p { margin-top: .6em; }

/* ---------- labelled placeholder for photos still to come ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed currentColor; border-radius: 18px;
  padding: 12px; font-size: .8rem; font-weight: 600; line-height: 1.3;
}

/* reduced motion: sections simply fade in */
.rm-fade { opacity: 0; transition: opacity .6s; }
.rm-fade.is-in { opacity: 1; }
