/* ═══════════════════════════════════════════════
   Avera website — shared styles across all pages
   (nav, buttons, section scaffold, trust band,
    CTA band, footer, subpage hero)
   Page-specific styles stay in each HTML file.
   ═══════════════════════════════════════════════ */

body { background: var(--bg); color: var(--fg-2); }

/* ─── NAV ─────────────────────── */
.nav { position: sticky; top: 0; z-index: 10; height: var(--nav-h); background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: var(--container-lg); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.012em; color: var(--navy-900); text-decoration: none; }
.nav__brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a { color: var(--fg-2); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--fg-1); }
.nav__links a[aria-current="page"] { font-weight: 500; }
.nav__cta { display: flex; gap: 12px; align-items: center; }

/* ─── BUTTONS ─────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all var(--dur-fast) var(--ease-out); }
.btn svg { width: 16px; height: 16px; stroke-width: 1.75; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-outline { background: transparent; color: var(--fg-1); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--fg-1); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ─── SECTION SCAFFOLD ───────────────────── */
section.s { padding: 128px 0; }
section.s--subtle { background: var(--bg-subtle); }
section.s--navy { background: var(--navy-950); color: #F7F9FC; }
.section-head { max-width: 820px; margin: 0 0 72px; }
.section-head .t-eyebrow { margin: 0 0 20px; display: block; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--fg-1); text-wrap: balance; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { font-size: 19px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 680px; }
section.s--navy .section-head h2 { color: #F7F9FC; }
section.s--navy .section-head h2 em { color: var(--blue-300); }
section.s--navy .section-head p { color: var(--slate-300); }
.section-closer { margin-top: 56px; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--fg-2); max-width: 720px; line-height: 1.4; }
section.s--navy .section-closer { color: var(--slate-300); }

/* ─── SUBPAGE HERO (smaller than homepage hero) ─── */
.subhero { background: var(--navy-950); color: #F7F9FC; position: relative; overflow: hidden; padding: 96px 0 88px; }
.subhero__bg { position: absolute; inset: 0; opacity: 0.14; pointer-events: none; }
.subhero .container { position: relative; }
.subhero__eyebrow { color: var(--blue-300); margin: 0 0 24px; display: block; }
.subhero h1 { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 28px; color: #F7F9FC; max-width: 900px; text-wrap: balance; }
.subhero h1 em { font-style: italic; color: var(--blue-300); }
.subhero p.lead { font-size: 19px; line-height: 1.55; color: var(--slate-300); max-width: 720px; margin: 0 0 32px; }
.subhero .op-line { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--slate-300); max-width: 720px; margin: 0; line-height: 1.5; border-left: 2px solid var(--blue-400); padding-left: 18px; }

/* ─── JUMP-LINK NAVIGATION (for long single-scroll pages) ─── */
.jumpnav { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-h); z-index: 9; }
.jumpnav__inner { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; display: flex; gap: 32px; align-items: center; height: 56px; overflow-x: auto; }
.jumpnav__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); flex-shrink: 0; }
.jumpnav__links { display: flex; gap: 24px; font-size: 14px; }
.jumpnav__links a { color: var(--fg-2); text-decoration: none; white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; transition: all var(--dur-fast) var(--ease-out); }
.jumpnav__links a:hover { color: var(--fg-1); border-bottom-color: var(--accent); }

/* offset anchors under sticky nav+jumpnav */
section[id] { scroll-margin-top: calc(var(--nav-h) + 72px); }

/* ─── TRUST BAND ─────────── */
.trust-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: stretch; }
.trust-item { display: flex; flex-direction: column; gap: 6px; padding: 0 20px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-3); text-transform: uppercase; }
.trust-item__val { font-family: var(--font-sans); font-size: 14px; color: var(--fg-1); font-weight: 500; line-height: 1.35; }
.trust-item__status { font-family: var(--font-mono); font-size: 10px; color: var(--warn-fg); margin-top: 2px; }
.trust-item__status--ok { color: var(--ok-fg); }

/* ─── CTA BAND ─────────────────────── */
.cta { background: var(--gradient-navy); color: #fff; border-radius: 24px; padding: 88px 72px; text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--gradient-brand); opacity: 0.18; filter: blur(40px); pointer-events: none; }
.cta .t-eyebrow { color: var(--blue-300); margin-bottom: 20px; }
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; color: #F7F9FC; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta h2 em { font-style: italic; color: var(--blue-300); }
.cta p { font-size: 18px; color: var(--slate-300); max-width: 560px; margin: 0 auto 40px; line-height: 1.55; }
.cta .btn-primary { background: #F7F9FC; color: var(--navy-900); }
.cta .btn-primary:hover { background: #fff; }

/* ─── FOOTER ───────────────────── */
footer { background: var(--navy-950); color: var(--slate-400); padding: 80px 0 48px; font-size: 14px; border-top: 1px solid var(--navy-800); }
footer .f-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
footer h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #F7F9FC; margin: 0 0 18px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 6px 0; }
footer a { color: var(--slate-400); text-decoration: none; }
footer a:hover { color: #F7F9FC; }
footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
footer .brand img { width: 28px; }
footer .brand span { font-family: var(--font-display); font-size: 24px; color: #F7F9FC; letter-spacing: -0.012em; }
footer .f-blurb { max-width: 300px; line-height: 1.55; color: var(--slate-400); margin: 0 0 20px; }
footer .f-address { font-size: 13px; color: var(--slate-500); line-height: 1.6; }
footer .legal { padding-top: 28px; border-top: 1px solid var(--navy-800); display: flex; justify-content: space-between; font-size: 12px; color: var(--slate-500); gap: 24px; flex-wrap: wrap; }

/* ─── HERO NODE-GRAPH BG (reusable) ─────────── */
.nodebg-g1 { stroke: #3D8BFD; fill: none; stroke-width: 1; stroke-opacity: 0.5; }
.nodebg-g2 { fill: #6EA8FE; }

/* ─── RESPONSIVE ─────────── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .subhero h1 { font-size: 48px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .trust-item { border-left: 0; padding: 0; }
  footer .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  section.s { padding: 80px 0; }
  .subhero { padding: 64px 0 56px; }
  .subhero h1 { font-size: 36px; }
  .section-head h2 { font-size: 36px; }
  .cta { padding: 56px 28px; border-radius: 16px; }
  .cta h2 { font-size: 36px; }
  footer .f-grid { grid-template-columns: 1fr; }
}
