/* ============================================================
   NATURE'S CARE — Premium Design System v2
   Architecture: semantic token layer → primitive layer
   ============================================================

   FILE STRUCTURE
   ──────────────
   1.  Primitive Tokens        (raw brand values, never used directly in components)
   2.  Semantic Tokens Light   (:root — what components actually consume)
   3.  Semantic Tokens Dark    ([data-theme="dark"] overrides)
   4.  Reset & Base
   5.  Layout Utilities
   6.  Typography Scale
   7.  Button System
   8.  Scroll Progress + Page Loader
   9.  Navbar
   10. Hero
   11. About Section
   12. Courses Section
   13. Benefits Section
   14. Stats Section
   15. Testimonials
   16. Blog Section
   17. FAQ
   18. Newsletter
   19. Contact CTA
   20. Footer
   21. Back to Top
   22. Scroll Reveal
   23. Inner Page: Page Header
   24. Inner Page: About Split / Values / Timeline / Team / CTA
   25. 404 Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');


/* ============================================================
   1. PRIMITIVE TOKENS
   Raw brand values. Referenced only inside semantic blocks.
   ============================================================ */
:root {
  /* — Brand Palette — */
  --p-cream-50:        #FEFCF8;
  --p-cream-100:       #FAF7F2;
  --p-cream-200:       #F5EFE6;
  --p-cream-300:       #EDE3D5;

  --p-sage-100:        #D4E4D0;
  --p-sage-300:        #A8C9A4;
  --p-sage-500:        #7A9E7E;
  --p-sage-700:        #4E7355;
  --p-sage-900:        #2E4A33;

  --p-terracotta-100:  #F0D5C8;
  --p-terracotta-300:  #E8C4B3;
  --p-terracotta-500:  #C17C5E;
  --p-terracotta-700:  #9A5840;

  --p-plum-100:        #E8DCE9;
  --p-plum-300:        #C9B4CB;
  --p-plum-500:        #6B4C6E;
  --p-plum-700:        #4A3050;

  --p-ink-900:         #1E1C18;
  --p-ink-800:         #2C2C2C;
  --p-ink-700:         #3D3828;
  --p-ink-500:         #5A5A5A;
  --p-ink-300:         #9A9A9A;
  --p-ink-200:         #C4BFBA;
  --p-ink-100:         #E5DDD4;

  --p-white:           #FFFFFF;
  --p-star-gold:       #F6C344;

  /* — Typography — */
  --font-display:      'Cormorant Garamond', Georgia, serif;
  --font-serif:        'Playfair Display', serif;
  --font-body:         'DM Sans', system-ui, sans-serif;

  /* — Font Scale — */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.75rem;
  --fs-4xl:   3.5rem;
  --fs-5xl:   4.5rem;
  --fs-hero:  clamp(3.5rem, 8vw, 7rem);

  /* — Spacing — */
  --sp-xs:    0.5rem;
  --sp-sm:    1rem;
  --sp-md:    1.5rem;
  --sp-lg:    2.5rem;
  --sp-xl:    4rem;
  --sp-2xl:   6rem;
  --sp-3xl:   9rem;

  /* — Radius — */
  --r-sm:     6px;
  --r-md:     14px;
  --r-lg:     24px;
  --r-xl:     40px;
  --r-full:   9999px;

  /* — Transitions — */
  --tr-fast:  0.18s ease;
  --tr-base:  0.32s cubic-bezier(0.4,0,0.2,1);
  --tr-slow:  0.55s cubic-bezier(0.4,0,0.2,1);

  /* — Layout — */
  --max-w:    1200px;
  --nav-h:    80px;
}


/* ============================================================
   2. SEMANTIC TOKENS — LIGHT MODE  (:root)
   These are what every component uses. Swapping theme means
   only changing values here — never touching component rules.
   ============================================================ */
:root {

  /* Backgrounds */
  --bg-primary:        var(--p-cream-100);   /* page base */
  --bg-secondary:      var(--p-cream-200);   /* alternate sections */
  --bg-surface:        var(--p-white);       /* cards, inputs */
  --bg-surface-raised: var(--p-cream-50);    /* elevated cards */
  --bg-overlay:        rgba(44,44,44,0.45);  /* modal/drawer overlay */

  /* Text */
  --text-primary:      var(--p-ink-800);     /* headings, strong text */
  --text-secondary:    var(--p-ink-500);     /* body paragraphs */
  --text-muted:        var(--p-ink-300);     /* captions, labels */
  --text-inverted:     var(--p-white);       /* text on dark backgrounds */
  --text-brand:        var(--p-sage-700);    /* brand accent text */
  --text-accent:       var(--p-plum-500);    /* secondary accent */

  /* Borders */
  --border-color:      var(--p-ink-100);     /* default borders */
  --border-subtle:     var(--p-cream-300);   /* very light borders */
  --border-brand:      var(--p-sage-500);    /* focus / brand borders */

  /* Navbar — specific tokens so we can flip independently */
  --nav-bg-transparent:       transparent;
  --nav-bg-scrolled:          rgba(250,247,242,0.92);
  --nav-border-scrolled:      rgba(229,221,212,0.6);
  --nav-shadow-scrolled:      0 1px 30px rgba(44,44,44,0.08);
  --nav-text:                 var(--p-ink-800);
  --nav-text-transparent:     var(--p-white);
  --nav-logo-tag-transparent: rgba(255,255,255,0.75);
  --nav-link-hover:           var(--p-sage-700);
  --nav-underline-transparent:rgba(255,255,255,0.7);
  --nav-toggle-border:        rgba(255,255,255,0.3);
  --nav-toggle-color:         var(--p-white);
  --nav-toggle-border-scroll: var(--p-ink-100);
  --nav-toggle-color-scroll:  var(--p-ink-800);
  --nav-burger-color:         var(--p-ink-800);
  --nav-burger-transparent:   var(--p-white);

  /* Hero — always dark overlay on image, always white text */
  --hero-overlay:      linear-gradient(135deg, rgba(74,58,52,0.72) 0%, rgba(107,76,110,0.48) 60%, rgba(78,115,85,0.35) 100%);
  --hero-text:         var(--p-white);
  --hero-text-sub:     rgba(255,255,255,0.82);
  --hero-stat-text:    var(--p-white);
  --hero-stat-label:   rgba(255,255,255,0.62);
  --hero-stat-border:  rgba(255,255,255,0.12);
  --hero-stat-bg:      rgba(255,255,255,0.07);
  --hero-badge-bg:     rgba(255,255,255,0.12);
  --hero-badge-border: rgba(255,255,255,0.22);
  --hero-badge-text:   rgba(255,255,255,0.88);
  --hero-scroll-color: rgba(255,255,255,0.62);

  /* Page Header (inner pages with gradient background) */
  --page-header-text:  var(--p-white);
  --page-header-sub:   rgba(255,255,255,0.82);
  --page-header-badge-bg:     rgba(255,255,255,0.15);
  --page-header-badge-border: rgba(255,255,255,0.3);
  --page-header-breadcrumb:   rgba(255,255,255,0.72);

  /* Section labels & badges */
  --badge-bg:          var(--p-sage-100);
  --badge-text:        var(--p-sage-700);

  /* Cards */
  --card-bg:           var(--p-white);
  --card-border:       var(--p-ink-100);
  --card-shadow:       0 8px 40px rgba(44,44,44,0.10);
  --card-shadow-hover: 0 20px 60px rgba(44,44,44,0.16);
  --card-shadow-soft:  0 2px 20px rgba(44,44,44,0.06);

  /* Buttons — on-surface (used in non-gradient sections) */
  --btn-outline-color:  var(--p-ink-800);
  --btn-outline-border: var(--p-ink-100);
  --btn-outline-hover-bg:     var(--p-sage-100);
  --btn-outline-hover-text:   var(--p-sage-700);
  --btn-outline-hover-border: var(--p-sage-500);

  /* Forms */
  --input-bg:          var(--p-cream-100);
  --input-border:      var(--p-ink-100);
  --input-text:        var(--p-ink-800);
  --input-focus-bg:    var(--p-white);
  --input-focus-ring:  rgba(122,158,126,0.18);

  /* Footer — always dark gradient, vars for fine-tuning */
  --footer-bg:         linear-gradient(160deg, #2C2C2C 0%, #3D3028 50%, #2C3328 100%);
  --footer-text:       rgba(255,255,255,0.75);
  --footer-text-muted: rgba(255,255,255,0.42);
  --footer-heading:    rgba(255,255,255,0.42);
  --footer-link:       rgba(255,255,255,0.62);
  --footer-link-hover: var(--p-white);
  --footer-border:     rgba(255,255,255,0.08);
  --footer-social-border: rgba(255,255,255,0.15);
  --footer-social-color:  rgba(255,255,255,0.62);
  --footer-input-bg:   rgba(255,255,255,0.06);
  --footer-input-border: rgba(255,255,255,0.15);
  --footer-input-text: var(--p-white);
  --footer-input-placeholder: rgba(255,255,255,0.35);
  --footer-btn-bg:     var(--p-sage-700);
  --footer-btn-hover:  var(--p-sage-500);

  /* Shadows */
  --sh-soft:  0 2px 20px rgba(44,44,44,0.06);
  --sh-card:  0 8px 40px rgba(44,44,44,0.10);
  --sh-hover: 0 20px 60px rgba(44,44,44,0.16);
  --sh-glass: 0 8px 32px rgba(44,44,44,0.12);

  /* Gradients */
  --grad-sage:    linear-gradient(135deg, var(--p-sage-100) 0%, var(--p-sage-500) 100%);
  --grad-warm:    linear-gradient(135deg, var(--p-cream-200) 0%, var(--p-terracotta-300) 100%);
  --grad-footer:  linear-gradient(160deg, #2C2C2C 0%, #3D3028 50%, #2C3328 100%);
}


/* ============================================================
   3. SEMANTIC TOKENS — DARK MODE
   Only override what changes. Hero + Footer stay the same.
   ============================================================ */
[data-theme="dark"] {

  /* Backgrounds */
  --bg-primary:        #1A1916;
  --bg-secondary:      #221F1A;
  --bg-surface:        #2A2620;
  --bg-surface-raised: #312D26;
  --bg-overlay:        rgba(0,0,0,0.6);

  /* Text */
  --text-primary:      #F0EBE3;
  --text-secondary:    #C8BFB4;
  --text-muted:        #7A7068;
  --text-brand:        var(--p-sage-300);
  --text-accent:       var(--p-plum-300);

  /* Borders */
  --border-color:      #332E28;
  --border-subtle:     #2A2620;

  /* Navbar */
  --nav-bg-scrolled:          rgba(26,25,22,0.92);
  --nav-border-scrolled:      rgba(51,46,40,0.6);
  --nav-shadow-scrolled:      0 1px 30px rgba(0,0,0,0.25);
  --nav-text:                 #F0EBE3;
  --nav-toggle-border-scroll: #332E28;
  --nav-toggle-color-scroll:  #F0EBE3;
  --nav-burger-color:         #F0EBE3;

  /* Badges */
  --badge-bg:   rgba(168,201,164,0.15);
  --badge-text: var(--p-sage-300);

  /* Cards */
  --card-bg:     #2A2620;
  --card-border: #332E28;
  --card-shadow: 0 8px 40px rgba(0,0,0,0.35);
  --card-shadow-hover: 0 20px 60px rgba(0,0,0,0.5);
  --card-shadow-soft:  0 2px 20px rgba(0,0,0,0.28);

  /* Buttons */
  --btn-outline-color:        #F0EBE3;
  --btn-outline-border:       #332E28;
  --btn-outline-hover-bg:     rgba(168,201,164,0.12);
  --btn-outline-hover-text:   var(--p-sage-300);
  --btn-outline-hover-border: var(--p-sage-500);

  /* Forms */
  --input-bg:      #2A2620;
  --input-border:  #332E28;
  --input-text:    #F0EBE3;
  --input-focus-bg: #312D26;

  /* Shadows */
  --sh-soft:  0 2px 20px rgba(0,0,0,0.28);
  --sh-card:  0 8px 40px rgba(0,0,0,0.35);
  --sh-hover: 0 20px 60px rgba(0,0,0,0.5);
  --sh-glass: 0 8px 32px rgba(0,0,0,0.35);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--tr-slow), color var(--tr-slow);
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }


/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-pad    { padding: var(--sp-2xl) 0; }
.section-pad-lg { padding: var(--sp-3xl) 0; }

.section {
  padding: var(--sp-2xl) 0;
  background: var(--bg-primary);
}

.section-alt {
  padding: var(--sp-2xl) 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-xl);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-primary);
  margin: var(--sp-sm) 0;
  line-height: 1.2;
}

.section-header h2 em {
  font-style: italic;
  color: var(--p-sage-700);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-sm);
}

.text-center { text-align: center; }
.text-sage   { color: var(--p-sage-700); }
.text-plum   { color: var(--p-plum-500); }
.text-terra  { color: var(--p-terracotta-500); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ============================================================
   6. TYPOGRAPHY SCALE
   ============================================================ */
.heading-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
}

.heading-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p-sage-700);
  margin-bottom: var(--sp-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--p-sage-500);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.section-title em {
  font-style: italic;
  color: var(--p-plum-500);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}


/* ============================================================
   7. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  border: none;
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Shine layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active       { transform: scale(0.98); }

.btn-large { padding: 1rem 2.5rem; font-size: var(--fs-base); }

/* Primary — sage filled */
.btn-primary {
  background: var(--p-sage-700);
  color: var(--p-white);
  box-shadow: 0 4px 20px rgba(78,115,85,0.35);
}
.btn-primary:hover {
  background: var(--p-sage-500);
  box-shadow: 0 8px 30px rgba(78,115,85,0.45);
  transform: translateY(-2px);
  color: var(--p-white);
}

/* Outline — adapts to theme via semantic tokens */
.btn-outline {
  background: transparent;
  color: var(--btn-outline-color);
  border: 1.5px solid var(--btn-outline-border);
}
.btn-outline:hover {
  border-color: var(--btn-outline-hover-border);
  color: var(--btn-outline-hover-text);
  background: var(--btn-outline-hover-bg);
  transform: translateY(-2px);
}

/* Ghost — used on dark/image backgrounds only */
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--p-white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  color: var(--p-white);
  transform: translateY(-2px);
}

/* Terracotta */
.btn-terra {
  background: var(--p-terracotta-500);
  color: var(--p-white);
  box-shadow: 0 4px 20px rgba(193,124,94,0.35);
}
.btn-terra:hover {
  background: var(--p-terracotta-700);
  box-shadow: 0 8px 30px rgba(193,124,94,0.5);
  transform: translateY(-2px);
  color: var(--p-white);
}

/* Outline on light backgrounds — nav CTA desktop */
.nav-cta-desktop {
  background: transparent;
  color: var(--nav-toggle-color-scroll);
  border: 1.5px solid var(--nav-toggle-border-scroll);
}
#navbar.transparent .nav-cta-desktop {
  color: var(--p-white);
  border-color: rgba(255,255,255,0.45);
}
.nav-cta-desktop:hover {
  background: var(--btn-outline-hover-bg);
  color: var(--btn-outline-hover-text);
  border-color: var(--btn-outline-hover-border);
}
#navbar.transparent .nav-cta-desktop:hover {
  background: rgba(255,255,255,0.15);
  color: var(--p-white);
  border-color: rgba(255,255,255,0.7);
}

/* Outline on gradient/dark sections */
.btn-outline-light {
  background: transparent;
  color: var(--p-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--p-white);
  color: var(--p-white);
}

/* Icon button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: var(--r-full);
}

.btn svg { flex-shrink: 0; }

/* Badge on gradient sections */
.badge-light {
  background: rgba(255,255,255,0.15);
  color: var(--p-white);
  border: 1px solid rgba(255,255,255,0.3);
}

.cta-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   8. SCROLL PROGRESS + PAGE LOADER
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--p-sage-700), var(--p-terracotta-500));
  z-index: 9999;
  transition: width 0.1s linear;
}

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.loader-bar {
  width: 140px;
  height: 2px;
  background: var(--border-color);
  border-radius: var(--r-full);
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p-sage-700), var(--p-terracotta-500));
  border-radius: var(--r-full);
  animation: loaderFill 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes loaderFill {
  0%   { width: 0%; }
  70%  { width: 85%; }
  100% { width: 100%; }
}


/* ============================================================
   9. NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--tr-base);
}

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}

/* ── Transparent state (on hero) ── */
#navbar.transparent .nav-inner {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

/* ── Scrolled / glass state ── */
#navbar.scrolled .nav-inner {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: var(--nav-shadow-scrolled);
  border-bottom: 1px solid var(--nav-border-scrolled);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--tr-fast);
  /* scrolled: uses theme text */
  color: var(--nav-text);
}

/* transparent state → always white */
#navbar.transparent .nav-logo .logo-main {
  color: var(--nav-text-transparent);
}

.nav-logo .logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-sage-700);
  font-weight: 500;
  margin-top: 1px;
  transition: color var(--tr-fast);
}

#navbar.transparent .nav-logo .logo-tag {
  color: var(--nav-logo-tag-transparent);
}

/* ── Links ── */
.nav-links-main {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--tr-fast);
  /* scrolled: readable on bg */
  color: var(--nav-text);
}

#navbar.transparent .nav-link {
  color: var(--nav-text-transparent);
  opacity: 0.9;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--nav-link-hover);
  transition: width var(--tr-base);
}

#navbar.transparent .nav-link::after {
  background: var(--nav-underline-transparent);
}

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

#navbar.transparent .nav-link:hover,
#navbar.transparent .nav-link.active {
  color: var(--p-white);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Actions area ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

/* ── Theme toggle ── */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--nav-toggle-border);
  background: transparent;
  color: var(--nav-toggle-color);
  transition: all var(--tr-fast);
}

#navbar.scrolled #theme-toggle {
  border-color: var(--nav-toggle-border-scroll);
  color: var(--nav-toggle-color-scroll);
}

#theme-toggle:hover {
  background: rgba(255,255,255,0.12);
}

#navbar.scrolled #theme-toggle:hover {
  background: var(--bg-secondary);
}

.theme-sun, .theme-moon {
  transition: opacity var(--tr-fast), transform var(--tr-fast);
}

[data-theme="dark"]  .theme-sun  { opacity: 0; transform: rotate(90deg) scale(0); position: absolute; }
[data-theme="dark"]  .theme-moon { opacity: 1; }
[data-theme="light"] .theme-moon { opacity: 0; transform: rotate(-90deg) scale(0); position: absolute; }
[data-theme="light"] .theme-sun  { opacity: 1; }

/* ── Hamburger ── */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

#menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--nav-burger-color);
  transition: all var(--tr-base);
  transform-origin: center;
}

#navbar.transparent #menu-toggle span {
  background: var(--nav-burger-transparent);
}

#menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
#menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* ── Mobile Nav Drawer ── */
#mobile-nav {
  position: fixed;
  top: var(--nav-h); right: 0;
  width: min(380px, 92vw);
  height: calc(100dvh - var(--nav-h));
  background: var(--bg-primary);
  z-index: 999;
  transform: translateX(110%);
  transition: transform var(--tr-slow);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  overflow-y: auto;
}

#mobile-nav.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-primary);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--tr-fast), padding var(--tr-base);
}

.mobile-nav-link:hover {
  color: var(--p-sage-700);
  padding-left: var(--sp-sm);
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
}

#nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--tr-base);
}

#nav-overlay.show { opacity: 1; visibility: visible; }


/* ============================================================
   10. HERO SECTION
   Always dark background → always white text. No theme tokens needed.
   ============================================================ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1A1512;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/your-new-background.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

}

.hero-badge {

  margin-bottom: 4cqmax;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--hero-badge-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hero-badge-border);
  border-radius: var(--r-full);
  padding: 0.4rem 1rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-badge-text);
  font-weight: 500;
  margin-bottom: var(--sp-md);
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-sage-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  color: var(--hero-text);
  line-height: 1.0;
  margin-bottom: var(--sp-md);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--p-terracotta-300);
  display: block;
}

.hero-desc {
  font-size: var(--fs-md);
  color: var(--hero-text-sub);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--hero-scroll-color);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.6));
}

@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: var(--hero-stat-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--hero-stat-border);
}

.hero-stats-inner {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.hero-stat {
  flex: 1;
  padding: 1.25rem var(--sp-md);
  text-align: center;
  border-right: 1px solid var(--hero-stat-border);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--hero-stat-text);
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--hero-stat-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ============================================================
   11. ABOUT SECTION
   ============================================================ */
.about { background: var(--bg-primary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about-image-block { position: relative; }

.about-img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--sh-card);
}

.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}

.about-img-main:hover img { transform: scale(1.04); }

.about-img-badge {
  position: absolute;
  bottom: -var(--sp-sm);
  right: -var(--sp-md);
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 1.25rem var(--sp-md);
  box-shadow: var(--sh-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  transform: translate(1.5rem, 1.5rem);
  border: 1px solid var(--border-color);
}

.about-badge-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-badge-icon svg { color: var(--p-white); }

.about-badge-text p:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}

.about-badge-text p:last-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.about-content { padding: var(--sp-md) 0; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--tr-fast);
  border: 1px solid var(--border-color);
}

.about-feature:hover .feature-icon { background: var(--p-sage-100); }

.feature-text h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.feature-text p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ============================================================
   12. COURSES SECTION
   ============================================================ */
.courses { background: var(--bg-secondary); }

.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.course-card {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow-soft);
  transition: all var(--tr-base);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
}

.course-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-8px);
}

.course-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grad-sage);
  position: relative;
}

.course-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}

.course-card:hover .course-card-img img { transform: scale(1.07); }

.course-card-img .course-tag {
  position: absolute;
  top: var(--sp-sm); left: var(--sp-sm);
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  padding: 0.3rem 0.875rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--p-sage-700);
  letter-spacing: 0.06em;
}

.course-card-body {
  padding: var(--sp-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.course-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.course-card-footer {
  margin-top: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border-color);
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.course-meta span:first-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-meta strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--p-sage-700);
}

.course-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--p-sage-100) 0%, var(--p-cream-200) 100%);
}

.course-placeholder-2 {
  background: linear-gradient(135deg, var(--p-terracotta-300) 0%, var(--p-cream-200) 100%);
}

.course-placeholder-3 {
  background: linear-gradient(135deg, var(--p-plum-300) 0%, var(--p-cream-200) 100%);
}


/* ============================================================
   13. BENEFITS SECTION
   ============================================================ */
.benefits { background: var(--bg-primary); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sage);
  opacity: 0;
  transition: opacity var(--tr-base);
}

.benefit-card:hover {
  box-shadow: var(--sh-card);
  transform: translateY(-6px);
  border-color: transparent;
}

.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--tr-base);
}

.benefit-card:hover .benefit-icon {
  background: var(--p-sage-100);
  border-color: var(--p-sage-500);
}

.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================================
   14. STATS SECTION
   Always dark gradient — white text always correct here.
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--p-sage-700) 0%, var(--p-plum-500) 100%);
  padding: var(--sp-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-item {
  background: transparent;
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--p-white);
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}

.stat-num sup {
  font-size: var(--fs-xl);
  margin-top: 0.4rem;
}

.stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--sp-xs);
}


/* ============================================================
   15. TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-secondary); }

.testimonials-header { margin-bottom: var(--sp-xl); }

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--sp-md);
  transition: transform var(--tr-slow);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - var(--sp-sm));
  background: var(--card-bg);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--card-border);
  transition: all var(--tr-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.testimonial-card:hover {
  box-shadow: var(--sh-card);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars span {
  color: var(--p-star-gold);
  font-size: var(--fs-sm);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--p-white);
  font-weight: 400;
  flex-shrink: 0;
}

.author-info p:first-child {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.author-info p:last-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  justify-content: center;
}

.testimonials-nav button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  transition: all var(--tr-fast);
  padding: 0;
}

.testimonials-nav button.active {
  background: var(--p-sage-700);
  transform: scale(1.3);
}


/* ============================================================
   16. BLOG SECTION
   ============================================================ */
.blog { background: var(--bg-primary); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.blog-featured {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all var(--tr-base);
  display: flex;
  flex-direction: column;
}

.blog-featured:hover {
  box-shadow: var(--sh-hover);
  transform: translateY(-6px);
}

.blog-featured-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-featured-body { padding: var(--sp-lg); flex: 1; }

.blog-tag {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--r-full);
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.blog-featured h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--sp-sm);
}

.blog-featured p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-mini-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.blog-mini {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  border: 1px solid var(--card-border);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  transition: all var(--tr-base);
}

.blog-mini:hover {
  box-shadow: var(--sh-card);
  transform: translateX(6px);
}

.blog-mini-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.blog-mini h4 {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.blog-mini p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ============================================================
   17. FAQ SECTION
   ============================================================ */
.faq { background: var(--bg-secondary); }

.faq-container {
  max-width: 760px;
  margin: var(--sp-xl) auto 0;
}

.faq-item { border-bottom: 1px solid var(--border-color); overflow: hidden; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--tr-fast);
}

.faq-question:hover { color: var(--p-sage-700); }

.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--tr-base);
  color: var(--text-primary);
}

.faq-icon svg { transition: transform var(--tr-base); }

.faq-item.open .faq-icon {
  background: var(--p-sage-700);
  border-color: var(--p-sage-700);
  color: var(--p-white);
}

.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--tr-slow);
}

.faq-answer-inner {
  padding-bottom: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ============================================================
   18. NEWSLETTER SECTION
   Dark gradient — white text always correct.
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--p-plum-500) 0%, var(--p-sage-700) 100%);
  padding: var(--sp-3xl) 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.newsletter::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -8%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  font-weight: 300;
  color: var(--p-white);
  margin-bottom: var(--sp-sm);
  line-height: 1.15;
}

.newsletter p {
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-md);
}

.newsletter-form {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--r-full);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color var(--tr-fast);
}

.newsletter-form:focus-within {
  border-color: rgba(255,255,255,0.65);
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 1rem var(--sp-md);
  color: var(--p-white);
  font-size: var(--fs-sm);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.52); }

.newsletter-form button {
  background: var(--p-white);
  color: var(--p-sage-700);
  border: none;
  padding: 0.75rem var(--sp-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  margin: 5px;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: var(--p-cream-200);
  color: var(--p-sage-900);
}


/* ============================================================
   19. CONTACT CTA SECTION
   ============================================================ */
.contact-cta { background: var(--bg-primary); }

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.contact-info { padding-top: var(--sp-sm); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.contact-detail-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--tr-fast);
  color: var(--text-primary);
}

.contact-detail-item:hover .contact-detail-icon {
  background: var(--p-sage-100);
  border-color: var(--p-sage-500);
}

.contact-detail-text p:first-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.contact-detail-text a,
.contact-detail-text p:last-child {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--tr-fast);
}

.contact-detail-text a:hover { color: var(--p-sage-700); }

.contact-form-card {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--sh-card);
  border: 1px solid var(--card-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-md);
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem var(--sp-md);
  border: 1.5px solid var(--input-border);
  border-radius: var(--r-md);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: var(--fs-sm);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--p-sage-500);
  box-shadow: 0 0 0 4px var(--input-focus-ring);
  background: var(--input-focus-bg);
}

.form-group input.error,
.form-group textarea.error { border-color: #E57373; }

.form-error {
  font-size: var(--fs-xs);
  color: #E57373;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  background: var(--p-sage-100);
  border: 1px solid var(--p-sage-500);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  text-align: center;
  color: var(--p-sage-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: none;
  margin-top: var(--sp-md);
}

.form-success.show { display: block; }


/* ============================================================
   20. FOOTER
   Always dark — all text/colors are hardcoded for dark bg.
   ============================================================ */
.footer,
#footer {
  background: var(--footer-bg);
  padding: var(--sp-3xl) 0 0;
}

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

.footer-brand .nav-logo { display: inline-flex; }

.footer-brand .logo-main {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--p-white);
  letter-spacing: 0.01em;
}

.footer-brand .logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-sage-500);
  font-weight: 500;
}

.footer-brand > p {
  margin-top: var(--sp-md);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--footer-text-muted);
  max-width: 260px;
}

.footer-social,
.footer-socials {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--footer-social-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-social-color);
  transition: all var(--tr-fast);
}

.social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: var(--p-white);
  transform: translateY(-3px);
}

.footer-col h4,
.footer-newsletter-mini h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: var(--sp-md);
}

.footer-newsletter-mini h4 { margin-bottom: var(--sp-sm); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--footer-link);
  transition: color var(--tr-fast), padding var(--tr-fast);
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  padding-left: 6px;
}

.footer-newsletter-mini > p {
  font-size: var(--fs-xs);
  color: var(--footer-text-muted);
  margin-bottom: var(--sp-sm);
  line-height: 1.6;
}

.footer-input-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--footer-input-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.footer-input-row input {
  flex: 1;
  background: var(--footer-input-bg);
  border: none;
  outline: none;
  padding: 0.65rem 0.875rem;
  font-size: var(--fs-xs);
  color: var(--footer-input-text);
}

.footer-input-row input::placeholder {
  color: var(--footer-input-placeholder);
}

.footer-input-row button {
  background: var(--footer-btn-bg);
  border: none;
  padding: 0.65rem 0.875rem;
  color: var(--p-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background var(--tr-fast);
  flex-shrink: 0;
}

.footer-input-row button:hover { background: var(--footer-btn-hover); }

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: var(--sp-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--footer-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-md);
}

.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: var(--footer-text-muted);
  transition: color var(--tr-fast);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }


/* ============================================================
   21. BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--p-sage-700);
  color: var(--p-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(78,115,85,0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--tr-base);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--p-sage-500);
  transform: translateY(-4px);
}


/* ============================================================
   22. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }


/* ============================================================
   23. INNER PAGE — PAGE HEADER
   Full-gradient header used on About, Contact, etc.
   Text always white — overlay handles readability.
   ============================================================ */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-3xl)) 0 var(--sp-3xl);
  text-align: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--p-sage-700) 0%, var(--p-sage-500) 50%, var(--p-plum-500) 100%);
  z-index: 0;
}

/* Subtle dot texture */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--page-header-text);
  margin: var(--sp-sm) 0;
  line-height: 1.15;
}

.page-header-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.page-header-sub {
  font-size: var(--fs-lg);
  color: var(--page-header-sub);
  max-width: 560px;
  margin: 0 auto var(--sp-md);
}

.page-header .section-badge {
  background: var(--page-header-badge-bg);
  color: var(--page-header-text);
  border: 1px solid var(--page-header-badge-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  color: var(--page-header-breadcrumb);
}

.breadcrumb a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--p-white); }


/* ============================================================
   24. INNER PAGE — ABOUT PAGE COMPONENTS
   ============================================================ */

/* About split (about.html mission section) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about-img-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--p-sage-100) 0%, var(--p-sage-500) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--p-white);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
}

/* About.html reuses .about-img-badge — override position for this layout */
.about-img-frame .about-img-badge {
  position: absolute;
  bottom: var(--sp-lg);
  left: var(--sp-lg);
  transform: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--sh-card);
  /* ensure text is always readable — badge is white bg */
  border: none;
}

.about-img-frame .about-img-badge strong {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--p-sage-700);
}

.about-img-frame .about-img-badge span {
  font-size: var(--fs-xs);
  color: var(--p-ink-500);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin: var(--sp-sm) 0 var(--sp-md);
}

.about-split-text h2 em {
  font-style: italic;
  color: var(--p-sage-700);
}

.lead-text {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--sp-md);
  line-height: 1.7;
}

.mission-stats-row {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-color);
}

.mission-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--p-sage-700);
  line-height: 1;
}

.mission-stat span:last-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
  border-color: var(--p-sage-100);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
  display: block;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.value-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: var(--sp-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 60px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--p-sage-100), var(--p-plum-500));
  opacity: .3;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-2xl);
  display: flex;
  gap: var(--sp-xl);
  align-items: flex-start;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 64px; height: 32px;
  background: var(--p-sage-700);
  color: var(--p-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .05em;
  z-index: 1;
  margin-top: 4px;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  right: -36px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--p-sage-500);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--p-sage-100);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-xl);
  flex: 1;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.timeline-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  text-align: center;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
}

.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-sage-100), var(--p-plum-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--sp-md);
  box-shadow: var(--sh-soft);
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.team-role {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--p-sage-700);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.team-info p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA section (on About page) */
.cta-section {
  background: linear-gradient(135deg, var(--p-sage-700) 0%, var(--p-plum-500) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  color: var(--p-white);
  margin: var(--sp-sm) 0 var(--sp-md);
  line-height: 1.2;
}

.cta-inner h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.82);
}

.cta-inner p {
  color: rgba(255,255,255,0.82);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xl);
}


/* ============================================================
   25. 404 PAGE
   ============================================================ */
.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl);
  background: var(--bg-primary);
}

.error-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 300;
  color: var(--p-sage-100);
  line-height: 1;
  margin-bottom: var(--sp-md);
}

.error-page h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.error-page p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto var(--sp-lg);
}

/* Inner pages generic hero fallback */
.page-hero {
  background: linear-gradient(135deg, var(--p-sage-700), var(--p-plum-500));
  padding: calc(var(--nav-h) + var(--sp-xl)) 0 var(--sp-xl);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: 300;
  color: var(--p-white);
  margin-bottom: var(--sp-sm);
}

.page-hero p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  margin: 0 auto;
}


/* ============================================================
   ABOUT PAGE — RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 900px) {
  .about-split            { grid-template-columns: 1fr; }
  .about-img-frame        { aspect-ratio: 16/9; max-height: 380px; }
  .values-grid            { grid-template-columns: repeat(2, 1fr); }
  .team-grid              { grid-template-columns: repeat(2, 1fr); }
  .timeline               { padding-left: var(--sp-xl); }
  .timeline::before       { left: 32px; }
}

@media (max-width: 600px) {
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .mission-stats-row       { gap: var(--sp-md); }
  .timeline                { padding-left: var(--sp-md); }
  .timeline::before        { display: none; }
  .timeline-item           { flex-direction: column; gap: var(--sp-sm); }
}








/* MOBILE HERO FIX */

@media(max-width:768px){

  /* Hide the scroll indicator on mobile */
  .hero-scroll {
    display: none;
  }

}