html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

:root {
    --container: 1140px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0px 0px 60px 0px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #111;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .55rem .9rem;
    border: 1px solid #111;
    border-radius: 999px;
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    .btn.pill {
        border-radius: 999px;
    }

    .btn.ghost {
        background: transparent;
        opacity: .85;
    }

        .btn.ghost:hover {
            opacity: 1;
        }

    .btn.lg {
        padding: .7rem 1.1rem;
    }

/* Header */
.site-header {
    border-bottom: 1px solid #eee;
    background: #0b3056;
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    padding: 20px 0px;
}

    /* Prevent line breaks inside header buttons */
    .site-header .header-btn {
        white-space: nowrap;
        min-width: max-content; /* grow to fit "Sign out" in tight layouts */
        display: inline-flex;
        align-items: center;
    }

    /* Make sure the logout form itself doesn't introduce breaks/margins */
    .site-header .inline {
        display: inline-block;
        margin: 0;
    }

.header-btn {
    background: #fff;
    color: #0b3056;
    border-color: #0b3056;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

    .header-btn:hover,
    .header-btn:focus {
        background: #3f70a1;
        color: #fff;
        border-color: #0b3056;
    }

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}

.header-left {
    justify-self: start;
}

.header-nav {
    display: flex;
    gap: 1rem;
    justify-self: center;
}

.header-right {
    display: flex;
    gap: .75rem;
    justify-self: end;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.brand-logo {
    height: 60px;
    width: auto;
}

.brand-text {
    white-space: nowrap;
}

.link {
    opacity: .8;
}

    .link:hover {
        opacity: 1;
    }

.inline {
    display: inline;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

    /* Kill the old pseudo-element overlay (if present) */
    .site-footer .footer-cta::before {
        content: none !important;
    }

    /* Image + dark overlay combined as the background */
    .site-footer .footer-cta.bg-meeting {
        background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("../images/cta business meeting.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Keep the CTA height + centered content */
    .site-footer .footer-cta {
        height: 400px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center; /* centers the container horizontally */
        color: #fff; /* white text on dark overlay */
    }

        .site-footer .footer-cta .cta-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center; /* vertical centering inside CTA */
            text-align: center;
            gap: .75rem;
        }

        /* Dark overlay */
        .site-footer .footer-cta::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,.45); /* adjust darkness as needed */
            pointer-events: none;
        }

        /* Keep content above the overlay */
        .site-footer .footer-cta > .container {
            position: relative;
            z-index: 1;
        }

        /* Buttons: white by default, invert on hover for contrast */
        .site-footer .footer-cta .btn.lg {
            background: #fff;
            color: #0b3056;
            border-color: #fff;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

            .site-footer .footer-cta .btn.lg:hover,
            .site-footer .footer-cta .btn.lg:focus {
                background: transparent;
                color: #fff;
                border-color: #fff;
            }

        /* Optional: slightly dim subtext */
        .site-footer .footer-cta .muted {
            opacity: .9;
        }

.footer-stats {
    padding: 2rem 0;
    background: #0b3056;
    color: #fff;
}

.footer-cols {
    padding: 2rem 0 2.5rem;
    color: #fff;
    background: #0b3056;
}

.cols-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    opacity: .7;
}

.muted {
    opacity: .75;
}

.small {
    font-size: .9rem;
}

.mt-2 {
    margin-top: .5rem;
}

.sitemap, .social {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
}

    .sitemap li, .social li {
        margin: .35rem 0;
    }

/* ===== Portal layout ===== */
.portal-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    padding: 1rem 0 2rem;
}

.portal-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
}

.nav-group {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.nav-title {
    font-weight: 700;
    padding: .75rem 1rem;
    background: #f7f7f9;
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: block;
    padding: .6rem 1rem;
    border-bottom: 1px solid #f3f3f3;
    color: #0b3056;
}

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: #eef5ff;
        text-decoration: none;
    }

    .nav-link.active {
        background: #0b3056;
        color: #fff;
    }

.portal-main {
    min-height: 60vh;
}

.portal-section .card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    overflow: hidden;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
}

    /* Make the city/state/zip row span the full width of the 2-col grid */
    .grid-2 > .grid-3 {
        grid-column: 1 / -1;
    }

    /* Let grid items shrink instead of overflowing */
    .grid-2 > *, .grid-3 > * {
        min-width: 0;
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.d-block {
    display: block;
}

/* Ensure inputs never exceed their container */
.form-control {
    width: 100%;
    max-width: 100%;
}

/* === Index hero with image + dark overlay === */
.hero {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

    /* Make supporting text readable on dark bg */
    .hero .muted {
        color: rgba(255,255,255,.92);
    }

.hero-bg {
    /* Overlay first, then the image */
    background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("/images/Header%20Image.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* make text white on hero */
}

/* Layout for the hero content */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* CTA buttons themed for hero */
.hero-ctas {
    margin-top: 1rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-primary {
    background: #fff;
    color: #0b3056;
    border-color: #fff;
}

    .hero-primary:hover,
    .hero-primary:focus {
        background: transparent;
        color: #fff;
        border-color: #fff;
    }

.hero-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

    .hero-secondary:hover,
    .hero-secondary:focus {
        background: #fff;
        color: #0b3056;
        border-color: #fff;
    }

.hero-ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
    opacity: .9;
}

    .hero-ghost:hover,
    .hero-ghost:focus {
        opacity: 1;
    }

/* Responsive */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .stats-grid, .cols-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-grid {
        grid-template-columns: 1fr auto 1fr;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header-nav {
        display: none;
    }
    /* keep it simple; add mobile menu later */
    .stats-grid, .cols-grid {
        grid-template-columns: 1fr;
    }
}