/* =========================================================
   Elite Education — Homepage Clone
   Design system extracted from live site (Framer build)
   Colors / fonts / radii are real values from the original.
   Fonts: Inter (body) + Outfit (display, GT Walsheim substitute)
   ========================================================= */

:root {
  /* Brand palette (from original CSS tokens) */
  --bg: #dcd9d1;          /* warm sand — main background */
  --navy: #081f7f;        /* brand primary: buttons / dark blocks */
  --green: #00984e;       /* link / hover accent */
  --pink: #f4cdcf;        /* soft pink accent cards */
  --red: #d80027;         /* red highlight */
  --blue: #0052b4;        /* secondary blue */
  --gold: #967206;        /* sparse gold accent */

  --ink: #000000;
  --ink-2: #2e2e2e;
  --muted: #5c5c5c;
  --neutral: #f0f0f0;
  --neutral-2: #f8f8f8;

  /* Radii */
  --r-pill: 32px;
  --r-card: 18px;
  --r-sm: 6px;

  /* Type scale (from original framer-font-size tokens) */
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-21: 21px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-45: 45px;
  --fs-54: 54px;
  --fs-64: 64px;
  --fs-80: 80px;

  --container: 1200px;
  --shadow: 0 18px 40px rgba(8, 31, 127, .10);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .08);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-16);
  padding: 14px 28px; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #06175e; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(220, 217, 209, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.brand img { height: 34px; width: auto; }
.brand .brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: var(--fs-16); }
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow-sm); }
.lang-switch a { padding: 6px 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--muted); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active:hover { color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 4px; transition: .25s; }

.lang-switch-mobile { display: none; }

/* ---------- Section helpers ---------- */
.section { padding: 90px 0; position: relative; }
.section-tight { padding: 64px 0; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-14); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: #fff; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: var(--fs-45); }
.section-head p { color: var(--muted); font-size: var(--fs-18); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--fs-64); font-weight: 700; }
.hero h1 .accent { position: relative; display: inline-block; color: var(--navy); }
.hero h1 .accent .squiggle { position: absolute; left: -4%; bottom: -18px; width: 108%; height: 24px; color: var(--green); }
.hero p.lead { font-size: var(--fs-20); color: var(--ink-2); max-width: 520px; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 480px; object-fit: cover; }
.hero-photo .blob { position: absolute; z-index: -1; }
.hero-blob-1 { top: -40px; right: -50px; width: 180px; color: var(--pink); }
.hero-blob-2 { bottom: -50px; left: -40px; width: 150px; color: var(--green); }

/* ---------- Generic cards ---------- */
.card {
  background: #fff; border-radius: var(--r-card); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff;
}
.icon-badge.navy { background: var(--navy); }
.icon-badge.green { background: var(--green); }
.icon-badge.pink { background: var(--pink); color: var(--navy); }
.icon-badge.blue { background: var(--blue); }
.icon-badge.red { background: var(--red); }
.card h3 { font-size: var(--fs-24); margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: var(--fs-16); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ---------- Mission ---------- */
.mission { background: var(--navy); color: #fff; border-radius: 0; }
.mission .section-head h2, .mission h2 { color: #fff; }
.mission .section-head p { color: rgba(255,255,255,.82); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mission-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.mission-photo img { width: 100%; height: 380px; object-fit: cover; }
.mission ul { list-style: none; padding: 0; margin: 18px 0 0; }
.mission li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: var(--fs-18); }
.mission li svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--green); margin-top: 2px; }

/* ---------- Approach (4 pillars) ---------- */
.approach .card { background: var(--neutral-2); }

/* ---------- Solution (5 steps) ---------- */
.solution .step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.solution .step .num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.solution .step h4 { margin: 4px 0 4px; font-size: var(--fs-20); }
.solution .step p { margin: 0; color: var(--muted); font-size: var(--fs-16); }
.steps-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Matriculation stats ---------- */
.stats { background: var(--pink); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-80); color: var(--navy); line-height: 1; }
.stat .num .pct { font-size: var(--fs-40); }
.stat .label { font-size: var(--fs-18); color: var(--ink-2); margin-top: 8px; font-weight: 500; }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest { position: relative; border-radius: var(--r-card); padding: 26px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.dest h3 { color: #fff; font-size: var(--fs-24); margin: 0; }
.dest .flag { font-size: 30px; }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,31,127,0) 30%, rgba(8,31,127,.65)); z-index: 0; }
.dest > * { position: relative; z-index: 1; }
.dest.navy { background: var(--navy); } .dest.green { background: var(--green); }
.dest.blue { background: var(--blue); } .dest.red { background: var(--red); }
.dest.pink { background: #d96c86; } .dest.gold { background: var(--gold); } .dest.teal { background: #0f7d77; }

/* ---------- Enrichment ---------- */
.enrich .card { padding: 26px; }
.enrich .card .pill-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--bg); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi { background: #fff; border-radius: var(--r-card); padding: 30px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--green); }
.testi p { font-size: var(--fs-18); color: var(--ink-2); font-style: italic; margin: 0 0 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.testi .who b { font-family: var(--font-display); }
.testi .who span { color: var(--muted); font-size: 14px; }

/* ---------- CTA / Contact ---------- */
.cta { background: var(--navy); color: #fff; border-radius: 28px; padding: 60px; text-align: center; margin: 0 auto; max-width: var(--container); }
.cta h2 { color: #fff; font-size: var(--fs-45); }
.cta p { color: rgba(255,255,255,.85); font-size: var(--fs-18); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: #11163a; color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: var(--fs-18); margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.75); display: block; margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo img { height: 380px; }
  .mission-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .dest-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 56px; }
  .nav-links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: flex-start; background: var(--bg); padding: 24px; gap: 18px; transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links .lang-switch-mobile { display: flex; margin-top: 8px; }
  .hamburger { display: flex; }
  .brand { gap: 0; min-width: 0; flex: 0 0 auto; font-size: 0; }
  .brand img { height: 28px; }
  .brand-text { display: none; }
  .nav-right { gap: 6px; flex: 0 0 auto; flex-wrap: nowrap; }
  .nav-right .lang-switch { display: none; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: var(--fs-32); }
  .hero h1 { font-size: var(--fs-45); }
  .grid-3, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--fs-40); }
  .stat .num { font-size: var(--fs-64); }
}
@media (max-width: 480px) {
  .nav-inner { height: 52px; }
  .nav-links { top: 52px; }
  .brand img { height: 24px; }
  .hamburger { padding: 4px; }
  .hamburger span { width: 20px; height: 2px; }
}
