/* ==============================================================================
   SIMPLY COMPOUNDED SOLUTIONS: PURE CSS DESIGN SYSTEM & STYLING
   Standards: WCAG 2.2 Level AAA (>=7:1 Body Contrast), Zero-Framework CSS
   Palette: Obsidian Slate, Pure Alabaster, Bioactive Emerald, Burnished Gold, Sage
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* Artisanal Apothecary Dark Palette (Default - Low Luminance Bedtime Mode) */
  --bg-canvas: #090b0e;
  --bg-surface: #11151c;
  --bg-surface-elevated: #181f2a;
  --bg-surface-sunken: #060709;
  
  --border-subtle: #222938;
  --border-strong: #333d52;
  
  /* Text & Typography Contrast Tokens (>=7.0:1 AAA) */
  --text-primary: #ffffff;        /* Pure White (21:1 against #090b0e) */
  --text-secondary: #cbd5e1;      /* Cool Silver (13.5:1 against #090b0e) */
  --text-muted: #94a3b8;          /* Slate Grey (8.2:1 against #090b0e) */
  
  /* Artisanal Botanical Accents (Clean Emerald & Gold - No Peach) */
  --accent-gold: #fbbf24;         /* Radiant Gold */
  --accent-gold-glow: rgba(251, 191, 36, 0.2);
  --accent-amber: #fbbf24;        /* Unified Gold/Amber Token */
  --accent-amber-glow: rgba(251, 191, 36, 0.2);
  --accent-emerald: #10b981;      /* Bioactive Emerald */
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-sage: #86efac;         /* Fresh Botanical Sage */
  --accent-sage-glow: rgba(134, 239, 172, 0.15);
  --status-danger: #f87171;
  
  /* Typography */
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Interactive Boundaries (Motor Accessibility) */
  --touch-min: 48px;
  --focus-ring: 3px solid #10b981;
  --focus-offset: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.7);
  --shadow-emerald: 0 4px 20px rgba(16, 185, 129, 0.35);
  --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.3);
}

/* Daylight Anti-Halation Mode (Crisp Modern White & Forest Emerald) */
[data-theme="daylight"] {
  --bg-canvas: #f8fafc;           /* Crisp Pure Slate White */
  --bg-surface: #ffffff;          /* Pure White */
  --bg-surface-elevated: #f1f5f9;  /* Crisp Light Slate */
  --bg-surface-sunken: #e2e8f0;   /* Light Border Grey */
  
  --border-subtle: #cbd5e1;       /* Crisp Visible Border */
  --border-strong: #94a3b8;
  
  --text-primary: #0f172a;        /* Deep Obsidian Navy (17.5:1 against #f8fafc) */
  --text-secondary: #1e293b;      /* Deep Slate Charcoal (14.2:1 against #f8fafc) */
  --text-muted: #334155;          /* Crisp Slate (10.5:1 against #f8fafc) */
  
  --accent-gold: #b45309;         /* High-Contrast Burnished Amber */
  --accent-gold-glow: rgba(180, 83, 9, 0.15);
  --accent-amber: #b45309;
  --accent-amber-glow: rgba(180, 83, 9, 0.15);
  --accent-emerald: #047857;      /* Deep Forest Emerald (7.8:1 contrast) */
  --accent-emerald-glow: rgba(4, 120, 87, 0.15);
  --accent-sage: #15803d;         /* Deep Botanical Sage */
  --accent-sage-glow: rgba(21, 128, 61, 0.12);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-emerald: 0 4px 16px rgba(4, 120, 87, 0.25);
  --shadow-gold: 0 4px 16px rgba(180, 83, 9, 0.25);
}

/* CSS Reset & Global Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Skip Link for Screen Readers & Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-emerald);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Section Containers */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Hero Section */
.hero-section {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.12), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px var(--space-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-title-accent {
  background: linear-gradient(135deg, #10b981 0%, #34d399 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="daylight"] .hero-title-accent {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust Badges Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  width: 100%;
  text-align: left;
}

.trust-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.trust-item:hover {
  border-color: var(--accent-emerald);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--touch-min);
  padding: 0 var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-emerald);
}

/* Section Header Block */
.section-header-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.section-kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: var(--space-2xs);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Philosophy Cards Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.info-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  margin-bottom: var(--space-xs);
  color: var(--accent-emerald);
}

.info-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Education / Phytochemical Monographs Library */
.monographs-wrapper {
  width: 100%;
}

.monographs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.monograph-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.monograph-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.monograph-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.monograph-badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.monograph-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.monograph-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.monograph-meta {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Footer Styling */
.site-footer {
  background: var(--bg-surface-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-disclaimer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.disclaimer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
}

.disclaimer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}
