/* ════════════════════════════════════════════════════════
   _shared.css — Stepstone Overseas Education
   Shared across: index, privacy, terms, data-deletion
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --navy:        #0b1d36;
  --navy-mid:    #132847;
  --navy-light:  #1b3a63;
  --gold:        #c4973e;
  --gold-light:  #ddb96a;
  --gold-pale:   rgba(196,151,62,0.10);

  --bg:          #f7f5f0;
  --bg-card:     #ffffff;
  --fg:          #111827;
  --fg-soft:     #374151;
  --fg-muted:    #6b7280;
  --border:      #e5e0d8;
  --border-soft: #ede9e2;

  --shadow-xs:  0 1px 3px rgba(11,29,54,0.06);
  --shadow-sm:  0 2px 10px rgba(11,29,54,0.08);
  --shadow:     0 4px 20px rgba(11,29,54,0.09);
  --shadow-md:  0 8px 32px rgba(11,29,54,0.12);
  --shadow-lg:  0 16px 56px rgba(11,29,54,0.16);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --max-w:     1100px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg:          #09142a;
  --bg-card:     #0e1e36;
  --fg:          #e6e0d6;
  --fg-soft:     #bcc8d8;
  --fg-muted:    #7a90a8;
  --border:      #1c2f4a;
  --border-soft: #162540;
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.28);
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.32);
  --shadow:     0 4px 20px rgba(0,0,0,0.38);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.44);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.52);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid rgba(196,151,62,0.22);
  transition: box-shadow 0.2s;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--gold); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  flex-shrink: 0;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-6deg) scale(1.07); box-shadow: 0 4px 14px rgba(196,151,62,0.4); }
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.nav-brand-sub  { font-size: 9.5px; font-weight: 400; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.82; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.62);
  text-decoration: none; padding: 6px 11px; border-radius: var(--radius-sm);
  letter-spacing: 0.02em; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover  { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--gold-light); }

/* theme toggle */
.nav-theme { display: flex; align-items: center; gap: 7px; margin-left: 4px; }
.theme-toggle {
  position: relative; width: 42px; height: 22px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 11px; cursor: pointer; flex-shrink: 0;
  transition: background 0.22s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); }
.theme-toggle::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; background: var(--gold);
  border-radius: 50%; top: 2px; left: 3px;
  transition: transform 0.28s var(--ease);
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(20px); }
.theme-icon { font-size: 12px; pointer-events: none; user-select: none; line-height: 1; }

/* hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); padding: 7px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; height: 1.5px; background: rgba(255,255,255,0.82);
  border-radius: 2px; transition: transform 0.26s var(--ease), opacity 0.18s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* drawer */
.nav-drawer {
  display: none; background: var(--navy-mid);
  border-bottom: 1px solid rgba(196,151,62,0.15);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.68); text-decoration: none;
  padding: 12px 28px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, background 0.18s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--gold-light); background: rgba(255,255,255,0.04); }
.nav-drawer a.active { color: var(--gold-light); }

/* mobile right cluster */
.nav-mobile-right { display: flex; align-items: center; gap: 10px; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(196,151,62,0.18);
  padding: 44px 28px 28px;
  transition: background 0.3s var(--ease);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.32); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,0.32); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--gold-light); }

/* ── PROSE PAGES ────────────────────────────────────── */
.page-wrap { max-width: 780px; margin: 0 auto; padding: 64px 28px 96px; }

.page-eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-pale);
  border: 1px solid rgba(196,151,62,0.22);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 54px); font-weight: 600;
  color: var(--fg); line-height: 1.1; margin-bottom: 14px;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
.page-meta {
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 44px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; color: var(--fg);
  margin: 48px 0 14px; letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.section-title:first-of-type { margin-top: 0; }

p { margin-bottom: 16px; font-size: 15px; color: var(--fg-soft); line-height: 1.8; transition: color 0.3s; }
ul, ol { margin: 10px 0 18px 20px; }
li { font-size: 15px; color: var(--fg-soft); margin-bottom: 9px; line-height: 1.72; transition: color 0.3s; }
strong { font-weight: 600; color: var(--fg); }
a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 3px; transition: color 0.18s; }
a:hover { color: var(--gold); }
[data-theme="dark"] a { color: var(--gold-light); }
[data-theme="dark"] a:hover { color: #fff; }

/* sub-headings inside prose */
.page-wrap h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; color: var(--fg);
  margin: 22px 0 8px; letter-spacing: -0.01em;
  transition: color 0.3s;
}

.highlight-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow-xs);
  transition: background 0.3s, border-color 0.3s;
}
.highlight-box p { margin-bottom: 0; }

/* ── UTILITIES ──────────────────────────────────────── */
.divider { max-width: var(--max-w); margin: 0 auto; height: 1px; background: var(--border); transition: background 0.3s; }

/* ── ANIMATIONS ─────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-left  { opacity: 0; transform: translateX(-26px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(26px);  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.stagger.visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay:0.04s }
.stagger.visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay:0.10s }
.stagger.visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay:0.16s }
.stagger.visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay:0.22s }
.stagger.visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay:0.28s }
.stagger.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay:0.34s }
.stagger.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay:0.40s }
.stagger.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay:0.46s }
.stagger.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay:0.52s }
.stagger.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay:0.58s }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-wrap { padding: 48px 20px 72px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 18px; }
  .page-wrap { padding: 36px 16px 60px; }
}

/* ── SHARED NAV JS SNIPPET ──────────────────────────── */
/* All pages include this inline at bottom of body:
   see each HTML file's <script> block               */
