@import url("/assets/brand/colors.css");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-alt { background: var(--color-surface); }
.grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h1 + p { margin-top: 24px; }
h2 + p { margin-top: 20px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-text-muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(27, 126, 174, 0.55);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-logo { display: block; height: 46px; width: auto; }
/* Footer (dark background) uses logo-horizontal-on-dark.svg: same artwork
   with white lettering. The header in dark mode keeps a white plate. */
.footer-brand .brand-logo { height: 50px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .brand { background: #fff; padding: 6px 10px; border-radius: 10px; }
  :root:not([data-theme="light"]) .site-header .brand-logo { height: 38px; }
}
:root[data-theme="dark"] .site-header .brand { background: #fff; padding: 6px 10px; border-radius: 10px; }
:root[data-theme="dark"] .site-header .brand-logo { height: 38px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-primary); border-color: var(--color-primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn-primary { display: none; }
@media (min-width: 880px) { .nav-actions .btn-primary { display: inline-flex; } }
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; padding: 8px 20px 20px; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
@media (min-width: 880px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px);
}
.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--color-blue-500), var(--color-blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 36px);
  width: 58%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.hero-logo { display: block; width: 100%; height: auto; }
.hero-photo { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats div { min-width: 100px; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--color-primary); }
.hero-stats span { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 17, 19, 0.35); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-ink-900), var(--color-blue-700));
  color: #fff;
  border-radius: 20px;
  padding: clamp(32px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink-900);
  color: rgba(255,255,255,0.72);
  padding-block: 56px 28px;
}
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 30ch; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding-block: clamp(40px, 7vw, 72px) 32px;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 20px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-lg { margin-top: 48px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}

/* ---------- Program facts ---------- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 16px; font-size: 0.92rem; }
.facts dt { color: var(--color-text-muted); }
.facts dd { margin: 0; font-weight: 600; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--color-primary); }
.card-link:hover { text-decoration: underline; }
a.card-row { display: block; }
a.card-row:hover { border-color: var(--color-primary); }
a.card-row h3 { color: var(--color-primary); }
