﻿.mobile-nav-actions {
    display: none;
}

.mobile-sticky-cta {
    display: none;
}


@media (max-width: 1100px) {
    .mobile-nav-actions {
        display: grid;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

        .mobile-nav-actions a:last-child {
            display: inline-flex;
            justify-content: center;
            padding: 12px 16px;
            border-radius: var(--radius-pill);
            background: var(--gold);
            color: var(--charcoal);
            font-weight: 800;
        }
    #site-nav,
    .header-actions {
        display: none;
    }

        #site-nav.is-open {
            display: grid;
            position: absolute;
            top: 79px;
            left: 20px;
            right: 20px;
            padding: var(--space-md);
            border: 1px solid rgba(4, 58, 13, 0.08);
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 24px 60px rgba(4, 58, 13, 0.18);
            backdrop-filter: blur(18px);
            animation: mobileMenuIn 0.2s ease;
            gap: 6px;
            z-index: 100;
            max-height: calc(100vh - 110px);
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

            #site-nav.is-open > a,
            #site-nav.is-open .nav-dropdown > a {
                padding: 10px 12px;
                border-radius: 12px;
                font-weight: 750;
                color: var(--brand-green);
            }

                #site-nav.is-open > a:hover,
                #site-nav.is-open .nav-dropdown > a:hover {
                    background: rgba(251, 212, 23, 0.12);
                    color: var(--brand-orange);
                }

            #site-nav.is-open .nav-dropdown {
                display: block;
                width: 100%;
            }

            #site-nav.is-open .nav-dropdown-menu {
                display: block;
                position: static;
                box-shadow: none;
                background: transparent;
                padding: 6px 0 0 18px;
                min-width: unset;
                max-width: unset;
                margin-top: 6px;
                border: 0;
                border-left: 2px solid rgba(251, 212, 23, 0.45);
                border-radius: 0;
                backdrop-filter: none;
            }

                #site-nav.is-open .nav-dropdown-menu a {
                    padding: 8px 0;
                    font-size: 0.95rem;
                }

    .mobile-menu-button {
        display: inline-flex;
    }
    .hero-card {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
    .image-panel {
        min-height: 320px;
    }
    .region-hero {
        padding: 64px 0;
    }

        .region-hero h1 {
            max-width: 12ch;
        }
}

@media (max-width: 992px) {

    .cornerstone-image-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cornerstone-image-content {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .top-bar .container {
        display: none;
    }

    .hero {
        padding: 52px 0 42px;
    }

        .hero p {
            font-size: 1.05rem;
        }

    .hero-actions {
        gap: 10px;
    }

        .hero-actions .btn {
            width: 100%;
        }

    section {
        padding: 48px 0;
    }

    .section-heading {
        gap: 16px;
        margin-bottom: 24px;
    }

        .section-heading h2 {
            line-height: 1.05;
        }

        .section-heading p {
            font-size: 1rem;
        }

    .card {
        padding: 22px;
    }

        .card h3 {
            font-size: 1.2rem;
        }

        .card p {
            font-size: 0.98rem;
        }


    .card-image {
        margin: -28px -28px 20px;
    }

    .cta-band {
        gap: 18px;
    }

    .trust-strip .container,
    .cards,
    .reviews,
    .process,
    .process-step {
        min-height: unset;
    }

    .quote {
        font-size: 1.2rem;
        padding-left: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .align-right {
        text-align: left;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .feature-item {
        grid-template-columns: 1fr;
    }

        .feature-item .tick {
            margin-bottom: 4px;
        }

    .image-panel {
        min-height: 240px;
        margin-top: 24px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 200;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 10px;
    }

        .mobile-sticky-cta a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 48px;
            border-radius: var(--radius-pill);
            font-weight: 800;
            box-shadow: var(--shadow-medium);
            border: 1px solid rgba(4, 58, 13, 0.08);
        }

            .mobile-sticky-cta a:first-child {
                background: var(--brand-green);
                color: var(--brand-white);
            }

            .mobile-sticky-cta a:last-child {
                background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange));
                color: var(--brand-green);
            }

    body {
        padding-bottom: 84px;
    }

    body.mobile-menu-open .mobile-sticky-cta {
        display: none;
    }
    button,
    .btn,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
    .quote-form {
        gap: 10px;
    }

        .quote-form input,
        .quote-form select,
        .quote-form textarea {
            border-radius: 12px;
            padding: 12px;
        }

    textarea {
        min-height: 120px;
    }
    .cards {
        overflow-x: hidden;
    }
    body,
    html {
        overflow-x: hidden;
    }

    .area-links {
        gap: 10px;
    }

        .area-links a {
            width: 100%;
            justify-content: center;
        }
    .region-hero {
        padding: 52px 0;
    }

        .region-hero h1 {
            font-size: clamp(2.5rem, 12vw, 4rem);
            line-height: 0.95;
            margin-bottom: 22px;
        }

        .region-hero p {
            font-size: 1.04rem;
            line-height: 1.7;
        }

        .region-hero::after {
            width: 320px;
            right: -90px;
            bottom: -80px;
            opacity: 0.28;
        }

        .region-hero::before {
            width: 220px;
            height: 220px;
            top: -90px;
            left: -90px;
        }
    .faq-nav {
        gap: 8px;
        margin-bottom: 28px;
    }

        .faq-nav a {
            width: 100%;
            justify-content: center;
        }

    #faqs details {
        padding: 18px 20px;
    }

    #faqs summary {
        font-size: 1rem;
        line-height: 1.5;
    }

}

@media (min-width: 701px) and (max-width: 1100px) {
    .hero {
        padding: 70px 0 56px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions .btn {
        width: auto;
    }
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 700px) {
    .cards,
    .reviews,
    .process,
    .footer-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }
    .container.cards {
        width: min(100% - 28px, var(--max-width));
        margin-inline: auto;
        grid-template-columns: minmax(0, 1fr) !important;
        overflow: hidden;
    }
    .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
        .card * {
            max-width: 100%;
        }

        .card a {
            overflow-wrap: anywhere;
        }

    .container {
        overflow-x: hidden;
    }

    .mobile-sticky-cta {
        max-width: calc(100vw - 28px);
    }
}

@media (min-width: 1200px) {

    .guide-toc {
        padding: 42px 0 24px;
        position: static;
    }

    .guide-toc-inner {
        max-width: 900px;
        padding: 28px 32px;
        border-radius: 22px;
        background: #f7faf5;
        border: 1px solid rgba(4, 58, 13, 0.08);
        box-shadow: 0 10px 28px rgba(4, 58, 13, 0.04);
    }
}

@media (max-width: 768px) {
    .guide-toc-inner {
        padding: 22px;
    }

    .guide-toc {
        padding: 24px 0 8px;
    }

        .guide-toc .toc-subsection {
            padding-left: 14px;
        }
}


@media (max-width: 980px) {

    .nav-dropdown-group-heading {
        margin-top: 22px;
        padding-top: 22px;
        font-size: 0.74rem;
    }

    .nav-dropdown-menu a {
        padding: 12px 0;
    }

    .nav-dropdown-featured-link {
        margin-bottom: 18px;
        padding-bottom: 18px !important;
    }

    .guides-dropdown .nav-dropdown-menu {
        min-width: unset;
    }
}






@media (max-width: 768px) {
    .sticky-service-cta {
        width: calc(100vw - 1rem);
        padding: .75rem 1rem;
        gap: .75rem;
    }

    .sticky-service-cta__text span {
        display: none;
    }

    .sticky-service-cta__text strong {
        font-size: .95rem;
    }
}