﻿@import url('https://fonts.googleapis.com/css?family=Urbanist:700|Source%20Sans%20Pro:400');

:root {
  --text: #1A1C1E;
  --background: #F4F5F6;
  --primary: #004E7C;
  --secondary: #636A73;
  --accent: #0c7a7b;

  --bg: var(--background);
  --ink: var(--text);
  --muted: var(--secondary);
  --line: #e5e7eb;
  --surface: #ffffff;

  --maxw: 1120px;
  --gutter: 24px;
  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-2: 0 4px 14px rgba(15,23,42,0.08);
  --header-h: 72px;
  --logo-size: 36px;
  --wordmark-size: 1rem;
}

/* Expanded header at page top (shrinks on scroll) */
body:not(.compact-header) {
  --header-h: 112px;
  --logo-size: 64px;
  --wordmark-size: 1.2rem;
}

html { font-size: 100%; scroll-behavior: smooth; }
body { font-family: 'Source Sans Pro', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 400; color: var(--ink); background: var(--surface); line-height: 1.6; }
h1, h2, h3, h4, h5 { font-family: 'Urbanist', ui-sans-serif, system-ui; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 4.210rem; }
h2 { font-size: 3.158rem; }
h3 { font-size: 2.369rem; }
h4 { font-size: 1.777rem; }
h5 { font-size: 1.333rem; }
small { font-size: 0.750rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.stack-xl > * + * { margin-top: 40px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-md > * + * { margin-top: 20px; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); }
.eyebrow { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 12px 20px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease; }
.btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { transform: translateY(-1px); background: #003c60; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 0.95rem; }
.btn.pill-cta {
  background: #0f1115;
  border-color: #0f1115;
  color: #fff;
  padding: 10px 22px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.btn.pill-cta:hover {
  background: #000;
}
.btn.pill-cta .icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  color: #0f1115;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Floating pill-style header inspired by the reference UI */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 18px 0 26px;
  font-family: 'Urbanist', ui-sans-serif, system-ui;
}
body.compact-header .site-header {
  padding: 10px 0 16px;
  box-shadow: none;
}
.site-header .header-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-header .header-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
  transition: padding .25s ease, box-shadow .25s ease, border-radius .25s ease;
  position: relative;
}
body:not(.compact-header) .site-header .header-pill {
  padding: 20px 32px;
}
body.compact-header .site-header .header-pill {
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.16);
}
.site-header .header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
  box-sizing: border-box;
}
.site-header .brand {
  flex-shrink: 0;
}
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.menu-toggle .menu-icon,
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f1115;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
  content: '';
}
.menu-toggle .menu-icon {
  position: relative;
}
.menu-toggle .menu-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}
.menu-toggle .menu-icon::after {
  position: absolute;
  bottom: -6px;
  left: 0;
}
body.menu-open .menu-toggle .menu-icon {
  background: transparent;
}
body.menu-open .menu-toggle .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .menu-toggle .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .header-pill { flex-wrap: wrap; border-radius: 28px; }
  .site-header .header-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 12px 0;
    border-top: 1px solid rgba(15,23,42,0.08);
    justify-content: flex-start;
    width: 100%;
  }
  body.menu-open .site-header .header-menu {
    display: flex;
  }
  .site-header .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .site-header .header-actions .btn {
    width: 100%;
    justify-content: center;
  }
  body.menu-open .nav {
    display: flex;
    width: 100%;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .site-header .header-shell {
    padding: 0 18px;
  }
  .site-header .header-pill {
    padding: 12px 18px;
  }
  body:not(.compact-header) .site-header .header-pill {
    padding: 16px 22px;
  }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: var(--logo-size); height: var(--logo-size); object-fit: contain; transition: width .2s ease, height .2s ease; }
.brand .wordmark { font-family: 'Urbanist'; font-weight: 700; letter-spacing: 0.005em; font-size: var(--wordmark-size); transition: font-size .2s ease; }
.nav { display: none; gap: 26px; align-items: center; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-color: var(--ink); }
@media (min-width: 900px) {
  .nav { display: flex; flex: 1; justify-content: center; }
}
@media (max-width: 900px) {
  body.menu-open .nav {
    display: flex;
    width: 100%;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Language switch */
.lang-switch {
  display: none;
  gap: 4px;
  align-items: center;
  padding: 4px;
  background: rgba(15,23,42,0.04);
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
}
.lang-switch .chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch .chip.active {
  background: #0f1115;
  color: #fff;
}
@media (min-width: 900px) {
  .lang-switch { display: flex; }
}
@media (max-width: 900px) {
  body.menu-open .lang-switch { display: flex; }
}

.hero { padding: 120px 0 80px; text-align: center; }
.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero p { font-size: 1.25rem; max-width: 70ch; color: var(--muted); margin: 12px auto 0; }
.hero .actions { margin-top: 18px; }

/* About page specific responsive adjustments */
.about-page .team-card {
  text-align: center;
}
.about-page .team-card.stack-md > * + * {
  margin-top: 12px;
}
.about-page .team-card h4 {
  margin-bottom: 4px;
}
.about-page .team-card .muted {
  margin-top: 0;
}
@media (max-width: 900px) {
  .about-page .hero {
    padding: clamp(90px, 18vw, 140px) 0 clamp(54px, 12vw, 96px);
  }
  .about-page .hero h1 {
    font-size: clamp(2.15rem, 7vw, 3.4rem);
  }
  .about-page .hero p {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
  }
  .about-page .hero .actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .about-page .grid.cols-3,
  .about-page .grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .about-page .team-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px 18px;
    text-align: left;
    align-items: flex-start;
  }
  .about-page .team-card.stack-md > * + * {
    margin-top: 0;
  }
  .about-page .team-card > img {
    margin: 0;
    justify-self: center;
    grid-row: span 3;
  }
  .about-page .team-card .btn {
    justify-self: flex-start;
  }
}
@media (max-width: 640px) {
  .about-page .hero .actions .btn {
    min-width: 100%;
    justify-content: center;
  }
  .about-page .team-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .about-page .team-card > img {
    grid-row: auto;
  }
  .about-page .team-card .btn {
    justify-self: center;
    width: auto;
    min-width: 140px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* Core Pathways: modernized layout and motion */
.pathways-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pathways-grid > * { margin-top: 0 !important; }
@media (max-width: 900px) { .pathways-grid { grid-template-columns: 1fr; } }

#initiatives .card { position: relative; overflow: hidden; border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(0,78,124,0.18), rgba(12,122,123,0.18)) border-box; box-shadow: var(--shadow-1); transition: transform .5s cubic-bezier(.2,.6,.3,1), opacity .6s ease, box-shadow .2s ease, border-color .3s ease; }
#initiatives .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0.9; }
#initiatives .card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }

/* Generic reveal-on-scroll utility (applies site-wide) */
.reveal { opacity: 0; transform: translateY(10px) scale(0.995); will-change: transform, opacity; transition: transform .5s cubic-bezier(.2,.6,.3,1), opacity .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); padding: 20px; }
.card:hover { box-shadow: var(--shadow-2); }
.stat .kicker { color: var(--muted); font-size: 0.9rem; }
.stat .value { font-size: 1.777rem; font-weight: 700; letter-spacing: -0.01em; }
.stat .value.icon { display: inline-flex; align-items: baseline; gap: 8px; }
.stat .value.icon svg { width: 18px; height: 18px; color: var(--primary); }
.stat .desc { color: var(--muted); }

section { padding: 72px 0; scroll-margin-top: 96px; }
/* Strict alternation: odd = white, even = grey */
main > section:nth-of-type(odd) { background: var(--surface); }
main > section:nth-of-type(even) { background: var(--bg); }
section + section { border-top: 1px solid var(--line); }

.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li + li { margin-top: 12px; }

.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}
.event-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f4f7;
  min-height: 220px;
}
.event-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 0;
  justify-content: center;
}
.event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.event-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.event-title { margin: 0; font-size: 2.1rem; }
.event-desc { margin: 0; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}
.event-meta-item {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #f7f8fa;
}
.event-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) {
  .event-feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .event-body { padding: 0 0 4px; }
}
@media (max-width: 700px) {
  .event-title { font-size: 1.45rem; }
  .event-media { min-height: 200px; }
}

.news { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 120px 1fr 120px; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

footer { border-top: 1px solid var(--line); color: var(--muted); }

/* Thought Leaders â€” Option B: Timeline Strips */
.quotes { display: grid; gap: 16px; }
.quote-strip { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 24px; box-shadow: var(--shadow-1); }
.quote-strip .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.quote-strip .row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.quote-strip .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line); }
.quote-strip blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.quote-strip cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; }
@media (max-width: 720px) { .quote-strip .row { grid-template-columns: 64px 1fr; } .quote-strip .avatar { width: 64px; height: 64px; } }

/* Mission background image (full-height column) */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.mission-art { background: center/cover no-repeat url('assets/mission/mission-hero.jpg'); background-position: 50% 40%; border-radius: 10px; }
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; } .mission-art { min-height: 320px; } }
/* Trust Logo Section */
#trust { padding: 56px 0; }
#trust .eyebrow, #trust h3 { text-align: center; }
#trust h3 { margin-left: auto; margin-right: auto; font-size: 1.25rem; line-height: 1.25; }
@media (min-width: 701px) { #trust h3 { white-space: nowrap; } }
.trust-carousel { overflow: hidden; margin-top: 32px; }
.trust-carousel .track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: trust-scroll 28s linear infinite;
}
@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-carousel img {
  max-height: 44px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%) brightness(70%) contrast(90%);
  transition: opacity .2s ease;
}
.trust-carousel img:hover { opacity: 1; }
@media (max-width: 700px) {
  .trust-carousel .track { gap: 32px; }
}

/* Pillars Section */
#pillars { padding: 72px 0; }
#pillars .eyebrow, #pillars h2 { text-align: center; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pillar-card h3 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.pillar-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.trust-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px 48px;
  align-items: center;
  justify-items: center;
  margin-top: 32px;
}
.trust-logos-grid img {
  max-height: 44px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%) brightness(70%) contrast(90%);
  transition: opacity .2s ease;
  will-change: transform, opacity;
  animation: orbit 12s ease-in-out infinite;
}
/* Subtle circular orbit with gentle radial breathing */
@keyframes orbit {
  0%   { transform: rotate(0deg) translate(10px) rotate(0deg); }
  25%  { transform: rotate(90deg) translate(12px) rotate(-90deg); }
  50%  { transform: rotate(180deg) translate(14px) rotate(-180deg); }
  75%  { transform: rotate(270deg) translate(12px) rotate(-270deg); }
  100% { transform: rotate(360deg) translate(10px) rotate(-360deg); }
}
/* Gentle staggering to avoid synchronous motion */
.trust-logos-grid img:nth-child(2n) { animation-duration: 13.5s; }
.trust-logos-grid img:nth-child(3n) { animation-duration: 11s; animation-direction: reverse; }
.trust-logos-grid img:nth-child(4n) { animation-delay: .6s; }
.trust-logos-grid img:nth-child(5n) { animation-delay: 1.2s; }
.trust-logos-grid img:nth-child(6n) { animation-delay: 1.8s; }
.trust-logos-grid img:hover { opacity: 1; }
@media (max-width: 700px) {
  .trust-logos-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 40px 32px;
  }
}
