/* ============================================================
   CLIQUE CANNABIS — SITE STYLES
   Shared across index / originals / mindsets / mighties
   + privacy-policy / terms / dispensary-assets.
   To re-theme the whole site, edit the tokens in :root below.
   ============================================================ */

:root {
  /* ---- COLOR TOKENS (edit here to re-theme) ---- */
  --fig:        #2B1620;   /* deep aubergine — dark grounds, hero */
  --fig-soft:   #3A2029;   /* raised dark surfaces on fig */
  --parchment:  #F4EEE1;   /* warm recipe-card paper — light grounds */
  --paper-2:    #EAE1CE;   /* deeper paper — cards on parchment */
  --herb:       #40614A;   /* garden green — botanicals, secondary */
  --saffron:    #E0A02B;   /* spice gold — the one bright accent */
  --plum:       #7A3B5D;   /* berry plum — links, small accents */
  --ink:        #1E1519;   /* body text on light */
  --ink-soft:   #5B4E52;   /* muted text on light */
  --cream-soft: #C9B9A6;   /* muted text on fig */

  /* ---- TYPE ---- */
  --display: "Fraunces", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- SCALE ---- */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- TYPE HELPERS ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 500;
}
.eyebrow--ink { color: var(--herb); }
.eyebrow--dark { color: var(--fig); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

.lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }

/* ---- LAYOUT ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4rem, 9vw, 7.5rem); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.9rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--saffron); color: var(--fig); }
.btn--solid:hover { background: #eeae3c; }
.btn--ghost { border-color: currentColor; color: var(--parchment); }
.btn--ghost:hover { background: var(--parchment); color: var(--fig); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--parchment); }

/* ============================================================
   HEADER / NAV
   (markup pattern from main.js: .nav > .nav__inner, .nav__links,
   .nav__actions, .nav__hamburger + fullscreen .mobile-menu)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,21,25,0.09);
  transition: box-shadow .3s ease;
}
.nav--scrolled { box-shadow: 0 10px 30px rgba(30,21,25,0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__link,
.nav__btn {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); opacity: 0.8; transition: opacity .2s, color .2s;
}
.nav__link:hover, .nav__btn:hover { opacity: 1; color: var(--plum); }
.nav__actions { display: flex; align-items: center; gap: 1.6rem; }
.nav__cta { color: var(--plum) !important; opacity: 1 !important; }
.nav__hamburger { display: none; background: none; border: 0; cursor: pointer; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: block; }
}

/* Fullscreen mobile menu (toggled by main.js) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--parchment);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--mono); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--plum); }
.mobile-menu__close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-size: 2rem; background: none; border: 0; color: var(--ink); cursor: pointer; line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--fig); color: var(--parchment); overflow: hidden;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42; filter: saturate(1.05);
}
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,22,32,.55) 0%, rgba(43,22,32,.15) 40%, rgba(43,22,32,.9) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin: 1rem 0 1.4rem;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--saffron); }
.hero__sub { color: var(--cream-soft); font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 42ch; margin-bottom: 2rem; line-height: 1.55; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   THE FORMULA (signature)
   ============================================================ */
.formula { background: var(--parchment); text-align: center; }
.formula__head { max-width: 40ch; margin: 0 auto 3rem; }
.formula__head h2 { margin: 0.8rem 0 1rem; }
.formula__head h2 em { font-style: italic; color: var(--plum); }

.equation {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 0.6rem; max-width: 980px; margin: 0 auto;
}
.term {
  flex: 1 1 150px; min-width: 130px; background: var(--paper-2);
  border: 1px solid rgba(30,21,25,0.08); border-radius: 4px;
  padding: 1.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  transition: transform .25s ease, border-color .25s ease;
}
.term:hover { transform: translateY(-4px); border-color: var(--herb); }
.term__ico { width: 42px; height: 42px; color: var(--herb); }
.term__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.op { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.8rem; color: var(--saffron); flex: 0 0 auto; padding: 0 .2rem; }
.term--result { background: var(--herb); border-color: var(--herb); color: var(--parchment); flex: 1 1 190px; }
.term--result .term__ico { color: var(--saffron); }
.term--result .term__label { color: var(--parchment); font-size: 0.9rem; }
.formula__note { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 2.5rem; letter-spacing: 0.04em; }
.formula__note strong { color: var(--plum); font-weight: 500; }

@media (max-width: 720px) {
  .equation { flex-direction: column; align-items: stretch; }
  .op { transform: rotate(90deg); font-size: 1.4rem; padding: .1rem 0; }
  .term, .term--result { flex: 1 1 auto; }
}

/* ============================================================
   NARRATIVE BAND — cannabis doesn't grow alone
   ============================================================ */
.band { background: var(--fig); color: var(--parchment); text-align: center; }
.band .wrap { max-width: 900px; }
.band__quote { font-family: var(--display); font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; }
.band__quote em { font-style: italic; color: var(--saffron); }
.band__body { color: var(--cream-soft); max-width: 56ch; margin: 2rem auto 0; font-size: 1.08rem; }

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections { background: var(--paper-2); }
.section-head { max-width: 52ch; margin-bottom: 3.5rem; }
.section-head h2 { margin: 0.9rem 0 1rem; }
.section-head h2 em { font-style: italic; color: var(--plum); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--parchment); border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(30,21,25,0.08); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(43,22,32,0.14); }
.card__media { background: var(--fig); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: 82%; height: 82%; object-fit: contain; }
.card__body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.card__meta .name { font-family: var(--display); font-size: 1.5rem; }
.card__meta .dose { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--saffron); text-transform: uppercase; }
.card__role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--herb); margin-bottom: 0.8rem; }
.card__desc { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }
.card__link { margin-top: auto; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); display: inline-flex; align-items: center; gap: 0.4rem; }
.card__link::after { content: "→"; transition: transform .2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ============================================================
   CRAFT PILLARS
   ============================================================ */
.craft { background: var(--parchment); }
.craft__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .craft__grid { grid-template-columns: 1fr; } }
.craft__head h2 { margin: 0.9rem 0 1.3rem; }
.craft__head h2 em { font-style: italic; color: var(--herb); }
.pillars { display: grid; gap: 1.6rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(30,21,25,0.1); }
.pillar:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar__ico { flex: 0 0 40px; height: 40px; color: var(--herb); }
.pillar h3 { font-size: 1.15rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; margin-bottom: 0.3rem; }
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--herb); color: var(--parchment); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }
.story h2 { margin: 0.9rem 0 1.4rem; }
.story h2 em { font-style: italic; color: var(--saffron); }
.story p { color: #E7DECB; margin-bottom: 1.1rem; max-width: 52ch; }
.story__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.story__imgs img { border-radius: 5px; height: 100%; object-fit: cover; width: 100%; }
.story__imgs img:first-child { grid-column: 1 / -1; aspect-ratio: 16/8; }
.story__imgs img:not(:first-child) { aspect-ratio: 1; }

/* ============================================================
   LOCATIONS — big count + live Leaflet map (js/dispensaries.js)
   ============================================================ */
.locations { background: var(--fig); color: var(--parchment); text-align: center; padding-bottom: 0; }
.locations .count { font-family: var(--display); font-size: clamp(3.4rem, 12vw, 7rem); color: var(--saffron); line-height: 1; }
.locations .count strong { font-weight: inherit; } /* <strong id="store-count"> markup is required by scripts/generate-dispensaries.mjs */
.locations h2 { margin-top: 0.6rem; }
.locations .wrap > p { color: var(--cream-soft); max-width: 44ch; margin: 1.2rem auto 0; }
.locations__cta { margin-top: 2rem; }

.locations__map-wrap {
  display: grid; grid-template-columns: 360px 1fr;
  height: 70vh; min-height: 520px;
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: left;
}
.locations__sidebar {
  background: var(--fig-soft); color: var(--parchment);
  display: flex; flex-direction: column; overflow: hidden;
}
.locations__search { padding: 1.2rem; border-bottom: 1px solid rgba(244,238,225,0.08); }
.locations__search-input {
  width: 100%; padding: 0.8rem 1rem;
  font-family: var(--body); font-size: 0.88rem;
  background: rgba(244,238,225,0.06);
  border: 1px solid rgba(244,238,225,0.12); border-radius: 2px;
  color: var(--parchment); outline: none;
  transition: border-color .3s ease;
}
.locations__search-input::placeholder { color: rgba(244,238,225,0.35); }
.locations__search-input:focus { border-color: var(--saffron); }
.locations__list { flex: 1; overflow-y: auto; list-style: none; }
.locations__list::-webkit-scrollbar { width: 4px; }
.locations__list::-webkit-scrollbar-track { background: transparent; }
.locations__list::-webkit-scrollbar-thumb { background: rgba(244,238,225,0.18); }
.locations__item {
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(244,238,225,0.06);
  cursor: pointer; transition: background .2s ease;
}
.locations__item:hover, .locations__item.active { background: rgba(244,238,225,0.07); }
.locations__item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.locations__item-address { font-size: 0.78rem; color: var(--cream-soft); line-height: 1.5; }
.locations__item-link {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--saffron); transition: opacity .2s ease;
}
.locations__item-link:hover { opacity: 0.7; }
.locations__map { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .locations__map-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .locations__sidebar { max-height: 320px; order: 2; }
  .locations__map { height: 420px; order: 1; }
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  box-shadow: 0 10px 30px rgba(43,22,32,0.25) !important;
  padding: 0 !important;
  background: var(--parchment) !important;
}
.leaflet-popup-content { margin: 0 !important; font-family: var(--body) !important; }
.leaflet-popup-tip { box-shadow: none !important; background: var(--parchment) !important; }
.map-popup { padding: 1rem 1.2rem; min-width: 200px; }
.map-popup__name { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.2rem; }
.map-popup__address { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.5rem; }
.map-popup__link {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--plum);
}
.map-popup__link:hover { opacity: 0.7; }

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */
.instagram { background: var(--parchment); }
.instagram__header { text-align: center; max-width: 52ch; margin: 0 auto 3rem; }
.instagram__header h2 { margin: 0.9rem 0 1rem; }
.instagram__header > p { color: var(--ink-soft); }
.instagram__feed { min-height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.instagram__feed iframe { width: 100% !important; border: none; }
.instagram__cta { text-align: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper-2); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.7rem; }
.faq__item {
  background: var(--parchment); border: 1px solid rgba(30,21,25,0.08); border-radius: 6px;
  padding: 0; overflow: hidden;
}
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem;
  font-family: var(--body); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--display); font-size: 1.4rem; color: var(--herb);
  transition: transform .25s ease; line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); font-size: 0.96rem; }
.faq__item > p a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   NEWSLETTER SIGNUP (wired form → Google Sheets via main.js)
   ============================================================ */
.signup { background: var(--saffron); color: var(--fig); text-align: center; }
.signup h2 { margin: 0.8rem 0 1rem; }
.signup > .wrap > p { max-width: 46ch; margin: 0 auto 2rem; color: #4a2d18; }
.signup__form { max-width: 560px; margin: 0 auto; }

/* Shared form styles (newsletter section + join/password popups) */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.7rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__input {
  width: 100%; padding: 0.95rem 1.1rem;
  font-family: var(--body); font-size: 1rem;
  background: var(--parchment); color: var(--ink);
  border: 1px solid var(--fig); border-radius: 2px;
  outline: none; transition: border-color .3s ease;
}
.form__input::placeholder { color: var(--ink-soft); }
.form__input:focus { outline: 2px solid var(--fig); outline-offset: 2px; }
.form__input[type="date"] { color: var(--ink-soft); }
.form__input[type="date"].has-value { color: var(--ink); }
.form__input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.form__submit { width: 100%; margin-top: 0.3rem; justify-content: center; }

.newsletter__success {
  display: none; font-family: var(--mono); font-size: 0.85rem; color: var(--fig); margin-top: 1.4rem;
}
.newsletter__success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--fig); color: var(--cream-soft); padding-block: 4rem 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand img { height: 26px; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: 0.94rem; }
.footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment); margin-bottom: 1rem; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.94rem; opacity: 0.85; }
.footer ul a:hover { opacity: 1; color: var(--saffron); }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.8rem; font-size: 0.78rem; line-height: 1.7; }
.footer__legal .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer__legal .warn { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; max-width: 90ch; }
.footer__legal a:hover { color: var(--saffron); }

/* ============================================================
   AGE GATE (ids + localStorage handled by main.js)
   ============================================================ */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(20,10,15,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-gate--hidden { display: none; }
.age-gate__content {
  background: var(--parchment); border-radius: 8px;
  max-width: 440px; width: 100%; padding: 2.6rem 2.2rem; text-align: center;
}
.age-gate__content img { height: 30px; margin: 0 auto 1.4rem; }
.age-gate__content h2 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.age-gate__content p { color: var(--ink-soft); margin-bottom: 1.6rem; font-size: 0.96rem; }
.age-gate__buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   POPUPS (join popup + dispensary-assets password modal)
   ============================================================ */
.popup {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.popup.open { opacity: 1; visibility: visible; }
.popup__overlay {
  position: absolute; inset: 0;
  background: rgba(20,10,15,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.popup__card {
  position: relative; background: var(--parchment); color: var(--ink);
  border-radius: 8px; max-width: 520px; width: 100%;
  padding: 2.6rem 2.2rem; text-align: center;
  transform: translateY(24px);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.popup.open .popup__card { transform: translateY(0); }
.popup__close {
  position: absolute; top: 0.9rem; right: 1.2rem;
  font-size: 1.8rem; color: var(--ink); background: none; border: none;
  cursor: pointer; opacity: 0.4; transition: opacity .3s ease; line-height: 1;
}
.popup__close:hover { opacity: 1; }
.popup__card .eyebrow { display: block; margin-bottom: 0.7rem; }
.popup__card h2 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.popup__card > p { color: var(--ink-soft); margin-bottom: 1.6rem; font-size: 0.96rem; }
.popup__form { max-width: 100%; }
.popup__success {
  display: none; font-family: var(--mono); font-size: 0.85rem; color: var(--herb); margin-top: 1.4rem;
}
.popup__success.visible { display: block; }

/* Password modal bits */
.form__input--full { width: 100%; margin-bottom: 0.6rem; }
.password-error { display: none; color: #a23; font-size: 0.85rem; margin-bottom: 0.8rem; }
.password-error.visible { display: block; }

/* ============================================================
   PRODUCT PAGES (originals / mindsets / mighties)
   ============================================================ */
.p-hero { background: var(--fig); color: var(--parchment); padding-block: clamp(5rem,10vw,8rem) clamp(3rem,7vw,5rem); text-align: center; margin-top: 72px; }
/* Per-line fruit artwork behind a deep fig overlay (Box asset library) */
.p-hero--originals,
.p-hero--mindsets,
.p-hero--mighties { background-size: cover; background-position: center; }
.p-hero--originals { background-image: linear-gradient(rgba(43,22,32,0.8), rgba(43,22,32,0.92)), url("/img/hero-originals.jpg"); }
.p-hero--mindsets { background-image: linear-gradient(rgba(43,22,32,0.8), rgba(43,22,32,0.92)), url("/img/hero-mindsets.jpg"); }
.p-hero--mighties { background-image: linear-gradient(rgba(43,22,32,0.8), rgba(43,22,32,0.92)), url("/img/hero-mighties.jpg"); }
.p-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 1rem 0 1.1rem; }
.p-hero h1 em { font-style: italic; color: var(--saffron); }
.p-hero p { color: var(--cream-soft); max-width: 52ch; margin: 0 auto; font-size: 1.1rem; }
.p-hero .dose-tag { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron); margin-top: 1.4rem; display: inline-block; }

.flavors { background: var(--parchment); }
.flavor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.flavor {
  background: var(--paper-2); border: 1px solid rgba(30,21,25,0.08); border-radius: 6px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.flavor:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(43,22,32,0.14); }
.flavor__media { background: var(--fig); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.flavor__media img { width: 80%; height: 80%; object-fit: contain; }
.flavor__media--placeholder span {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-soft); opacity: 0.6;
}
.flavor__body { padding: 1.3rem 1.4rem 1.6rem; }
.flavor__body .role { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--herb); }
.flavor__body h3 { font-size: 1.5rem; margin: 0.35rem 0 0.5rem; }
.flavor__body p { color: var(--ink-soft); font-size: 0.94rem; }
.flavor__body .soon { display: inline-block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); border: 1px solid var(--plum); border-radius: 2px; padding: 0.2rem 0.5rem; }

.cta-band { background: var(--herb); color: var(--parchment); text-align: center; }
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band h2 em { font-style: italic; color: var(--saffron); }
.cta-band p { color: #E7DECB; max-width: 48ch; margin: 0 auto 2rem; }

/* ============================================================
   LEGAL PAGES (privacy-policy, terms)
   ============================================================ */
.legal { padding: calc(72px + 4rem) 0 5rem; background: var(--parchment); min-height: 100vh; }
.legal__content { max-width: 720px; }
.legal__content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.legal__updated { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 3rem; }
.legal__content h2 {
  font-family: var(--body); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  margin-top: 2.5rem; margin-bottom: 0.75rem;
}
.legal__content p { font-size: 0.94rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 0.75rem; }
.legal__content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal__content ul li { font-size: 0.94rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 0.4rem; }
.legal__content a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; transition: opacity .3s ease; }
.legal__content a:hover { opacity: 0.6; }

/* ============================================================
   DISPENSARY ASSETS PAGE
   ============================================================ */
.detail-hero { padding: calc(72px + 4rem) 0 3rem; text-align: center; }
.detail-hero__back {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--plum); margin-bottom: 2rem; transition: opacity .3s ease;
}
.detail-hero__back:hover { opacity: 0.6; }
.detail-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.detail-hero p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 540px; margin: 0 auto; }

.assets { padding: 0 0 5rem; }
.assets__breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-bottom: 2rem; font-size: 0.82rem; }
.assets__breadcrumb a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--herb); transition: opacity .3s ease;
}
.assets__breadcrumb a:hover { opacity: 0.6; }
.assets__breadcrumb a.active { color: var(--ink); opacity: 0.5; cursor: default; }
.assets__breadcrumb-sep { margin: 0 0.5rem; opacity: 0.3; font-size: 0.75rem; }
.assets__loading, .assets__error, .assets__empty { text-align: center; padding: 4rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.assets__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.assets__card { text-align: center; }
.assets__thumb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1;
  background: var(--paper-2); border: 1px solid rgba(30,21,25,0.08); border-radius: 4px;
  overflow: hidden; margin-bottom: 0.75rem; transition: border-color .3s ease;
}
.assets__thumb:hover { border-color: var(--herb); }
.assets__thumb img { width: 100%; height: 100%; object-fit: cover; }
.assets__thumb--folder { background: rgba(64,97,74,0.08); cursor: pointer; }
.assets__thumb--folder:hover { background: rgba(64,97,74,0.15); }
.assets__thumb--folder svg { width: 48px; height: 48px; color: var(--herb); opacity: 0.6; }
.assets__ext { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-soft); opacity: 0.5; }
.assets__name { font-size: 0.82rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; word-break: break-word; }
.assets__download {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--herb); transition: opacity .3s ease;
}
.assets__download:hover { opacity: 0.6; }

/* ============================================================
   JOURNAL (blog)
   ============================================================ */
.card__media--photo { aspect-ratio: 3/2; }
.card__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.card__date { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }

.post-hero { margin-top: 72px; }
.post-hero img { width: 100%; height: clamp(240px, 38vw, 440px); object-fit: cover; }
.post { background: var(--parchment); }
.post .wrap { max-width: 780px; }
.post__back {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--plum); margin-bottom: 1.6rem;
}
.post__back:hover { opacity: 0.7; }
.post__meta { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--herb); margin-bottom: 0.9rem; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.4rem; }
.post h1 em { font-style: italic; color: var(--plum); }
.post h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 0.9rem; }
.post p { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.75; }
.post ul { color: var(--ink-soft); padding-left: 1.5rem; margin-bottom: 1rem; line-height: 1.75; }
.post a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.post a:hover { opacity: 0.7; }
.post .post__cta { margin-top: 2.4rem; }
.post .post__cta a { text-decoration: none; }

/* ---- ACCESSIBILITY ---- */
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__bg video { display: none; }
}

/* ---- SCROLL REVEAL (main.js toggles .reveal--visible) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal--visible { opacity: 1; transform: none; }
