@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --primary: hsl(154, 28%, 18%);      /* Deep Forest Green */
  --primary-light: hsl(154, 25%, 26%);
  --primary-dark: hsl(154, 35%, 12%);
  --primary-rgb: 20, 36, 29;
  
  --accent: #C68A44;        /* Warm Gold (#C68A44) */
  --accent-light: hsl(32, 53%, 62%);
  --accent-dark: hsl(32, 53%, 38%);
  --accent-rgb: 198, 138, 68;
  
  --clay: hsl(20, 52%, 48%);          /* Terracotta Clay */
  --dawn: #C68A44;          /* Warm Gold accent */
  --sage: hsl(135, 12%, 42%);         /* Deeper Sage */
  --sage-light: hsl(135, 10%, 75%);   /* Soft Sage */
  
  --bg-light: hsl(40, 24%, 96%);      /* Healing Cream */
  --bg-alt: hsl(40, 15%, 91%);        /* Sandy Grey */
  --bg-dark: hsl(154, 25%, 11%);      /* Dark forest charcoal */
  --bg-header: rgba(246, 244, 240, 0.85);
  
  --text-dark: hsl(154, 30%, 12%);    /* Soft black with forest tint */
  --text-muted: hsl(150, 10%, 42%);
  --text-light: hsl(40, 20%, 92%);
  --text-light-muted: hsl(40, 10%, 75%);
  
  --border-light: rgba(20, 36, 29, 0.08);
  --border-dark: rgba(246, 244, 240, 0.1);
  --shadow-sm: 0 4px 12px rgba(20, 36, 29, 0.03);
  --shadow-md: 0 12px 30px rgba(20, 36, 29, 0.06);
  --shadow-lg: 0 20px 48px rgba(20, 36, 29, 0.1);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-light);
}

/* Layout Utilities */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Section Headings */
.section-head {
  max-width: 72ch;
  margin-bottom: 3.5rem;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.center .eyebrow {
  justify-content: center;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 138, 68, 0.25);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 36, 29, 0.15);
}

.btn-on-dark {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(246, 244, 240, 0.3);
}

.btn-on-dark:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
  border-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand-logo {
  height: 65px; /* Increased for clarity */
  width: auto;
  max-width: 350px;
}

.footer-logo {
  height: 60px; /* Increased for clarity */
  width: auto;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--accent-dark);
  font-weight: 600;
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1002;
  border: 1px solid var(--border-light);
  margin-top: 10px;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: var(--bg-alt);
  color: var(--accent-dark);
}

.dropdown-menu a::after {
  display: none; /* No underline effect for dropdown items */
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 120px 2.5rem 2.5rem;
    align-items: flex-start;
    gap: 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-cta .btn {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 1rem 0 0 1rem;
    min-width: 100%;
    margin-top: 0;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 4rem;
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: left;
  position: relative;
  background-image: linear-gradient(
      to right,
      rgba(20, 36, 29, 0.95) 20%,
      rgba(20, 36, 29, 0.85) 50%,
      rgba(20, 36, 29, 0.4) 100%
    ),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
  line-height: 1.15;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero p.lead {
  color: var(--text-light-muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
  opacity: 0;
}

.hero .btn-row {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
  opacity: 0;
}

.hero .eyebrow {
  color: var(--dawn);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Page Specific Hero */
.page-hero {
  min-height: auto;
  height: auto;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 140px;
  padding-bottom: 5.5rem;
  background-image: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    hsl(154, 25%, 15%) 100%
  );
  background-size: cover;
  background-position: center;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 25ch;
  color: #fff;
}

.page-hero p.lead {
  max-width: 68ch;
  color: var(--text-light-muted);
  margin-bottom: 0;
}

.riftline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero .riftline {
  height: 120px;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 2.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding-top: 120px;
    padding-bottom: 4.5rem;
  }
  .riftline {
    height: 50px;
  }
  .hero .riftline {
    height: 70px;
  }
}

@media (max-width: 550px) {
  .nav {
    padding: 0 1.25rem;
    height: 75px;
  }
  .brand-logo {
    height: 52px;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-hero {
    padding-top: 105px;
    padding-bottom: 3.5rem;
  }
}

/* Card design */
.card, .value-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before, .value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover, .value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 36, 29, 0.12);
}

.card:hover::before, .value-card:hover::before {
  transform: scaleX(1);
}

.card .num, .value-card .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.card h4, .value-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.card p, .value-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Value card modifications */
.value-card {
  padding: 2rem;
}

/* Pathway/Timelines */
.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.path-step {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(20, 36, 29, 0.06);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

/* When path-body is present, reset the outer padding so images flush to edges */
.path-step:has(.path-img) {
  padding: 0;
}

.path-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(20, 36, 29, 0.14);
  border-color: rgba(198, 138, 68, 0.3);
}

/* Image container */
.path-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.path-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

.path-step:hover .path-img img {
  transform: scale(1.07);
}

/* Gradient overlay on image */
.path-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 36, 29, 0.05) 0%,
    rgba(20, 36, 29, 0.35) 100%
  );
  pointer-events: none;
}

/* Stage badge on image */
.stage-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

/* Card body */
.path-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--accent), var(--clay));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 0 0 20px 20px;
}

.path-step:hover .path-body {
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--accent), var(--clay));
}

.path-body h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.path-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Legacy stage-label (keep for other pages) */
.stage-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 1rem;
}

.path-step h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding: 0;
}

.path-step > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0;
  margin-bottom: 0;
}

/* Override inside section-dark */
.section-dark .path-step {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section-dark .path-step:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: none;
}

.section-dark .stage-label {
  color: var(--dawn);
}

.section-dark .path-step h4 {
  color: #fff;
}

.section-dark .path-step p {
  color: var(--text-light-muted);
}

@media (max-width: 1024px) {
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .path {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* Quote blocks */
.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--accent);
}

/* Founder Portrait & Layout */
.founder {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.founder-portrait {
  width: 240px;
  height: 312px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-alt);
}

.founder h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .founder-portrait {
    margin: 0 auto;
  }
}

/* Stats section */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat .figure {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat .label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 500px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SMART STAT CARDS — "By the Numbers" Section
   ============================================ */
.stats-section {
  background-color: var(--bg-light);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .stat-cards { grid-template-columns: 1fr; }
}

/* Card shell */
.stat-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(20, 36, 29, 0.05);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.25,1,0.5,1), transform 0.55s cubic-bezier(0.25,1,0.5,1);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* Subtle accent shimmer on top */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }

/* Card top row */
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.stat-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, hsl(154,28%,93%), hsl(154,25%,88%));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-icon svg { width: 17px; height: 17px; }

.stat-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* Big figure */
.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-figure sup {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--accent);
}

/* Description */
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Chart container */
.stat-chart {
  margin-top: 0.75rem;
  width: 100%;
}

/* ---- Bar Chart (Card 1) ---- */
.bar-chart { display: flex; flex-direction: column; gap: 0.6rem; }

.bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.bar-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.bar-track {
  background: var(--bg-alt);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: var(--bar-color, var(--primary));
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Donut Chart (Card 2) ---- */
.donut-chart {
  display: flex;
  justify-content: center;
}

.donut-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.donut-bg {
  stroke: var(--bg-alt);
}

.donut-ring {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.donut-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  fill: var(--primary-dark);
  transform: rotate(90deg);
  transform-origin: center;
}

.donut-sub {
  font-family: var(--font-body);
  font-size: 9px;
  fill: var(--text-muted);
  transform: rotate(90deg);
  transform-origin: center;
}

/* ---- Split Chart (Card 3) ---- */
.split-chart { display: flex; flex-direction: column; gap: 0.5rem; }

.split-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.split-label strong {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--primary-dark);
}

.split-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.split-dot.youth { background: var(--accent); }
.split-dot.adult { background: var(--primary-light); }

.split-track {
  display: flex;
  height: 14px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg-alt);
}

.split-fill {
  height: 100%;
  width: 0;
  transition: width 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.youth-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 50px 0 0 50px;
}

.adult-fill {
  background: var(--primary-light);
  border-radius: 0 50px 50px 0;
}

/* ---- Region Chart (Card 4) ---- */
.region-chart { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.25rem; }

.region-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.region-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.region-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.region-name {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.region-bar-wrap {
  height: 5px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
}

.region-bar {
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Card footer tag ---- */
.stat-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.stat-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}



/* FAQ / Accordion Details & Summary */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin-top: 2rem;
}

.faq-item {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 36, 29, 0.12);
}

.faq-item summary {
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 2rem 1.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

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

.field.full {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: span 1;
  }
}

.field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(198, 138, 68, 0.15);
}

.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 0.2rem;
  cursor: pointer;
}

/* Table Design */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1.25rem 2rem;
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-dark);
  color: var(--dawn);
}

td {
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light-muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Contact Details Table Specific Styles */
section table {
  margin-top: 1.5rem;
}

section th, section td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
}

section th {
  background-color: transparent;
  color: var(--primary-dark);
  text-transform: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  width: 120px;
}

section td {
  color: var(--text-muted);
}

section tr:last-child th, section tr:last-child td {
  border-bottom: none;
}

/* CTA Band */
.cta-band {
  background-image: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    hsl(154, 25%, 15%) 100%
  );
  text-align: center;
  padding: 6rem 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.cta-band p {
  color: var(--text-light-muted);
  font-size: 1.15rem;
}

.cta-band .btn {
  margin-top: 0.5rem;
}

/* Footer layout */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 5.5rem 0 3.5rem;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
}

.footer-grid h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-grid p {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-top: 1.5rem;
  position: relative;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent);
}

.contact-icon {
  width: 1.1em;
  height: 1.1em;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 0.85rem;
}

.footer-grid ul li a,
.footer-contact-item {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  transition: color 0.25s ease;
}

.footer-grid .contact-icon {
  margin-top: 0.15rem;
  stroke: var(--accent-light);
}

.footer-grid ul li a:hover {
  color: var(--accent-light);
}

.footer-grid ul li a:hover .contact-icon {
  stroke: #fff;
  transform: scale(1.15);
}

/* NACADA Helpline button in footer */
.footer-grid ul li.nacada-helpline-li {
  margin-top: 0.75rem;
}

.nacada-helpline-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 50px !important;
  border: 1px solid var(--accent) !important;
  background: rgba(198, 138, 68, 0.1) !important;
  color: var(--accent-light) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.2s ease !important;
  text-decoration: none !important;
}

.nacada-helpline-btn:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(198, 138, 68, 0.3) !important;
  transform: translateY(-1px) !important;
  border-color: var(--accent) !important;
}

.contact-table-link,
.contact-table-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.contact-table-link:hover {
  color: var(--accent-dark);
}

.contact-table-link:hover .contact-icon {
  transform: scale(1.15);
  stroke: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 550px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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