/* ==========================================================================
   Global Education Alliance — stylesheet
   Design system: navy / teal / gold, Fraunces + Inter + IBM Plex Mono
   ========================================================================== */

:root{
  /* --- Palette (drawn from the GEA mark) --- */
  --navy:        #1B3A63;
  --navy-deep:   #101F36;
  --navy-soft:   #2A4D7F;
  --teal:        #2C8C82;
  --teal-deep:   #1E6960;
  --teal-tint:   #E4F1EF;
  --gold:        #B98F4A;
  --gold-tint:   #F3E9D6;
  --paper:       #FFFFFF;
  --mist:        #F3F6F5;
  --line:        #E1E6E4;
  --ink:         #172033;
  --ink-soft:    #556072;
  --ink-faint:   #8590A0;

  /* --- Type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Rhythm --- */
  --gap: clamp(1.25rem, 2vw, 2rem);
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(16,31,54,0.04), 0 8px 24px -12px rgba(16,31,54,0.14);
  --shadow-lift: 0 20px 44px -18px rgba(16,31,54,0.28);
  --maxw: 1200px;
}

/* --- Reset --- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font: inherit; }

:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Typography --- */
h1, h2, h3, .font-display{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--navy-deep); }
h1{ font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; font-weight: 560; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
h3{ font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.3; }
.lede{ font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.stat-num{ font-family: var(--font-mono); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.brand{ display: flex; align-items: center; gap: 0.65rem; }
.brand img{ height: 40px; width: 40px; object-fit: contain; }
.brand-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-deep); line-height: 1.15; }
.brand-name small{ display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links{ display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a{
  font-size: 0.92rem; color: var(--ink-soft); position: relative; padding: 0.3rem 0;
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--navy-deep); }
.nav-links a.is-active{ color: var(--navy-deep); font-weight: 600; }
.nav-links a.is-active::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-cta{
  font-size: 0.85rem !important; font-weight: 600; color: var(--paper) !important;
  background: var(--navy); padding: 0.55rem 1.1rem; border-radius: 999px;
  transition: background .15s ease;
}
.nav-cta:hover{ background: var(--teal-deep); color: var(--paper) !important; }

.nav-toggle{
  display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--navy-deep); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.is-open{ max-height: 420px; }
  .nav-links a{ width: 100%; padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
  .nav-cta{ margin: 0.9rem clamp(1.25rem, 4vw, 2.5rem) 1.1rem; border-radius: var(--radius); text-align: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary{ background: var(--navy); color: var(--paper); }
.btn-primary:hover{ background: var(--teal-deep); }
.btn-ghost{ border-color: var(--line); color: var(--navy-deep); background: transparent; }
.btn-ghost:hover{ border-color: var(--navy); background: var(--mist); }
.btn-arrow::after{ content: "→"; transition: transform .15s ease; }
.btn-arrow:hover::after{ transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--teal-tint), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1{ margin: 0.6rem 0 1.1rem; }
.hero h1 em{ font-style: italic; color: var(--teal-deep); }
.hero-ctas{ display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-visual{ position: relative; }
.hero-visual svg{ width: 100%; height: auto; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 420px; margin: 0 auto; }
}

/* --- Globe network signature --- */
.arc{ fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: 0.85; }
.arc-anim{ animation: dash 18s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset: -400; } }
.node-dot{ fill: var(--navy); }
.node-dot.origin{ fill: var(--gold); }
.node-label{ font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-soft); letter-spacing: 0.02em; }
.globe-line{ stroke: var(--line); stroke-width: 1; fill: none; }
.globe-outline{ stroke: var(--gold); stroke-width: 1.2; fill: none; opacity: 0.55; }

/* ==========================================================================
   Stat band
   ========================================================================== */
.stat-band{ background: var(--navy-deep); color: var(--paper); }
.stat-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
}
.stat{ padding: 0 1.2rem; border-left: 1px solid rgba(255,255,255,0.14); }
.stat:first-child{ border-left: 0; padding-left: 0; }
.stat .stat-num{ display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--paper); }
.stat .stat-label{ font-size: 0.82rem; color: rgba(255,255,255,0.66); margin-top: 0.3rem; }
@media (max-width: 760px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .stat:nth-child(3){ border-left: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section{ padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section-alt{ background: var(--mist); }
.section-head{ max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ margin-top: 0.6rem; }

.split{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split img{ border-radius: var(--radius); box-shadow: var(--shadow-card); }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }

/* --- Cards --- */
.card-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card .card-index{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }
.card h3{ margin: 0.7rem 0 0.6rem; }
.card p{ color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 980px){ .card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .card-grid{ grid-template-columns: 1fr; } }

/* --- Founder strip --- */
.founder{
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-card);
}
.founder img{ border-radius: var(--radius); }
.founder .role{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 780px){ .founder{ grid-template-columns: 1fr; } .founder img{ max-width: 260px; margin: 0 auto; } }

/* --- Partner teaser / lists --- */
.list-columns{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.inst-list li{
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.98rem;
}
.inst-list li span.tag{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 780px){ .list-columns{ grid-template-columns: 1fr; } }

/* --- Team --- */
.team-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.team-card{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.avatar{
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.1rem;
}
.team-card h3{ margin-bottom: 0.15rem; }
.team-card .role{ font-size: 0.86rem; color: var(--teal-deep); font-weight: 600; margin-bottom: 0.7rem; display: block; }
.team-card p{ color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 980px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .team-grid{ grid-template-columns: 1fr; } }

/* --- Gallery --- */
.gallery-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item{ border-radius: var(--radius); overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.gallery-item img{ width: 100%; height: 240px; object-fit: cover; }
.gallery-item figcaption{ padding: 0.9rem 1rem; font-size: 0.86rem; color: var(--ink-soft); }
.gallery-item.wide{ grid-column: span 2; }
.gallery-item.wide img{ height: 320px; }
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: 1fr 1fr; } .gallery-item.wide{ grid-column: span 2; } }
@media (max-width: 620px){ .gallery-grid{ grid-template-columns: 1fr; } .gallery-item.wide{ grid-column: span 1; } }

/* --- Timeline (about page) --- */
.timeline{ position: relative; padding-left: 1.6rem; border-left: 1px dashed var(--line); }
.timeline-item{ position: relative; padding-bottom: 2.1rem; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: ""; position: absolute; left: -1.94rem; top: 0.3rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-tint);
}
.timeline-item h3{ margin-bottom: 0.4rem; }
.timeline-item p{ color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

/* --- Testimonial --- */
.testimonial{
  background: var(--navy); color: var(--paper); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.4rem); position: relative; overflow: hidden;
}
.testimonial blockquote{
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.4; max-width: 62ch;
}
.testimonial cite{ display: block; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,0.72); font-style: normal; }

/* --- CTA band --- */
.cta-band{
  background: var(--teal-deep); color: var(--paper);
  padding: clamp(2.6rem, 5vw, 3.6rem) 0; text-align: center;
}
.cta-band h2{ color: var(--paper); }
.cta-band p{ color: rgba(255,255,255,0.82); margin: 0.8rem auto 1.8rem; max-width: 50ch; }
.cta-band .btn-primary{ background: var(--gold); color: var(--navy-deep); }
.cta-band .btn-primary:hover{ background: var(--paper); }
.cta-band .btn-ghost{ border-color: rgba(255,255,255,0.4); color: var(--paper); }
.cta-band .btn-ghost:hover{ background: rgba(255,255,255,0.1); border-color: var(--paper); }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header{
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--mist); border-bottom: 1px solid var(--line);
}
.page-header h1{ margin-top: 0.6rem; }
.page-header .lede{ margin-top: 1rem; max-width: 60ch; }
.crumb{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.crumb a{ color: var(--ink-faint); }
.crumb a:hover{ color: var(--teal-deep); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start;
}
.contact-card .icon{
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-mono); font-size: 0.85rem;
}
.contact-card h3{ font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a{ color: var(--ink-soft); font-size: 0.94rem; }
.contact-card a:hover{ color: var(--teal-deep); }

.form-field{ margin-bottom: 1.1rem; }
.form-field label{ display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy-deep); }
.form-field input, .form-field textarea{
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; font: inherit; color: var(--ink); background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus{ outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.map-embed{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.6rem; }
.map-embed iframe{ width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.15); }

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(2.6rem, 5vw, 3.6rem) 0 2.2rem;
}
.footer-brand{ display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.9rem; }
.footer-brand img{ height: 34px; width: 34px; }
.footer-brand span{ font-family: var(--font-display); color: var(--paper); font-size: 1rem; }
.site-footer p{ font-size: 0.9rem; max-width: 32ch; }
.footer-col h4{ color: var(--paper); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 500; }
.footer-col li{ margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12); padding: 1.3rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* --- Reveal on scroll --- */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* --- Utility --- */
.mt-lg{ margin-top: clamp(2rem, 4vw, 3rem); }
.text-center{ text-align: center; }
.tag-pill{
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  background: var(--gold-tint); color: #8A6A2E; padding: 0.28rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem;
}
