/* style.css — iGLMS Design Tokens + Components + Sections */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Brand Colors */
  --brand-blue:    #0010D8;
  --brand-green:   #96FF00;
  --brand-pink:    #EBCFFF;
  --brand-black:   #080F0F;
  --brand-dark:    #060A2E;

  /* Surfaces — Light theme (white-based) */
  --color-bg:             #FFFFFF;
  --color-surface:        #F8F9FA;
  --color-surface-2:      #F1F3F5;
  --color-surface-offset: #E9ECEF;
  --color-divider:        #DEE2E6;
  --color-border:         #CED4DA;

  /* Text */
  --color-text:           #080F0F;
  --color-text-muted:     #495057;
  --color-text-faint:     #868E96;
  --color-text-inverse:   #FFFFFF;

  /* Fonts */
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'General Sans', sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.2 0.02 250 / 0.16);

  /* Content Widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --content-max:     1400px;
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

.container--max {
  max-width: var(--content-max);
}

.section-padding {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}


/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-6);
  background: var(--brand-blue);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: transform var(--transition-interactive);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) 0;
  transition: background 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              padding 300ms var(--ease-out);
}

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

.header-logo {
  height: 68px;
  width: auto;
  transition: opacity var(--transition-interactive);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.header-logo--white { display: block; }
.header-logo--blue  { display: none; }

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 oklch(0.2 0 0 / 0.08);
  padding: var(--space-3) 0;
}

.site-header.scrolled .header-logo--white { display: none; }
.site-header.scrolled .header-logo--blue  { display: block; }
.site-header.scrolled .nav-link { color: var(--color-text); }
.site-header.scrolled .nav-link:hover { color: var(--brand-blue); }
.site-header.scrolled .hamburger span { background: var(--color-text); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-interactive);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--brand-green);
  color: var(--brand-black);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive),
              transform var(--transition-interactive);
}

.nav-cta:hover {
  background: #a8ff33;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 300ms var(--ease-out),
              opacity 200ms var(--ease-out),
              background 300ms var(--ease-out);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 85vw);
  height: 100dvh;
  background: var(--brand-dark);
  z-index: 105;
  padding: calc(var(--space-32) + var(--space-4)) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform 400ms var(--ease-out);
}

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

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.05 0.02 250 / 0.6);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}

.mobile-nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition-interactive);
}

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

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
  min-height: 48px;
  letter-spacing: 0.01em;
}

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

.btn--primary {
  background: var(--brand-green);
  color: var(--brand-black);
}

.btn--primary:hover {
  background: #a8ff33;
  box-shadow: 0 4px 20px oklch(0.7 0.2 130 / 0.3);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.btn--dark {
  background: var(--brand-blue);
  color: #fff;
}

.btn--dark:hover {
  background: #0018f0;
  box-shadow: 0 4px 20px oklch(0.3 0.15 265 / 0.3);
}

.contact-form .btn {
  align-self: flex-start;
  min-width: 180px;
}


/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

.section-label--light {
  color: var(--brand-green);
}

.section-label--light::before {
  background: var(--brand-green);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

/* JS fallback for browsers without scroll-driven animations */
.reveal.js-reveal {
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.reveal.js-reveal.visible {
  opacity: 1;
}


/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      oklch(0.12 0.04 265 / 0.60) 0%,
      oklch(0.12 0.04 265 / 0.50) 40%,
      oklch(0.12 0.04 265 / 0.72) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--brand-green);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: var(--space-8);
  letter-spacing: 0.03em;
  width: fit-content;
}

.hero-badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}

.hero-badge--link:hover {
  background: var(--brand-green);
  color: var(--color-bg);
  border-color: var(--brand-green);
}

.hero-badge--link:hover svg {
  stroke: var(--color-bg);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  max-width: 20ch;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  min-height: 2.2em;
  position: relative;
}

/* --- Rotating Banner (Horizontal Carousel) --- */
.hero-rotator {
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-rotator-item {
  display: block;
  opacity: 0;
  transform: translateX(100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-rotator-item.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.hero-rotator-item.exit-left {
  opacity: 0;
  transform: translateX(-100%);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-hero);
    max-width: 20ch;
  }
}


/* ============================================================
   2. PARTNERSHIP MANIFESTO
   ============================================================ */

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

.manifesto-header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 768px) {
  .manifesto-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  background: var(--color-surface);
  border: 1px solid oklch(0.7 0 0 / 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(0.7 0 0 / 0.2);
}

.story-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: oklch(from var(--brand-blue) l c h / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--brand-blue);
}

.story-card-icon svg {
  width: 24px;
  height: 24px;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.story-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.manifesto-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.manifesto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   3. DIFFERENTIATOR — COMPLETE COVERAGE
   ============================================================ */

.differentiator {
  background: var(--color-surface);
}

.differentiator-header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.differentiator-image {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
  box-shadow: var(--shadow-lg);
}

.differentiator-image img {
  width: 100%;
  height: auto;
}

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

@media (min-width: 640px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sector-card {
  background: var(--color-bg);
  border: 1px solid oklch(0.7 0 0 / 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

.sector-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: oklch(from var(--brand-blue) l c h / 0.2);
}

.sector-card:active {
  transform: translateY(0);
}

.sector-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: oklch(from var(--brand-blue) l c h / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--brand-blue);
}

.sector-card-icon svg {
  width: 24px;
  height: 24px;
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.sector-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-inline: auto;
}


/* ============================================================
   4. SOLUTIONS (DARK SECTION)
   ============================================================ */

.solutions {
  position: relative;
  background: var(--brand-dark);
  overflow: hidden;
}

.solutions-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
}

.solutions-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.solutions-header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.solutions-header .section-title {
  color: #fff;
}

.solutions-header .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  flex-wrap: wrap;
}

.tab-btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
  cursor: pointer;
  background: transparent;
  min-height: 44px;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.tab-btn.active {
  color: var(--brand-black);
  background: var(--brand-green);
  border-color: var(--brand-green);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  animation: tabFadeIn 400ms var(--ease-out);
}

@media (min-width: 768px) {
  .tab-panel.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.solution-card {
  background: oklch(0.15 0.03 265 / 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.solution-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.2);
}

.solution-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: oklch(from var(--brand-green) l c h / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-green);
}

.solution-card-icon svg {
  width: 20px;
  height: 20px;
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-2);
}

.solution-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}


/* ============================================================
   5. COMMUNITY IMPACT
   ============================================================ */

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

.impact-header {
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

/* Brand Video */
.brand-video-wrap {
  max-width: 900px;
  margin: 0 auto clamp(var(--space-10), 5vw, var(--space-16));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.brand-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--color-text);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(0.7 0 0 / 0.1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums lining-nums;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.testimonial-stage {
  position: relative;
}

.testimonial-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 400ms ease, visibility 0s linear 0s;
}

.testimonial-slide:not(.active) {
  position: absolute;
  inset: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid oklch(from var(--brand-blue) l c h / 0.35);
  background: transparent;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
  padding: 0;
}

.testimonial-arrow svg {
  width: 18px;
  height: 18px;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid oklch(from var(--brand-blue) l c h / 0.35);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
}

.testimonial-dot.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.15);
}

/* Testimonial */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  border: 1px solid oklch(0.7 0 0 / 0.1);
  position: relative;
}

.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: oklch(from var(--brand-blue) l c h / 0.15);
  line-height: 1;
  position: absolute;
  top: var(--space-6);
  left: clamp(var(--space-6), 3vw, var(--space-10));
}

.testimonial blockquote {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-6);
  max-width: 60ch;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: oklch(from var(--brand-blue) l c h / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--brand-blue);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Impact Gallery */
.impact-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .impact-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.impact-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.impact-card:hover img {
  transform: scale(1.03);
}

.impact-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(0deg, oklch(0.1 0.02 250 / 0.85) 0%, transparent 100%);
}

.impact-card-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-1);
}

.impact-card-overlay p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}


/* ============================================================
   6. PARTNERS
   ============================================================ */

.partners {
  background: var(--color-surface);
}

.partners-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  padding: var(--space-2) var(--space-4);
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--transition-interactive),
              filter var(--transition-interactive);
  text-decoration: none;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.partner-logo img {
  max-height: 100%;
  max-width: 210px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ============================================================
   7. CONTACT
   ============================================================ */

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

.contact-header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.contact-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--brand-blue);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.contact-detail a:hover {
  color: #0018f0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-input {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid oklch(0.7 0 0 / 0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
  min-height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px oklch(from var(--brand-blue) l c h / 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   8. FOOTER
   ============================================================ */

.site-footer {
  background: var(--brand-dark);
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

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

.footer-brand-logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 32ch;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-interactive);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  transition: color var(--transition-interactive);
}

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

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-interactive),
              border-color var(--transition-interactive),
              background var(--transition-interactive);
}

.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   ACCESSIBILITY TOOLBAR
   ============================================================ */

.a11y-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0000D8;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  transform: scale(1.08);
  background: #0010D8;
}
.a11y-toggle svg {
  width: 26px;
  height: 26px;
}

.a11y-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  color: #101010;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 24px 22px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.a11y-panel.is-open {
  transform: translateX(0);
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.a11y-panel-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #0000D8;
}
.a11y-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ddd;
  color: #101010;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.a11y-panel-close:hover,
.a11y-panel-close:focus-visible {
  background: #f3f3f3;
}
.a11y-panel-close svg {
  width: 18px;
  height: 18px;
}

.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.a11y-group-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.a11y-button-row {
  display: flex;
  gap: 8px;
}
.a11y-btn {
  flex: 1;
  padding: 12px 0;
  border: 2px solid #d5d5d5;
  background: #fff;
  color: #101010;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.a11y-btn:nth-child(2) { font-size: 17px; }
.a11y-btn:nth-child(3) { font-size: 20px; }
.a11y-btn:hover {
  border-color: #0000D8;
}
.a11y-btn[aria-pressed="true"] {
  background: #0000D8;
  border-color: #0000D8;
  color: #fff;
}

.a11y-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}
.a11y-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.a11y-switch-track {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #d5d5d5;
  transition: background 0.2s ease;
}
.a11y-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.a11y-switch input:checked + .a11y-switch-track {
  background: #0000D8;
}
.a11y-switch input:checked + .a11y-switch-track::after {
  transform: translateX(18px);
}
.a11y-switch input:focus-visible + .a11y-switch-track {
  outline: 2px solid #0000D8;
  outline-offset: 2px;
}
.a11y-switch-label {
  font-size: 15px;
  color: #101010;
}

.a11y-reset {
  margin-top: auto;
  padding: 12px;
  background: #fff;
  border: 2px solid #0000D8;
  color: #0000D8;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.a11y-reset:hover,
.a11y-reset:focus-visible {
  background: #0000D8;
  color: #fff;
}

/* ---- Body-level toggles applied by JS ---- */

body.a11y-text-large { font-size: 112.5%; }
body.a11y-text-xlarge { font-size: 125%; }

body.a11y-dyslexia,
body.a11y-dyslexia * {
  font-family: "OpenDyslexic", "Comic Sans MS", "Trebuchet MS", sans-serif !important;
  letter-spacing: 0.02em;
}

body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* High contrast mode — black bg, white text, yellow accents */
body.a11y-high-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-high-contrast .site-header,
body.a11y-high-contrast .mobile-nav,
body.a11y-high-contrast .footer,
body.a11y-high-contrast section,
body.a11y-high-contrast main {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6,
body.a11y-high-contrast p,
body.a11y-high-contrast span,
body.a11y-high-contrast li,
body.a11y-high-contrast div,
body.a11y-high-contrast label {
  color: #fff !important;
  background-color: transparent !important;
}
body.a11y-high-contrast a,
body.a11y-high-contrast .nav-link,
body.a11y-high-contrast .mobile-nav-link {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.a11y-high-contrast .btn,
body.a11y-high-contrast .nav-cta,
body.a11y-high-contrast button:not(.a11y-toggle):not(.a11y-panel-close):not(.a11y-btn):not(.a11y-reset):not(.a11y-switch) {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #ffff00 !important;
}
body.a11y-high-contrast img:not([alt=""]):not(.header-logo) {
  filter: grayscale(100%) contrast(1.1);
}
body.a11y-high-contrast .hero-overlay,
body.a11y-high-contrast .hero-bg::after {
  background: rgba(0, 0, 0, 0.85) !important;
}

/* Keep the a11y toolbar itself readable in high contrast */
body.a11y-high-contrast .a11y-panel {
  background: #000 !important;
  color: #fff !important;
  border-left: 2px solid #ffff00;
}
body.a11y-high-contrast .a11y-panel-title,
body.a11y-high-contrast .a11y-group-label,
body.a11y-high-contrast .a11y-switch-label {
  color: #fff !important;
}
body.a11y-high-contrast .a11y-btn {
  background: #000 !important;
  color: #fff !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast .a11y-btn[aria-pressed="true"] {
  background: #ffff00 !important;
  color: #000 !important;
}
body.a11y-high-contrast .a11y-reset {
  background: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

@media (max-width: 640px) {
  .a11y-toggle {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
  .a11y-panel {
    width: 88vw;
    padding: 20px 18px;
  }
}

/* ============================================================
   LANGUAGE SWITCHER (EN / PT / FR)
   ============================================================ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 8px 0 10px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
/* Blue pills when header has scrolled (dark logo state) */
.site-header.scrolled .lang-switcher,
body:not(.hero-in-view) .lang-switcher {
  border-color: rgba(0, 0, 216, 0.25);
  background: rgba(0, 0, 216, 0.06);
}
.lang-switcher .lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 12px/1 "General Sans", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header.scrolled .lang-switcher .lang-btn,
body:not(.hero-in-view) .lang-switcher .lang-btn {
  color: #0000D8;
}
.lang-switcher .lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.site-header.scrolled .lang-switcher .lang-btn:hover,
body:not(.hero-in-view) .lang-switcher .lang-btn:hover {
  background: rgba(0, 0, 216, 0.1);
}
.lang-switcher .lang-btn.active,
.lang-switcher .lang-btn.is-active,
.lang-switcher .lang-btn[aria-pressed="true"] {
  background: #0000D8;
  color: #fff;
}
.site-header.scrolled .lang-switcher .lang-btn.active,
.site-header.scrolled .lang-switcher .lang-btn.is-active,
.site-header.scrolled .lang-switcher .lang-btn[aria-pressed="true"],
body:not(.hero-in-view) .lang-switcher .lang-btn.active,
body:not(.hero-in-view) .lang-switcher .lang-btn.is-active,
body:not(.hero-in-view) .lang-switcher .lang-btn[aria-pressed="true"] {
  background: #0000D8;
  color: #fff;
}
.lang-switcher .lang-btn:focus-visible {
  outline: 2px solid #96FF00;
  outline-offset: 2px;
}

/* Mobile variant lives inside the mobile nav drawer */
.lang-switcher--mobile {
  margin: 24px 0 12px;
  align-self: flex-start;
  border-color: rgba(0, 0, 216, 0.25);
  background: rgba(0, 0, 216, 0.06);
}
.lang-switcher--mobile .lang-btn {
  color: #0000D8;
  padding: 8px 14px;
  font-size: 13px;
}
.lang-switcher--mobile .lang-btn:hover {
  background: rgba(0, 0, 216, 0.1);
}
.lang-switcher--mobile .lang-btn.active,
.lang-switcher--mobile .lang-btn[aria-pressed="true"] {
  background: #0000D8;
  color: #fff;
}

/* Hide the desktop switcher in mobile menu (hamburger state) */
@media (max-width: 900px) {
  .nav-desktop .lang-switcher {
    display: none;
  }
}
/* Hide the mobile-nav switcher on desktop */
@media (min-width: 901px) {
  .mobile-nav .lang-switcher--mobile {
    display: none;
  }
}
