:root {
    --navy: #13283f;
    --navy-deep: #0b1b2d;
    --slate: #526276;
    --red: #b83a32;
    --red-dark: #932d28;
    --cream: #f6f3ed;
    --paper: #fcfbf8;
    --white: #ffffff;
    --line: #d9dee4;
    --pale-blue: #eaf0f5;
    --shadow: 0 18px 45px rgba(19, 40, 63, 0.10);
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--navy);
    background: var(--paper);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--slate); }
h1, h2, h3, h4 {
    margin: 0 0 0.8rem;
    color: var(--navy-deep);
    font-family: "Archivo", sans-serif;
    line-height: 1.08;
    letter-spacing: -0.035em;
}
h1 { max-width: 820px; font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: 1.25rem; }
.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.skip-link, .sr-only, .honeypot { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 200; padding: 0.7rem 1rem; background: #fff; }

.site-shell { overflow: clip; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 248, 0.97); border-bottom: 1px solid var(--line); }
.site-header::before { content: "RESIDENTIAL RESTORATION RESPONSE  •  MONTGOMERY, AUTAUGA & ELMORE COUNTIES"; display: block; padding: 0.4rem 1rem; color: #fff; background: var(--navy-deep); text-align: center; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; }
.brand img { width: 210px; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav > ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--navy); font-size: 0.92rem; font-weight: 750; }
.site-nav .button-primary { color: #fff; }
.site-nav > ul > li > a { position: relative; }
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: right .2s ease; }
.site-nav > ul > li > a:hover::after { right: 0; }
.has-submenu { position: relative; padding-right: .8rem; }
.has-submenu::after { content: ""; position: absolute; top: 50%; right: 0; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); }
.submenu { position: absolute; z-index: 60; top: calc(100% + 18px); left: -1rem; display: grid; width: 255px; gap: 0; margin: 0; padding: .55rem; list-style: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .7rem .75rem; border-radius: 2px; }
.submenu a:hover, .submenu a:focus { color: var(--red); background: var(--cream); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--navy); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.8rem 1.25rem; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--navy); background: #fff; border-color: #bbc5cf; }
.button-ghost { color: var(--navy); background: transparent; border-color: #bbc5cf; }
.button-small { min-height: 42px; padding: 0.65rem 1rem; font-size: 0.9rem; }
.button-block { width: 100%; }

.hero { position: relative; padding: clamp(4.5rem, 8vw, 7.5rem) 0 4rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: linear-gradient(135deg, transparent 25%, rgba(19,40,63,.055) 25%, rgba(19,40,63,.055) 50%, transparent 50%, transparent 75%, rgba(19,40,63,.055) 75%); background-size: 42px 42px; opacity: .65; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(310px, .62fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.hero-eyebrow, .section-eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-intro { max-width: 720px; margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .75rem 1.35rem; margin: 1.8rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid #cfd5d9; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 700; }
.hero-points li::before, .check-list li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; background: var(--red); }
.info-card { position: relative; padding: 2rem; background: var(--navy); border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.hero-panel .info-card h2, .hero-panel .info-card h3 { color: #fff; font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.hero-panel .info-card p, .hero-panel .info-card li { color: #d9e0e8; }
.hero-panel .section-eyebrow { color: #ffb0aa; }
.hero-media { position: relative; min-height: 510px; margin: 0; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,27,45,.78)); pointer-events: none; }
.hero-media img { width: 100%; height: 510px; object-fit: cover; }
.hero-media figcaption { position: absolute; z-index: 2; left: 1.3rem; right: 1.3rem; bottom: 1.15rem; color: #fff; font-size: .8rem; font-weight: 750; }
.hero-directory { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: 2.75rem; }
.hero-directory .hero-grid { grid-template-columns: 1fr; }
.hero-directory .hero-copy { max-width: 940px; }
.hero-directory .hero-panel, .hero-directory .hero-points { display: none; }
.hero-directory h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
.hero-directory .hero-intro { margin-top: 1rem; }
.hero-directory .hero-actions { margin-top: 1.25rem; }
.check-list { display: grid; gap: .75rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; }
.check-list li::before { margin-top: .55rem; }

.breadcrumb-wrap { padding: 1rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: #9ba8b4; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-muted { background: var(--pale-blue); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.split-layout > div:first-child > p:not(.section-eyebrow) { max-width: 760px; font-size: 1.05rem; }
.split-layout > .info-card h3 { color: #fff; }
.split-layout > .info-card p, .split-layout > .info-card li { color: #d9e0e8; }
.card-grid, .link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: #cfd7df; border: 1px solid #cfd7df; }
.feature-card, .link-card { min-height: 190px; padding: 1.65rem; background: #fff; }
.feature-card { position: relative; }
.feature-card::before { content: ""; display: block; width: 30px; height: 3px; margin-bottom: 1.2rem; background: var(--red); }
.feature-card p { margin-bottom: 0; }
.location-chip-wrap { display: flex; flex-wrap: wrap; gap: .65rem; }
.location-chip { padding: .65rem .85rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: .9rem; font-weight: 750; }
.local-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 1.5rem 4rem; align-items: center; }
.local-media { margin: 0; background: var(--navy); box-shadow: var(--shadow); }
.local-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.local-media figcaption { padding: .65rem .85rem; color: #d9e0e8; font-size: .76rem; }
.local-story-chips { grid-column: 1 / -1; }
.location-chip-link { border-color: #aebbc7; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: color .18s ease, border-color .18s ease, background .18s ease, text-decoration-color .18s ease; }
.location-chip-link:hover, .location-chip-link:focus { color: var(--red-dark); background: #fff; border-color: var(--red); text-decoration-color: currentColor; }
.section-intro { max-width: 760px; margin-bottom: 2rem; font-size: 1.05rem; }
.area-directory { color: #fff; background: var(--navy-deep); }
.area-directory h2 { color: #fff; }
.area-directory .section-intro { color: #bdc8d3; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.area-card { display: grid; align-content: start; min-height: 230px; padding: 1.55rem; color: #fff; background: var(--navy); transition: background .2s ease; }
.area-card:hover { background: #1b3857; }
.area-card strong { margin: .5rem 0 .7rem; color: #fff; font-family: "Archivo", sans-serif; font-size: 1.55rem; letter-spacing: -.025em; }
.area-card > span:not(.area-meta):not(.area-card-arrow) { color: #c6d0da; }
.area-meta { color: #ffaaa4; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.area-card-arrow { margin-top: auto; padding-top: 1.2rem; color: #fff; font-size: .8rem; font-weight: 800; }

.contact-card { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 3.5rem); color: #fff; background: var(--navy-deep); box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card p, .contact-card li { color: #cbd5df; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); color: var(--navy); background: #fff; }
.lead-form label { display: grid; gap: .4rem; }
.lead-form label:nth-of-type(4), .lead-form label:nth-of-type(5), .lead-form .button, .lead-form .form-note { grid-column: 1 / -1; }
.lead-form span { font-size: .85rem; font-weight: 800; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: .85rem .9rem; color: var(--navy); background: #fbfcfd; border: 1px solid #b9c4ce; border-radius: 2px; font: inherit; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(184,58,50,.14); border-color: var(--red); }
.lead-form textarea { min-height: 130px; resize: vertical; }
.form-note { margin: 0; font-size: .78rem; }
.form-note a { text-decoration: underline; }
.contact-page-intro { padding: clamp(2rem, 4vw, 3.25rem) 0 .75rem; background: var(--cream); }
.contact-page-intro h1 { max-width: none; margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); white-space: nowrap; }
.contact-page-form { padding: .75rem 0 5rem; background: var(--cream); }

.link-card { display: grid; align-content: start; gap: .5rem; min-height: 140px; transition: background .2s ease; }
.link-card:hover { background: var(--cream); }
.link-card strong { color: var(--navy-deep); font-family: "Archivo", sans-serif; font-size: 1.1rem; }
.faq-wrap { max-width: 900px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 1.25rem 3rem 1.25rem 0; color: var(--navy-deep); font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .5rem; top: .95rem; font-size: 1.6rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 3rem 1.2rem 0; margin: 0; }

.site-footer { padding: 4.5rem 0 2rem; background: var(--navy-deep); }
.site-footer h2, .site-footer h3, .site-footer a { color: #fff; }
.site-footer p, .site-footer li { color: #aebcca; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid > div:first-child p { max-width: 430px; }
.footer-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-list a:hover { color: #ffaca6; }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); }

.cookie-banner { position: fixed; z-index: 70; right: 1rem; bottom: 1rem; width: min(440px, calc(100% - 2rem)); padding: 1.2rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: 0 18px 55px rgba(11,27,45,.22); }
.cookie-banner p { margin: .25rem 0 .9rem; font-size: .82rem; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(11,27,45,.68); }
.cookie-modal-card { width: min(100%, 540px); max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1.4rem, 4vw, 2.2rem); background: #fff; border-top: 5px solid var(--red); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.cookie-modal-card h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.cookie-option { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cookie-modal-card .cookie-actions { margin-top: 1.2rem; }

@media (max-width: 1040px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 111px; left: 1.25rem; right: 1.25rem; display: none; align-items: stretch; padding: 1rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
    .site-nav.is-open { display: grid; }
    .site-nav > ul { display: grid; gap: .2rem; }
    .site-nav > ul > li > a { display: block; padding: .65rem; }
    .has-submenu { padding-right: 0; }
    .has-submenu::after { top: 1.25rem; right: .7rem; }
    .submenu { position: static; width: auto; margin: 0 0 .5rem .65rem; padding: 0 0 0 .7rem; border: 0; border-left: 2px solid var(--line); box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .submenu a { padding: .48rem .65rem; font-size: .84rem; }
    .hero-grid, .split-layout, .local-story, .footer-grid { grid-template-columns: 1fr; }
    .hero-panel { max-width: 650px; }
    .card-grid, .link-grid, .area-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .local-story-chips { grid-column: auto; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 1.5rem), var(--container)); }
    .site-header::before { font-size: .58rem; letter-spacing: .08em; }
    .header-inner { min-height: 68px; }
    .brand img { width: 175px; }
    .site-nav { top: 103px; left: .75rem; right: .75rem; }
    .hero { padding: 3.5rem 0 2.5rem; }
    .hero::before { display: none; }
    h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
    .contact-page-intro h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); white-space: normal; }
    .card-grid, .link-grid, .area-grid, .contact-card, .lead-form { grid-template-columns: 1fr; }
    .hero-media { min-height: 340px; }
    .hero-media img { height: 340px; }
    .lead-form label:nth-of-type(4), .lead-form label:nth-of-type(5), .lead-form .button, .lead-form .form-note { grid-column: auto; }
    .feature-card { min-height: 0; }
    .cookie-actions .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
