/* =====================================================================
   Penn Parsons — stylesheet
   Brand: Deep Navy #0A2540 primary, #1C7ED6 accent.
   ===================================================================== */

:root {
    --navy:        #0A2540;
    --navy-700:    #0E2F52;
    --navy-600:    #143a63;
    --accent:      #1C7ED6;
    --accent-600:  #1567b3;
    --ink:         #1A2433;
    --muted:       #5b6b7d;
    --line:        #e1e6ee;
    --bg:          #ffffff;
    --bg-alt:      #f4f6fb;
    --bg-navy-soft:#f0f4fa;
    --gold:        #d9a441;
    --ok:          #1f8a4c;
    --err:         #c0392b;
    --radius:      10px;
    --radius-lg:   16px;
    --shadow:      0 6px 24px rgba(10, 37, 64, .08);
    --shadow-lg:   0 18px 50px rgba(10, 37, 64, .16);
    --maxw:        1180px;
    --font:        'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* --- Dark theme ------------------------------------------------------
   Activated by data-theme="dark" on <html>. The surfaces that are WHITE in
   light mode (page background, cards, forms, inputs, dropdowns) become neutral
   dark grey. The navy brand areas (header, footer, hero, CTA/product bands)
   stay navy, and the blue --accent stays for buttons/links. */
:root[data-theme="dark"] {
    --ink:          #e7e9ec;
    --muted:        #9aa1a9;
    --line:         #2b2e33;
    --bg:           #0e0f11;   /* page background — was white  */
    --bg-alt:       #16181b;   /* alternating sections — was light grey */
    --bg-navy-soft: #212429;   /* soft chip / icon background — was near-white */
    /* Brand navy surfaces stay navy in dark mode (header/footer/hero/bands). */
    --navy:         #0a2540;
    --navy-700:     #0c2c4d;
    --navy-600:     #103456;
    --shadow:       0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg:    0 18px 50px rgba(0, 0, 0, .6);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: #f2f6fb; }
:root[data-theme="dark"] .card { background: #1b1d21; }
:root[data-theme="dark"] .form-card { background: #1b1d21; }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .choice { background: #131417; color: var(--ink); border-color: #33373d; }
:root[data-theme="dark"] .accordion,
:root[data-theme="dark"] table.data { background: #1b1d21; }
:root[data-theme="dark"] .tab-btn { background: #1b1d21; color: var(--ink); }
:root[data-theme="dark"] .section--alt { background: var(--bg-alt); }
:root[data-theme="dark"] .page-hero .lead { color: #b8c6d6; }
:root[data-theme="dark"] .crumbs,
:root[data-theme="dark"] .crumbs a { color: var(--muted); }

/* Dropdown menu — was hardcoded white, made nav links invisible in dark. */
:root[data-theme="dark"] .dropdown { background: #1b1d21; border: 1px solid var(--line); }
:root[data-theme="dark"] .dropdown a { color: #d7e2ee; }
:root[data-theme="dark"] .dropdown a:hover { background: var(--bg-navy-soft); color: #fff; }

/* Form labels, code/credential pills, and FAQ questions used dark navy text. */
:root[data-theme="dark"] .field label { color: #d7e2ee; }
:root[data-theme="dark"] .codes li { background: var(--bg-navy-soft); border-color: #33373d; color: #e6ecf3; }
:root[data-theme="dark"] .codes li span { color: var(--muted); }
:root[data-theme="dark"] .accordion__q { color: #f2f6fb; }
:root[data-theme="dark"] .accordion__a { color: var(--muted); }

/* Outline / "ghost-on-light" buttons need a dark face on dark pages. */
:root[data-theme="dark"] .btn--outline { background: #1b1d21; color: var(--ink); border-color: #33373d; }
:root[data-theme="dark"] .btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Native select dropdown list + option colors. */
:root[data-theme="dark"] .field select option { background: #131417; color: var(--ink); }

/* Danger callout (e.g. the CMMC "what's at stake" box). Light-pink in light
   mode; a dark-red variant in dark mode so it stays readable over the dark
   .form-card surface (which otherwise overrides the background). */
.callout-danger { background: #fdecea; border-color: #f5c6c0; }
.callout-danger h3 { color: #c0392b; }
.callout-danger p, .callout-danger li { color: #7a2c22; }
:root[data-theme="dark"] .callout-danger { background: #2a1719; border-color: #5e2b2b; }
:root[data-theme="dark"] .callout-danger h3 { color: #ff9b91; }
:root[data-theme="dark"] .callout-danger p,
:root[data-theme="dark"] .callout-danger li { color: #f0bdb8; }

/* Smooth the switch but respect reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
    body, .card, .form-card { transition: background-color .25s ease, color .25s ease; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--accent);
    color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
    font-weight: 700; color: var(--accent); margin: 0 0 .6rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* --- Buttons --------------------------------------------------------- */
.btn {
    display: inline-block; font-weight: 600; font-size: 1rem;
    padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: .18s ease; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* --- Top utility bar ------------------------------------------------- */
.topbar { background: var(--navy-700); color: #cdd9e6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 24px; gap: 12px; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__phone { color: #fff; font-weight: 600; }
.topbar__phone:hover { color: #fff; }

/* Dark-mode toggle switch */
.theme-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.theme-toggle__track {
    position: relative; width: 52px; height: 26px; border-radius: 999px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
    display: inline-flex; align-items: center; justify-content: space-between;
    padding: 0 5px; transition: background .2s;
}
.theme-toggle__icon { font-size: .72rem; line-height: 1; opacity: .85; }
.theme-toggle__thumb {
    position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .22s ease;
}
:root[data-theme="dark"] .theme-toggle__thumb { transform: translateX(26px); }
:root[data-theme="dark"] .theme-toggle__track { background: rgba(28,126,214,.45); }
.theme-toggle:focus-visible .theme-toggle__track { outline: 2px solid #7fc0ff; outline-offset: 2px; }

/* --- Header / nav ---------------------------------------------------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(10,37,64,.25); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand__logo { height: 38px; width: auto; }

.primary-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav__item { position: relative; }
.primary-nav__item > a {
    display: block; color: #e7eef6; font-weight: 600; font-size: .95rem;
    padding: 12px 14px; border-radius: 8px;
}
.primary-nav__item > a:hover,
.primary-nav__item > a.is-active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.caret { font-size: .7em; opacity: .8; }

.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
    border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
    margin: 6px 0 0; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: .16s ease; z-index: 120;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 7px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-navy-soft); color: var(--navy); text-decoration: none; }

.primary-nav__cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px auto; width: 26px; transition: .2s; }

/* --- Flash ----------------------------------------------------------- */
.flash { padding: 12px 0; font-weight: 600; }
.flash--success { background: #e7f6ee; color: var(--ok); }
.flash--error   { background: #fdecea; color: var(--err); }

/* --- Page hero (inner pages) ----------------------------------------- */
.page-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-600) 100%);
    color: #fff; padding: 64px 0 56px;
}
.page-hero .eyebrow { color: #7fc0ff; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #cdd9e6; }

/* --- Home hero ------------------------------------------------------- */
.hero {
    background: linear-gradient(155deg, #081d33 0%, var(--navy) 45%, var(--navy-600) 100%);
    color: #fff; padding: 78px 0 70px; position: relative; overflow: hidden;
}
/* Background image, layered over the navy gradient, behind the text.
   The PNG already carries its own transparency, so the layer is full opacity. */
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url("../img/hero-bg-new.png") center center / cover no-repeat;
    opacity: .25;            /* raise toward 1 for stronger, lower for fainter */
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(28,126,214,.28), transparent 70%); pointer-events: none;
}
.hero__inner { max-width: 760px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__sub { font-size: 1.22rem; color: #cdd9e6; margin-bottom: 1.8rem; max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-bar {
    background: var(--navy-700); color: #cdd9e6; font-weight: 600; font-size: .95rem;
    padding: 14px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.07);
}
.trust-bar strong { color: #fff; }

/* --- Sections -------------------------------------------------------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head .lead { margin-inline: auto; }

/* prose: body content blocks on inner pages */
.prose { max-width: 760px; }
.prose p, .prose ul { font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; }

/* --- Card grids ------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow); transition: .18s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd9e6; }
.card__icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--bg-navy-soft);
    color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.ico { display: block; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card__link { font-weight: 600; }
.card__link::after { content: " →"; }

/* persona cards link the whole card */
.card--persona { display: flex; flex-direction: column; }
.card--persona .card__link { margin-top: auto; }

/* --- CompliantVendor (product page) ---------------------------------- */
:root { --cv-green: #2f9e5b; --cv-green-600: #25804a; }

.btn--cv { background: var(--cv-green); color: #fff; border-color: var(--cv-green); }
.btn--cv:hover { background: var(--cv-green-600); border-color: var(--cv-green-600); color: #fff; }

.cv-hero {
    background: linear-gradient(150deg, #06182b 0%, var(--navy) 50%, #0c2e20 100%);
    color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; text-align: center;
}
.cv-hero::after {
    content: ""; position: absolute; left: 50%; top: -140px; width: 520px; height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(47,158,91,.28), transparent 70%); pointer-events: none;
}
.cv-hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.cv-hero__logo { width: min(420px, 80%); margin: 0 auto 26px; }
.cv-hero h1 { color: #fff; }
.cv-hero .eyebrow { color: #67d295; }
.cv-hero .lead { color: #cdd9e6; margin-inline: auto; }
.cv-hero .hero__actions { justify-content: center; }

/* Green-accented feature cards on the CV page */
.cv-page .card__icon { color: var(--cv-green); background: rgba(47,158,91,.12); }
.cv-page .card__link { color: var(--cv-green); }
.cv-page .card__link:hover { color: var(--cv-green-600); }
.cv-page .checklist li::before { color: var(--cv-green); background: rgba(47,158,91,.12); }
.cv-page .eyebrow { color: var(--cv-green-600); }

/* "Ideal for" chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chip {
    background: var(--bg-navy-soft); border: 1px solid #d6e2f0; color: var(--navy);
    border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem;
}
:root[data-theme="dark"] .chip { background: var(--bg-navy-soft); border-color: #33373d; color: #e6ecf3; }

/* Homepage CompliantVendor promo band */
.cv-band { background: linear-gradient(150deg, #06182b, var(--navy) 55%, #0c2e20); color: #fff; padding: 60px 0; }
.cv-band__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.cv-band__logo img { width: min(380px, 100%); }
.cv-band h2 { color: #fff; }
.cv-band p { color: #cdd9e6; }
.cv-band .eyebrow { color: #67d295; }
.cv-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 760px) {
    .cv-band__inner { grid-template-columns: 1fr; text-align: center; }
    .cv-band__logo { order: -1; }
    .cv-band__actions { justify-content: center; }
}

/* --- News & Articles ------------------------------------------------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card__media { display: block; aspect-ratio: 16 / 9; background: var(--bg-navy-soft); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); opacity: .5; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__body h3 { margin: 0 0 .5rem; font-size: 1.18rem; }
.news-card__body h3 a { color: var(--navy); }
.news-card__body h3 a:hover { color: var(--accent); text-decoration: none; }
.news-card__body .card__link { margin-top: auto; }

.news-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin: 0 0 .55rem; }
.news-tag {
    display: inline-block; background: var(--bg-navy-soft); color: var(--accent-600);
    border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em;
}

/* Article (single post) */
.article { padding-bottom: 24px; }
.article__container { max-width: 800px; }
.article__header { padding: 56px 0 8px; }
.article__header h1 { margin-top: .4rem; }
.article__byline { color: var(--muted); font-weight: 600; }
.article__hero { margin: 24px 0 8px; }
.article__hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article__body { max-width: 100%; padding: 16px 0 8px; }
.article__body p { font-size: 1.08rem; line-height: 1.75; }
.article__body img { border-radius: var(--radius); margin: 1.2rem 0; }
.article__body a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.article__back { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-weight: 600; }

:root[data-theme="dark"] .news-card__body h3 a { color: #f2f6fb; }
:root[data-theme="dark"] .news-card__body h3 a:hover { color: var(--accent); }
:root[data-theme="dark"] .news-tag { background: var(--bg-navy-soft); color: #7fc0ff; }

/* --- Checklist ------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checklist li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 8px; color: var(--accent);
    font-weight: 800; background: var(--bg-navy-soft); width: 22px; height: 22px;
    border-radius: 50%; display: grid; place-items: center; font-size: .8rem;
}

/* --- Two-column feature row ------------------------------------------ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split--reverse > :first-child { order: 2; }

/* --- Stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.section--navy .stat__label { color: #cdd9e6; }
.stat__label { color: var(--muted); font-size: .95rem; }

/* --- CTA band -------------------------------------------------------- */
.cta-band { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-600) 100%); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #cdd9e6; margin: 0; max-width: 60ch; }

/* --- Codes / capability block ---------------------------------------- */
.codes { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 1.2rem 0; }
.codes li { background: var(--bg-navy-soft); border: 1px solid #d6e2f0; border-radius: 8px; padding: 10px 16px; font-weight: 600; color: var(--navy); }
.codes li span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* --- Breadcrumb ------------------------------------------------------ */
.crumbs { font-size: .88rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* --- Forms ----------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 9px;
    font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28,126,214,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* option buttons (multi-step) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.choice {
    border: 2px solid #cfd8e3; border-radius: 10px; padding: 16px; text-align: center;
    cursor: pointer; font-weight: 600; color: var(--navy); transition: .15s; background: #fff;
}
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; opacity: 0; }
.choice.is-selected { border-color: var(--accent); background: var(--bg-navy-soft); box-shadow: 0 0 0 3px rgba(28,126,214,.12); }

/* multi-step */
.steps { display: flex; gap: 8px; margin-bottom: 28px; }
.steps li { flex: 1; list-style: none; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.steps li.is-current { color: var(--accent); border-color: var(--accent); }
.steps li.is-done { color: var(--ok); border-color: var(--ok); }
.step { display: none; }
.step.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step__nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }

/* --- FAQ / accordion ------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-size: 1.05rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.accordion__q::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.accordion__item.is-open .accordion__q::after { content: "–"; }
.accordion__a { padding: 0 24px; max-height: 0; overflow: hidden; transition: .25s ease; color: var(--muted); }
.accordion__item.is-open .accordion__a { padding: 0 24px 22px; max-height: 600px; }

/* --- Tabs (homepage capabilities) ------------------------------------ */
.tabs__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy); cursor: pointer; }
.tab-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* --- Misc ------------------------------------------------------------ */
.badge { display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9c6d6; font-size: .95rem; padding-top: 56px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c6d6; }
.site-footer a:hover { color: #fff; }
.site-footer__tag { margin: 14px 0; max-width: 34ch; }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__bar { border-top: 1px solid #1c3c5e; padding: 18px 0; font-size: .85rem; }
.site-footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer__bar p { margin: 0; }
.site-footer__legal { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split--reverse > :first-child { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--navy-700);
        transform: translateX(100%); transition: .25s ease; padding: 80px 18px 24px;
        overflow-y: auto; box-shadow: var(--shadow-lg);
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.05); margin: 4px 0 8px; display: none; }
    .has-dropdown.is-expanded .dropdown { display: block; }
    .dropdown a { color: #cdd9e6; }
    .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
    .primary-nav__cta { margin: 12px 0 0; }
    .primary-nav__cta .btn { display: block; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .field-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .topbar__creds { display: none; }
    .topbar__inner { justify-content: center; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
