/* ========================================================
   Global Education Network Consulting — Design System
   Palette: deep navy / warm gold / cream — academic authority
   Type: Fraunces (display) + Inter (body) + JetBrains Mono (utility)
   ======================================================== */

:root {
  --navy: #16233F;
  --navy-deep: #0E1830;
  --navy-light: #24365C;
  --blue: #2E6DA6;
  --blue-light: #6FA8DC;
  --blue-pale: #EAF2FA;
  --gold: #C08829;
  --gold-light: #E4BE6C;
  --oxblood: #8A3A2E;
  --oxblood-light: #B0574A;
  --cream: #EAF2FA;
  --paper: #FBFCFD;
  --slate: #5B6472;
  --slate-light: #8891A0;
  --white: #FFFFFF;
  --line: rgba(22, 35, 63, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1120px;
}

/* fine paper-grain texture, used sparingly on dark sections */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.5;
  pointer-events: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 249, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 32px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-text .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-text .legal {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--slate-light);
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links-top { display: flex; align-items: center; gap: 22px; }
.nav-links-bottom { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(192,136,41,0.5);
  box-shadow: 0 1px 2px rgba(14,24,48,0.12), 0 6px 14px -8px rgba(14,24,48,0.4);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-cta:hover {
  background: var(--blue);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(14,24,48,0.15), 0 10px 18px -8px rgba(46,109,166,0.45);
}
.nav-cta::after { display: none; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.lang-switch a {
  color: var(--navy) !important;
  font-weight: 700;
  padding: 0;
}
.lang-switch a::after { display: none; }
.lang-switch a.lang-inactive {
  color: var(--slate-light) !important;
  font-weight: 500;
}
.lang-switch a.lang-inactive:hover { color: var(--blue) !important; }
.lang-sep { color: var(--line); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14,24,48,0.28);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    z-index: 55;
  }
  .nav-links.open { max-height: 70vh; overflow-y: auto; }

  .nav-links-top { display: flex; flex-direction: column; gap: 0; padding: 6px 24px 0; }
  .nav-links-top a {
    font-family: var(--sans);
    font-size: 15.5px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }
  .nav-links-top a.active { color: var(--blue); }
  .nav-links-top a::after { display: none; }

  .nav-links-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 22px;
  }
  .lang-switch { font-size: 13px; }
  .nav-cta { flex: 1; justify-content: center; padding: 13px; font-size: 13.5px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    width: 36px; height: 36px;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 1.5px; background: var(--navy);
    margin: 0 auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav { padding: 12px 20px; position: relative; }
  .brand-mark { height: 26px; }
  .brand-text .name { font-size: 12.5px; }
  .brand-text .legal { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .hero-inner { gap: 36px; }
  .hero-copy { padding-bottom: 36px; }
  .hero .lede { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 92px 0 44px; }
  .section-head { margin-bottom: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat .num { font-size: 30px; }
  .reach-region-head { padding: 16px 18px; }
  .reach-countries { padding: 0 18px 18px; }
  .about-grid { gap: 32px; }
  .form-card { padding: 22px; }
  .footer-grid { gap: 32px; margin-bottom: 32px; }
  .card { padding: 26px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(192,136,41,0.5);
  box-shadow: 0 1px 2px rgba(14,24,48,0.15), 0 8px 20px -10px rgba(14,24,48,0.45);
}
.btn-primary::after {
  content: "\2192";
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(14,24,48,0.18), 0 14px 28px -10px rgba(46,109,166,0.5);
}
.btn-primary:hover::after { opacity: 1; transform: translateX(0); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border-color: var(--line-light); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }
.btn-outline-dark { border-color: var(--line); color: var(--navy); }
.btn-outline-dark:hover { background: rgba(22,35,63,0.05); border-color: var(--navy); }

@keyframes stampPulse {
  0% { box-shadow: 0 0 0 0 rgba(192,136,41,0.6); }
  100% { box-shadow: 0 0 0 16px rgba(192,136,41,0); }
}
.btn-primary.stamped, .nav-cta.stamped { animation: stampPulse 0.45s ease-out; }

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-copy { padding-bottom: 64px; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  color: var(--white);
  max-width: 15ch;
}
.hero .lede {
  font-size: 16.5px;
  color: rgba(255,255,255,0.66);
  max-width: 50ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Consultant profile card (redesigned — clean, not stamped) ---------- */
.cred-card {
  background: var(--cream);
  color: var(--navy);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.5);
  align-self: end;
}
.cred-photo {
  width: 100%;
  aspect-ratio: 4/3.3;
  overflow: hidden;
}
.cred-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cred-body { padding: 26px 28px 30px; position: relative; }
.cred-body::before {
  content: "";
  position: absolute; top: 0; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.cred-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 18px;
  margin-bottom: 8px;
  display: block;
}
.cred-name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.cred-role { font-size: 13.5px; color: var(--slate); margin-bottom: 18px; }
.cred-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cred-tags span {
  font-family: var(--mono);
  font-size: 10px;
  padding: 6px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--slate);
}

.page-hero {
  padding: 118px 0 64px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; }
.page-hero .lede { font-size: 16px; max-width: 58ch; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.68); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(22,35,63,0.25); }
.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Roadmap (signature element) ---------- */
.roadmap { position: relative; }
.phase {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.phase:first-child { border-top: none; }
.phase-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.phase-num .roman { display: block; font-size: 26px; color: rgba(255,255,255,0.85); font-family: var(--serif); margin-bottom: 4px; }
.phase h3 { color: var(--white); font-size: 21px; margin-bottom: 6px; }
.phase-sub { font-family: var(--mono); font-size: 11.5px; color: var(--blue-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; display: block; }
.phase-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phase-items li {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  padding-left: 20px;
  position: relative;
}
.phase-items li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.phase-items strong { color: rgba(255,255,255,0.92); font-weight: 600; }

/* ---------- Global Reach ledger (signature element) ---------- */
.reach {
  border: 1px solid var(--line-light);
  border-radius: 4px;
  overflow: hidden;
}
.reach-region {
  border-bottom: 1px solid var(--line-light);
}
.reach-region:last-child { border-bottom: none; }
.reach-region-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 28px;
  background: rgba(255,255,255,0.03);
}
.reach-region-head h4 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--white);
  margin: 0;
}
.reach-region-head .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-light);
  letter-spacing: 0.05em;
}
.reach-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 24px;
}
.reach-countries span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  position: relative;
}
.reach-countries span::before {
  content: "\2022";
  color: var(--gold);
  margin-right: 7px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat .num { font-family: var(--serif); font-size: 38px; color: var(--blue-light); }
.stat .label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-light); margin-top: 4px; }
.section-navy .stat .label { color: rgba(255,255,255,0.55); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 14px; font-family: var(--sans); font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-grid a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.form-card .eyebrow { margin-bottom: 8px; }
.form-card h3 { font-size: 19px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--slate-light); margin-top: -8px; margin-bottom: 24px; }
#form-status {
  font-size: 14px;
  margin-top: 16px;
  display: none;
  padding: 12px 16px;
  border-radius: 3px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
#form-status.ok { display: block; background: rgba(89,140,89,0.12); color: #2f6b2f; }
#form-status.err { display: block; background: rgba(180,60,60,0.1); color: #a53f3f; }

/* ---------- Contact info blocks ---------- */
.contact-block { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-block .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(46,109,166,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-block h4 { font-size: 15px; margin-bottom: 4px; font-family: var(--sans); font-weight: 600; }
.contact-block p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- About / photo ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait-frame img { width: 100%; display: block; }
.portrait-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate-light);
  margin-top: 14px;
  letter-spacing: 0.02em;
}
.credential-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.credential-list li {
  font-size: 14px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: 3px;
  color: var(--navy);
}
.credential-list strong { color: var(--blue); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 10px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}
.error-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 16px;
}
.error-page h1 { font-size: clamp(30px, 4vw, 42px); max-width: 18ch; }
.error-page p { max-width: 50ch; font-size: 16px; margin-bottom: 28px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.badge-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  color: rgba(255,255,255,0.75);
}
.badge-dark { border-color: var(--line); color: var(--slate); }
