/* === THEME: waconia === */
/* ============================================
   THEME: Waconia Dispensary  — SCAFFOLD (cutover-prep 2026-06-24)
   Placeholder palette (lake-town green + water blue). Replace in build session.
   ============================================ */
:root {
  --green:        #2E7D5B;   /* primary */
  --green-deep:   #1E5A40;   /* hover / secondary */
  --green-light:  #D6EBE0;
  --water:        #3A7CA5;   /* accent */
  --cream:        #F8FAF8;
  --cream-soft:   #FFFFFF;
  --parchment:    #ECF3EE;
  --ink:          #1C1F1D;
  --slate:        #45524B;
  --ash:          #8A938E;
  --white:        #FFFFFF;

  --font-display: 'Barlow Condensed', Georgia, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: var(--font-display);

  --header-h:        72px;
  --header-logo-w:   200px;
  --header-logo-h:   44px;

  --body-bg:        var(--cream);
  --body-fg:        var(--ink);
  --heading:        var(--green-deep);
  --heading-strong: var(--green-deep);
  --link:           var(--green-deep);
  --link-hover:     var(--green);
  --header-bg:      rgba(248, 250, 248, 0.97);
  --footer-bg:      var(--green-deep);
  --footer-accent:  var(--green);
  --about-bg:       linear-gradient(135deg, var(--cream-soft) 0%, var(--green-light) 140%);

  /* Required shared-component semantic aliases */
  --moss:      var(--green);
  --deep-fern: var(--green-deep);
  --washi:     #DCE6E0;
  --kinako:    var(--cream-soft);
  --shoji:     var(--cream);
  --fog:       var(--ash);
  --charcoal:  var(--slate);
  --sumi:      var(--ink);
  --yuzu:      var(--water);

  --hero-bg-image: none;
  --hero-overlay:  none;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.01em; }

/* CTA contrast guard (avoid invisible-CTA trap) */
.cta--primary { background: var(--green); border-color: var(--green); color: var(--white) !important; }
.cta--primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white) !important; }
.cta--secondary { color: var(--green-deep); border-color: var(--green-deep); }


/* === BASE === */
/* ============================================
   BASE — reset + layout utilities
   (shared across all tenants; theme.css defines tokens)
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 64px) + 32px);
}

body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-fg, #1C1C1C);
  background: var(--body-bg, #FAFAF5);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link, #4A7C59);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s, background 0.2s;
}
a:hover { color: var(--link-hover, #7FB069); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'DM Sans', sans-serif);
  font-weight: 700;
  color: var(--heading, #1C1C1C);
  line-height: 1.1;
}

h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

p + p { margin-top: 1.5em; }

.wrap {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Platform producer credit — rendered globally from _skeleton on every
   tenant/page. Subtle by design; a theme may retint via the two tokens. */
.ht-credit {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--ht-credit-bg, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ht-credit-fg, #9a9a9a);
}
.ht-credit p { margin: 0; }
.ht-credit a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.ht-credit a:hover { color: inherit; text-decoration: underline; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}


/* === PRIMITIVE: cta === */
/* CTA primitive — used inline by hero, visit, dutchie-menu, etc.
   Variants (set via config prop "variant"):
     primary          — solid bg in brand color, white text, large
     secondary        — plain text, subtle hover (current default)
     secondary-border — plain + visible border
     secondary-color  — bordered + colored text/border
     secondary-line   — underline-only, minimal                     */

.cta {
  display: inline-block;
  padding: 0.9em 2em;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; border: 2px solid transparent;
  transition: all 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none;
}

/* --- Primary: big, bold, solid brand color --- */
.cta--primary {
  padding: 1.15em 2.8em;
  font-size: 0.95rem;
  background: var(--moss, #4A7C59);
  color: white;
  border-color: var(--moss, #4A7C59);
}
.cta--primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--deep-fern, #2B5438);
  transition: left 0.3s; z-index: -1;
}
.cta--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.35);
}
.cta--primary:hover::before { left: 0; }

/* --- Secondary: plain text, subtle hover --- */
.cta--secondary {
  background: white; color: var(--moss, #4A7C59);
  border-color: transparent;
}
.cta--secondary:hover {
  background: var(--kinako, #F2EBD9);
  color: var(--sumi, #1C1C1C);
}

/* --- Secondary bordered: plain + visible border --- */
.cta--secondary-border {
  background: white; color: var(--sumi, #1C1C1C);
  border-color: var(--washi, #E4DDD0);
}
.cta--secondary-border:hover {
  border-color: var(--driftwood, #C8BFA8);
  background: var(--kinako, #F2EBD9);
}

/* --- Secondary colored: border + text in brand color --- */
.cta--secondary-color {
  background: transparent; color: var(--moss, #4A7C59);
  border-color: var(--moss, #4A7C59);
}
.cta--secondary-color:hover {
  background: var(--moss, #4A7C59);
  color: white;
}

/* --- Secondary underline: minimal, text-link feel --- */
.cta--secondary-line {
  background: transparent; color: var(--moss, #4A7C59);
  border: none; border-radius: 0;
  padding-left: 0; padding-right: 0;
  border-bottom: 2px solid var(--moss, #4A7C59);
}
.cta--secondary-line:hover {
  color: var(--deep-fern, #2B5438);
  border-bottom-color: var(--deep-fern, #2B5438);
}

/* --- Modifiers --- */
.cta--block { width: 100%; text-align: center; }


/* === COMPONENT: brand === */
/* ============================================================
   THEME: Waconia Dispensary  —  "Waconia's own cannabis dispensary."
   Lakeside-natural identity pulled from the client's WordPress
   wordmark (pale-green cannabis-leaf-over-water emblem, built
   light-on-dark). Deep-water canvas, pale leaf-green + warm gold,
   Barlow Condensed / Inter.

   Delivered via the tenant `brand` component (TKT-104 scope =
   tenant_canon only). render.py does not guarantee this component's
   CSS bundles after the shared component CSS, so the dark-surface
   inversions of the light-built shared components use !important to
   win regardless of bundle order (same discipline as
   themes/newbrighton/theme.css).
   ============================================================ */
:root {
  /* ---- Brand palette (from the WP wordmark) ---- */
  --water-abyss: #071b22;   /* page bg — deep lake */
  --water-deep:  #0a232c;   /* lifted panels / footer */
  --water-2:     #0f2f3a;   /* card surface */
  --leaf:        #a9d18a;   /* pale leaf-green — primary accent */
  --leaf-bright: #c3e2a6;   /* headline gradient top */
  --leaf-deep:   #6f9a5a;   /* hover / pressed */
  --gold:        #d8c37c;   /* warm gold — secondary accent */
  --gold-deep:   #b89a4e;
  --mist:        rgba(232, 242, 236, 0.60);
  --white:       #eef5ef;
  --line:        rgba(232, 242, 236, 0.10);
  --line-leaf:   rgba(169, 209, 138, 0.24);

  /* ---- Typography ---- */
  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: var(--font-display);

  /* ---- Layout ---- */
  --header-h: 76px;
  --header-logo-w: auto;
  --header-logo-h: 54px;

  /* ---- Component-facing semantic tokens ---- */
  --body-bg: var(--water-abyss);
  --body-fg: var(--white);
  --heading: var(--white);
  --heading-strong: var(--leaf);
  --link: var(--leaf);
  --link-hover: var(--gold);

  --header-bg: rgba(7, 27, 34, 0.86);
  --footer-bg: var(--water-deep);
  --footer-accent: var(--leaf);

  /* ---- Shared-component semantic aliases (dark inversion) ---- */
  --moss: var(--leaf);
  --deep-fern: var(--leaf-deep);
  --washi: var(--line);
  --kinako: var(--water-2);
  --shoji: var(--water-deep);
  --fog: var(--mist);
  --charcoal: rgba(232, 242, 236, 0.82);
  --sumi: var(--white);
  --yuzu: var(--leaf);

  /* Wave divider (lake motif) */
  --divider-wave-front: var(--gold);
  --divider-wave-back: rgba(169, 209, 138, 0.30);
  --divider-wave-bg: transparent;

  --hero-bg-image: none;
  --hero-overlay: none;
  --about-bg: linear-gradient(135deg, var(--water-deep) 0%, #0b2833 100%);
}

/* Deep-water canvas: a soft vertical depth gradient + a faint lake-light
   glow near the top. No external texture dependency. */
body {
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(169, 209, 138, 0.10), transparent 60%),
    linear-gradient(180deg, #08202884 0%, #071b22 42%, #061319 100%),
    var(--water-abyss) !important;
  color: var(--white);
}
/* Fixed attachment only on larger viewports — on mobile (esp. iOS Safari)
   it forces expensive repaints on scroll, so phones keep the default. */
@media (min-width: 768px) {
  body { background-attachment: fixed !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--white);
}

/* Eyebrows / labels — condensed, tracked, gold voice */
.story__eyebrow, .reviews__eyebrow, .featureimg__cap span,
.quickfacts__label, .email-signup__sub {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============================================================
   HEADER — translucent water bar, pale wordmark
   ============================================================ */
.site-header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(10px);
}
.site-header .nav-link, .site-header a { color: var(--white) !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--leaf) !important; }
.header__logo-img { height: var(--header-logo-h); width: auto; }
.header__cta {
  background: var(--leaf) !important;
  color: var(--water-abyss) !important;
  border-color: var(--leaf) !important;
}
.header__cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--water-abyss) !important; }

/* ============================================================
   HERO — lake-light glow behind the wordmark
   ============================================================ */
/* Topographic hero — leaf/gold shoreline contours on deep water
   (img/hero-topo.jpg, from img/hero-topo_gen.png master). Layers, top→down:
   1) vertical fade so the image melts into the page at the bottom edge,
   2) radial center-darken so the wordmark + copy sit on calm water,
   3) the contour image, 4) abyss base. Hardcoded url (not --hero-bg-image)
   because theme.css/brand.css bundle order isn't guaranteed. */
.hero {
  background:
    linear-gradient(180deg, rgba(7, 27, 34, 0.30) 0%, rgba(7, 27, 34, 0) 34%, rgba(7, 27, 34, 0.10) 62%, rgba(7, 27, 34, 0.82) 92%, #071b22 100%),
    radial-gradient(ellipse 66% 58% at 50% 46%, rgba(7, 27, 34, 0.78) 0%, rgba(7, 27, 34, 0.44) 52%, rgba(7, 27, 34, 0.08) 100%),
    url('/img/hero-topo.jpg') center / cover no-repeat,
    var(--water-abyss) !important;
  min-height: 72vh !important;
  align-items: center !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}
.hero::before {
  content: '' !important;
  position: absolute;
  width: 780px; height: 780px;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(169, 209, 138, 0.14) 0%,
    rgba(216, 195, 124, 0.06) 44%,
    transparent 70%) !important;
  pointer-events: none; z-index: 0;
  animation: waconiaGlow 7s ease-in-out infinite;
}
@keyframes waconiaGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 0.72; }
}
.hero__wrap, .hero__main { position: relative; z-index: 1; }
/* No hero image → collapse the 2-col grid to one centered column so the
   wordmark/copy sit dead-center instead of left-of-center at desktop. */
.hero__wrap { grid-template-columns: 1fr !important; }
.hero__main { padding: 4rem 1.5rem !important; max-width: 860px; margin: 0 auto; align-items: center !important; text-align: center !important; }
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--white) !important;
  text-shadow: 0 0 26px rgba(169, 209, 138, 0.30);
}
.hero__title .line-green, .hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--leaf-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle { color: var(--gold) !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero__desc { color: var(--mist) !important; font-family: var(--font-body); max-width: 620px; margin-left: auto; margin-right: auto; }
.hero__sidebar { justify-content: center; }
/* Single "Coming soon" card — roomier padding so the address isn't edge-tight,
   and cap width so it reads as a tidy pill rather than stretching full-column. */
.hero__sidebar .info-card { padding: 1.25rem 2.5rem !important; }
.hero__sidebar .info-card__text { white-space: nowrap; }
.hero__sidebar div, .hero__sidebar .info-card { color: var(--white) !important; }

/* ============================================================
   CTAs — leaf fill / water ink; gold-ghost secondary
   ============================================================ */
.cta {
  border-radius: 3px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  padding: 14px 30px !important;
  line-height: 1 !important;
}
.hero__ctas { gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 767px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .cta { width: 100%; max-width: 320px; text-align: center; }
}
.cta--primary {
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep)) !important;
  border-color: var(--leaf) !important;
  color: var(--water-abyss) !important;
}
.cta--primary:hover {
  color: var(--water-abyss) !important;
  box-shadow: 0 0 28px rgba(169, 209, 138, 0.38);
}
.cta--secondary {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid var(--line-leaf) !important;
}
.cta--secondary:hover { border-color: var(--gold) !important; color: var(--gold) !important; }

/* ============================================================
   DARK-SURFACE INVERSION for the light-built shared sections
   ============================================================ */
.about, .story, .visit, .reviews, .map,
.section, .email-signup, .quickfacts {
  background: transparent !important;
  color: var(--white);
}
.story__deck, .visit__card p { color: var(--mist) !important; }
.story h2, .visit h2, .email-signup__title { color: var(--white) !important; }
.story__eyebrow { color: var(--gold) !important; }
.story__title em, .story h2 em { color: var(--leaf); font-style: normal; }
.story__quote, .story blockquote { color: var(--leaf) !important; border: 0 !important; }
.story__quote-attr { color: var(--gold) !important; }

/* quick-facts band */
.quickfacts {
  background: rgba(15, 47, 58, 0.55) !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}
.quickfacts__label { color: var(--leaf) !important; }
.quickfacts__value, .quickfacts__value a { color: var(--white) !important; }

/* Cards — raised water panels with a leaf key line */
.info-card, .visit__card, .story__pillar {
  background: rgba(15, 47, 58, 0.72) !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--leaf) !important;
  backdrop-filter: blur(6px);
  color: var(--white) !important;
}
.info-card__title { color: var(--white) !important; }
.info-card__text { color: var(--mist) !important; }
.story__pillar-label { color: var(--leaf) !important; letter-spacing: 0.16em; text-transform: uppercase; }
.story__pillar-title { color: var(--white) !important; }
.story__pillar-body { color: var(--mist) !important; }

/* Email signup — panel + gold focus */
.email-signup { padding: 2rem 0 3rem; }
.email-signup__inner { text-align: center; }
.email-signup__sub { color: var(--mist) !important; }
.email-signup__form input {
  background: rgba(7, 27, 34, 0.7) !important;
  border: 1px solid var(--line-leaf) !important;
  color: var(--white) !important;
}
.email-signup__form input::placeholder { color: rgba(232, 242, 236, 0.4) !important; }
.email-signup__response { color: var(--leaf) !important; }

/* Map — framed, dimmed to sit in the dark page */
.map-section iframe { border: 1px solid var(--line-leaf); filter: saturate(0.9) brightness(0.92); }

/* ============================================================
   FOOTER — deep water, leaf accent streak
   ============================================================ */
.site-footer { background: var(--footer-bg) !important; color: var(--mist) !important; }
.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(169, 209, 138, 0.5), transparent) !important;
}
.site-footer h3, .footer__center h3 { font-family: var(--font-display); color: var(--white) !important; }
.footer__tagline, .footer__desc { color: var(--mist) !important; }
.site-footer a { color: var(--leaf) !important; }
.site-footer a:hover { color: var(--gold) !important; }
.ht-credit, .ht-credit a { color: rgba(232, 242, 236, 0.32) !important; }

/* ============================================================
   AGE GATE — lakeside skin, wordmark on the card
   ============================================================ */
.age-gate__backdrop { background: rgba(6, 19, 25, 0.94) !important; }
.age-gate__card {
  background: rgba(10, 35, 44, 0.90) !important;
  border: 1px solid var(--line-leaf) !important;
  backdrop-filter: blur(14px);
  text-align: center;
  border-radius: 6px;
}
.age-gate__card::before {
  content: '';
  display: block;
  width: 220px; height: 150px;
  margin: 2px auto 14px;
  background: url('/img/logo.png') center/contain no-repeat;
  filter: drop-shadow(0 0 20px rgba(169, 209, 138, 0.35));
}
.age-gate__brand { display: none; }
.age-gate__headline {
  font-family: var(--font-display) !important;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.age-gate__headline em { color: var(--leaf); font-style: normal; }
.age-gate__sub { color: var(--mist) !important; }
.age-gate__legal { color: rgba(232, 242, 236, 0.30) !important; }
/* 3b — the lakeside logo makes the card tall; the gate is position:fixed with
   body scroll locked, so on a short phone viewport center-alignment clips the
   buttons. Top-align, let the gate scroll, and shrink the logo on mobile. */
@media (max-width: 600px) {
  .age-gate { align-items: flex-start; overflow-y: auto; padding-block: 1.25rem; }
  .age-gate__card::before { width: 150px; height: 100px; margin-bottom: 10px; }
}

/* ============================================================
   WAVE DIVIDER — lake ripple, gold on water
   ============================================================ */
.botanical-divider--wave { padding: 1.25rem 0; }
.botanical-divider--wave .bd-wave { width: min(480px, 62%); }

/* ============================================================
   PROSE (legal pages) — legible light copy on water
   ============================================================ */
.prose-section { background: transparent !important; }
.prose-title, .prose-body h1, .prose-body h2, .prose-body h3 { color: var(--white) !important; }
.prose-body, .prose-body p, .prose-body li { color: var(--mist) !important; }
.prose-updated { color: rgba(232, 242, 236, 0.4) !important; }
.prose-body a { color: var(--leaf) !important; }


/* === COMPONENT: age-gate === */
/* ============================================
   AGE GATE — first-paint modal, sessionStorage-backed
   ============================================ */
.age-gate {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.age-verified .age-gate { display: none; }

.age-gate__backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 28, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: ageGateFadeIn 0.35s ease-out both;
}

.age-gate__card {
  position: relative;
  max-width: 440px; width: 100%;
  padding: 2.5rem 2rem;
  background: var(--shoji, #FAFAF5);
  border-radius: 12px;
  border: 2px solid var(--washi, #E4DDD0);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: ageGatePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.age-gate__brand {
  font-family: var(--font-display, 'DM Sans', sans-serif);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--moss, #4A7C59);
  margin-bottom: 1.25rem;
}

.age-gate__headline {
  font-family: var(--font-display, 'DM Sans', sans-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--heading-strong, #2B5438);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.age-gate__sub {
  font-size: 0.95rem;
  color: var(--charcoal, #4A4A4A);
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

.age-gate__actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: stretch;
}

/* Matched button pair, theme-proof.
   The shared .cta--secondary is `background:white; border:transparent`, which
   vanishes on a near-white card (the "invisible-CTA trap") and clashes on a
   dark one. Several tenant themes also redefine `.cta` with no border, so the
   gate's buttons must declare the FULL border (style included) explicitly —
   never inherit it from the shared base. The deny button reuses --charcoal
   (the same token the sub-headline uses, so it's known-legible on every
   theme's card) with a currentColor border. */
.age-gate__actions .cta {
  width: 100%; text-align: center;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 2px solid transparent;
}
.age-gate__actions .cta:focus-visible {
  outline: 2px solid var(--moss, #4A7C59);
  outline-offset: 3px;
}
/* Primary: solid brand fill; border matches fill so there's no ring. */
.age-gate__actions .cta--primary {
  background: var(--moss, #4A7C59);
  color: white;
  border-color: var(--moss, #4A7C59);
}
/* Deny: visible bordered button on any card (border == legible text color). */
.age-gate__actions .cta--secondary {
  background: transparent;
  color: var(--charcoal, #4A4A4A);
  border-color: currentColor;
}
.age-gate__actions .cta--secondary:hover,
.age-gate__actions .cta--secondary:focus-visible {
  background: var(--charcoal, #4A4A4A);
  color: var(--shoji, #FAFAF5);
}

.age-gate__legal {
  font-size: 0.75rem;
  color: var(--fog, #8A8A8A);
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--washi, #E4DDD0);
  line-height: 1.5;
}

/* Lock page scroll while gate is active */
body.age-gate-active { overflow: hidden; }

@keyframes ageGateFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ageGatePop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .age-gate__card { padding: 2rem 1.5rem; }
}


/* === COMPONENT: header === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header-bg, rgba(250, 250, 245, 0.95));
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--washi, #E4DDD0);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 0 1.5rem;
}
.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo img,
.header__logo .header__logo-img {
  width: var(--header-logo-w, 120px);
  height: var(--header-logo-h, 40px);
  display: block;
  object-fit: contain;
  transition: transform 0.3s;
}
.header__nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 2.5rem; list-style: none; }
.nav-link {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fog, #8A8A8A); position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--moss, #4A7C59);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--moss, #4A7C59); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--sumi, #1C1C1C); white-space: nowrap;
  transition: color 0.2s;
}
.header__phone-icon {
  width: 1em; height: 1em; flex-shrink: 0;
  color: var(--moss, #4A7C59);
}
.header__phone:hover { color: var(--moss, #4A7C59); }
.header__cta {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--moss, #4A7C59);
  padding: 0.7em 1.5em; border: 2px solid var(--moss, #4A7C59);
  border-radius: 4px; transition: all 0.3s; white-space: nowrap;
}
.header__cta:hover {
  background: var(--moss, #4A7C59); color: white;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2.5px;
  background: var(--sumi, #1C1C1C); transition: all 0.3s; border-radius: 1px;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 980px) {
  .header__nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--header-bg, rgba(250, 250, 245, 0.98)); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--washi, #E4DDD0);
    flex-direction: column; padding: 1.5rem 0; z-index: 999;
  }
  .header__nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid var(--washi, #E4DDD0); }
  .nav-link::after { display: none; }
  .header__cta { display: none; }
  .header__phone { font-size: 0.8rem; }
  .mobile-menu-toggle { display: block; }
}


/* === COMPONENT: hero === */
.hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: var(--body-bg, #FAFAF5);
}
.hero__wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: center;
  width: 100%;
}
.hero__main {
  padding: 4rem 3rem 4rem 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  font-weight: 700; color: var(--heading-strong, #2B5438);
  margin-bottom: 0.4rem; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  word-spacing: 100vw;
  animation: fadeInUp 0.8s ease-out;
}
.hero__subtitle {
  font-size: 1.4rem; font-weight: 600; color: var(--moss, #4A7C59);
  margin-bottom: 0.3rem; letter-spacing: 0.03em;
  font-style: italic;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero__desc {
  font-size: 1rem; color: var(--charcoal, #4A4A4A);
  margin-bottom: 2rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero__ctas {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero__sidebar {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero__image {
  position: relative;
  height: 100%;
  min-height: calc(100vh - var(--header-h) - 2rem);
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__main { padding: 3rem 0; text-align: center; align-items: center; }
  .hero__image { min-height: 60vh; }
  .hero__sidebar { flex-direction: row; gap: 1rem; }
  .info-card { flex: 1; }
}
@media (max-width: 600px) {
  .hero__main { padding: 2rem 0; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__desc { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .hero__ctas { flex-direction: column; gap: 1rem; width: 100%; }
  .hero__ctas .cta { text-align: center; }
  .hero__image { min-height: 50vh; }
  .hero__sidebar { flex-direction: column; }
}

/* Hero CTAs — roomier on tablet/desktop. The compact mobile base (cta.css)
   looks clunky and undersized against a full-bleed hero on larger screens,
   so bump the padding (and a touch more gap) from tablet up. Mobile-first:
   the base stays untouched below 768px. Engine-wide — applies to every
   tenant's hero. */
@media (min-width: 768px) {
  .hero__ctas { gap: 1.5rem; }
  .hero__ctas .cta { padding: 1.1em 2.8em; }
  .hero__ctas .cta--primary { padding: 1.35em 3.4em; }
}


/* === COMPONENT: email-signup === */
.email-signup {
  padding: 4rem 0;
  background: var(--signup-bg, var(--sumi, #1C1C1C));
  color: var(--signup-fg, rgba(250,250,245,0.85));
  text-align: center;
}
.email-signup__inner { max-width: 520px; margin: 0 auto; }
.email-signup__title {
  font-size: 1.4rem; margin-bottom: 0.4rem;
  color: var(--signup-heading, white);
}
.email-signup__sub {
  font-size: 0.95rem; margin-bottom: 1.5rem;
  color: var(--signup-sub, rgba(250,250,245,0.6));
}
.email-signup__form {
  display: flex; gap: 0.5rem;
}
.email-signup__form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--signup-border, rgba(255,255,255,0.15));
  background: var(--signup-input-bg, rgba(255,255,255,0.08));
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
}
.email-signup__form input::placeholder { color: rgba(255,255,255,0.4); }
.email-signup__form .cta { flex-shrink: 0; padding: 0.85rem 1.8rem; }
.email-signup__response {
  margin-top: 0.75rem; font-size: 0.85rem;
  color: var(--signup-success, #7FB069);
  min-height: 1.2em;
}
@media (max-width: 600px) {
  .email-signup__form { flex-direction: column; }
  .email-signup__form .cta { width: 100%; text-align: center; }
}


/* === COMPONENT: divider === */
.botanical-divider { position: relative; overflow: hidden; transition: opacity 0.3s ease; }
/* Inline-SVG wave variant: a centered two-tone wave motif. Asset-free + fully
   reskinnable via CSS (the paths use stroke colors from the --divider-wave-*
   tokens). Inline SVG (not a CSS background) so it composites everywhere. */
.botanical-divider--wave {
  padding: 1.75rem 0;
  background-color: var(--divider-wave-bg, transparent);
  display: flex;
  justify-content: center;
}
.botanical-divider--wave .bd-wave {
  display: block;
  width: min(560px, 72%);
  height: auto;
}
.botanical-divider--wave .bd-wave__front { stroke: var(--divider-wave-front, #C4893B); }
.botanical-divider--wave .bd-wave__back  { stroke: var(--divider-wave-back, rgba(27, 45, 69, 0.4)); }
.botanical-divider--image {
  height: 120px;
  background: linear-gradient(90deg,
    rgba(74, 124, 89, 0.04) 0%,
    rgba(127, 176, 105, 0.08) 50%,
    rgba(74, 124, 89, 0.04) 100%);
  border-top: 1px solid var(--washi, #E4DDD0);
  border-bottom: 1px solid var(--washi, #E4DDD0);
  display: flex; align-items: center; justify-content: center;
}
.botanical-divider--image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.botanical-divider--accent {
  height: 180px; background: var(--shoji, #FAFAF5);
  display: flex; align-items: center; justify-content: center; padding: 2rem 0;
}
.botanical-divider--accent img {
  max-width: 300px; width: 80%; height: auto; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}


/* === COMPONENT: story === */
.story { background: var(--shoji, #FBF8F0); padding: 5.5rem 0; }
.story__head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.story__eyebrow {
  font-family: var(--font-body, sans-serif);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moss, #A04E38); margin-bottom: 0.8rem;
}
.story__title {
  font-family: var(--font-heading, serif); color: var(--heading-strong, #28435A);
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 1rem;
}
.story__deck { color: var(--fog, #5C544D); font-size: 1.1rem; line-height: 1.6; margin: 0; }
.story__pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1040px; margin: 0 auto;
}
.story__pillar {
  background: var(--kinako, #FBF1DD);
  border: 1px solid var(--washi, #F4E6CB);
  border-radius: 12px; padding: 2rem 1.8rem;
}
.story__pillar-label {
  font-family: var(--font-body, sans-serif); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--yuzu, #B8893E); font-weight: 700; margin-bottom: 0.8rem;
}
.story__pillar-title { font-family: var(--font-heading, serif); color: var(--heading-strong, #28435A); font-size: 1.3rem; margin: 0 0 0.6rem; }
.story__pillar-body { color: var(--fog, #5C544D); font-size: 1rem; line-height: 1.6; margin: 0; }
.story__quote { max-width: 760px; margin: 3rem auto 0; text-align: center; border: 0; padding: 0; }
.story__quote-text {
  font-family: var(--font-display, cursive);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--moss, #A04E38);
  line-height: 1.25; margin: 0 0 0.6rem;
}
.story__quote-attr {
  font-family: var(--font-body, sans-serif); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog, #5C544D); font-style: normal;
}
@media (max-width: 860px) { .story__pillars { grid-template-columns: 1fr; max-width: 480px; } }


/* === COMPONENT: quick-facts === */
.quickfacts {
  background: var(--heading-strong, #28435A);
  color: var(--washi, #F4E6CB);
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(244, 230, 203, 0.12);
}
.quickfacts__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.9rem 2.4rem;
}
.quickfacts__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-body, sans-serif);
}
.quickfacts__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yuzu, #B8893E);
  font-weight: 700;
}
.quickfacts__value {
  font-size: 0.95rem;
  color: var(--washi, #F4E6CB);
  font-weight: 500;
}
.quickfacts__value a { color: var(--washi, #F4E6CB); text-decoration: underline; }
@media (max-width: 700px) {
  .quickfacts__row { gap: 0.6rem 1.3rem; }
  .quickfacts__value { font-size: 0.85rem; }
}


/* === COMPONENT: visit === */
.visit { padding: 5rem 0; background: var(--shoji, #FAFAF5); }
.visit__card {
  background: linear-gradient(135deg, var(--kinako, #F2EBD9) 0%, var(--washi, #E4DDD0) 100%);
  padding: 4rem; border-radius: 12px;
  text-align: center;
  border: 2px solid var(--washi, #E4DDD0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 600px; margin: 0 auto;
}
.visit__card h2 { color: var(--heading-strong, #2B5438); margin-bottom: 2rem; }
.visit__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.visit__item strong {
  display: block; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fog, #8A8A8A); margin-bottom: 0.6rem; font-weight: 600;
}
.visit__item p { font-size: 1rem; color: var(--charcoal, #4A4A4A); line-height: 1.7; margin: 0; }
/* An orphaned final item (odd count in the 2-col grid) spans the full row so it
   centers under the pair above, instead of hanging alone in the left column. */
.visit__grid > .visit__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.visit__legal {
  font-size: 0.85rem; color: var(--fog, #8A8A8A);
  margin: 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.visit__item--social a {
  color: var(--link, var(--heading-strong, #2B5438));
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.visit__item--social a:hover { border-color: currentColor; }

@media (max-width: 980px) { .visit__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .visit { padding: 3rem 0; }
  .visit__card { padding: 2rem; }
  .visit__card h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
}


/* === COMPONENT: map === */
.map-section {
  width: 100%;
  background: var(--kinako, #F2EBD9);
}
.map-section iframe {
  width: 100%;
  height: var(--map-h, 420px);
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .map-section iframe { height: 300px; }
}


/* === COMPONENT: footer === */
.site-footer {
  background: var(--footer-bg, #1C1C1C);
  color: rgba(250, 250, 245, 0.7);
  padding: 4rem 0;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(127, 176, 105, 0.3), transparent);
}
.footer__vinyl {
  text-align: center; padding: 3rem 0;
  border-bottom: 1px solid rgba(250, 250, 245, 0.1);
  position: relative;
}
.footer__center h3 {
  font-family: var(--font-display, 'DM Sans', sans-serif);
  font-size: 1.6rem; color: white;
  margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.footer__tagline {
  color: var(--footer-accent, #E2B84A);
  font-weight: 600; font-size: 0.95rem;
  margin-bottom: 0.3rem; letter-spacing: 0.05em;
}
.footer__desc {
  font-size: 0.85rem;
  color: rgba(250, 250, 245, 0.5);
  letter-spacing: 0.05em; margin: 0;
}
.footer__copy {
  text-align: center; padding-top: 2rem;
  font-size: 0.8rem; color: rgba(250, 250, 245, 0.4);
}
.footer__warning {
  max-width: 70ch;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 245, 0.12);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(250, 250, 245, 0.7);
}
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem; margin-bottom: 1rem;
}
.footer__legal-link {
  color: rgba(250, 250, 245, 0.6);
  font-size: 0.8rem; text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__legal-link:hover {
  color: white;
  border-bottom-color: rgba(250, 250, 245, 0.4);
}
@media (max-width: 600px) {
  .site-footer { padding: 2rem 0; }
  .footer__center h3 { font-size: 1.3rem; }
  .footer__tagline { font-size: 0.85rem; }
}


/* === COMPONENT: prose === */
.prose-section {
  padding: calc(var(--header-height, 80px) + 3rem) 0 4rem;
  background: var(--body-bg);
  color: var(--body-fg);
}

.prose-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose-title {
  font-family: var(--heading-font, inherit);
  color: var(--heading-strong, var(--body-fg));
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.prose-updated {
  color: var(--muted, rgba(0,0,0,0.55));
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.prose-body {
  line-height: 1.7;
  font-size: 1rem;
}

.prose-body h2 {
  font-family: var(--heading-font, inherit);
  color: var(--heading-strong, var(--body-fg));
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

.prose-body h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.prose-body p { margin: 0 0 1rem; }
.prose-body ul, .prose-body ol { margin: 0 0 1rem 1.25rem; }
.prose-body li { margin-bottom: 0.4rem; }
.prose-body a { color: var(--link, var(--heading-strong)); text-decoration: underline; }
.prose-body strong { color: var(--heading-strong, inherit); }

