/* === THEME: blaine === */
/* ============================================
   THEME: Blaine Dispensary
   Anime × Hip Hop × Botanical Konbini
   ============================================ */
:root {
  /* Brand colors */
  --shoji: #FAFAF5;
  --kinako: #F2EBD9;
  --washi: #E4DDD0;
  --driftwood: #C8BFA8;
  --deep-fern: #2B5438;
  --moss: #4A7C59;
  --sprout: #7FB069;
  --leaf-light: #B8D4A3;
  --wisteria: #8B7EC8;
  --yuzu: #E2B84A;
  --persimmon: #D4836A;
  --sakura: #E8BFB8;
  --sumi: #1C1C1C;
  --charcoal: #4A4A4A;
  --fog: #8A8A8A;

  /* Typography */
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --header-h: 64px;

  /* Component-facing semantic tokens (components reference these) */
  --body-bg: var(--shoji);
  --body-fg: var(--sumi);
  --heading: var(--sumi);
  --heading-strong: var(--deep-fern);
  --link: var(--moss);
  --link-hover: var(--sprout);
  --header-bg: rgba(244, 233, 215, 0.95);
  --footer-bg: var(--sumi);
  --footer-accent: var(--yuzu);


  --about-bg: linear-gradient(135deg, #F2EBD9 0%, #E4DDD0 100%);
}

/* Paper texture on body — Blaine signature */
body {
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.035) 2px, rgba(0,0,0,.035) 4px);
}


/* === 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;
}

@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); }
}


/* === 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;
}
.age-gate__actions .cta { width: 100%; text-align: center; }

.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__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; }
  .mobile-menu-toggle { display: block; }
}


/* === COMPONENT: hero === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--body-bg, #FAFAF5);
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: fadeIn 1s ease-out;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__main {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}
.hero__word-art {
  position: relative;
  max-width: 520px;
  width: 90%;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
  /* padding: 1.25rem 1.5rem; */
  background: transparent;
}
.hero__word-art::before {
  content: '';
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: -45%;
  right: -45%;
  z-index: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    #0a1714 24%,
    #0a1714 76%,
    transparent 100%
  );
}
.hero__word-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.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;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta { 
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Override CTA buttons */
.cta--primary {
  background: var(--moss);
  color: var(--shoji); 
}
.cta--secondary-color {
  background: var(--shoji);
  color: var(--moss); 
  border: 4px solid var(--moss);
}


@media (max-width: 600px) {
  .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; }
}


/* === COMPONENT: about === */
.about {
  padding: 6rem 0;
  background: var(--about-bg, linear-gradient(135deg, #F2EBD9 0%, #E4DDD0 100%));
}
.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}
.about__container--with-image {
  grid-template-columns: 380px 1fr;
  max-width: 1000px;
  margin: 0;
}
.about__botanical { width: 100%; }
.about__botanical img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  transform: rotate(-2deg);
}
.about__botanical img:hover { transform: rotate(0deg) translateY(-2px); }
.about__text h2 {
  color: var(--heading-strong, #2B5438);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.about__text p {
  font-size: 1rem;
  color: var(--charcoal, #4A4A4A);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 980px) {
  .about__container { grid-template-columns: 1fr; }
  .about__botanical { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .about { padding: 4rem 0; }
  .about__container { gap: 2rem; }
  .about__botanical { max-width: 240px; margin: 0 auto; }
}


/* === 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: 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; }
.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);
}

@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: 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: 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);
}
@media (max-width: 600px) {
  .site-footer { padding: 2rem 0; }
  .footer__center h3 { font-size: 1.3rem; }
  .footer__tagline { font-size: 0.85rem; }
}


/* === COMPONENT: dutchie-menu === */
.dutchie-menu { padding: 4rem 0 5rem; background: var(--shoji, #FAFAF5); }
.dutchie-menu__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--heading-strong, #2B5438);
  text-align: center; margin-bottom: 0.6rem;
}
.dutchie-menu__sub {
  text-align: center; max-width: 640px; margin: 0 auto 2.5rem;
  color: var(--charcoal, #4A4A4A); font-size: 1rem;
}
.dutchie-wrap {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--washi, #E4DDD0);
  padding: 1.5rem;
  min-height: 400px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.dutchie-wrap__placeholder {
  padding: 3rem 1.5rem; text-align: center;
  color: var(--fog, #8A8A8A);
  border: 2px dashed var(--washi, #E4DDD0);
  border-radius: 6px;
}
.dutchie-wrap__placeholder strong {
  display: block; color: var(--moss, #4A7C59);
  font-size: 1.1rem; margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .dutchie-menu { padding: 2.5rem 0; }
  .dutchie-wrap { padding: 0.75rem; }
}


/* === COMPONENT: contact-form === */
.contact-section {
  padding: 4rem 0;
  background: var(--body-bg);
}

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

.contact-title {
  font-family: var(--heading-font, inherit);
  color: var(--heading-strong, var(--body-fg));
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.contact-subtitle {
  text-align: center;
  color: var(--muted, rgba(0,0,0,0.6));
  margin: 0 0 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading-strong, var(--body-fg));
}

.contact-optional {
  font-weight: 400;
  color: var(--muted, rgba(0,0,0,0.55));
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--input-border, rgba(0,0,0,0.2));
  border-radius: 8px;
  background: var(--input-bg, #fff);
  color: var(--body-fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--heading-strong, #333);
  box-shadow: 0 0 0 3px var(--focus-ring, rgba(0,0,0,0.1));
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.contact-status {
  min-height: 1.25rem;
  font-size: 0.95rem;
  text-align: left;
}

.contact-status[data-state="ok"] {
  color: var(--success, #2b7a3a);
  background: var(--success-bg, rgba(43,122,58,0.08));
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--success-border, rgba(43,122,58,0.25));
}

.contact-status[data-state="err"] {
  color: var(--danger, #a13a3a);
  background: var(--danger-bg, rgba(161,58,58,0.08));
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--danger-border, rgba(161,58,58,0.25));
}

.contact-fallback {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted, rgba(0,0,0,0.6));
  font-size: 0.9rem;
}


/* === 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); }

