/* ============================================================
   HELIX GLOBAL INSTITUTE — THE MERIDIAN
   Design System v1.0 · April 2026
   helixglobalinstitute.org
   ============================================================ */

/* ---- 1. CUSTOM PROPERTIES --------------------------------- */
:root {
  /* Colour palette */
  --forest:           #1A2A1F;
  --forest-dark:      #0F1A14;
  --forest-mid:       #243829;
  --sage:             #2D7A5B;
  --sage-light:       #4CAF82;
  --sage-pale:        #EEF5F0;
  --terracotta:       #C4623A;
  --terracotta-light: #D9836A;
  --terracotta-pale:  #FBF0EB;
  --parchment:        #F8F4EF;
  --parchment-dark:   #EDE8E2;
  --ink:              #1A1C19;
  --ink-mid:          #3D4039;
  --ink-light:        #6B6F68;
  --white:            #FFFFFF;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-xxl:  6rem;

  /* Layout */
  --container:  1200px;
  --nav-height: 72px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 220ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip to main content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--sage);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---- 3. TYPOGRAPHY ---------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-italic {
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.eyebrow--light {
  color: rgba(238,245,240,0.65);
}

.eyebrow--terracotta {
  color: var(--terracotta-light);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-mid);
}

.lead--light {
  color: rgba(248,244,239,0.82);
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.45;
  border-left: 3px solid var(--terracotta);
  padding-left: var(--space-md);
  color: var(--forest);
  margin: var(--space-lg) 0;
}

/* ---- 4. LAYOUT -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--narrow {
  max-width: 820px;
}

.container--wide {
  max-width: 1400px;
}

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

.section--forest {
  background-color: var(--forest);
  color: var(--white);
}

.section--forest-mid {
  background-color: var(--forest-mid);
  color: var(--white);
}

.section--parchment {
  background-color: var(--parchment);
  color: var(--ink);
}

.section--parchment-dark {
  background-color: var(--parchment-dark);
  color: var(--ink);
}

.section--sage-pale {
  background-color: var(--sage-pale);
  color: var(--ink);
}

.section--white {
  background-color: var(--white);
  color: var(--ink);
}

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- 5. NAVIGATION ---------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--forest-dark);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-nav.scrolled {
  background-color: rgba(15, 26, 20, 0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo__icon {
  width: 32px;
  height: 38px;
  flex-shrink: 0;
}

.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav-logo__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-light);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(248,244,239,0.8);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--parchment);
  border-bottom-color: var(--sage-light);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--parchment);
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--forest-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(248,244,239,0.8);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--parchment);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-sm);
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(248,244,239,0.55);
  cursor: pointer;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.lang-btn:hover {
  color: var(--parchment);
  border-color: rgba(248,244,239,0.25);
}

.lang-btn.active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

/* Mobile nav lang switcher */
.nav-mobile .lang-switcher {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile .lang-btn {
  color: rgba(248,244,239,0.65);
  border-color: rgba(248,244,239,0.18);
}

.nav-mobile .lang-btn.active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

/* Page top padding (so content clears fixed nav) */
.page-top {
  padding-top: var(--nav-height);
}

/* ---- 6. BUTTONS ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn--primary:hover {
  background-color: var(--sage-light);
  border-color: var(--sage-light);
  color: var(--white);
}

.btn--secondary {
  background-color: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn--secondary:hover {
  background-color: var(--terracotta-light);
  border-color: var(--terracotta-light);
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  color: var(--parchment);
  border-color: rgba(248,244,239,0.35);
}

.btn--outline:hover {
  background-color: rgba(248,244,239,0.1);
  border-color: var(--parchment);
  color: var(--parchment);
}

.btn--outline-sage {
  background-color: transparent;
  color: var(--sage);
  border-color: var(--sage);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---- 7. HERO SECTIONS ------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-xxl);
  background-color: var(--forest);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%,
              rgba(45,122,91,0.12) 0%,
              transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  margin-bottom: var(--space-sm);
}

.hero__title {
  color: var(--parchment);
  margin-bottom: var(--space-md);
  max-width: 900px;
}

.hero__subtitle {
  color: rgba(248,244,239,0.75);
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.hero__subtitle em {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(248,244,239,0.9);
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background-color: var(--forest);
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  color: var(--white);
}

.page-hero__label {
  margin-bottom: var(--space-xs);
}

.page-hero__title {
  color: var(--parchment);
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  color: rgba(248,244,239,0.75);
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- 8. SECTION HEADERS ----------------------------------- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header__eyebrow {
  margin-bottom: 0.5rem;
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__body {
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-header__body--light {
  color: rgba(248,244,239,0.72);
}

/* ---- 9. CARDS --------------------------------------------- */

/* Branch architecture card */
.branch-card {
  background-color: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage-pale);
  box-shadow: 0 8px 32px rgba(26,42,31,0.08);
  color: inherit;
}

.branch-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.branch-card__icon svg {
  width: 22px;
  height: 22px;
}

.branch-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.branch-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.branch-card__body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-md);
}

.branch-card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.branch-card__link::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}

.branch-card:hover .branch-card__link::after {
  transform: translateX(4px);
}

/* Service card (Consulting page) */
.service-card {
  background-color: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.service-card:hover {
  border-color: var(--sage-pale);
  box-shadow: 0 4px 24px rgba(26,42,31,0.06);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  opacity: 0.75;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.3;
}

.service-card__body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.75;
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--parchment-dark);
  margin-top: auto;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sage);
  background-color: var(--sage-pale);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Publication card */
.pub-card {
  background-color: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.pub-card:hover {
  border-color: var(--sage-pale);
  box-shadow: 0 4px 24px rgba(26,42,31,0.06);
}

.pub-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-card__year {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-light);
}

.pub-card__journal {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  background-color: var(--terracotta-pale);
  padding: 2px 10px;
  border-radius: 20px;
}

.pub-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.45;
}

.pub-card__author {
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* Value card */
.value-card {
  padding: var(--space-md);
  border-top: 3px solid var(--sage-pale);
  transition: border-color var(--duration) var(--ease);
}

.value-card:hover {
  border-top-color: var(--sage);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.value-card__body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* Enquiry pathway card */
.enquiry-card {
  background-color: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.enquiry-card:hover,
.enquiry-card.selected {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.enquiry-card.selected {
  background-color: var(--sage-pale);
}

.enquiry-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.enquiry-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.enquiry-card__body {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* Course card (Evidentia) */
.course-card {
  background-color: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--sage-pale);
  box-shadow: 0 6px 28px rgba(26,42,31,0.08);
  transform: translateY(-3px);
  color: inherit;
}

.course-card__thumb {
  height: 140px;
  background-color: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage);
}

.course-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-card__level {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.course-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
  line-height: 1.35;
}

.course-card__desc {
  font-size: 0.87rem;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.course-card__footer {
  padding: 0.75rem var(--space-md);
  border-top: 1px solid var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.badge--sage {
  background-color: var(--sage-pale);
  color: var(--sage);
}

.badge--terracotta {
  background-color: var(--terracotta-pale);
  color: var(--terracotta);
}

.badge--forest {
  background-color: rgba(26,42,31,0.08);
  color: var(--forest);
}

.badge--coming {
  background-color: var(--parchment-dark);
  color: var(--ink-light);
}

/* ---- 10. STATISTICS BAND ---------------------------------- */
.stats-band {
  background-color: var(--forest-dark);
  padding: var(--space-xl) 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--terracotta-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(248,244,239,0.65);
  line-height: 1.5;
}

/* ---- 11. CALLOUT BOX -------------------------------------- */
.callout {
  border-left: 3px solid var(--sage);
  background-color: var(--sage-pale);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
}

.callout--terracotta {
  border-left-color: var(--terracotta);
  background-color: var(--terracotta-pale);
}

.callout__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.35rem;
  font-style: italic;
}

.callout__body {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ---- 12. FORMS -------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1.5px solid var(--parchment-dark);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(45,122,91,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6F68' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* ---- 13. FOOTER ------------------------------------------- */
.site-footer {
  background-color: var(--forest-dark);
  color: rgba(248,244,239,0.7);
  padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--space-lg);
}

.footer-brand__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(248,244,239,0.55);
  margin: var(--space-sm) 0;
}

.footer-brand__mission {
  font-size: 0.85rem;
  color: rgba(248,244,239,0.45);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col__title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,244,239,0.4);
  margin-bottom: var(--space-sm);
}

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(248,244,239,0.6);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--parchment);
}

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

.footer-social a {
  font-size: 0.875rem;
  color: rgba(248,244,239,0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--duration) var(--ease);
}

.footer-social a:hover {
  color: var(--sage-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__copy {
  font-size: 0.8rem;
  color: rgba(248,244,239,0.35);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom__links a {
  font-size: 0.8rem;
  color: rgba(248,244,239,0.35);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-bottom__links a:hover {
  color: rgba(248,244,239,0.65);
}

/* Geneva/WHO marker */
.footer-hq {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(248,244,239,0.35);
  margin-top: var(--space-sm);
}

.footer-hq::before {
  content: '◆';
  font-size: 0.5rem;
  color: var(--sage-light);
  opacity: 0.6;
}

/* ---- 14. ANIMATIONS --------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- 15. DIVIDERS & UTILITIES ----------------------------- */
.divider {
  height: 1px;
  background-color: var(--parchment-dark);
  border: none;
  margin: var(--space-xl) 0;
}

.divider--light {
  background-color: rgba(255,255,255,0.08);
}

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

.text-sage       { color: var(--sage); }
.text-terracotta { color: var(--terracotta); }
.text-forest     { color: var(--forest); }
.text-ink-mid    { color: var(--ink-mid); }
.text-ink-light  { color: var(--ink-light); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

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

.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;
}

/* Horizontal rule separator */
.section-rule {
  width: 48px;
  height: 2px;
  background-color: var(--sage);
  border: none;
  margin: 0 0 var(--space-md);
}

.section-rule--terracotta {
  background-color: var(--terracotta);
}

/* ---- 16. RESPONSIVE --------------------------------------- */

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  :root {
    --space-xl:  2.5rem;
    --space-xxl: 4rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: var(--space-xl);
  }
}

/* Small mobile — ≤ 480px */
@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
  }
}
