:root {
    --brand-navy: #0D2E6E;
    --brand-green: #0F6B3D;
    --brand-green-soft: rgba(15, 107, 61, 0.1);
    --brand-light: #f5f9ff;
    --site-container: 1280px;
}

.site-shell,
.max-w-7xl {
    width: min(var(--site-container), calc(100% - 2rem));
    max-width: var(--site-container);
    margin-left: auto;
    margin-right: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: #4A5568;
}

header {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(13, 46, 110, 0.08);
}

header .desktop-nav a,
header .desktop-nav a:visited {
    color: var(--brand-navy);
    transition: color 0.2s ease;
}

header .desktop-nav a:hover,
header .desktop-nav a:focus {
    color: var(--brand-green);
}

.page-banner,
.site-hero,
.site-section {
    background-color: var(--brand-navy);
    color: #ffffff;
}

.page-banner h1,
.page-banner p,
.site-hero h1,
.site-section h2,
.site-section h3,
.site-section h4 {
    color: #ffffff;
}

.page-banner a,
.site-hero a,
.site-section a {
    color: #ffffff;
}

.page-banner,
.site-hero,
.site-section,
.site-cta {
    border-radius: 0;
}

.site-section .rounded-brand,
.site-section .rounded-xl,
.site-section .rounded-2xl,
.site-section .rounded-full {
    border-radius: 1rem;
}

.site-section .section-subtitle,
.section-subtitle,
.page-banner .section-subtitle {
    color: var(--brand-green);
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

* {
    box-sizing: border-box;
}

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

.mobile-menu-panel {
    display: none;
}

.why-stats-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 2.5rem;
    padding-top: 1rem;
    position: relative;
    white-space: nowrap;
}

.why-stats-track {
    display: flex;
    width: max-content;
    animation: whyStatsSlide 22s linear infinite;
    will-change: transform;
}

.why-stats-group {
    display: flex;
    flex-shrink: 0;
    gap: 1rem;
    padding-right: 1rem;
}

@keyframes whyStatsSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.why-stat-card {
    min-width: 15rem;
    width: 15rem;
    background: #f8fbff;
    border: 1px solid #ebf1f7;
    border-radius: 1rem;
    padding: 0.9rem 0.8rem 0.85rem;
    box-shadow: 0 10px 18px rgba(13, 46, 110, 0.04);
    text-align: left;
    flex-shrink: 0;
}

.why-stat-card .text-[24px] {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.4rem !important;
}

.why-stat-card .text-sm {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 42px;
        height: 42px;
        border: 1px solid #dfeaf7;
        border-radius: 9999px;
        background: #f5f9ff;
        color: #0D2E6E;
        box-shadow: 0 8px 18px rgba(13, 46, 110, 0.08);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background-color: currentColor;
        border-radius: 9999px;
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu-panel {
        display: none;
        width: 100%;
        padding: 0 1rem 1rem;
        background: #ffffff;
        border-top: 1px solid #edf2f7;
        box-shadow: 0 12px 24px rgba(13, 46, 110, 0.06);
    }

    .mobile-menu-panel.is-open {
        display: block;
    }

    .mobile-menu-panel a {
        display: block;
        padding: 0.8rem 0;
        font-size: 0.98rem;
        font-weight: 600;
        color: #0D2E6E;
        border-bottom: 1px solid #edf2f7;
    }

    .mobile-menu-panel a:last-child {
        border-bottom: 0;
    }

    .mobile-menu-panel .mobile-highlight {
        display: inline-block;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 9999px;
        background: rgba(15, 107, 61, 0.1);
        color: #0F6B3D;
    }

    header .max-w-7xl {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }

    header img {
        height: 2.8rem !important;
    }

    .marquee-container {
        font-size: 0.72rem;
    }

    .contact-top-bar {
        text-align: center;
    }

    .contact-top-bar > div {
        gap: 0.5rem;
    }

    .page-banner,
    .hero-section,
    .site-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .site-hero {
        min-height: auto !important;
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .site-hero .max-w-2xl {
        max-width: 100% !important;
    }

    h1,
    .text-h1,
    .page-banner h1 {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
        line-height: 1.08 !important;
    }

    h2,
    .text-h2 {
        font-size: clamp(2rem, 6vw, 2.7rem) !important;
        line-height: 1.15 !important;
    }

    p,
    .text-body {
        font-size: 1rem !important;
    }

    .site-hero .flex.items-center.space-x-4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-hero .flex.items-center.space-x-4 > a:first-child {
        width: 3rem;
        height: 3rem;
    }

    .why-choose-us {
        padding-top: 4rem !important;
        padding-bottom: 3rem !important;
    }

    .why-choose-us .grid {
        gap: 1.25rem !important;
    }

    .why-choose-us h2 {
        text-align: left !important;
        margin-bottom: 0.75rem !important;
    }

    .why-choose-us p {
        text-align: left !important;
        margin-bottom: 1.25rem !important;
    }

    .why-choose-us a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 10.5rem;
    }

    .why-stats-carousel {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 1.75rem !important;
        padding-top: 0.8rem !important;
    }

    .why-stats-carousel::-webkit-scrollbar {
        display: none;
    }

    .why-stats-track {
        display: flex;
        gap: 0.75rem;
        width: max-content;
        padding-bottom: 0.2rem;
        animation: whyStatsSlide 16s linear infinite;
    }

    @keyframes whyStatsSlide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-22%);
        }
    }

    .why-stat-card {
        min-width: 12.8rem;
        width: 12.8rem;
        background: #f8fbff;
        border: 1px solid #ebf1f7;
        border-radius: 1rem;
        padding: 0.9rem 0.8rem 0.85rem;
        box-shadow: 0 10px 18px rgba(13, 46, 110, 0.04);
        text-align: left;
    }

    .why-stat-card .text-[24px] {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.35rem !important;
    }

    .why-stat-card .text-sm {
        font-size: 0.72rem !important;
        line-height: 1.45 !important;
    }

    .grid,
    .grid-cols-1,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        gap: 1.25rem !important;
    }

    .contact-form .grid,
    footer .grid {
        grid-template-columns: 1fr !important;
    }

    .rounded-brand,
    .rounded-xl,
    .rounded-2xl {
        border-radius: 1rem !important;
    }

    .cta-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}
