/* Nicole's Sweet Desires — site styles (mobile first) */
:root {
  --cream: #fdf8f3;
  --cream-2: #f7eee6;
  --pink: #ffe0ee;
  --pink-2: #f99fc9;
  --lilac: #f1e9f8;
  --plum: #2a1f33;
  --plum-2: #440099;
  --magenta: #e10098;
  --magenta-dark: #b8007c;
  --muted: #6b5a7a;
  --night: #170f1d;
  --night-2: #241a2d;
  --gold: #d8b46a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(42, 31, 51, .12);
  --header-h: 60px;
  --bar-h: 64px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 26px rgba(225, 0, 152, .28); }
.btn-primary:hover { background: var(--magenta-dark); }
.btn-ghost { border-color: currentColor; color: var(--plum); background: transparent; }
.btn-ghost:hover { background: rgba(42, 31, 51, .06); }
.btn-light { background: #fff; color: var(--plum); }
.dark .btn-ghost { color: #fff; }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--magenta); text-decoration: none; }
.dark .link-arrow { color: var(--pink-2); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled, .site-header.solid { background: rgba(253, 248, 243, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(42, 31, 51, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a.nav-link { padding: 10px 12px; font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 999px; }
.header-nav a.nav-link:hover { background: rgba(42, 31, 51, .06); }
.header-nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.header-nav .hide-sm { display: none; }
.header-dark:not(.scrolled) { color: #fff; }
.header-dark:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.header-dark:not(.scrolled) .nav-link:hover { background: rgba(255, 255, 255, .1); }

/* ---------- sticky action bar (mobile) ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(253, 248, 243, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 rgba(42, 31, 51, .08), 0 -10px 30px rgba(42, 31, 51, .08);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.action-bar.show { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
  border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none;
  background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1.5px rgba(42, 31, 51, .12);
}
.action-bar a.wa { background: var(--magenta); color: #fff; box-shadow: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 72px 0; }
.section-head { margin-bottom: 28px; max-width: 640px; }
.eyebrow { display: block; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--magenta); margin-bottom: 8px; }
.dark .eyebrow { color: var(--pink-2); }
.section-head h2 { font-size: clamp(32px, 8.4vw, 52px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }
.dark { background: var(--night); color: #f6eef7; }
.dark .section-head p, .dark .muted { color: #cbbcd4; }
.tint { background: var(--cream-2); }
.section-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: var(--header-h) 0 40px; overflow: hidden; background: var(--cream); }
.hero-photo { display: block; position: relative; height: 50svh; min-height: 300px; max-height: 560px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 248, 243, 0) 60%, var(--cream) 100%); }
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-3d.ready { opacity: 1; }
.hero-grid { position: relative; z-index: 2; margin-top: -44px; }
.hero-copy { position: relative; }
.hero-copy .eyebrow { font-size: 18px; }
.hero h1 { font-size: clamp(38px, 10.4vw, 72px); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--magenta); }
.hero-lead { margin-top: 14px; font-size: 17.5px; color: var(--muted); max-width: 520px; }
.hero .btn-row { margin-top: 22px; }
.hero .btn-row .btn { flex: 1 1 0; }
.trust { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-2); }
@media (max-height: 700px) and (max-width: 959px) {
  .hero-photo { height: 40svh; min-height: 240px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
}

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 4 / 5; text-decoration: none; color: #fff; background: var(--night-2);
  isolation: isolate;
}
.tile.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 15, 29, 0) 40%, rgba(23, 15, 29, .82) 100%); z-index: -1; }
.tile:hover img { transform: scale(1.05); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: 14px; }
.tile h3 { font-size: 19px; font-weight: 600; }
.tile.wide h3 { font-size: 24px; }
.tile p { font-size: 13px; line-height: 1.3; opacity: .88; margin-top: 3px; }
.tile .icon-go { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--plum); display: grid; place-items: center; }
.tile .icon-go svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- horizontal rails ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  padding: 4px 20px 18px; margin-inline: -20px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.card {
  position: relative; width: 66vw; max-width: 300px; aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2);
  border: 0; padding: 0; cursor: zoom-in; display: block;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card.cut { background: var(--pink); }
.card.cut:nth-child(3n+2) { background: var(--lilac); }
.card.cut:nth-child(3n) { background: #fff1e0; }
.card.cut img { object-fit: contain; padding: 18px 14px 10px; filter: drop-shadow(0 12px 14px rgba(42, 31, 51, .14)); }
.card.land { width: 84vw; max-width: 420px; aspect-ratio: 4 / 3; }
.card figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--plum); font-size: 13px; font-weight: 500; }
.card-more {
  width: 56vw; max-width: 240px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 22px;
  background: var(--plum); color: #fff; text-decoration: none;
}
.card-more strong { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.card-more span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pink-2); }
.rail-hint { display: flex; align-items: center; gap: 8px; margin-top: -4px; font-size: 13px; color: var(--muted); }
.rail-hint .icon { width: 16px; height: 16px; }
.dark .rail-hint { color: #b9a9c4; }
.dark .card { background: var(--night-2); }

/* ---------- cozonac 3D stage ---------- */
.coz-stage { position: relative; height: 230svh; background: #1d1316; }
.coz-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; background: #1d1316; }
.coz-bg { position: absolute; inset: auto 0 0 0; height: 62%; }
.coz-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.coz-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #1d1316 0%, rgba(29, 19, 22, 0) 30%, rgba(29, 19, 22, 0) 80%, rgba(29, 19, 22, .55) 100%); }
.coz-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.coz-head { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 18px); }
.coz-head .section-head { margin-bottom: 0; }
.coz-head .section-head p { font-size: 16px; }
.coz-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--bar-h) + 30px); text-align: center; padding: 0 24px; pointer-events: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.coz-caption p { font-family: var(--serif); font-size: clamp(24px, 6.4vw, 40px); line-height: 1.2; transition: opacity .5s ease, transform .5s ease; }
.coz-caption p + p { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px; opacity: 0; transform: translateY(14px); }
.coz-stage.cut .coz-caption p:first-child { opacity: 0; transform: translateY(-14px); }
.coz-stage.cut .coz-caption p + p { opacity: 1; transform: none; }
.coz-fallback { position: relative; z-index: 2; width: min(88%, 560px); margin: 28px auto 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.coz-stage.webgl .coz-fallback { display: none; }
.coz-stage.no3d { height: auto; }
.coz-stage.no3d .coz-sticky { position: relative; height: auto; padding-bottom: 150px; }
.coz-after { padding: 32px 0 72px; }

/* ---------- story ---------- */
.story-grid { display: grid; gap: 26px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1400 / 865; object-fit: cover; }
.story-photo .badge {
  position: absolute; right: -6px; bottom: -18px; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 10px;
  background: var(--magenta); color: #fff; font-family: var(--serif); font-size: 14px; line-height: 1.2;
  box-shadow: 0 12px 30px rgba(225, 0, 152, .35); rotate: -8deg;
}
.story-copy h2 { font-size: clamp(32px, 8.4vw, 50px); }
.story-copy p { margin-top: 14px; color: var(--muted); }
.story-copy p strong { color: var(--plum); font-weight: 600; }
.chefs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chefs span { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(42, 31, 51, .1); font-size: 13.5px; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 14px; }
.review { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 8px 30px rgba(42, 31, 51, .06); margin: 0; }
.review .stars { color: var(--magenta); letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption strong { color: var(--plum); }
.source-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.source-note a { color: inherit; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; padding: 20px 20px 20px 72px; border-radius: var(--radius-sm); background: #fff; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--magenta); font: 600 18px/1 var(--serif); }
.steps strong { display: block; font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.only-orders { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 14px; }

/* ---------- final CTA + footer ---------- */
.final { text-align: center; padding: 80px 0; background:
  radial-gradient(80% 80% at 50% 0%, rgba(225, 0, 152, .35) 0%, rgba(225, 0, 152, 0) 70%), var(--night); color: #fff; }
.final h2 { font-size: clamp(34px, 9vw, 58px); }
.final p { margin: 12px auto 0; max-width: 460px; color: #d9cbe0; }
.final .btn-row { justify-content: center; margin-top: 26px; }
.site-footer { background: var(--night); color: #cbbcd4; padding: 8px 0 calc(48px + var(--bar-h) + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-grid { display: grid; gap: 26px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 34px; }
.footer-grid img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-grid h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 10px; font-weight: 600; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.socials a:hover { background: var(--magenta); }
.copyright { margin-top: 30px; font-size: 13px; color: #8f7f9a; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: rgba(15, 9, 20, .94); color: #fff; }
.lightbox::backdrop { background: rgba(15, 9, 20, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 82svh; object-fit: contain; border-radius: 10px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(23, 15, 29, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn svg { width: 22px; height: 22px; fill: currentColor; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: #cbbcd4; }

/* ---------- wedding page ---------- */
.w-hero { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 20px) 0 48px; overflow: hidden; background:
  radial-gradient(70% 55% at 50% 38%, #3a2547 0%, rgba(58, 37, 71, 0) 70%), var(--night); color: #fff; }
.w-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.w-hero canvas.ready { opacity: 1; }
.w-hero .wrap { position: relative; z-index: 2; }
.w-hero h1 { font-size: clamp(31px, 8.4vw, 62px); max-width: 680px; }
.w-hero h1 em { font-style: italic; color: var(--gold); }
.w-hero .hero-lead { color: #d9cbe0; }
.w-hero .btn-ghost { color: #fff; }
.w-hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.w-hero .eyebrow { color: var(--pink-2); }
.w-hero .btn-row { margin-top: 22px; }
.w-hero .btn-row .btn { flex: 1 1 0; }
.w-fallback { position: absolute; top: calc(var(--header-h) + 10px); left: 50%; translate: -50% 0; height: 36svh; width: auto; opacity: .95; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); }
.w-fallback { display: none; }
.w-hero.no3d .w-fallback { display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-grid .card { width: auto; max-width: none; aspect-ratio: 1; }
.detail-grid .card:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- larger screens ---------- */
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 1; aspect-ratio: 4 / 5; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .card { width: 280px; }
  .card.land { width: 400px; }
  .card-more { width: 230px; }
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid .card:first-child { grid-column: span 1; aspect-ratio: 1; }
}
@media (min-width: 960px) {
  .site-footer { padding-bottom: 40px; }
  .action-bar { display: none; }
  .header-nav .hide-sm { display: inline-flex; }
  .section { padding: 110px 0; }
  .hero { display: flex; align-items: center; min-height: 100svh; padding: var(--header-h) 0 60px; }
  .hero .wrap { width: min(1160px, 100% - 80px); }
  .hero-photo { position: absolute; inset: 0; height: auto; max-height: none; }
  .hero-photo img { object-position: 78% 40%; }
  .hero-photo::after { background: linear-gradient(90deg, rgba(253, 248, 243, .9) 0%, rgba(253, 248, 243, .55) 32%, rgba(253, 248, 243, 0) 52%); }
  .hero-grid { margin-top: 0; }
  .hero-copy { max-width: 560px; }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .tile { aspect-ratio: 3 / 4.2; }
  .tile.wide { aspect-ratio: 3 / 4.2; }
  .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .story-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .coz-caption { bottom: 56px; }
  .coz-bg { inset: 0; height: auto; }
  .coz-bg img { object-position: 50% 70%; }
  .coz-bg::after { background: linear-gradient(180deg, rgba(29, 19, 22, .75) 0%, rgba(29, 19, 22, 0) 38%, rgba(29, 19, 22, 0) 80%, rgba(29, 19, 22, .5) 100%); }
  .coz-head .section-head { max-width: 760px; }
  .w-hero { align-items: center; }
  .w-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; }
  .w-hero .btn-row .btn { flex: 0 0 auto; }
  .w-fallback { left: 72%; top: 50%; translate: -50% -50%; height: 70svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- hero: spin the strawberries ---------- */
.hero.can-spin { cursor: grab; }
.hero.spinning { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero-photo img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
