/* Vibrant Blue shared styles (2026-09). One file for every page so the
   nav, footer, buttons and colors can't drift apart again. */

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

:root {
  --navy:       #1a2744;
  --navy-dark:  #111b33;
  --blue:       #2c5f9e;   /* primary buttons, links (white text 6.5:1) */
  --blue-hover: #234f86;   /* darker on hover so contrast never drops */
  --blue-ink:   #255d97;   /* small colored text on tinted chips (5.6:1) */
  --teal:       #4a90d9;   /* decorative accents only (borders, dots) */
  --teal-light: #5fa8f0;   /* accent text on dark backgrounds (6.8:1) */
  --silver:     #f4f6f9;
  --line:       #dde2ed;
  --mid:        #56637f;   /* body grey, 5.6:1 on silver, 6.0:1 on white */
  --text:       #1c2333;
  --white:      #ffffff;
  --on-dark:    rgba(255,255,255,0.78);
  --on-dark-2:  rgba(255,255,255,0.7);
  --radius:     6px;
  --max:        1100px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 1000; background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.site-nav { background: var(--navy); padding: 0 2rem; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--blue); }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 68px; width: auto; display: block; }
.nav-logo img.logo-wide { height: 48px; }
.nav-logo img.logo-fallback { filter: brightness(0) invert(1); } /* white version of the old PNG if the SVG is missing */
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current] { color: var(--white); border-bottom: 2px solid var(--teal-light); padding-bottom: 2px; }
.nav-links a.nav-cta { background: var(--blue); color: var(--white); padding: 0.45rem 1.1rem; border-radius: var(--radius); font-weight: 500; border-bottom: none; }
.nav-links a.nav-cta:hover { background: var(--blue-hover); }
.nav-back { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,0.45); color: var(--white); border-radius: var(--radius); padding: 0.4rem 0.65rem; cursor: pointer; font: inherit; font-size: 0.85rem; align-items: center; gap: 0.45rem; }
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 760px) {
  .site-nav { padding: 0 1.25rem; }
  .nav-inner { height: 72px; }
  .nav-logo img { height: 52px; }
  .nav-logo img.logo-wide { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 2px solid var(--blue); padding: 0.5rem 1.25rem 1rem; box-shadow: 0 12px 24px rgba(17,27,51,0.35); }
  .site-nav.open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 0.85rem 0.25rem; font-size: 1rem; }
  .nav-links a[aria-current] { border-bottom: none; color: var(--teal-light); }
  .nav-links a.nav-cta { margin-top: 0.75rem; text-align: center; padding: 0.75rem; }
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero { background: var(--navy-dark); color: var(--white); padding: 4.5rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, rgba(44,95,158,0.4) 0%, transparent 60%); pointer-events: none; }
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.hero-center { text-align: center; }
.hero-center .hero-inner { max-width: 800px; }
.hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 1rem; font-weight: 600; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: normal; line-height: 1.18; margin-bottom: 1.25rem; max-width: 720px; text-wrap: balance; }
.hero-center h1 { margin-left: auto; margin-right: auto; }
.hero h1 em { font-style: italic; color: var(--teal-light); }
.hero-sub { font-size: 1.07rem; color: var(--on-dark); max-width: 640px; margin-bottom: 2rem; line-height: 1.75; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-sub a { color: var(--teal-light); }
.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-center .btn-row { justify-content: center; }

/* ── BUTTONS (one family, every page) ────────────────────────────── */
.btn { display: inline-block; padding: 0.75rem 1.6rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; line-height: 1.4; text-align: center; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.text-link { color: var(--blue); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 780px; margin: 0 auto; }
.section-alt { background: var(--silver); }
.section-dark { background: var(--navy); color: var(--white); }
.center { text-align: center; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.6rem; font-weight: 600; display: block; }
.section-dark .eyebrow { color: var(--on-dark-2); }
.section-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: normal; color: var(--navy); line-height: 1.25; margin-bottom: 1rem; }
.section-dark .section-heading { color: var(--white); }
.section-lead { font-size: 1rem; color: var(--mid); max-width: 660px; line-height: 1.75; margin-bottom: 2.5rem; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.section-dark .section-lead { color: var(--on-dark); }

/* ── CARDS / GRIDS ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.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: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.85rem 1.75rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.55rem; line-height: 1.35; }
.card p { font-size: 0.93rem; color: var(--mid); line-height: 1.7; }
.card-accent { border-top: 3px solid var(--blue); }
.card-accent.accent-teal { border-top-color: var(--teal); }
.card-accent.accent-navy { border-top-color: var(--navy); }
.tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 3px; margin-bottom: 0.85rem; background: rgba(74,144,217,0.14); color: var(--blue-ink); }
.dot-list { list-style: none; }
.dot-list li { padding: 0.35rem 0 0.35rem 1.2rem; position: relative; font-size: 0.92rem; color: var(--mid); line-height: 1.6; }
.dot-list li::before { content: ''; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

/* ── TRUST STRIP ─────────────────────────────────────────────────── */
.trust-strip { background: var(--navy); padding: 1.5rem 2rem; }
.trust-strip ul { max-width: var(--max); margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.25rem; text-align: center; }
.trust-strip li { font-size: 0.88rem; color: var(--on-dark); }
.trust-strip strong { color: var(--white); font-weight: 600; }

/* ── ACCORDIONS (details/summary: keyboard and screen-reader friendly) ── */
.accordion { border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin-bottom: 1rem; overflow: hidden; }
.accordion > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--navy); }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary:hover { background: rgba(44,95,158,0.04); }
.accordion > summary .chev { width: 18px; height: 18px; stroke: var(--mid); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform 0.2s; }
.accordion[open] > summary .chev { transform: rotate(180deg); }
.accordion-body { padding: 0 1.5rem 1.5rem; }

/* ── DIALOGS (native <dialog>: focus trapped, Esc closes) ────────── */
dialog.modal { border: none; border-radius: 10px; max-width: 640px; width: calc(100% - 2rem); max-height: 85vh; padding: 2.25rem; box-shadow: 0 20px 60px rgba(17,27,51,0.35); color: var(--text); margin: auto; }
dialog.modal::backdrop { background: rgba(17,27,51,0.6); }
.modal-close { position: absolute; top: 0.75rem; right: 0.9rem; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--mid); cursor: pointer; padding: 0.3rem 0.5rem; border-radius: var(--radius); }
.modal-close:hover { color: var(--navy); }
.modal h2 { font-family: var(--font-display); font-weight: normal; font-size: 1.4rem; color: var(--navy); line-height: 1.3; margin: 0.25rem 2rem 1rem 0; }
.row-label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.modal-row { margin-bottom: 0.95rem; font-size: 0.93rem; color: var(--mid); line-height: 1.65; }

/* ── FORMS ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.35rem; }
.form-group .req { color: #a3282e; }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 0.95rem; padding: 0.65rem 0.85rem; border: 1.5px solid #b9c3d6; border-radius: var(--radius); background: var(--white); color: var(--text); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); outline: 2px solid rgba(44,95,158,0.25); outline-offset: 0; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group [aria-invalid="true"] { border-color: #a3282e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.93rem; margin-bottom: 1.25rem; }
.form-status.ok { background: rgba(74,144,217,0.12); border: 1px solid rgba(44,95,158,0.35); color: var(--navy); }
.form-status.err { background: rgba(163,40,46,0.07); border: 1px solid rgba(163,40,46,0.35); color: #7c1f24; }
.form-note { font-size: 0.82rem; color: var(--mid); margin-top: 0.75rem; }
.form-note a { text-decoration: underline; }
/* Dark variant used on profile pages */
.form-dark .form-group label { color: var(--on-dark); }
.form-dark .form-group input, .form-dark .form-group select, .form-dark .form-group textarea { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); color: var(--white); }
.form-dark .form-group input::placeholder, .form-dark .form-group textarea::placeholder { color: rgba(255,255,255,0.55); }
.form-dark .form-group select option { background: var(--navy-dark); color: var(--white); }
.form-dark .form-status.ok { background: rgba(95,168,240,0.15); border-color: rgba(95,168,240,0.45); color: var(--white); }
.form-dark .form-status.err { background: rgba(255,255,255,0.08); border-color: rgba(255,160,160,0.6); color: #ffd6d6; }
.form-dark .form-note { color: var(--on-dark-2); }
.form-dark .form-note a { color: var(--teal-light); }
.form-dark .form-group .req { color: #ffb3b3; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: var(--on-dark-2); text-align: center; padding: 2rem; font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; margin-bottom: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { color: var(--on-dark-2); }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 3.25rem 1.25rem 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  dialog.modal { padding: 1.75rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
