/* SDVA site stylesheet. Colours and font taken from the live site (navy #002042, blue #234b9b / #2080c8, font Inter). */
:root {
    --navy: #002042;
    --blue: #234b9b;
    --blue-light: #2080c8;
    --ink: #111111;
    --muted: #475467;
    --line: #d1d5db;
    --bg-alt: #f4f7fb;
    --white: #ffffff;
    --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 99; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--blue-light); margin-bottom: .5rem; }
.meta { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }

/* top bar */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; margin-left: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.2rem; white-space: nowrap; }
.brand span { color: var(--blue-light); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); border-bottom-color: var(--blue-light); }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.header-cta { white-space: nowrap; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: .4em; }
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue)); color: var(--white); padding: 72px 0; }
.page-hero h1, .page-hero .eyebrow, .page-hero .lead { color: var(--white); }
.page-hero .eyebrow { opacity: .85; }

/* hero */
.hero { padding: 72px 0; background: linear-gradient(180deg, #eef4fb, var(--white)); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero-actions { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--blue); }
.stat span { font-size: .9rem; color: var(--muted); }

/* layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-frame img { border-radius: var(--radius); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card h3 a { color: var(--navy); text-decoration: none; }
.testimonial { margin: 0; }
.testimonial footer { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.check-list, .feature-list { padding-left: 0; list-style: none; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue-light); font-weight: 700; }
.feature-list li { margin-bottom: 14px; }

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: step; list-style: none; padding: 0; }
.process li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 22px 58px; position: relative; font-weight: 600; color: var(--navy); }
.process li::before { content: counter(step); position: absolute; left: 16px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .9rem; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); padding: 56px 0; }
.cta h2, .cta p { color: var(--white); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* forms */
.contact-grid { align-items: start; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea, .newsletter-form input {
    display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: var(--white);
}
.contact-form textarea { resize: vertical; }
.contact-form .checkbox { font-weight: 400; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.contact-form .checkbox input { width: auto; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.contact-aside { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }

/* footer */
.site-footer { background: #0b1d33; color: #cfd8e3; padding-top: 56px; }
.site-footer h4 { color: var(--white); }
.site-footer a { color: #fff; }
.brand-footer { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input { margin: 0; flex: 1; }
.form-status { color: #9ce0b4; }
.form-error { color: #fecdca; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* prose (blog body, legal) */
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose a { word-break: break-word; }

/* mobile */
@media (max-width: 900px) {
    .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .site-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 14px; }
    .header-cta { margin-left: auto; }
    .section { padding: 52px 0; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr 1fr; }
    .stat strong { font-size: 1.5rem; }
    .topbar-inner { flex-direction: column; }
    .topbar a { margin-left: 0; margin-right: 12px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .newsletter-form { flex-direction: column; }
}
