/* ==========================================================================
   UMBC VITA — Design System
   Style: Accessible & Ethical (WCAG-AA/AAA leaning)
   Palette: VITA green + UMBC black & gold
   Type: Lexend (display) / Source Sans 3 (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens (from the VITA logo) */
  --green-900: #10331F;
  --green-800: #14432A;
  --green-700: #1B6640;   /* primary action */
  --green-600: #2E8B57;
  --green-500: #4CA96A;   /* logo "bill" green */
  --green-300: #A7D3A0;   /* logo sage */
  --green-100: #E9F5E4;   /* mint tint */
  --green-050: #F3FAF0;

  /* UMBC gold + black accents */
  --gold-500: #FDB515;    /* UMBC gold — decorative / on-dark only */
  --gold-600: #D9930A;    /* darker gold for small accents */
  --ink-900:  #0B1220;    /* UMBC black — primary text */
  --ink-700:  #334155;    /* secondary text */
  --ink-500:  #64748B;    /* muted text */

  /* Surfaces */
  --surface:  #FFFFFF;
  --bg:       #F7FAF5;
  --border:   #E1E9DD;
  --border-strong: #C9D6C2;
  --destructive: #B42318;

  /* Semantic */
  --color-primary: var(--green-700);
  --color-on-primary: #FFFFFF;
  --color-accent: var(--gold-500);
  --color-foreground: var(--ink-900);

  /* Typography */
  --font-display: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale (4/8) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  /* Radius / shadow */
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 3px rgba(11,18,32,.05);
  --shadow-md: 0 6px 20px rgba(16,51,31,.08), 0 2px 6px rgba(16,51,31,.06);
  --shadow-lg: 0 20px 45px rgba(16,51,31,.14);

  --container: 1160px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--green-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--mint { background: var(--green-050); }
.section--ink { background: var(--ink-900); color: #E7ECEA; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section--ink .eyebrow { color: var(--gold-500); }
.section--ink .eyebrow::before { background: var(--gold-500); }

.lead { font-size: 1.18rem; color: var(--ink-700); max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.stack > * + * { margin-top: var(--space-4); }
.measure { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--green-700); --_fg: #fff; --_bd: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 15px 26px; min-height: 48px; border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--_fg); border: 2px solid var(--_bd);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; }
.btn--gold { --_bg: var(--gold-500); --_fg: var(--ink-900); --_bd: var(--gold-500); }
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--ink-900); }
.btn--outline { --_bg: transparent; --_fg: var(--green-800); --_bd: var(--border-strong); box-shadow: none; }
.btn--outline:hover { background: var(--green-100); border-color: var(--green-600); color: var(--green-800); }
.btn--ghost-light { --_bg: rgba(255,255,255,.12); --_fg:#fff; --_bd: rgba(255,255,255,.5); box-shadow:none; }
.btn--ghost-light:hover { background:#fff; color: var(--ink-900); border-color:#fff; }
.btn--lg { font-size: 1.08rem; padding: 17px 32px; min-height: 54px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.center .btn-row { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.textlink .icon { width: 18px; height: 18px; transition: transform .18s ease; }
.textlink:hover .icon { transform: translateX(3px); }

/* ---------- Top notice banner ---------- */
.notice {
  background: linear-gradient(90deg, #FFF7E3, #FFF1CE);
  border-bottom: 1px solid #F1D98A;
  color: #5A420A;
}
.notice__inner {
  display: flex; align-items: flex-start; gap: 14px;
  padding-block: 12px; font-size: .98rem;
}
.notice__icon { flex: none; width: 24px; height: 24px; color: var(--gold-600); margin-top: 1px; }
.notice__inner strong { color: #4A3607; }
.notice__inner a { color: #7a4d05; font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: var(--space-5); height: var(--nav-h); }
.brand { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; margin-right: auto; }
.brand__umbc { font-family: var(--font-display); font-weight: 300; letter-spacing: .28em; font-size: 1.05rem; color: var(--ink-900); }
.brand__vita { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; font-size: 1.5rem; color: var(--green-700); }
.brand:hover .brand__vita { color: var(--green-800); }

.nav__links { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  color: var(--ink-700); text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--green-100); color: var(--green-800); }
.nav__links a[aria-current="page"] { color: var(--green-800); background: var(--green-100); }
.nav__cta { margin-left: var(--space-2); }

.nav__toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink-900); }
.nav__toggle .icon { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5) var(--space-6);
    display: none; flex-direction: column; gap: var(--space-3);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav__cta { margin: var(--space-2) 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--green-050), #fff 78%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, var(--green-300) 1px, transparent 0);
  background-size: 26px 26px; mask-image: radial-gradient(120% 80% at 80% 0%, #000 30%, transparent 72%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; padding-block: var(--space-9); }
.hero h1 { margin-bottom: var(--space-4); }
.hero h1 .hl { color: var(--green-700); }
.hero__lead { font-size: 1.22rem; color: var(--ink-700); max-width: 52ch; margin-bottom: var(--space-6); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-family: var(--font-display); font-size: .95rem; color: var(--green-800); }
.hero__badge .icon { width: 22px; height: 22px; color: var(--green-600); flex: none; }

.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 6px solid #fff; }
.hero__logo-card {
  position: absolute; left: -18px; bottom: -22px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 10px 14px;
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
}
.hero__logo-card img { width: 108px; border-radius: 8px; }
.hero__logo-card span { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink-700); max-width: 12ch; line-height: 1.25; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); padding-block: var(--space-7); }
  .hero__media { order: -1; }
  .hero__logo-card { left: auto; right: 12px; bottom: -18px; }
}

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); text-align: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat::after { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--green-700); line-height: 1; letter-spacing: -.03em; }
.stat__label { margin-top: var(--space-2); color: var(--ink-700); font-weight: 500; }
@media (max-width: 720px){ .stats { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: var(--space-4);
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-700); }
.card__foot { margin-top: var(--space-4); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-6); }
.step__n {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--gold-600);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-3);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.step p { color: var(--ink-700); font-size: .98rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.checklist--yes .icon { color: var(--green-600); }
.checklist--no .icon { color: var(--destructive); }
.checklist li strong { display: block; }
.checklist li span { color: var(--ink-700); font-size: .97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.split--media { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--space-8); }
@media (max-width: 900px){ .split, .split--media { grid-template-columns: 1fr; gap: var(--space-6); } }
.rounded-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; width: 100%; aspect-ratio: 3/2; }

.panel { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.panel--mint { background: var(--green-050); border-color: var(--green-300); }

/* Info list (dates, contact) */
.deflist { display: grid; gap: var(--space-4); }
.deflist > div { display: flex; gap: 12px; align-items: flex-start; }
.deflist .icon { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 3px; }
.deflist dt { font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.deflist dd { margin: 0; color: var(--ink-700); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { background: var(--green-100); color: var(--green-800); font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--green-300); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 820px; margin-inline: auto; }
.faq__item { background:#fff; border:1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  font-family: var(--font-display); font-weight:600; font-size: 1.08rem; color: var(--ink-900);
  padding: var(--space-4) var(--space-5); display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq__q:hover { color: var(--green-800); }
.faq__q .icon { width:24px; height:24px; color: var(--green-600); flex:none; transition: transform .25s ease; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Bottom padding is always present so scrollHeight measures the full open
   height immediately (only max-height animates). Clipped when collapsed. */
/* Vertical padding applies only when open (and is NOT transitioned), so a
   collapsed panel is truly 0px tall and scrollHeight still measures correctly. */
.faq__a { padding: 0 var(--space-5); max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a p { color: var(--ink-700); margin: 0; }
.faq__item.is-open .faq__a { padding-top: 2px; padding-bottom: var(--space-5); }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(120% 140% at 0% 0%, var(--green-700), var(--green-900)); color:#EAF3EC; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); text-align:center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%; background: rgba(253,181,21,.16); }
.cta-band h2 { color:#fff; position: relative; }
.cta-band p { color: #CFE6D5; max-width: 56ch; margin-inline:auto; position: relative; }
.cta-band .btn-row { position: relative; margin-top: var(--space-6); justify-content: center; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--green-050), #fff); border-bottom:1px solid var(--border); }
.page-hero__inner { padding-block: var(--space-8); max-width: 780px; }
.breadcrumb { font-size:.9rem; color: var(--ink-500); margin-bottom: var(--space-3); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #AEB9C4; padding-block: var(--space-8) var(--space-6); }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer__brand img { width: 150px; border-radius: 10px; margin-bottom: var(--space-4); }
.footer__brand p { color:#93A0AC; max-width: 40ch; }
.footer h4 { color:#fff; font-family: var(--font-display); font-size: .85rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom: var(--space-4); }
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap: 10px; }
.footer a { color:#C3CCD4; text-decoration:none; }
.footer a:hover { color:#fff; text-decoration: underline; }
.footer__contact div { display:flex; gap:10px; align-items:flex-start; margin-bottom: 10px; }
.footer__contact .icon { width:20px; height:20px; color: var(--gold-500); flex:none; margin-top:3px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: var(--space-7); padding-top: var(--space-5); display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:.88rem; color:#7E8A96; }

/* Utilities */
.mt-6 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } }
