html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.font-heading {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.bg-brand-black { background: #0a0a0a; }
.bg-brand-dark { background: #1a1a1a; }
.text-white { color: #fff; }
.text-gray-200 { color: #e5e7eb; }
.text-brand-accent { color: #e60000; }

.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.w-full { width: 100%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.homepage-hero h1 {
    font-size: 2.25rem;
    line-height: 0.95;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
}

.homepage-hero p {
    color: #e5e7eb;
    font-weight: 300;
    line-height: 1.625;
}

.nav-logo-wrap {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    transition: margin-bottom 0.35s ease;
}

.site-logo {
    --logo-scale: 2.04;
    --logo-translate-y: 0.65rem;
    height: 3.85rem;
    width: auto;
    max-height: none;
    object-fit: contain;
    margin-bottom: 0;
    transform: translateX(0) translateY(var(--logo-translate-y)) rotate(0deg) scale(var(--logo-scale));
    transform-origin: center center;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.55));
    transition: transform 0.35s ease, height 0.35s ease, filter 0.35s ease;
}

#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #111827;
    background: rgba(10, 10, 10, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar > div.flex {
    overflow: visible;
}

@media (min-width: 768px) {
    .site-logo {
        --logo-scale: 1.96;
        --logo-translate-y: 0.88rem;
        height: 5.5rem;
        filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.6));
    }
}

@media (min-width: 1024px) {
    #navbar {
        padding-top: 1.45rem;
        padding-bottom: 1.45rem;
    }

    .nav-logo-wrap {
        align-self: center;
        margin-bottom: -1.55rem;
        min-width: 15rem;
    }
}

.homepage-hero {
    --hero-slide-cutoff: 8.75rem;
    position: relative;
    overflow: visible;
    background: #1a1a1a;
    min-height: 60vh;
}

.hero-container { position: relative; overflow: hidden; }

.hero-bg,
.hero-slideshow,
.hero-slides {
    position: absolute;
    inset: 0;
}

.homepage-hero #hero-slideshow,
.homepage-hero .hero-overlay {
    inset: 0 0 var(--hero-slide-cutoff) 0;
    width: auto;
    height: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(10, 10, 10, 0.72));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide.has-media::before {
    display: none;
}

.hero-slide-media {
    position: absolute;
    inset: -5%;
    overflow: hidden;
    pointer-events: none;
    transform: scale(1.07) translate3d(-1.6%, 1.15%, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-slide-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-media picture,
.hero-slide-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.homepage-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 1.5rem 4rem;
}

.homepage-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
}

.home-hero-primary,
.home-hero-secondary,
.home-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0 1.35rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.home-hero-primary {
    background: linear-gradient(135deg, #e60000, #ff4034);
    color: #fff;
}

.home-hero-secondary,
.home-pill-link {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu:not(.hidden) {
    display: flex;
    z-index: 60;
    max-height: min(80vh, calc(100dvh - 5.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

body.mobile-menu-open {
    overflow: hidden;
}

.home-spotlight-panel {
    display: none;
}

.home-mobile-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .homepage-hero { min-height: 500px; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .homepage-hero-grid {
        grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
    }

    .home-spotlight-panel {
        display: block;
    }

    .home-mobile-quick-links {
        display: none !important;
    }

    .lg\:block { display: block !important; }
    .lg\:hidden { display: none !important; }
    .lg\:text-left { text-align: left; }
}

@media (min-width: 1280px) {
    .xl\:block { display: block !important; }
    .xl\:flex { display: flex !important; }
    .xl\:hidden { display: none !important; }
}
