/* ===== Custom Properties ===== */
:root {
    --accent:       #1d4e89;
    --accent-dark:  #163a6e;
    --accent-light: #e8f0fb;
    --charcoal:     #1a1a1a;
    --muted:        #6c757d;
    --hero-bg:      #0f2540;
    --section-alt:  #f5f7fa;
}

/* ===== Base ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    color: var(--charcoal);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding-bottom: 64px; /* room for mobile CTA bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Scroll offset so sticky header doesn't hide anchored headings */
[id] {
    scroll-margin-top: 72px;
}

/* ===== Accent Buttons ===== */
.btn-accent {
    background-color: var(--accent);
    border-color:     var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color:     var(--accent-dark);
    color: #fff;
}

.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent);
    border-color:     var(--accent);
    color: #fff;
}

/* ===== Focus Ring ===== */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 137, 0.25);
}

/* ===== Sticky Header ===== */
.site-header {
    z-index: 1030;
    border-bottom: 1px solid #e5e5e5;
}

.site-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent) !important;
    text-decoration: none;
    line-height: 1.2;
    white-space: normal;
    max-width: 220px;
}

.header-phone {
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* ===== Hero ===== */
.hero-section {
    background: var(--hero-bg);
    color: #fff;
    padding: 4.5rem 0;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7fb3d3;
    margin-bottom: 0.75rem;
}

.hero-h1 {
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.05rem;
    color: #b8cfe0;
    max-width: 580px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Hero button overrides — white on dark bg */
.hero-section .btn-accent {
    background-color: #fff;
    border-color:     #fff;
    color: var(--accent);
    font-weight: 700;
}

.hero-section .btn-accent:hover,
.hero-section .btn-accent:focus {
    background-color: var(--accent-light);
    border-color:     var(--accent-light);
    color: var(--accent-dark);
}

.hero-section .btn-outline-accent {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
}

.hero-section .btn-outline-accent:hover,
.hero-section .btn-outline-accent:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

/* ===== Section Base ===== */
section {
    padding: 3.5rem 0;
}

section.alt-bg {
    background-color: var(--section-alt);
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.section-intro {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* ===== Feature Cards (Why Local) ===== */
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--charcoal);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid #dde2e8;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    height: 100%;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ===== Areas List ===== */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    max-width: 700px;
}

.areas-list li {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
}

/* ===== FAQ Accordion ===== */
.faq-accordion {
    max-width: 760px;
    margin: 0 auto;
}

.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.accordion-button:not(.collapsed) {
    color: var(--accent);
    background-color: var(--accent-light);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 137, 0.2);
}

/* ===== Contact Section ===== */
.contact-phone-large {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.contact-phone-large:hover {
    color: var(--accent-dark);
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a1a;
    color: #b8b8b8;
}

.footer-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-phone {
    color: #87aec8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-phone:hover {
    color: #fff;
}

.footer-copy {
    color: #888;
    font-size: 0.85rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.5;
}

/* ===== Mobile Sticky CTA Bar ===== */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1040;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
    height: 64px;
}

.btn-mobile-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.btn-mobile-phone {
    background-color: var(--accent);
    color: #fff;
}

.btn-mobile-phone:hover,
.btn-mobile-phone:active {
    background-color: var(--accent-dark);
    color: #fff;
}

.btn-mobile-estimate {
    background-color: #fff;
    color: var(--accent);
    border-left: 2px solid #d0dced;
}

.btn-mobile-estimate:hover,
.btn-mobile-estimate:active {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

/* Single-button state — no phone configured yet */
.mobile-cta-single .btn-mobile-estimate {
    border-left: none;
    background-color: var(--accent);
    color: #fff;
}

.mobile-cta-single .btn-mobile-estimate:hover,
.mobile-cta-single .btn-mobile-estimate:active {
    background-color: var(--accent-dark);
    color: #fff;
}
