/* ============================================================
   BLOOM & BREW CAFÉ — immersive 3D experience
   Real 4K photographic heroes given depth via layered parallax
   planes + mouse-tilt + Ken Burns. No video. Reduced-motion safe.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; min-height: 100dvh;
  font-family: var(--sans); color: var(--charcoal); background: var(--charcoal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 60px); }

/* ---------------- top bar ---------------- */
.topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(20px, 5vw, 60px);
  padding-inline: max(clamp(20px, 5vw, 60px), env(safe-area-inset-left)) max(clamp(20px, 5vw, 60px), env(safe-area-inset-right));
  transition: background-color .4s ease, backdrop-filter .4s ease, padding .4s ease;
  color: var(--cream);
}
.topbar.is-scrolled {
  background: rgba(36,25,20,0.62); backdrop-filter: saturate(1.1) blur(12px);
  padding-block: 12px;
}
.topbar__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }
.topbar__brand .lg { width: 40px; height: 40px; }
.topbar__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.topbar__nav a { text-decoration: none; opacity: .82; transition: opacity .25s ease; border-radius: 3px; }
.topbar__nav a:hover { opacity: 1; }
.topbar__nav a:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 4px; }
/* mobile: collapse the inline nav into a disclosure menu (see .navtoggle) */
@media (max-width: 760px) {
  .topbar__nav {
    position: absolute; inset-block-start: 100%; inset-inline: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 10px clamp(20px, 5vw, 60px) 18px;
    background: rgba(36,25,20,0.92); backdrop-filter: blur(12px);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .topbar__nav a { padding: 10px 0; font-size: .9rem; opacity: .92; }
  .topbar[data-open="true"] .topbar__nav { opacity: 1; transform: none; pointer-events: auto; }
}
/* hamburger — only shown on mobile */
.navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: inherit; }
.navtoggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .25s ease, opacity .25s ease; }
.topbar[data-open="true"] .navtoggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar[data-open="true"] .navtoggle span:nth-child(2) { opacity: 0; }
.topbar[data-open="true"] .navtoggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.navtoggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 760px) { .navtoggle { display: block; } }

/* ---------------- immersive scene ---------------- */
.immersive {
  position: relative; min-height: 100dvh; width: 100%;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
  perspective: 1300px; /* the 3D field */
}
.scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.layer { position: absolute; inset: -6% ; will-change: transform; }

/* the photographic back plane — Ken Burns life */
.layer--photo {
  background-size: cover; background-position: center;
  transform: translateZ(-120px) scale(1.18);
  animation: kenburns 26s ease-in-out infinite alternate;
}
.layer--photo.is-flower { animation-duration: 30s; }
@keyframes kenburns {
  0%   { transform: translateZ(-120px) scale(1.16) translate(0,0); }
  100% { transform: translateZ(-120px) scale(1.24) translate(-2.2%, -1.6%); }
}

/* depth: darkening + brand-warm gradient so cream text always reads */
.layer--wash {
  transform: translateZ(-60px) scale(1.1);
  background:
    radial-gradient(135% 105% at 50% 44%, rgba(36,25,20,0.40), rgba(36,25,20,0.74) 82%),
    linear-gradient(to bottom, rgba(36,25,20,0.44), rgba(36,25,20,0.30) 45%, rgba(36,25,20,0.76));
}
.immersive--flower .layer--wash {
  background:
    radial-gradient(135% 105% at 50% 46%, rgba(36,25,20,0.46), rgba(36,25,20,0.72) 82%),
    linear-gradient(to bottom, rgba(36,25,20,0.40), rgba(36,25,20,0.32) 45%, rgba(36,25,20,0.74));
}

/* fine grain for filmic depth */
.layer--grain {
  transform: translateZ(-30px) scale(1.05); opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.layer--vignette {
  transform: translateZ(-20px) scale(1.04);
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(20,13,10,0.55));
}

/* the content plane floats toward the viewer */
.layer--content {
  inset: 0; display: grid; place-items: center; transform: translateZ(60px);
  color: var(--cream); padding: 96px clamp(20px,5vw,60px);
}

/* ---------------- hero typography ---------------- */
.hero__badge { width: clamp(120px, 15vw, 172px); aspect-ratio: 1; margin: 0 auto 22px; filter: drop-shadow(0 12px 30px rgba(20,13,10,.5)); }
.hero__badge .lg .lg-bg { fill: rgba(251,242,236,.10); }
.hero__kicker { font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; color: var(--cream); opacity: .92; margin: 0 0 16px; }
.hero__title {
  font-family: var(--serif); font-weight: 600; color: var(--cream);
  font-size: clamp(2.9rem, 8.5vw, 6rem); line-height: 1.0; letter-spacing: -.015em; margin: 0;
  text-shadow: 0 8px 40px rgba(20,13,10,.45);
}
.hero__script { font-family: var(--script); color: var(--blush); font-size: clamp(1.9rem, 5.5vw, 3.4rem); margin: 8px 0 0; font-weight: 400; }
.hero__lede { max-width: 42ch; margin: 24px auto 0; font-weight: 300; font-size: clamp(1rem,1.4vw,1.16rem); color: rgba(253,249,245,.9); }

/* dual pillars */
.pillars { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 32px; }
.pillar {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(251,242,236,.28); background: rgba(251,242,236,.08);
  backdrop-filter: blur(6px); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream);
}
.pillar__sprig { width: 18px; height: 18px; display: inline-block; }

/* ---------------- buttons ---------------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .3s ease, color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.btn--primary { background: var(--cream); color: var(--charcoal); box-shadow: 0 12px 34px rgba(20,13,10,.4); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(20,13,10,.5); }
.btn--ghost { background: rgba(251,242,236,.08); color: var(--cream); border-color: rgba(251,242,236,.4); backdrop-filter: blur(6px); }
.btn--ghost:hover { transform: translateY(-3px); background: rgba(251,242,236,.16); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* scroll cue */
.scroll-cue { position: absolute; inset-block-end: 26px; inset-inline: 0; display: grid; place-items: center; z-index: 5; color: var(--cream); }
.scroll-cue span { width: 22px; height: 34px; border: 1.5px solid rgba(251,242,236,.5); border-radius: 12px; position: relative; }
.scroll-cue span::after { content:""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; background: var(--cream); border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:0; transform: translate(-50%,0);} 50%{opacity:1; transform: translate(-50%,7px);} }

/* ---------------- glass content panels ---------------- */
.panel { position: relative; padding: clamp(80px,12vh,160px) 0; background: var(--cream); color: var(--charcoal);
  background-image: radial-gradient(60% 50% at 82% 6%, rgba(231,190,178,.26), transparent 60%),
                    radial-gradient(50% 46% at 10% 96%, rgba(157,168,144,.18), transparent 60%); }
.panel--dark { background: var(--charcoal); color: var(--cream); }
.panel__eyebrow { font-size: .76rem; letter-spacing: .34em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 14px; }
.panel--dark .panel__eyebrow { color: var(--blush); }
.panel__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem,5vw,3.4rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; }
.panel__lede { max-width: 60ch; font-weight: 300; font-size: 1.08rem; color: inherit; opacity: .9; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin-top: 44px; }
.menu-card {
  border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden;
  background: var(--ivory); box-shadow: 0 14px 34px rgba(107,67,65,.10);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.menu-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(107,67,65,.18); }
.menu-card__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.menu-card__img::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(36,25,20,.20), transparent 55%); }
.menu-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.menu-card:hover .menu-card__img img { transform: scale(1.06); }
.menu-card__body { padding: 20px 22px 24px; }
.menu-card h3 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 4px; font-weight: 600; line-height: 1.1; }
.menu-card .price { color: var(--burgundy); font-weight: 500; }
.menu-card p { font-size: .88rem; opacity: .78; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .menu-card, .menu-card__img img { transition: none; } }

/* signup */
.signup { max-width: 460px; margin: 30px auto 0; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type=text], .signup input[type=email] { flex: 1 1 160px; min-width: 0; font-family: var(--sans); font-size: 1rem; padding: 14px 16px; border: 1px solid rgba(251,242,236,.3); border-radius: 12px; background: rgba(251,242,236,.1); color: var(--cream); }
.signup input::placeholder { color: rgba(251,242,236,.55); }
.signup input:focus-visible { outline: 2px solid var(--blush); outline-offset: 1px; }
.signup__note { font-size: .74rem; opacity: .6; margin-top: 10px; }
[hidden] { display: none !important; }

/* footer */
.foot { background: var(--charcoal); color: rgba(253,249,245,.75); text-align: center; padding: 56px 0 44px; font-size: .82rem; }
.foot a { color: var(--blush); text-decoration: none; }
.foot__row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* reveals — only hidden when JS is present (.js on <html>), so no-JS/SEO see content */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s } .reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }

@media (prefers-reduced-motion: reduce) {
  .layer--photo, .layer--photo.is-flower { animation: none; transform: translateZ(-120px) scale(1.12); }
  .scroll-cue span::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scene { transform: none !important; }
}

/* ---------------- custom cursor ---------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; translate: -50% -50%; will-change: transform; }
.cursor-dot { width: 7px; height: 7px; background: var(--cream); mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(251,242,236,.6); transition: width .25s ease, height .25s ease, border-color .25s ease, background-color .25s ease; mix-blend-mode: difference; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor label { cursor: none; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: rgba(231,190,178,.95); background: rgba(231,190,178,.12); }
.cursor-ring.is-press { width: 28px; height: 28px; }

/* ---------------- subpages: /menu /visit /privacy ---------------- */
/* short banner hero (override full-screen height) */
.immersive--band { min-height: 62vh; }

/* charcoal topbar for light/doc pages (cream nav is invisible on cream) */
body.doc .topbar { color: var(--charcoal); }
body.doc .topbar__nav a { opacity: .7; }
body.doc .topbar.is-scrolled { color: var(--cream); }

/* long-form legal / doc prose */
.prose { max-width: 68ch; margin: 0 auto; font-weight: 300; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin: 30px 0 8px; letter-spacing: -.01em; }
.prose p { font-size: 1rem; line-height: 1.75; margin: 0 0 14px; opacity: .9; }
.prose a { color: var(--burgundy); }
.prose .eff-date { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); opacity: .8; }

/* menu text rows */
.menu-list { max-width: 640px; margin: 30px auto 0; }
.menu-list__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.menu-list__name { flex: 1 1 auto; }
.menu-list__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.menu-list__price { margin-left: auto; color: var(--burgundy); font-weight: 500; white-space: nowrap; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-list__desc { flex-basis: 100%; font-size: .9rem; opacity: .72; margin-top: 4px; }
.panel--dark .menu-list__row { border-color: rgba(251,242,236,.16); }
.panel--dark .menu-list__price { color: var(--blush); }

/* visit info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 40px; margin-top: 40px; max-width: 900px; }
.info-block h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 10px; }
.info-block p, .info-block a { font-weight: 300; font-size: 1rem; line-height: 1.7; }
.info-block a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid var(--line-soft); display: inline-block; }
.info-block a:hover, .info-block a:focus-visible { border-color: var(--burgundy); }

/* footer secondary nav row */
.foot__row--nav { margin-top: 4px; }
.foot__row--nav a { color: rgba(253,249,245,.7); }
.foot__row--nav a:hover { color: var(--blush); }

/* ---------------- Today's Bloom ---------------- */
.daily-bloom { text-align: center; padding-block: clamp(64px, 9vh, 120px);
  background: var(--ivory);
  background-image: radial-gradient(60% 70% at 50% 0%, rgba(231,190,178,.22), transparent 60%); }
.db { max-width: 760px; margin: 0 auto; }
.db__eyebrow { display: inline-flex; gap: 6px; justify-content: center; }
.db__accent { display: block; width: 46px; height: 2px; background: var(--blush); border-radius: 2px; margin: 16px auto 0; }
.db__line { font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem); line-height: 1.32; color: var(--charcoal); margin: 22px 0 24px; }
.db__flower { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); margin: 0; }
.db__name { font-weight: 600; }
.db__care { font-size: .92rem; opacity: .68; margin-top: 14px; }
