/* ── ROOT ── */
:root {
  --navy: #1a3d72;
  --navy-dark: #0f2548;
  --navy-mid: #1e4a8a;
  --green: #5ab82c;
  --green-dark: #3e8a1a;
  --green-bg: #f0fae8;
  --white: #ffffff;
  --off: #f6f7f9;
  --off-2: #eef1f6;
  --border: #e2e6ee;
  --border-strong: #cdd4e0;
  --text: #0d1520;
  --muted: #5c6880;
  --light: #9aa3b5;
  --shadow: 0 4px 24px rgba(26,61,114,.08);
  --shadow-lg: 0 12px 48px rgba(26,61,114,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 64px;
  justify-content: space-between;
  transition: box-shadow .3s;
}
nav#mainNav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.06); }
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo img { height: 58px; width: auto; }
.nav-divider { width: 1px; height: 44px; background: var(--border-strong); }
.nav-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .08em;
  display: block;
  line-height: 1;
}
.nav-brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  display: block;
  margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 6px;
  letter-spacing: .02em;
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--off); }
.nav-links a.active { font-weight: 700; }
.nav-btn {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  margin-left: 8px;
  font-weight: 600 !important;
}
.nav-btn:hover { background: var(--navy-dark) !important; color: #fff !important; }
.nav-login-badge {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--green-bg);
  border: 1px solid rgba(90,184,44,.3);
  padding: 7px 16px;
  border-radius: 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-left: 8px;
}
.nav-login-badge.show { display: flex; }
.nav-login-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav#mainNav { padding: 0 20px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-radius: 0; }
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 80px 64px 52px;
  margin-top: 88px;
  position: relative;
  overflow: hidden;
}
/* large decorative arc — top right */
.page-header::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow:
    0 0 0 80px rgba(255,255,255,.025),
    0 0 0 160px rgba(255,255,255,.015);
  pointer-events: none;
}
/* dot grid fills the empty right side */
.page-header::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
  pointer-events: none;
  /* fade the dots out towards the left so they don't clash with text */
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%);
}
.ph-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.ph-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.ph-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--green); }
.ph-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; color: #fff;
  letter-spacing: -.025em; line-height: 1.05; margin-bottom: 16px;
}
.ph-desc {
  font-size: 16px; color: rgba(255,255,255,.65);
  max-width: 540px; line-height: 1.75;
}

/* ── CAMPUS BACKGROUND HEADER VARIANT ── */
.page-header--campus { background: transparent; }
.page-header--campus::before,
.page-header--campus::after { display: none; }
.ph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.page-header--campus .ph-inner::before {
  content: '';
  position: absolute;
  inset: -80px -64px -52px;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, .82) 0%,
    rgba(10, 25, 47, .68) 50%,
    rgba(10, 25, 47, .75) 100%
  );
  z-index: -1;
}
@media (max-width: 768px) {
  .page-header--campus .ph-inner::before {
    inset: -60px -20px -40px;
  }
}

/* ── LAYOUT HELPERS ── */
.container { max-width: 1240px; margin: 0 auto; padding: 88px 64px; }
.section-bg { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sec-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--green); }
h2.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2.sec-title .n { color: var(--navy); }
.sec-desc { font-size: 15.5px; color: var(--muted); max-width: 580px; line-height: 1.8; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── BUTTONS ── */
.btn { display: inline-block; text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .02em; border-radius: 6px; padding: 13px 30px; cursor: pointer; border: none; transition: background .15s, transform .12s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 12px 30px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #e8f0f8; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ── CARD ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); }

/* ─────────────────────────────
   FOOTER — UPDATED
   ───────────────────────────── */
footer#mainFooter { background: var(--navy-dark); }
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 64px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* LOGO PILL — guaranteed visibility on dark background */
.footer-brand-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 18px 10px 12px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.footer-brand-logo-pill img { height: 40px; width: auto; display: block; }
.footer-brand-logo-pill .pill-text {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .08em;
  line-height: 1;
}

.footer-brand-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.75; max-width: 300px; }

/* COLUMN HEADINGS — bold, white, with green underline */
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,.35); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.footer-social a:hover { border-color: var(--green); color: var(--green); background: rgba(90,184,44,.08); }

/* ── AUTH MODAL ── */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,18,36,.7); backdrop-filter: blur(8px); z-index: 4000; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(0,0,0,.18); padding: 44px 40px; max-width: 440px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; background: var(--off); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.modal-icon { font-size: 36px; margin-bottom: 16px; }
.modal-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.65; }
.input-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.email-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); outline: none; transition: border-color .2s; margin-bottom: 6px; }
.email-input:focus { border-color: var(--navy); }
.email-input::placeholder { color: var(--light); }
.error-msg { font-size: 12px; color: #c0392b; display: none; margin-bottom: 12px; }
.error-msg.show { display: block; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 20px; background: var(--navy); color: #fff; border: none; border-radius: 6px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; margin-top: 10px; margin-bottom: 14px; letter-spacing: .03em; }
.google-btn:hover { background: var(--navy-dark); }
.google-svg { width: 18px; height: 18px; flex-shrink: 0; }
.modal-note { font-size: 11.5px; color: var(--light); text-align: center; }
.modal-note strong { color: var(--muted); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ── TAG / BADGE ── */
.tag { display: inline-block; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 4px; }
.tag-blue { background: #e8eef8; color: var(--navy); }
.tag-green { background: var(--green-bg); color: var(--green-dark); }
.tag-orange { background: #fff3e0; color: #bf6000; }
.tag-purple { background: #f0ebfa; color: #5b21b6; }
.tag-red { background: #fde8e8; color: #b91c1c; }
/* ═══════════════════════════════════════
   COMPREHENSIVE RESPONSIVE — TABLET
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  nav#mainNav { padding: 0 32px; height: 72px; }
  .nav-logo img { height: 44px; }
  .nav-brand-name { font-size: 18px; }
  .nav-brand-sub { font-size: 10px; }
  .nav-divider { height: 36px; }
  .page-header { padding: 60px 32px 40px; margin-top: 72px; }
  .container { padding: 64px 32px; }
  .grid-2 { gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { padding: 48px 32px 36px; grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { padding: 18px 32px; }
  /* Catch-all wrappers */
  [class*="-wrap"], [class*="-inner"] { padding-left: 32px !important; padding-right: 32px !important; }
  [style*="padding:0 64px"], [style*="padding: 0 64px"] { padding-left: 32px !important; padding-right: 32px !important; }
}

/* ═══════════════════════════════════════
   COMPREHENSIVE RESPONSIVE — MOBILE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  nav#mainNav { padding: 0 20px; height: 64px; }
  .nav-logo img { height: 36px; }
  .nav-logo { gap: 12px; }
  .nav-brand-name { font-size: 16px; }
  .nav-brand-sub { font-size: 9px; margin-top: 2px; }
  .nav-divider { height: 30px; }
  .nav-hamburger { display: flex; width: 44px; height: 44px; padding: 8px; -webkit-tap-highlight-color: transparent; }
  .nav-links { top: 64px; padding: 12px 0; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
  .nav-links a { padding: 16px 24px !important; font-size: 16px !important; min-height: 48px; }
  .nav-btn { margin: 12px 20px 0 !important; text-align: center; padding: 14px 24px !important; }
  body.nav-open { overflow: hidden; }

  .page-header { padding: 48px 20px 32px; margin-top: 64px; }
  .ph-title { font-size: clamp(26px, 7vw, 42px); }
  .ph-desc { font-size: 14px; max-width: none; }
  .ph-label { font-size: 10px; }
  .container { padding: 48px 20px; }
  h2.sec-title { font-size: clamp(24px, 6vw, 36px); }
  .sec-desc { font-size: 14px; max-width: none; }
  .sec-label { font-size: 10px; }

  /* Catch-all wrappers */
  [class*="-wrap"], [class*="-inner"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding:0 64px"], [style*="padding: 0 64px"] { padding-left: 20px !important; padding-right: 20px !important; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 24px; }

  /* Inline style grid overrides */
  [style*="grid-template-columns: 1fr 1.6fr"], [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.4fr"], [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.35fr"], [style*="grid-template-columns: 1fr 1.3fr"] {
    grid-template-columns: 1fr !important; gap: 24px !important;
  }
  [style*="gap:64px"], [style*="gap: 64px"] { gap: 24px !important; }

  /* Footer — Capital & Engage side-by-side, Connect below */
  .footer-top { grid-template-columns: 1fr 1fr !important; padding: 36px 20px 28px; gap: 24px; }
  .footer-top > .footer-brand { grid-column: 1 / -1; }
  .footer-top > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; gap: 12px; }
  .footer-brand-desc { max-width: none; }

  /* Modal */
  .modal { padding: 32px 24px; width: 94%; }
  .modal-title { font-size: 20px; }

  /* Buttons — touch-friendly */
  .btn { padding: 14px 28px; font-size: 14px; min-height: 48px; }
  .btn-sm { padding: 11px 20px; min-height: 44px; }
  .tag { font-size: 10px; padding: 5px 10px; }
}

/* ═══════════════════════════════════════
   COMPREHENSIVE RESPONSIVE — SMALL MOBILE
═══════════════════════════════════════ */
@media (max-width: 480px) {
  nav#mainNav { padding: 0 16px; }
  .nav-logo { gap: 10px; }
  .nav-logo img { height: 30px; }
  .nav-divider { display: none; }
  .nav-brand-sub { display: none; }
  .page-header { padding: 32px 16px 24px; }
  .container { padding: 32px 16px; }
  [class*="-wrap"], [class*="-inner"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="padding:0 64px"], [style*="padding: 0 64px"] { padding-left: 16px !important; padding-right: 16px !important; }
  h2.sec-title { font-size: clamp(22px, 6vw, 30px); }
  .ph-title { font-size: clamp(24px, 7vw, 36px); }
  .footer-top { padding: 28px 16px 20px; }
  .footer-bottom { padding: 14px 16px; }
  body { word-wrap: break-word; overflow-wrap: break-word; }
}

/* ═══════════════════════════════════════
   TOUCH & ACCESSIBILITY
═══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .nav-links a { min-height: 48px; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
  .footer-social a { width: 44px; height: 44px; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
