/* Dark institutional colors */

:root {
    --navy:#081638 !important;
    --navy-dark:#050f29 !important;
    --navy-light:#10254b !important;
    --blue:#081638 !important;
    --primary:#081638;
}

body h1,
body h2,
body h3 {
    color:var(--navy);
}

body .inst-hero h1,
body .inst-wide-cta h2,
body .inst-priority h3,
body .inst-building-header h3,
body .inst-contact-emergency h3,
body .specialties-banner h1 {
    color:white;
}

body .btn-navy {
    background:#081638;
    color:white;
}

/* More compact section rhythm */

.section {
    padding-block:clamp(42px,5vw,80px);
}

.section-heading {
    margin-bottom:28px;
}

/* Full mosaic, no empty grid columns */

.uce-balanced-mosaic {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    grid-template-rows:repeat(3,minmax(210px,auto)) !important;
    grid-auto-flow:row dense;
    gap:16px !important;
}

.uce-balanced-mosaic > * {
    min-width:0;
    min-height:210px;
    grid-area:auto !important;
}

.uce-balanced-mosaic > :nth-child(1) {
    grid-column:1/3 !important;
    grid-row:1/3 !important;
}

.uce-balanced-mosaic > :nth-child(2) {
    grid-column:3/4 !important;
    grid-row:1/2 !important;
}

.uce-balanced-mosaic > :nth-child(3) {
    grid-column:4/5 !important;
    grid-row:1/2 !important;
}

.uce-balanced-mosaic > :nth-child(4) {
    grid-column:3/5 !important;
    grid-row:2/3 !important;
}

.uce-balanced-mosaic > :nth-child(5) {
    grid-column:1/3 !important;
    grid-row:3/4 !important;
}

.uce-balanced-mosaic > :nth-child(6) {
    grid-column:3/5 !important;
    grid-row:3/4 !important;
}

/* Footer */

footer,
.site-footer,
.uce-footer {
    background:#081638 !important;
    color:#d5e0ea;
}

footer h2,
footer h3,
footer h4,
footer strong {
    color:white;
}

footer a {
    color:#d5e0ea;
}

footer a:hover {
    color:#b3d9b4;
}

footer :is(
    .footer-logo,
    .footer-brand,
    .footer-brand-logo,
    .brand-logo
) {
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
}

footer img.uce-white-logo {
    filter:none !important;
    background:transparent !important;
    object-fit:contain;
    box-shadow:none !important;
    border-radius:0 !important;
}

/* Floating WhatsApp */

.uce-whatsapp {
    position:fixed;
    z-index:900;
    right:24px;
    bottom:25px;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:60px;
    background:#16834d;
    color:white !important;
    padding:10px 20px 10px 12px;
    border-radius:50px;
    box-shadow:0 12px 35px #12613d35;
    transition:transform .3s ease,background .3s ease;
}

.uce-whatsapp:hover {
    background:#10683c;
    transform:translateY(-4px);
}

.uce-wa-icon {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    background:#ffffff1a;
    border-radius:50%;
}

.uce-wa-copy {
    display:grid;
    gap:2px;
}

.uce-wa-copy strong {
    font-size:.88rem;
    color:white;
}

.uce-wa-copy small {
    font-size:.68rem;
    color:#dff5e8;
}

.uce-whatsapp:focus-visible,
button:focus-visible,
a:focus-visible {
    outline:3px solid #7eb280;
    outline-offset:4px;
}

/* Responsive corrections */

@media(max-width:900px) {
    .uce-balanced-mosaic {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        grid-template-rows:auto !important;
    }

    .uce-balanced-mosaic > :nth-child(n) {
        grid-area:auto !important;
        min-height:240px;
    }

    .uce-balanced-mosaic > :first-child {
        grid-column:1/-1 !important;
        min-height:330px;
    }

    .uce-balanced-mosaic > :last-child {
        grid-column:1/-1 !important;
    }

    .uce-whatsapp {
        width:58px;
        height:58px;
        padding:0;
        justify-content:center;
        bottom:90px;
        right:18px;
    }

    .uce-wa-copy {
        display:none;
    }
}

@media(max-width:520px) {
    .uce-balanced-mosaic {
        grid-template-columns:1fr !important;
    }

    .uce-balanced-mosaic > :nth-child(n) {
        grid-column:1/-1 !important;
        min-height:230px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .uce-whatsapp,
    .inst-service-card,
    .inst-news-card,
    .inst-department-card {
        transition:none !important;
    }
}