/* KBHomeFix stylesheet. No framework, no build step. */

:root {
    --navy: #0f2a4a;
    --navy-deep: #0b1f38;
    --blue: #1d4ed8;
    --blue-dark: #1e40af;
    --red: #c81e1e;
    --red-dark: #a51818;
    --amber: #f2b134;
    --sand: #faf6ef;
    --ink: #1f2937;
    --muted: #5b6574;
    --line: #e5e7eb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 42, 74, .12);
    --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3, .h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header ---- */
.notice-bar { background: var(--navy-deep); color: #c9d5e5; font-size: .8rem; line-height: 1.4; text-align: center; padding: 8px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.01em; }
.brand:hover { color: var(--navy); }
.brand-name span { color: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--navy); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
    border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer;
    transition: background-color .15s, transform .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: scale(.98); }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-dark); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); margin: 4px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.25rem; padding: 16px 30px; }
.btn-block { display: flex; width: 100%; }

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: var(--amber); }
.lead { font-size: 1.14rem; color: var(--muted); }

.hero { background: linear-gradient(155deg, #0f2a4a 0%, #163a63 55%, #1c4f9c 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d3dff0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.hero-art img, .figure img { width: 100%; }
.hero-art, .figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.figure { box-shadow: var(--shadow); }

.call-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 6px solid var(--amber); max-width: 470px; margin-top: 28px; }
.call-card .kicker { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.call-card .number { font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 900; margin: 0 0 14px; letter-spacing: -.01em; white-space: nowrap; }
.call-card .number a { color: var(--navy); text-decoration: none; }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.fine-light { font-size: .85rem; color: #b9c7da; margin: 14px 0 0; }

.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff3d6; color: #b7791f; font-weight: 900; font-size: .8rem; display: grid; place-items: center; margin-top: .15em; }
.checks-compact { font-size: .95rem; margin: 16px 0 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 56px; height: 56px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 32px; }
.step { text-align: center; padding: 8px 12px; }
.step img { width: 96px; height: 96px; margin: 0 auto 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.numbered { padding-left: 1.3em; }
.numbered li { margin-bottom: .7em; }
.callout { background: #fff7e6; border-left: 5px solid var(--amber); padding: 16px 20px; border-radius: 8px; font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .92rem; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3dff0; }

/* ---- Services ---- */
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700; line-height: 1.3; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover, .service-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--navy); }
.tile img { width: 64px; height: 64px; }
.service-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-card p { color: var(--muted); }
.service-card .more { color: var(--blue); font-weight: 700; font-size: .95rem; }
.card-accent { border-top: 4px solid var(--blue); }
.service-art { display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 70%); border: 1px solid rgba(255, 255, 255, .18); }
.service-art img { width: 62%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
.crumbs { font-size: .85rem; color: #b9c7da; margin-bottom: 14px; }
.crumbs a { color: #e2e9f3; }
.service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.service-links a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; background: #fff; }
.service-links a:hover { border-color: var(--blue); }
.service-links img { width: 34px; height: 34px; }
.local-links { margin-top: 28px; font-weight: 600; }
.optout-card { margin: 28px 0; }
.prose .optout-card h2 { margin-top: 0; }

/* ---- Inner pages ---- */
.page-hero { background: var(--sand); padding: 52px 0 38px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }
.updated { color: var(--muted); font-size: .92rem; margin: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-aside hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; color: inherit; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(29, 78, 216, .25); border-color: var(--blue); }
form .fine { margin: 0 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #b6c3d4; font-size: .92rem; padding: 56px 0 28px; }
.site-footer a { color: #e2e9f3; }
.site-footer a:hover { color: #fff; }
.footer-disclosure { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 44px; line-height: 1.6; font-size: .86rem; }
.footer-disclosure p { margin: 0; }
.footer-disclosure strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.brand-footer { color: #fff; margin-bottom: 12px; font-size: 1.15rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-name span { color: #8fb4ff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .84rem; }
.footer-bottom p { margin: 0; }

.mobile-callbar { display: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    body { font-size: 16px; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: -20px; right: -20px; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 4px 20px 12px; }
    .main-nav li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .main-nav li:last-child a { border-bottom: 0; }
    .header-call { padding: 10px 14px; font-size: .95rem; }

    .hero { padding: 40px 0 52px; }
    .hero-grid, .split, .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 32px; }
    .split { gap: 32px; }
    .split-reverse .figure { order: 2; }
    .service-art { display: none; }
    .section { padding: 54px 0; }
    .call-card { max-width: none; }

    body.has-callbar { padding-bottom: 78px; }
    .has-callbar .mobile-callbar {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
    }
}

@media (max-width: 520px) {
    .brand { font-size: 1.1rem; }
    .brand img { width: 30px; height: 30px; }
    .header-call span { display: none; }
    .header-call { padding: 10px 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .btn-lg { font-size: 1.1rem; padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
