@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1D35;
  --navy-light: #2D4070;
  --amber: #C8912A;
  --amber-light: #E8A83A;
  --amber-pale: #FDF3E3;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --text-primary: #1B2A4A;
  --text-secondary: #4A5568;
  --text-muted: #8896A4;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }

p { color: var(--text-secondary); line-height: 1.75; }

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

img { max-width: 100%; display: block; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  width: 168px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-links .nav-cta {
  background: var(--navy); color: var(--white);
  padding: 10px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--navy-light); color: var(--white); }

.nav-badge {
  display: inline-block;
  font-size: 10px; font-weight: 500; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 99px;
  vertical-align: middle; margin-left: 4px;
}
.badge-eng { background: var(--amber-pale); color: var(--amber); }
.badge-acad { background: #E8EEF8; color: var(--navy); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* SECTIONS */
section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}

/* HERO */
.hero {
  padding-top: 140px; padding-bottom: 100px;
  background: var(--navy-deep);
  color: var(--white);
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,145,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--amber-light); }

.hero p { color: rgba(255,255,255,0.72); max-width: 540px; font-size: 1.05rem; margin-bottom: 2.5rem; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 28px;
  border-radius: 8px; font-size: 15px; font-weight: 500;
  transition: all 0.2s; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy); }

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(27,42,74,0.08); transform: translateY(-2px); }

.card-amber { border-top: 3px solid var(--amber); }
.card-navy { border-top: 3px solid var(--navy); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* DIVIDER SECTION */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* PILL */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 99px; padding: 5px 14px;
  font-size: 13px; color: var(--text-secondary);
}

/* STAT */
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: var(--navy); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* TWO TRACK SECTION */
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.track-panel { background: var(--white); padding: 2.5rem; }
.track-panel.navy-bg { background: var(--navy-deep); color: var(--white); }
.track-panel.navy-bg p { color: rgba(255,255,255,0.7); }
.track-panel.amber-bg { background: var(--amber-pale); }

/* FOOTER */
footer {
  background: var(--navy-deep);
  padding: 56px 5% 36px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.4);
  line-height: 1.65; max-width: 260px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 14px;
  color: rgba(255,255,255,0.55); margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.12); }
.social-link svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.6); }

/* legacy footer-links (fallback) */
.footer-logo img { height: 30px; opacity: 0.85; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* FADE IN — only animates after JS confirms it's running */
.fade-up { opacity: 1; transform: none; }
.js-loaded .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-loaded .fade-up.visible { opacity: 1; transform: translateY(0); }

/* MOBILE NAV */
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; z-index: 99;
  flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--text-primary); font-weight: 400; }
.mobile-menu .nav-cta { background: var(--navy); color: var(--white); padding: 12px 22px; border-radius: 6px; text-align: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  section { padding: 60px 5%; }
  .hero { padding-top: 110px; padding-bottom: 70px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
