/* ================================
   Base
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3 {
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ================================
   Header
   ================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.logo {
    text-decoration: none;
}

    .logo h2 {
        margin: 0;
        color: #004080;
        font-size: 1.5rem;
        font-weight: 700;
    }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .main-nav a:hover {
        color: #004080;
    }

    .main-nav a.cta-button {
        color: #fff;
    }

/* ================================
   Buttons
   ================================ */

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background-color: #004080;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .cta-button:hover {
        background-color: #002e5c;
        color: #fff;
        transform: translateY(-1px);
    }

    .cta-button:focus-visible,
    .main-nav a:focus-visible,
    .logo:focus-visible,
    .mobile-menu-toggle:focus-visible {
        outline: 3px solid #7db9e8;
        outline-offset: 3px;
    }

/* ================================
   Mobile Menu Button
   ================================ */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.2s ease;
}

/* ================================
    Hero
    ================================ */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* ================================
    Service Detail Pages
    ================================ */

.services-detail {
    padding: 4rem 0;
    background-color: #fff;
}

.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

 .service-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .service-section h2 {
        margin-bottom: 1.5rem;
        color: #004080;
    }

    .service-section h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        color: #004080;
    }   

.service-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

    .service-list li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-text {
    padding-right: 1rem;
}

    .hero-text h1 {
        margin-bottom: 1.5rem;
        color: #004080;
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        line-height: 1.2;
        font-weight: 700;
    }

    .hero-text p {
        max-width: 700px;
        margin: 0 0 2rem;
        color: #555;
        font-size: clamp(1.05rem, 2vw, 1.25rem);
        line-height: 1.6;
    }

        .hero-text p:first-of-type {
            font-weight: 500;
            font-size: clamp(1.1rem, 2.2vw, 1.3rem);
        }

.hero-image-placeholder {
    background-color: #dcebf9;
    border: 1px dashed #a3ccea;
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #004080;
    font-weight: 500;
    padding: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.hero-image {
    width: 100%;
    /* Remove fixed height to allow natural image proportions */
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Changed from cover to contain to prevent cropping */
    border-radius: 8px;
    display: block;
}

/* ================================
    Hero - Mobile Responsive
    ================================ */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        /* Ensure proper vertical spacing in mobile */
        gap: 1.5rem;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }
}

/* ================================
    Benefits
    ================================ */

/* ================================
   Benefits
   ================================ */

.benefits {
    padding: 5rem 0;
    background-color: #fff;
}

    .benefits h2,
    .services h2 {
        margin-bottom: 3rem;
        color: #004080;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        text-align: center;
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f8fafd;
    transition: all 0.2s ease;
}

    .benefit-item:hover {
        background-color: #fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .benefit-item h3 {
        margin-bottom: 1rem;
        color: #004080;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .benefit-item p {
        color: #555;
        line-height: 1.6;
    }

/* ================================
   Services
   ================================ */

.services {
    padding: 5rem 0;
    background-color: #f7f9fb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 2.5rem 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .service-card:focus-visible {
        outline: 3px solid #7db9e8;
        outline-offset: 3px;
    }

    .service-card h3 {
        margin-bottom: 1rem;
        color: #004080;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .service-card p {
        color: #555;
        line-height: 1.6;
    }

/* ================================
   Quote Wizard
   ================================ */

.quote-page {
    padding: 4.5rem 0 5rem;
    background-color: #f7f9fb;
    min-height: calc(100vh - 76px);
}

.quote-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.quote-eyebrow {
    margin-bottom: 0.75rem;
    color: #004080;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.quote-header h1 {
    margin-bottom: 1rem;
    color: #004080;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.quote-intro {
    max-width: 620px;
    margin: 0 auto;
    color: #555;
    font-size: 1.05rem;
}

.quote-wizard {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2.25rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.quote-progress {
    margin-bottom: 2.5rem;
}

.quote-progress__text {
    display: block;
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
}

.quote-progress__bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background-color: #e8eef4;
    border-radius: 999px;
}

    .quote-progress__bar span {
        display: block;
        height: 100%;
        background-color: #004080;
        border-radius: inherit;
        transition: width 0.2s ease;
    }

.quote-step__header {
    margin-bottom: 2rem;
}

    .quote-step__header h2 {
        margin-bottom: 0.75rem;
        color: #333;
    }

    .quote-step__header p {
        margin: 0;
        color: #666;
    }

.service-options {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.service-option {
    position: relative;
}

    .service-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .service-option label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 72px;
        padding: 1.15rem 1.25rem;
        border: 2px solid #dce4eb;
        border-radius: 10px;
        background-color: #fff;
        color: #333;
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

        .service-option label:hover {
            border-color: #7db9e8;
            transform: translateY(-1px);
        }

    .service-option input:checked + label {
        border-color: #004080;
        background-color: #f2f7fc;
        box-shadow: 0 3px 10px rgba(0, 64, 128, 0.1);
    }

    .service-option input:focus-visible + label {
        outline: 3px solid #7db9e8;
        outline-offset: 3px;
    }

.service-option__title {
    font-size: 1.05rem;
    font-weight: 600;
}

.service-option__arrow {
    color: #004080;
    font-size: 1.25rem;
    font-weight: 600;
}

.quote-field {
    margin-bottom: 1.5rem;
}

    .quote-field label {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        color: #333;
        font-size: 0.98rem;
        font-weight: 600;
    }

.required-indicator,
.optional-indicator {
    font-size: 0.78rem;
    font-weight: 500;
}

.required-indicator {
    color: #666;
}

.optional-indicator {
    color: #777;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    background-color: #fff;
    color: #333;
    font: inherit;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-field input,
.quote-field select {
    min-height: 48px;
}

.quote-field textarea {
    min-height: 120px;
    resize: vertical;
}

    .quote-field input:focus,
    .quote-field select:focus,
    .quote-field textarea:focus {
        border-color: #004080;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.12);
    }

    .quote-field input::placeholder,
    .quote-field textarea::placeholder {
        color: #777;
    }

.field-error {
    display: block;
    margin-top: 0.45rem;
    color: #a32626;
    font-size: 0.9rem;
}

.quote-validation-summary {
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2b4b4;
    border-radius: 7px;
    background-color: #fff5f5;
    color: #8d1f1f;
}

    .quote-validation-summary:empty {
        display: none;
    }

.quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf1f4;
}

.quote-button {
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .quote-button:hover {
        transform: translateY(-1px);
    }

    .quote-button:focus-visible {
        outline: 3px solid #7db9e8;
        outline-offset: 3px;
    }

.quote-button--primary {
    background-color: #004080;
    color: #fff;
}

    .quote-button--primary:hover {
        background-color: #002e5c;
    }

.quote-button--secondary {
    border-color: #cbd5df;
    background-color: #fff;
    color: #333;
}

    .quote-button--secondary:hover {
        border-color: #004080;
        color: #004080;
    }

.quote-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .quote-page {
        padding: 3rem 0 4rem;
    }

    .quote-header {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .quote-wizard {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .quote-actions {
        flex-direction: column-reverse;
    }

    .quote-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quote-page {
        padding: 2.5rem 0 3rem;
    }

    .quote-wizard {
        padding: 1.25rem;
    }

    .service-option label {
        min-height: 64px;
        padding: 1rem;
    }
}
/* ================================
   Quote Success
   ================================ */

.quote-success {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.quote-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: #e8f4ec;
    color: #187a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.quote-success h1 {
    margin-bottom: 1rem;
    color: #004080;
}

.quote-success p:not(.quote-eyebrow) {
    max-width: 520px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 1.05rem;
}

@media (max-width: 480px) {
    .quote-success {
        padding: 2rem 1.25rem;
    }
}

/* ================================
   Final CTA
   ================================ */

.final-cta {
    padding: 5rem 0;
    background-color: #004080;
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.final-cta h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.final-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ================================
   Footer
   ================================ */

.site-footer {
    padding: 2rem 0;
    background-color: #222;
    color: #fff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

    .footer-content p {
        margin: 0;
    }

.footer-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

    .footer-nav a:hover {
        color: #7db9e8;
    }

/* ================================
   Tablet
   ================================ */

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   Mobile
   ================================ */

@media (max-width: 768px) {
    .header-content {
        min-height: 68px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

        .main-nav.is-open {
            display: block;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            padding: 1rem;
            background-color: #fff;
            border-top: 1px solid #eee;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
        }

            .main-nav.is-open ul {
                flex-direction: column;
                align-items: stretch;
                gap: 0.5rem;
            }

            .main-nav.is-open a {
                display: block;
                padding: 0.75rem 1rem;
                border-radius: 6px;
                transition: background-color 0.2s ease;
            }

                .main-nav.is-open a:hover,
                .main-nav.is-open a:focus {
                    background-color: #f0f8ff;
                }

            .main-nav.is-open .cta-button {
                width: 100%;
                margin-top: 0.5rem;
            }

    .hero {
        padding: 4rem 0;
    }

    .benefits,
    .services,
    .final-cta {
        padding: 4rem 0;
    }

    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================================
   Small Mobile
   ================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}
