/* ═══════════════════════════════════════════════════════════════════════════
   VANGUARD AVIATION — Design Tokens
   Visual Identity System v1
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
/* 
   Import via Google Fonts:
   <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
*/

:root {

  /* ── Brand Colors ───────────────────────────────────────────────────── */
  --navy:             #002d78;
  --navy-deep:        #001d50;

  --gold:             #c9a227;
  --gold-dark:        #a8861f;   /* Use for gold text on white at body size (4.8:1 AA) */
  --gold-light:       #e8c84a;
  --gold-pale:        #fdf5d9;   /* Badge fills, tag backgrounds, icon wells */
  --gold-mist:        #fefbf0;   /* Highlight sections, scholarship callouts, feature bands */

  /* ── Secondary — Sky (Family link to Van-Vert) ─────────────────────── */
  --sky:              #0087a5;   /* Links, data visualisation — use sparingly */
  --sky-pale:         #e1f4f7;

  /* ── Neutrals ──────────────────────────────────────────────────────── */
  --white:            #ffffff;
  --surface:          #fafafa;   /* Alternating sections, card insets */
  --border:           #e2e8f0;
  --border-soft:      #f1f5f9;

  --text-primary:     #0a1628;
  --text-secondary:   #475569;
  --text-muted:       #94a3b8;

  /* ── Status ────────────────────────────────────────────────────────── */
  --status-success:   #16a34a;
  --status-warning:   #d97706;
  --status-error:     #dc2626;
  --status-info:      #0087a5;

  /* ── Border Radius ─────────────────────────────────────────────────── */
  --r-sm:             4px;
  --r-md:             6px;
  --r-lg:             8px;
  --r-xl:             12px;
  --r-2xl:            16px;
  --r-full:           9999px;

  /* ── Spacing — Density: Airy (Marketing site default) ──────────────── */
  --space-section:    160px;
  --space-block:      72px;
  --space-card:       40px;
  --space-row:        24px;

  /* ── Spacing — Density: Default (App) ──────────────────────────────── */
  --space-section-app: 120px;
  --space-block-app:   48px;
  --space-card-app:    28px;
  --space-row-app:     16px;

  /* ── Spacing — Density: Compact ────────────────────────────────────── */
  --space-section-compact: 72px;
  --space-block-compact:   32px;
  --space-card-compact:    20px;
  --space-row-compact:     12px;

  /* ── Typography — Font Families ────────────────────────────────────── */
  --font-display:     'Outfit', sans-serif;   /* Headings, wordmark, display */
  --font-body:        'Inter', sans-serif;    /* Body, UI labels, inputs, metadata */

  /* ── Typography — Sizes ────────────────────────────────────────────── */
  --text-display:     clamp(40px, 6vw, 64px);
  --text-h1:          36px;
  --text-h2:          28px;
  --text-h3:          20px;
  --text-body:        16px;
  --text-small:       13px;
  --text-eyebrow:     11px;

  /* ── Typography — Weights ──────────────────────────────────────────── */
  --weight-display:   700;
  --weight-h1:        600;
  --weight-h2:        600;
  --weight-h3:        600;
  --weight-body:      400;
  --weight-eyebrow:   600;

  /* ── Typography — Letter Spacing ───────────────────────────────────── */
  --tracking-display: -0.03em;
  --tracking-h1:      -0.015em;
  --tracking-h2:      -0.005em;
  --tracking-h3:      0;
  --tracking-body:    0;
  --tracking-eyebrow: 3px;

  /* ── Typography — Line Heights ─────────────────────────────────────── */
  --leading-display:  1;
  --leading-h1:       1.1;
  --leading-h2:       1.2;
  --leading-h3:       1.3;
  --leading-body:     1.7;
  --leading-small:    1.5;

  /* ── Shadows ───────────────────────────────────────────────────────── */
  --shadow-card:      0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-focus-gold: 0 0 0 4px rgba(201, 162, 39, 0.10);

  /* ── Transitions ───────────────────────────────────────────────────── */
  --transition-fast:  0.15s ease;
  --transition-base:  0.2s ease;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--leading-body);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.va-display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  color: var(--navy);
}

.va-h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-h1);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-h1);
  line-height: var(--leading-h1);
  color: var(--navy);
}

.va-h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-h2);
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-h2);
  line-height: var(--leading-h2);
  color: var(--navy);
}

.va-h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-h3);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  color: var(--text-primary);
}

.va-body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-secondary);
}

.va-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--text-muted);
}

.va-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-eyebrow);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-dark);
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS — Buttons
   ═══════════════════════════════════════════════════════════════════════════ */

.va-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast),
              transform 0.1s,
              border-color var(--transition-fast),
              color var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}
.va-btn:active { transform: translateY(1px); }

/* Variants */
.va-btn-navy   { background: var(--navy); color: var(--white); }
.va-btn-navy:hover { background: var(--navy-deep); }

.va-btn-gold   { background: var(--gold); color: var(--navy); font-weight: 600; }
.va-btn-gold:hover { background: var(--gold-dark); color: var(--white); }

.va-btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.va-btn-outline:hover { background: var(--navy); color: var(--white); }

.va-btn-ghost  { background: transparent; color: var(--gold-dark); }
.va-btn-ghost:hover  { background: var(--gold-pale); }

/* Sizes */
.va-btn-lg { padding: 16px 28px; font-size: 15px; font-weight: 600; }
.va-btn-sm { padding: 8px 14px; font-size: 13px; }


/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS — Inputs
   ═══════════════════════════════════════════════════════════════════════════ */

.va-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}
.va-input:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus-gold);
}
.va-input::placeholder { color: var(--text-muted); }

/* No-icon variant */
.va-input--plain { padding-left: 16px; }


/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS — Badges
   ═══════════════════════════════════════════════════════════════════════════ */

.va-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--r-full);
  line-height: 1.2;
}

/* Preset badge styles */
.va-badge-gold    { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid #e8c84a; }
.va-badge-navy    { background: var(--navy); color: var(--white); }
.va-badge-neutral { background: #f1f5f9; color: #475569; }
.va-badge-success { background: #dcfce7; color: var(--status-success); }
.va-badge-warning { background: #fef3c7; color: #b45309; }
.va-badge-info    { background: #e0f2fe; color: #0369a1; }
.va-badge-error   { background: #fee2e2; color: var(--status-error); }


/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS — Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.va-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-card);
}

.va-card-navy {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: var(--space-card);
  color: var(--white);
}

.va-card-gold {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--r-xl);
  padding: var(--space-card);
  position: relative;
  overflow: hidden;
}
.va-card-gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}


/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.va-dark-panel {
  background: var(--navy);
  border-radius: 20px;
  padding: 56px;
  color: var(--white);
}

.va-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-section) 48px;
}

.va-icon-well {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.va-container       { max-width: 1320px; margin: 0 auto; }
.va-section-white   { width: 100%; background: var(--white); padding: var(--space-section) 48px; }
.va-section-surface { width: 100%; background: var(--surface); padding: var(--space-section) 48px; }
.va-section-navy    { width: 100%; background: var(--navy); padding: var(--space-section) 48px; position: relative; overflow: hidden; }
.va-two-col         { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: start; }
.va-center          { text-align: center; }
.va-flex-center     { display: flex; align-items: center; justify-content: center; }
.va-flex-col        { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.va-nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.va-mobile-link {
  display: block;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast);
}

.va-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.va-hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.va-hero-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px,7vw,80px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.va-deco-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRAM CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.va-offer-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,40,95,0.10);
}

.va-offer-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,40,95,0.06);
}
.va-offer-icon svg * {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.va-offer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin-top: 18px;
  text-align: center;
  line-height: 1.3;
}

.va-offer-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.va-offer-item {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.va-offer-bullet {
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 2px;
}

.va-offer-cta {
  display: block;
  width: 100%;
  margin-top: 28px;
  text-decoration: none;
}

.va-offer-cta-inner {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  padding: 12px 0;
  border-radius: var(--r-full);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.va-offer-cta-inner:hover {
  background: var(--navy-deep);
  box-shadow: 0 2px 8px rgba(0,40,95,0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.va-step-circle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════════════════ */

.va-stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--navy);
}

.va-stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 4px;
}

.va-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: 20px 32px;
  text-align: center;
}

.va-chip-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--gold);
}

.va-chip-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BAR CHART
   ═══════════════════════════════════════════════════════════════════════════ */

.va-bar-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  width: 220px;
  text-align: right;
  flex-shrink: 0;
}

.va-bar-track {
  flex-grow: 1;
  height: 12px;
  background: var(--border-soft);
  border-radius: var(--r-full);
  overflow: hidden;
}

.va-bar-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  width: 44px;
  flex-shrink: 0;
}

.va-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VALUES
   ═══════════════════════════════════════════════════════════════════════════ */

.va-value-item {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.va-value-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

.va-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.va-faq-summary {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.va-faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}

.va-faq-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  display: inline-block;
  flex-shrink: 0;
  margin-left: 16px;
}

.va-faq-answer {
  padding: 0 24px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.va-footer-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.va-footer-link {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 2.4;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.va-footer-link:hover { color: var(--white); }

.va-footer-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.va-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--navy);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.va-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.va-nav-link:hover { color: var(--white); }
.va-mobile-link:hover { color: var(--gold); }
.va-social-icon:hover { background-color: var(--gold); color: var(--white); }
.va-footer-legal-link:hover { color: var(--white); }

/* Universal footer responsive collapse (used by footer.js) */
@media (max-width: 768px) {
  [data-footer-grid] { grid-template-columns: 1fr !important; }
  [data-footer-bottom] { flex-direction: column !important; gap: 12px !important; align-items: center !important; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOTION SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ease-default:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis:  cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   0.15s;
  --duration-normal: 0.28s;
  --duration-slow:   0.6s;
  --shadow-md:      0 4px 18px rgba(0, 40, 95, 0.10);
}

@view-transition { navigation: auto; }

nav { view-transition-name: va-nav; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vaPageOut 0.30s var(--ease-default) both;
  }
  ::view-transition-new(root) {
    animation: vaPageIn 0.42s var(--ease-emphasis) both;
  }
}

@keyframes vaPageOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.992); }
}
@keyframes vaPageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.994); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vaMenuIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vaFaqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-mobile-menu] {
  animation: vaMenuIn var(--duration-normal) var(--ease-default) both;
}
@media (prefers-reduced-motion: reduce) {
  [data-mobile-menu] { animation: none; }
}


/* ── Hide scrollbar (all pages) ─────────────────────────────────────────── */
html {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/old Edge */
}
html::-webkit-scrollbar {
  display: none;                /* Chrome/Safari/Edge */
}
