/* =====================================================================
   Southgate / Corewell — shared design system
   Brand: navy #0B2545 + light blue #3A8DDE, Poppins.
   Each site sets its own surface colours in theme.css.
   ===================================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #0B2545;
  --navy-700: #13315C;
  --navy-900: #071A33;
  --sky: #3A8DDE;
  --sky-ink: #1C64B0;      /* light blue dark enough for text on light grounds */
  --sky-soft: #DCEBFA;
  --sky-on-dark: #7DB8EE;

  --bg: #FFFFFF;
  --surface: #F3F6FA;
  --surface-2: #E8EEF5;
  --card: #FFFFFF;
  --ink: #0B2545;          /* headings */
  --text: #26313F;         /* body */
  --muted: #566273;
  --line: rgba(11, 37, 69, 0.12);
  --line-strong: rgba(11, 37, 69, 0.24);

  --on-dark: #EEF3F9;
  --on-dark-muted: #A9BBD0;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 18px 40px -24px rgba(11, 37, 69, 0.35);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(64px, 9vw, 128px);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--sky-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- type scale */
.display { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; }
.h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--muted); max-width: 38em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sky); border-radius: 2px; }
.prose { max-width: 42em; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 18px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 8px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.placeholder { background: #FFF3CD; color: #5C4400; padding: 0 4px; border-radius: 3px; font-weight: 500; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface); }
.section--alt-2 { background: var(--surface-2); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--sky-on-dark); }
.section--dark a:not(.btn) { color: var(--sky-on-dark); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.grid { display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); }
.grid--2 { --min: 420px; }
.grid--3 { --min: 300px; }
.grid--4 { --min: 230px; }
.split { display: grid; gap: clamp(36px, 6vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; }
.split--top { align-items: start; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 56px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: grid; gap: 16px; max-width: 680px; }
.section-head > p { max-width: 30em; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--sky { background: var(--sky); color: var(--navy-900); }
.btn--sky:hover { background: #5AA2E6; color: var(--navy-900); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-soft); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); min-height: 44px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- header + nav */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand-link { display: flex; align-items: center; flex: none; }
.brand-link img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__list a:hover { background: var(--surface-2); color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--sky-ink); }
.nav__list a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); margin-left: 6px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.nav-toggle span { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(11,37,69,.35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-header.is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: flex; width: 100%; min-height: 54px; font-size: 18px; border-radius: 0; padding: 0; border-bottom: 1px solid var(--line); }
  .nav__list a:hover { background: transparent; }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
}
@media (max-width: 520px) { .brand-link img { height: 36px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.trust li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--sky); flex: none; }

.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; gap: 20px; max-width: 820px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- media */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1 / 1; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-3x4 { aspect-ratio: 3 / 4; } .ratio-4x5 { aspect-ratio: 4 / 5; } .ratio-16x10 { aspect-ratio: 16 / 10; } .ratio-21x9 { aspect-ratio: 21 / 9; }
.media__tag { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 1px; padding: 12px 16px; border-radius: var(--radius); background: rgba(255,255,255,.95); font-size: 13px; color: var(--ink); box-shadow: 0 8px 24px -12px rgba(11,37,69,.35); }
.media__tag b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------------------------------------------------------------- cards */
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; flex: 1; }
.card__body .link-arrow { margin-top: auto; }
.card__meta { font-size: 13px; color: var(--muted); }
.card--flat { border: none; background: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--flat .card__body { padding: 20px 0 0; }
a.card { color: inherit; text-decoration: none; }

.feature { display: grid; gap: 12px; align-content: start; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); }
.feature__icon svg { width: 24px; height: 24px; }
.section--dark .feature__icon { background: rgba(125,184,238,.14); color: var(--sky-on-dark); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.section--dark .panel { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------- lists, steps, timeline */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--sky); margin-top: 2px; }
.steps { list-style: none; counter-reset: step; display: grid; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.steps > li:last-child { border-bottom: 1px solid var(--line-strong); }
.steps > li::before { content: "0" counter(step); font-size: 32px; font-weight: 500; line-height: 1; color: var(--sky); letter-spacing: -0.03em; }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.timeline { list-style: none; display: grid; }
.timeline > li { display: grid; grid-template-columns: minmax(90px, 140px) 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.timeline > li:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline__year { font-size: 30px; font-weight: 500; line-height: 1; color: var(--sky-ink); letter-spacing: -0.03em; }
.timeline h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 1fr; gap: 10px; } .timeline__year { font-size: 24px; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--sky-soft); color: var(--navy); }
.badge--warn { background: #FFF3CD; color: #5C4400; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; }
.section--dark .tags li { border-color: rgba(255,255,255,.25); }

/* ---------------------------------------------------------------- specs table */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 40%; font-weight: 500; color: var(--muted); padding-right: 24px; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- accordion (details/summary) */
.accordion { display: grid; border-top: 1px solid var(--line-strong); }
.accordion details { border-bottom: 1px solid var(--line-strong); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--ink); min-height: 44px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion details > div { padding: 0 0 24px; max-width: 46em; color: var(--muted); display: grid; gap: 12px; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--card); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(58,141,222,.25); }
.field small { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-success { display: none; padding: 18px 20px; border-radius: var(--radius); background: var(--sky-soft); color: var(--navy); font-weight: 500; }
.form.is-sent .form-success { display: block; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1 1 240px; }
.inline-form input { border-radius: 999px; padding-inline: 22px; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); padding: clamp(36px, 5vw, 72px); display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); }
.cta-band .cluster { justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .cluster { justify-content: flex-start; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); padding-block: 72px 56px; }
.footer__brand { display: grid; gap: 18px; align-content: start; grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer__brand { grid-column: auto; } }
.footer__brand img { height: 44px; width: auto; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h2 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 26px 36px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
