.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

html.hero-preload {
    background: #07111f;
}

html.hero-preload:not(.hero-ready) body {
    background: #07111f;
    overflow: hidden;
}

html.hero-preload:not(.hero-ready) body > * {
    opacity: 0;
    visibility: hidden;
}

html.hero-preload:not(.hero-ready) body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    background:
            radial-gradient(circle at 50% 42%, rgba(13, 110, 253, .18), transparent 28rem),
            linear-gradient(135deg, #06101f, #111827);
}

html.hero-preload:not(.hero-ready) body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483641;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 3px solid rgba(255, 255, 255, .32);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: heroPreloadSpin .8s linear infinite;
}

html.hero-preload.hero-ready body > * {
    animation: heroPreloadReveal .22s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    html.hero-preload:not(.hero-ready) body::after,
    html.hero-preload.hero-ready body > * {
        animation: none;
    }
}

@keyframes heroPreloadSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes heroPreloadReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    line-height: 1;
}

.site-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.site-logo-nav {
    height: 44px;
    max-width: min(52vw, 216px);
}

.site-logo-inline {
    display: inline-block;
    height: 1.25em;
    max-width: 7.5em;
    margin-left: .35rem;
    vertical-align: -0.28em;
}

.logo-on-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.logo-on-dark .site-logo {
    filter: brightness(0) invert(1);
    opacity: .94;
}

.site-logo-footer {
    height: 40px;
    max-width: 190px;
}

@media (max-width: 575px) {
    .site-logo-nav {
        height: 36px;
        max-width: 48vw;
    }

    .site-logo-inline {
        height: 1.05em;
        max-width: 6.5em;
        margin-left: .25rem;
        vertical-align: -0.22em;
    }
}
.dropdown-menu h6 {
    letter-spacing: 0.04em;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("/img/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* dark overlay for text contrast */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.25)
    );
    z-index: 1;
}

/* content stays above image */
.hero .container {
    z-index: 2;
}
@media (max-width: 991px) {
    .hero {
        min-height: 85vh;
    }
}

.hero-overlay {
    backdrop-filter: blur(1px);
}

.hero h1,
.hero p,
.hero .btn {
    animation: fadeUp 0.8s ease-out both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop hover behavior */
/* rotate the caret when mega menu is open */
@media (min-width: 992px) {
    .navbar .nav-link:focus,
    .navbar .nav-link:focus-visible,
    .navbar .dropdown-toggle:focus,
    .navbar .dropdown-toggle:active {
        outline: none;
        box-shadow: none;
    }
    .navbar .dropdown-toggle::after {
        transition: transform .6s ease;
    }
    .navbar .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }
}

/* Locations mega menu (full-width like Solutions, different layout) */
.navbar .dropdown-locations .dropdown-menu.locations-mega {
    padding: 0;              /* we control padding in inner container */
}

/* Make the tiles feel “big” */
.location-tile {
    padding: 16px 16px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.location-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.14);
}

.location-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.10); /* bootstrap primary tint */
    color: #0d6efd;
    flex: 0 0 auto;
}

.location-icon i {
    font-size: 1.15rem;
}

/* Optional: on very large screens, keep it feeling “mega” */
@media (min-width: 992px) {
    .navbar .dropdown-locations .dropdown-menu.locations-mega .container {
        max-width: 1140px; /* match your site container sizing */
    }
}
