/*
Theme Name: Sativa Sisters NextGen
Theme URI: https://sativasisters.com
Author: Sativa Sisters Dev Team
Author URI: https://sativasisters.com
Description: High-Performance WA LCB Compliant WordPress Theme for Sativa Sisters with Hybrid POSaBIT Integration & Spokane #1 Local SEO
Version: 1.0.0
License: Proprietary
Text Domain: sativasisters-nextgen
*/

:root {
  --color-primary: #3BAA35;
  --color-primary-dark: #2d8529;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg-light: #FFFFFF;
  --color-surface-dark: #121212;
  --color-accent-orange: #E36B22;
  --color-accent-gold: #D1D124;
  --color-zinc-900: #18181b;
  --color-zinc-800: #27272a;
  --color-zinc-700: #3f3f46;
  --color-zinc-400: #a1a1aa;
  --color-zinc-200: #e4e4e7;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Global scroll margin offset so sticky header doesn't cover section headers */
:target,
section[id],
div[id] {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 1024px) {
  :target,
  section[id],
  div[id] {
    scroll-margin-top: 7.5rem;
  }
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #ffffff;
  color: #1f2937;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Primary Utility Classes */
.bg-primary { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }
.bg-black { background-color: var(--color-black); }
.bg-surface-dark { background-color: var(--color-surface-dark); }
.bg-light { background-color: var(--color-bg-light); }
.border-primary { border-color: var(--color-primary) !important; }

.hero-fullscreen {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  border: 2px solid var(--color-primary);
  font-size: 0.875rem;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 170, 53, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Age Gate Modal Overlay */
#ageGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#ageGate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-card {
  background: #121212;
  border: 1px solid #27272a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 170, 53, 0.15);
  border-radius: 1.5rem;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  animation: ageGatePop 0.3s ease-out;
}

@keyframes ageGatePop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* POSaBIT Container Isolation Safe Sandbox */
.posabit-menu-container,
.posabit-menu-wrapper {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: visible !important;
}

/* Ensure POSaBIT iframe / widgets are responsive and unconstrained */
.posabit-menu-container iframe {
  width: 100% !important;
  min-height: 850px;
  border: none;
  background-color: #ffffff !important;
}

/* Statutory Disclaimer Box per WAC 314-55-155(5) */
.wac-statutory-box {
  background-color: #0d0d0d;
  border: 1px solid #27272a;
  border-left: 4px solid var(--color-primary);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Category Silos Bento Grid */
.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

/* Navigation Drawer */
#mobile-menu-drawer,
#mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  background-color: #09090b !important;
  color: #ffffff !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#mobile-menu-drawer:not(.translate-x-full),
#mobile-drawer:not(.translate-x-full) {
  transform: translateX(0) !important;
}

#mobile-menu-drawer.open,
#mobile-drawer.open {
  transform: translateX(0) !important;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   POSaBIT Anti-Theft & Header Stacking Isolation
   Prevents POSaBIT React plugin from stealing viewport or overlaying site headers
   ========================================================================== */
header.sticky {
  z-index: 9999 !important;
}

#magnetic-brand-bar {
  z-index: 9990 !important;
}

#root header.sticky-top,
#root .sticky-top,
.posabit-menu-container header,
.posabit-menu-container .sticky-top,
.posabit-menu header.sticky-top {
  position: static !important;
  top: auto !important;
  z-index: 10 !important;
  box-shadow: none !important;
}
