/* ========================================
   HOLON GARDENS — SHARED CSS
   Hub-and-Spoke Architecture
   ======================================== */

/* ========================================
   1. CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
  /* Brand Colors */
  --deep-blue: #0A2540;
  --green: #18A95A;
  --green-dark: #128A48;
  --green-light: #E8F8EF;
  --accent-blue: #3B82F6;
  --accent-blue-light: #DBEAFE;
  --warm-white: #FAFAF8;
  --light-gray: #F0F0EC;
  --earth-tone: #8B6F47;
  --earth-light: #F5F0E8;
  --text-primary: #0A2540;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --white: #FFFFFF;
  --black: #000000;
  --brand-blue: #0027FF;

  /* Typography */
  --font-display: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--green-dark);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========================================
   2.5. SKIP-TO-MAIN LINK
   ======================================== */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-to-main:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 1rem 1.5rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  text-decoration: none;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

h6 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

p + p {
  margin-top: var(--space-md);
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* Text Utilities */
.text-green { color: var(--green); }
.text-blue { color: var(--accent-blue); }
.text-earth { color: var(--earth-tone); }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }

/* Background Utilities */
.bg-deep-blue { background: var(--deep-blue); }
.bg-green-light { background: var(--green-light); }
.bg-light-gray { background: var(--light-gray); }
.bg-warm-white { background: var(--warm-white); }
.bg-earth-light { background: var(--earth-light); }

/* ========================================
   5. TYPOGRAPHY COMPONENTS
   ======================================== */
.section-header {
  font-family: var(--font-display);
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.section-header h2 {
  color: var(--green);
  margin-bottom: var(--space-md);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   6. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  color: var(--green);
  transition: var(--transition);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 169, 90, 0.3);
}

.btn-secondary {
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-secondary:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--deep-blue);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 2px solid currentColor;
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-outline-white {
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   7. CARDS & COMPONENTS
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  transition: var(--transition);
  border: 1px solid transparent;
}

.card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-green {
  background: var(--green-light);
}

.card-dark {
  background: var(--deep-blue);
  color: var(--white);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ========================================
   8. DESKTOP NAVIGATION
   ======================================== */
.nav {
  background: var(--warm-white);
  padding: 0.75rem var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  transition: var(--transition);
}

.nav.sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-text .gardens-text {
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: var(--space-xl);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link.active {
  color: var(--green);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  color: var(--green);
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  background: var(--white);
  border-radius: var(--border-radius);
  min-width: 200px;
  padding: var(--space-sm) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.nav-dropdown-item:hover {
  background: var(--light-gray);
  color: var(--green);
  border-left-color: var(--green);
}

.nav-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta-portal {
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 2px solid var(--green);
  white-space: nowrap;
}

.nav-cta-portal:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 169, 90, 0.25);
}

.nav-cta-donate {
  color: var(--deep-blue);
  padding: 0.5rem 1.1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid var(--deep-blue);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta-donate:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hide desktop nav on mobile */
@media (max-width: 1024px) {
  .nav-center,
  .nav-ctas {
    display: none;
  }
}

/* ========================================
   8b. SPOKE PAGE SUB-NAVIGATION
   ======================================== */
.spoke-subnav {
  background: var(--sage-50, #f4f7f5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  position: sticky;
  top: 60px;
  z-index: 999;
}

[data-theme="dark"] .spoke-subnav {
  background: var(--deep-blue-light, #1a2a3a);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.spoke-subnav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.spoke-subnav-inner::-webkit-scrollbar {
  display: none;
}

.spoke-subnav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}

.spoke-subnav a:hover {
  color: var(--green);
  background: rgba(46, 125, 50, 0.08);
}

.spoke-subnav a.active {
  color: var(--green);
  background: rgba(46, 125, 50, 0.12);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .spoke-subnav {
    top: 0;
  }
}

@media (max-width: 640px) {
  .spoke-subnav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ========================================
   9. MOBILE TAB BAR
   ======================================== */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--deep-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 999;
  padding: var(--space-sm) 0 calc(env(safe-area-inset-bottom) + var(--space-sm)) 0;
}

@media (max-width: 1024px) {
  .mobile-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  flex: 1;
  min-height: 44px;
  min-width: 44px;
}

.mobile-tab:hover,
.mobile-tab.active {
  color: var(--green);
}

.mobile-tab-icon {
  font-size: 1.5rem;
}

/* Add bottom padding to body on mobile to avoid content overlap */
@media (max-width: 1024px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ========================================
   10. MOBILE OVERLAY MENU
   ======================================== */
.mobile-overlay-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay-menu.active {
  display: block;
  opacity: 1;
}

.mobile-overlay-content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-blue);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: var(--space-2xl);
  padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom));
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay-menu.active .mobile-overlay-content {
  transform: translateY(0);
}

.mobile-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.mobile-overlay-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-overlay-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-overlay-close:hover {
  color: var(--green);
}

/* Mobile overlay button contrast fixes */
.mobile-overlay-content .dark-mode-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.mobile-overlay-content .dark-mode-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.mobile-overlay-content .lang-switcher {
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-overlay-content .lang-option {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.mobile-overlay-content .lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.mobile-overlay-content .lang-option.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.mobile-overlay-section {
  margin-bottom: var(--space-2xl);
}

.mobile-overlay-section-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.mobile-overlay-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-overlay-link {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.mobile-overlay-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green);
}

/* ========================================
   11. FOOTER
   ======================================== */
.footer {
  background: var(--deep-blue);
  color: var(--white);
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
}

.footer-about h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-about p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nonprofit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer on Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

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

  .footer {
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  }
}

/* Footer Accordion for Mobile */
@media (max-width: 768px) {
  .footer-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section-toggle h4 {
    margin: 0;
  }

  .footer-section-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }

  .footer-section-toggle.active::after {
    transform: rotate(180deg);
  }

  .footer-accordion-content {
    display: none;
    padding: var(--space-lg) 0;
  }

  .footer-section-toggle.active + .footer-accordion-content {
    display: block;
  }
}

/* ========================================
   12. PLATFORM DETECTION UTILITIES
   ======================================== */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.tablet-only {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .tablet-only {
    display: block;
  }
}

/* ========================================
   13. RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .container,
  .container-narrow,
  .container-wide {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* ========================================
   14. REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   15. ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes btnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* ========================================
   15.5. PREFERS-REDUCED-MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ========================================
   16. DARK MODE
   ======================================== */
[data-theme="dark"] {
  --warm-white: #0f172a;
  --light-gray: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
}

[data-theme="dark"] body {
  background: #0f172a;
  color: #e2e8f0;
}

[data-theme="dark"] .nav {
  background: rgba(15, 23, 42, 0.97);
}

[data-theme="dark"] .nav.sticky {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-dropdown-menu {
  background: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-dropdown-item {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--green);
}

[data-theme="dark"] .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nav-cta-donate {
  color: #e2e8f0;
  border-color: #e2e8f0;
}

[data-theme="dark"] .nav-cta-donate:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .footer {
  background: #020617;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer-heading {
  color: #e2e8f0;
}

[data-theme="dark"] .footer-links a {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--green);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #e2e8f0;
}

[data-theme="dark"] p {
  color: #94a3b8;
}

[data-theme="dark"] .section-header h2 {
  color: var(--green);
}

[data-theme="dark"] .section-header .subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .subtitle {
  color: #94a3b8;
}

[data-theme="dark"] label {
  color: #e2e8f0;
}

[data-theme="dark"] .form-label {
  color: #e2e8f0;
}

[data-theme="dark"] strong {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-logo-text {
  color: #ffffff;
}

[data-theme="dark"] .nav-logo-text .gardens-text {
  color: var(--green);
}

[data-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--green);
}

[data-theme="dark"] .card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card h4 {
  color: #e2e8f0;
}

[data-theme="dark"] .card p {
  color: #94a3b8;
}

[data-theme="dark"] .card-green {
  background: rgba(24, 169, 90, 0.1);
}

[data-theme="dark"] .card-green h4,
[data-theme="dark"] .card-green p {
  color: #e2e8f0;
}

[data-theme="dark"] .mobile-overlay-menu {
  background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .mobile-overlay-content {
  background: #0f172a;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1e293b;
  border-color: #374151;
  color: #e2e8f0;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 169, 90, 0.2);
}

[data-theme="dark"] .bg-light-gray {
  background: #1e293b;
}

[data-theme="dark"] .bg-green-light {
  background: rgba(24, 169, 90, 0.1);
}

[data-theme="dark"] .bg-earth-light {
  background: rgba(139, 111, 71, 0.1);
}

[data-theme="dark"] .btn-secondary {
  color: #e2e8f0;
  border-color: #e2e8f0;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .expand-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .expand-content {
  background: #0f172a;
}

[data-theme="dark"] .cookie-banner {
  background: #020617;
}

[data-theme="dark"] a {
  color: #34d399;
}

[data-theme="dark"] a:hover {
  color: #6ee7b7;
}

/* ========================================
   16b. DARK MODE — COMPREHENSIVE SECTION OVERRIDES
   ======================================== */

/* Extended CSS variables for dark mode */
[data-theme="dark"] {
  --deep-blue: #e2e8f0;
  --white: #0f172a;
  --green-light: rgba(24, 169, 90, 0.12);
  --earth-light: rgba(139, 111, 71, 0.1);
  --earth-tone: #c9a96e;
  --off-white: #0f172a;
  --accent-blue-light: rgba(59, 130, 246, 0.12);
}

/* --- Generic section backgrounds --- */
[data-theme="dark"] section {
  color: #e2e8f0;
}

[data-theme="dark"] section[style*="background: var(--warm-white)"],
[data-theme="dark"] section[style*="background: var(--off-white"],
[data-theme="dark"] section[style*="background: #F8F8F6"],
[data-theme="dark"] section[style*="background:#F8F8F6"] {
  background: #0f172a !important;
}

[data-theme="dark"] section[style*="background: white"],
[data-theme="dark"] section[style*="background:#fff"],
[data-theme="dark"] section[style*="background: #fff"] {
  background: #0f172a !important;
}

/* --- Trusted Partners section --- */
[data-theme="dark"] .partners-strip {
  background: #0f172a !important;
}

[data-theme="dark"] .partners-strip h2 {
  color: #64748b !important;
}

[data-theme="dark"] .partners-strip img {
  filter: brightness(0.8) contrast(1.1) grayscale(0.2);
  opacity: 0.7;
}

/* --- Nursery & Events Preview section --- */
[data-theme="dark"] .nursery-events-preview {
  background: #0f172a !important;
}

[data-theme="dark"] .nursery-events-preview h3 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .nursery-events-preview p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nursery-events-preview a {
  color: #34d399;
}

/* Nursery plant items and event items (JS-generated) */
[data-theme="dark"] .nursery-events-preview span {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .nursery-events-preview div[style*="border-bottom"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Community Feed / From the Ground --- */
[data-theme="dark"] .community-feed {
  background: #0f172a !important;
}

[data-theme="dark"] .community-feed h2 {
  color: var(--green) !important;
}

[data-theme="dark"] .community-feed .subtitle {
  color: #94a3b8 !important;
}

/* Feed cards — these use hardcoded background:#fff in JS */
[data-theme="dark"] .community-feed div[style*="background: #fff"],
[data-theme="dark"] .community-feed div[style*="background:#fff"],
[data-theme="dark"] .community-feed .feed-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .community-feed div[style*="background: #eee"],
[data-theme="dark"] .community-feed div[style*="background:#eee"] {
  background: #334155 !important;
}

[data-theme="dark"] .community-feed h4,
[data-theme="dark"] .community-feed strong {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .community-feed p,
[data-theme="dark"] .community-feed span {
  color: #94a3b8 !important;
}

/* --- Community Voices section --- */
[data-theme="dark"] #community-voices {
  background: #0f172a !important;
}

[data-theme="dark"] #community-voices h2 {
  color: var(--green) !important;
}

[data-theme="dark"] #community-voices p.subtitle,
[data-theme="dark"] #community-voices .subtitle {
  color: #94a3b8 !important;
}

/* Testimonial card */
[data-theme="dark"] #community-voices div[style*="background: white"],
[data-theme="dark"] #community-voices div[style*="background:white"] {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] #community-voices p[style*="color: var(--deep-blue"],
[data-theme="dark"] #community-voices div[style*="color: var(--deep-blue"] {
  color: #e2e8f0 !important;
}

[data-theme="dark"] #community-voices div[style*="background: rgba(24,169,90"] {
  background: rgba(24, 169, 90, 0.08) !important;
}

/* --- Pathway / Persona cards section --- */
[data-theme="dark"] .pathway-grid div[style*="background: #fff"],
[data-theme="dark"] .pathway-grid div[style*="background:#fff"] {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .pathway-grid h3,
[data-theme="dark"] .pathway-grid h4 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .pathway-grid p {
  color: #94a3b8 !important;
}

/* --- Thesis section --- */
[data-theme="dark"] .thesis-section {
  background: rgba(24, 169, 90, 0.08) !important;
}

[data-theme="dark"] .thesis-inner blockquote {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .thesis-inner .thesis-link {
  color: #34d399 !important;
}

/* --- Five Revolutions section --- */
[data-theme="dark"] .revolution-grid div[style*="background: var(--warm-white)"],
[data-theme="dark"] .revolution-grid div[style*="background:var(--warm-white)"] {
  background: #1e293b !important;
}

[data-theme="dark"] .revolution-grid h3 {
  color: var(--green) !important;
}

[data-theme="dark"] .revolution-grid p {
  color: #94a3b8 !important;
}

/* --- Impact Pulse section (already dark, but ensure text contrast) --- */
[data-theme="dark"] .impact-pulse {
  background: #020617 !important;
}

/* --- Newsletter / Stay Rooted CTA --- */
[data-theme="dark"] .newsletter-cta,
[data-theme="dark"] .newsletter-section {
  background: #020617 !important;
}

/* --- Portal invite / Feature boxes --- */
[data-theme="dark"] .portal-features {
  background: #0f172a;
}

[data-theme="dark"] .portal-features .feature-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .portal-features h3 {
  color: #e2e8f0;
}

/* --- Services section cards --- */
[data-theme="dark"] .services-section .service-card,
[data-theme="dark"] .card-white {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- About page team cards --- */
[data-theme="dark"] .team-card,
[data-theme="dark"] .partner-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .team-card h4,
[data-theme="dark"] .partner-card h4 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .team-card p,
[data-theme="dark"] .partner-card p {
  color: #94a3b8 !important;
}

/* --- Generic white/light background cards --- */
[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background:white"],
[data-theme="dark"] div[style*="background: #fff"],
[data-theme="dark"] div[style*="background:#fff"],
[data-theme="dark"] div[style*="background: #FFFFFF"],
[data-theme="dark"] div[style*="background:#FFFFFF"] {
  background: #1e293b !important;
}

/* --- Generic text color overrides for inline deep-blue --- */
[data-theme="dark"] [style*="color: var(--deep-blue)"],
[data-theme="dark"] [style*="color:var(--deep-blue)"] {
  color: #e2e8f0 !important;
}

[data-theme="dark"] [style*="color: #0A2540"],
[data-theme="dark"] [style*="color:#0A2540"] {
  color: #e2e8f0 !important;
}

/* --- Generic light background overrides --- */
[data-theme="dark"] [style*="background: #f8f7f4"],
[data-theme="dark"] [style*="background:#f8f7f4"] {
  background: #0f172a !important;
}

[data-theme="dark"] [style*="background: #eee"],
[data-theme="dark"] [style*="background:#eee"] {
  background: #334155 !important;
}

[data-theme="dark"] [style*="background: var(--green-light)"],
[data-theme="dark"] [style*="background:var(--green-light)"] {
  background: rgba(24, 169, 90, 0.08) !important;
}

/* --- Separators, borders, dividers --- */
[data-theme="dark"] hr {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] [style*="border-bottom: 1px solid #e"],
[data-theme="dark"] [style*="border-bottom:1px solid #e"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Deep Dive / Expand sections (our-thinking, residential) --- */
[data-theme="dark"] .deep-dive-content,
[data-theme="dark"] .expand-content {
  background: #0f172a !important;
}

[data-theme="dark"] .deep-dive-toggle {
  color: #34d399 !important;
}

/* --- Tab/accordion panels --- */
[data-theme="dark"] .tab-panel {
  background: #0f172a;
  color: #e2e8f0;
}

/* --- Inline stat/metric boxes --- */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .stat-card .stat-value {
  color: var(--green);
}

[data-theme="dark"] .stat-card p,
[data-theme="dark"] .stat-card .stat-label {
  color: #94a3b8;
}

/* --- Modal/overlay dark mode --- */
[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
  background: #1e293b;
  color: #e2e8f0;
}

/* --- Contact form section --- */
[data-theme="dark"] .contact-section {
  background: #0f172a;
}

[data-theme="dark"] .contact-section h2,
[data-theme="dark"] .contact-section h3 {
  color: #e2e8f0;
}

/* --- Timeline / phases --- */
[data-theme="dark"] .timeline-phase {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .timeline-phase h4 {
  color: #e2e8f0;
}

/* --- Certification / path cards --- */
[data-theme="dark"] .cert-card,
[data-theme="dark"] .path-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Commercial page specific --- */
[data-theme="dark"] .comparison-table th {
  background: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .comparison-table td {
  background: #0f172a;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Legal pages (privacy, terms, accessibility) --- */
[data-theme="dark"] .legal-page,
[data-theme="dark"] .legal-content {
  background: #0f172a;
  color: #e2e8f0;
}

[data-theme="dark"] .legal-content h1,
[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .legal-content h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li {
  color: #94a3b8;
}

/* --- Blockquotes --- */
[data-theme="dark"] blockquote {
  color: #e2e8f0;
  border-left-color: var(--green);
}

/* --- Badge/tag elements --- */
[data-theme="dark"] .tag,
[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* --- Images on dark background --- */
[data-theme="dark"] img[style*="background: #eee"],
[data-theme="dark"] img[style*="background:#eee"] {
  background: #334155 !important;
}

/* --- Scrollbar dark mode --- */
[data-theme="dark"] ::-webkit-scrollbar {
  background: #0f172a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #374151;
}

/* --- Selection color --- */
[data-theme="dark"] ::selection {
  background: rgba(24, 169, 90, 0.3);
  color: #e2e8f0;
}

/* --- Additional variable overrides for page-specific CSS --- */
[data-theme="dark"] {
  --warm-white: #0f172a;
  --light-gray: #334155;
  --text-secondary: #94a3b8;
  --text-primary: #e2e8f0;
}

/* --- Form inputs with semi-transparent white backgrounds --- */
[data-theme="dark"] input[style*="background: rgba(255,255,255"],
[data-theme="dark"] input[style*="background:rgba(255,255,255"],
[data-theme="dark"] textarea[style*="background: rgba(255,255,255"],
[data-theme="dark"] select[style*="background: rgba(255,255,255"] {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}

/* --- Light pink/red error/warning backgrounds (commercial page) --- */
[data-theme="dark"] [style*="background: #FEF2F2"],
[data-theme="dark"] [style*="background:#FEF2F2"] {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

[data-theme="dark"] [style*="background: #FEF3C7"],
[data-theme="dark"] [style*="background:#FEF3C7"] {
  background: rgba(245, 158, 11, 0.08) !important;
}

/* --- About page: governance tabs, cards, items --- */
[data-theme="dark"] .gov-tab {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .gov-tab:hover,
[data-theme="dark"] .gov-tab.active {
  background: var(--green) !important;
  color: #fff !important;
}

[data-theme="dark"] .governance-box {
  background: #1e293b !important;
}

[data-theme="dark"] .responsibility-item {
  background: #1e293b !important;
}

[data-theme="dark"] .responsibility-label {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .framework-card {
  background: #1e293b !important;
}

[data-theme="dark"] .doc-link {
  background: #1e293b !important;
}

[data-theme="dark"] .doc-title {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .doc-desc {
  color: #94a3b8 !important;
}

/* --- About page: team member cards (inline background: var(--white)) --- */
[data-theme="dark"] div[style*="background: var(--white)"] {
  background: #1e293b !important;
}

[data-theme="dark"] a[style*="background: var(--white)"] {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] tr[style*="background: var(--white)"] {
  background: #1e293b !important;
}

[data-theme="dark"] tr[style*="background: var(--white)"] td {
  color: #e2e8f0 !important;
}

/* --- Nursery-events page modals --- */
[data-theme="dark"] div[style*="background:white"] {
  background: #1e293b !important;
}

/* --- Partners page: partner info cards --- */
[data-theme="dark"] .partner-info {
  background: #1e293b !important;
}

[data-theme="dark"] .partner-info h3 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .partner-info p {
  color: #94a3b8 !important;
}

/* --- Volunteer page cards --- */
[data-theme="dark"] .volunteer-card,
[data-theme="dark"] .role-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .volunteer-card h3,
[data-theme="dark"] .role-card h3 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .volunteer-card p,
[data-theme="dark"] .role-card p {
  color: #94a3b8 !important;
}

/* --- Initiative page cards --- */
[data-theme="dark"] .initiative-card,
[data-theme="dark"] .pledge-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Donate page --- */
[data-theme="dark"] .donate-card,
[data-theme="dark"] .tier-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Commercial page: comparison table enhancements --- */
[data-theme="dark"] .comparison-table {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .comparison-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Section headings with inline color: var(--deep-blue) --- */
[data-theme="dark"] h1[style*="color: var(--deep-blue)"],
[data-theme="dark"] h2[style*="color: var(--deep-blue)"],
[data-theme="dark"] h3[style*="color: var(--deep-blue)"],
[data-theme="dark"] h4[style*="color: var(--deep-blue)"],
[data-theme="dark"] p[style*="color: var(--deep-blue)"] {
  color: #e2e8f0 !important;
}

/* --- section backgrounds using inline var refs --- */
[data-theme="dark"] section[style*="background: var(--white)"],
[data-theme="dark"] section[style*="background:var(--white)"] {
  background: #0f172a !important;
}

/* --- Accessibility page --- */
[data-theme="dark"] .a11y-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Deep dive / expand toggle sections (our-thinking) --- */
[data-theme="dark"] details {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] details summary {
  color: #e2e8f0;
}

/* --- All pages: Generic paragraph in white card containers --- */
[data-theme="dark"] .card p,
[data-theme="dark"] .card-body p {
  color: #94a3b8;
}

/* ========================================
   16c. DARK MODE — VOLUNTEER & CAREERS PAGES
   ======================================== */
[data-theme="dark"] .role-card { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .role-card:hover { border-color: rgba(24, 169, 90, 0.4) !important; }
[data-theme="dark"] .role-card h3 { color: #e2e8f0 !important; }
[data-theme="dark"] .role-card p { color: #94a3b8 !important; }
[data-theme="dark"] .role-skill-tag { background: #334155 !important; color: #94a3b8 !important; }
[data-theme="dark"] .filter-btn { background: #1e293b !important; color: #94a3b8 !important; border-color: #334155 !important; }
[data-theme="dark"] .filter-btn.active { background: rgba(24,169,90,0.15) !important; color: #4ade80 !important; border-color: rgba(24,169,90,0.3) !important; }
[data-theme="dark"] .calendar-grid { background: #1e293b !important; }
[data-theme="dark"] .calendar-day { border-color: #334155 !important; color: #94a3b8 !important; }
[data-theme="dark"] .calendar-day:hover { background: rgba(24,169,90,0.08) !important; }
[data-theme="dark"] .calendar-day.today { background: rgba(24,169,90,0.12) !important; }
[data-theme="dark"] .calendar-header { color: #e2e8f0 !important; }
[data-theme="dark"] .event-card { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .event-card h4 { color: #e2e8f0 !important; }
[data-theme="dark"] .event-card p { color: #94a3b8 !important; }
[data-theme="dark"] .form-wizard { background: #1e293b !important; }
[data-theme="dark"] .form-wizard input,
[data-theme="dark"] .form-wizard select,
[data-theme="dark"] .form-wizard textarea { background: #0f172a !important; color: #e2e8f0 !important; border-color: #334155 !important; }
[data-theme="dark"] .form-wizard label { color: #e2e8f0 !important; }
[data-theme="dark"] .step-indicator .step { color: #64748b !important; }
[data-theme="dark"] .step-indicator .step.active { color: #4ade80 !important; }
[data-theme="dark"] .step-indicator .step.completed { color: #4ade80 !important; }
[data-theme="dark"] .waiver-text { background: #0f172a !important; border-color: #334155 !important; color: #94a3b8 !important; }
[data-theme="dark"] .coming-soon-badge { background: rgba(24,169,90,0.15) !important; color: #4ade80 !important; }
[data-theme="dark"] .career-category-card { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .career-category-card h3 { color: #e2e8f0 !important; }
[data-theme="dark"] .career-category-card p { color: #94a3b8 !important; }
[data-theme="dark"] .mission-card { background: #1e293b !important; }
[data-theme="dark"] .mission-card h3 { color: #e2e8f0 !important; }
[data-theme="dark"] .mission-card p { color: #94a3b8 !important; }

/* ========================================
   17. FORM ELEMENTS (BASIC)
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 169, 90, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
}

/* ========================================
   17.5. FORM GROUP STYLES
   ======================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 169, 90, 0.1);
}

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

.form-autofill-notice {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--border-radius-sm);
  padding: var(--space-md);
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
  display: none;
}

.form-save-status {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: var(--space-sm);
}

/* ========================================
   18. COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-blue);
  color: var(--white);
  padding: var(--space-2xl);
  z-index: 1002;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-lg);
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.cookie-accept-btn {
  background: var(--green);
  color: var(--white);
}

.cookie-accept-btn:hover {
  background: var(--green-dark);
}

.cookie-decline-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cookie-decline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .cookie-banner {
    bottom: calc(70px + env(safe-area-inset-bottom));
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   18.5. DARK MODE TOGGLE BUTTON STYLES
   ======================================== */
.dark-mode-toggle {
  background: none;
  border: 1.5px solid var(--text-light);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-primary);
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

[data-theme="dark"] .dark-mode-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fbbf24;
}

/* ========================================
   18.6. LANGUAGE SWITCHER STYLES
   ======================================== */
.lang-switcher {
  display: flex;
  gap: 2px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.lang-option {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.lang-option.active {
  background: var(--green);
  color: var(--white);
}

.lang-option:hover:not(.active) {
  background: var(--light-gray);
  color: var(--text-primary);
}

[data-theme="dark"] .lang-switcher {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lang-option {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .lang-option:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* ========================================
   18.7. COOKIE MANAGE MODAL STYLES
   ======================================== */
.cookie-manage-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-manage-modal.active {
  display: flex;
}

.cookie-manage-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  padding: var(--space-2xl);
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-toggle {
  /* custom toggle switch styles */
}

[data-theme="dark"] .cookie-manage-content {
  background: #1e293b;
  color: #e2e8f0;
}

/* ========================================
   19. SECTION HEADERS
   ======================================== */
.section-header {
  font-family: var(--font-display);
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.section-header h2 {
  color: var(--green);
  margin-bottom: var(--space-md);
}

.section-header .subtitle {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   20. DEEP DIVE / EXPANDABLE COMPONENTS
   ======================================== */
.expand-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.expand-trigger:hover {
  background: var(--light-gray);
}

.expand-trigger::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.3s ease;
  font-weight: 600;
}

.expand-trigger.active::before {
  transform: rotate(90deg);
}

.expand-content {
  display: none;
  padding: var(--space-lg);
  background: var(--light-gray);
  border-radius: var(--border-radius-sm);
  animation: slideDown 0.3s ease;
}

.expand-trigger.active + .expand-content {
  display: block;
}

/* ========================================
   20.5. FORM WIZARD STYLES
   ======================================== */
.form-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-xl);
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.form-wizard-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.form-wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-wizard-step-marker.active .form-wizard-step-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(24, 169, 90, 0.3);
}

.form-wizard-step-marker.completed .form-wizard-step-circle {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.form-wizard-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-wizard-step-marker.active .form-wizard-step-label {
  color: var(--green);
}

.form-wizard-connector {
  width: 60px;
  height: 2px;
  background: var(--light-gray);
  margin: 0 var(--space-sm);
  transition: var(--transition);
}

.form-wizard-connector.active {
  background: var(--green);
}

.form-wizard-step-container {
  display: none;
}

.form-wizard-step-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

.form-wizard-review-card {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.form-wizard-review-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-wizard-review-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-wizard-review-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-wizard-review-edit {
  display: inline-block;
  color: var(--green);
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

[data-theme="dark"] .form-wizard-progress {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .form-wizard-review-card {
  background: #0f172a;
}

[data-theme="dark"] .form-wizard-step-circle {
  background: #1e293b;
  border-color: #374151;
  color: #94a3b8;
}

/* ========================================
   20.7. STEWARD APPLICATION STYLES
   ======================================== */
.steward-app {
  display: none;
  animation: authSlideIn 0.3s ease;
}

.steward-part {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid #E5E7EB;
}

.steward-part-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.25rem;
}

.steward-part-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.steward-field {
  margin-bottom: var(--space-md);
}

.steward-field label {
  font-size: 0.85rem;
}

.steward-field strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.steward-field .field-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.steward-radio-group,
.steward-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.steward-radio-group label,
.steward-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.initiative-context {
  display: none;
  background: var(--green-light);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.initiative-context h4 {
  margin-bottom: var(--space-sm);
}

.initiative-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme="dark"] .steward-part {
  border-color: #374151;
}

[data-theme="dark"] .steward-part-title {
  color: #e2e8f0;
}

[data-theme="dark"] .initiative-context {
  background: rgba(24, 169, 90, 0.1);
}

/* ========================================
   20.8. NEWSLETTER SECTION STYLES
   ======================================== */
.newsletter-section {
  background: var(--green-light);
  padding: var(--space-3xl) 0;
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 500px;
  margin: var(--space-lg) auto 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
}

.newsletter-form .btn {
  white-space: nowrap;
}

[data-theme="dark"] .newsletter-section {
  background: rgba(24, 169, 90, 0.08);
}

/* ========================================
   20.9. SEARCH OVERLAY STYLES
   ======================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  padding: var(--space-xl);
}

.search-input {
  width: 100%;
  font-size: 1.25rem;
  padding: var(--space-lg);
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
}

.search-input:focus {
  border-color: var(--green);
  outline: none;
}

.search-results {
  margin-top: var(--space-lg);
  max-height: 40vh;
  overflow-y: auto;
}

.search-result-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--light-gray);
}

.search-result-item:hover {
  background: var(--green-light);
}

.search-result-item a {
  color: var(--text-primary);
  display: block;
}

.search-result-item .result-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.search-result-item .result-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

[data-theme="dark"] .search-box {
  background: #1e293b;
}

[data-theme="dark"] .search-input {
  background: #0f172a;
  border-color: #374151;
  color: #e2e8f0;
}

/* ========================================
   21. ARIA-LIVE REGION & ACCESSIBILITY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  margin-top: var(--space-md);
  display: none;
}

.form-status.success {
  display: block;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green);
}

.form-status.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #F87171;
}

/* ========================================
   21.5. FORM REGISTRATION INVITE
   ======================================== */
.form-registration-invite {
  background: var(--green-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  text-align: center;
  display: none;
}

.form-registration-invite h4 {
  color: var(--green-dark);
  margin-bottom: var(--space-md);
}

.invite-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-lg) 0;
}

.invite-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.invite-benefit span {
  color: var(--green);
  font-weight: 700;
}

.invite-btn {
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-right: var(--space-md);
}

.invite-btn:hover {
  background: var(--green-dark);
}

.invite-dismiss {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.85rem;
}

[data-theme="dark"] .form-registration-invite {
  background: rgba(24, 169, 90, 0.08);
}

/* ========================================
   22. UTILITY TEXT HELPERS
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-weight-bold {
  font-weight: 700;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-normal {
  font-weight: 400;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

/* ========================================
   23. SPACING HELPERS
   ======================================== */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

/* ========================================
   24. FOCUS & ACCESSIBILITY
   ======================================== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ========================================
   25. PRINT STYLES
   ======================================== */
@media print {
  .nav,
  .mobile-tab-bar,
  .footer,
  .cookie-banner {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ========================================
   26. TABLET-SPECIFIC ENHANCEMENTS
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .container {
    padding: 0 var(--space-2xl);
  }
}

/* ========================================
   27. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   28. SAFE AREA INSETS (notched devices)
   ======================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-tab-bar {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
