/* ============================================================
   Shared site styles — brand-agnostic. All color/font values
   come from theme.css custom properties. Do not hardcode brand
   colors here; add tokens to theme.css instead.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--surface { background: var(--color-surface); }
.section__eyebrow { color: var(--color-primary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.text-center { text-align: center; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .18s ease, color .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--color-primary); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 800; color: var(--color-ink); }
.nav__brand img { height: 46px; width: auto; }
.nav__brand span { font-size: 1rem; line-height: 1.1; max-width: 190px; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--color-ink); font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--color-primary); text-decoration: none; }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--color-ink); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(21,94,150,.92) 0%, rgba(28,117,187,.78) 45%, rgba(64,84,178,.55) 100%); }
.hero__inner { position: relative; z-index: 2; padding: clamp(4rem, 10vw, 7rem) 0; max-width: 680px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.94); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__trust { margin-top: 1.6rem; font-size: .95rem; color: rgba(255,255,255,.9); display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }

/* Program cards */
.grid { display: grid; gap: 1.5rem; }
.grid--programs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__age { color: var(--color-primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.card__body h3 { margin: .25rem 0 .5rem; }
.card__body p { color: var(--color-muted); font-size: .97rem; flex: 1; }
.card__link { margin-top: 1rem; font-weight: 700; color: var(--color-primary); }
.card__link:hover { text-decoration: none; }

/* Feature (why-us) tiles */
.feature { text-align: center; padding: 1rem; }
.feature__icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px;
  background: color-mix(in srgb, var(--color-primary) 12%, white); color: var(--color-primary);
  display: grid; place-items: center; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--color-muted); font-size: .95rem; }

/* Split / about */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { display: flex; gap: .7rem; margin-bottom: .8rem; align-items: flex-start; }
.checklist li::before { content: "✓"; color: #fff; background: var(--color-primary); border-radius: 50%;
  width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(105deg, var(--color-primary-dark), var(--color-secondary)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.1rem; }

/* Lead form */
.lead-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--color-ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--color-ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
}
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--color-muted); margin-top: .5rem; }
.form-msg { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: none; }
.form-msg--ok { display: block; background: #e7f6ec; color: #1a7f42; border: 1px solid #b7e4c7; }
.form-msg--err { display: block; background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.78); padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand img { height: 54px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(105deg, var(--color-primary-dark), var(--color-secondary)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* Prose */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }

/* Responsive */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem 20px; gap: 1rem;
    align-items: stretch; box-shadow: var(--shadow-md); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
