/* Critical above-the-fold (hero + splash) — prevents mobile first-load flash */
html, body { margin: 0; height: 100%; }
@media (max-width: 659px) {
    html, body {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        overflow-x: hidden;
    }
}
body {
    padding-top: 4rem;
    background-color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0A1628;
    -webkit-font-smoothing: antialiased;
}
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #0A1628;
}
.page-section { display: none; }
.page-section.active { display: block; }
/* Footer lives outside page sections — hide until SPA boot completes */
#main-footer-kl34 { display: none; }
body.spa-ready #main-footer-kl34 { display: block; }
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #0A1628;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#splash-screen .logo-text {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C9A84C;
    letter-spacing: 0.15em;
}
#splash-screen .tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    letter-spacing: 0.08em;
    text-align: center;
    width: 100%;
}
#page-home .hero-diagonal {
    background-color: #000325;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
#page-home .text-gold,
#main-nav .text-gold { color: #C9A84C; }
@media (min-width: 1024px),
       (min-width: 660px),
       (orientation: portrait) and (min-width: 480px) and (min-height: 650px) and (max-width: 1023px) {
    #main-nav .main-nav-mobile-shell { display: none !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; }
    #main-nav .main-nav-desktop-inner { display: flex !important; align-items: center; width: 100%; }
}
@media (min-width: 660px) and (max-width: 1024px),
       (orientation: portrait) and (min-width: 480px) and (min-height: 650px) and (max-width: 1024px),
       (orientation: landscape) and (min-width: 660px) and (max-width: 1100px) {
    body:not(.tophat-dashboard-layout-active) { padding-top: 5.65rem; }
}
html.tophat-dashboard-layout-active,
body.tophat-dashboard-layout-active {
    background-color: #0A1628;
    height: auto !important;
    overflow-y: auto !important;
}
body.tophat-dashboard-layout-active {
    padding-top: 0 !important;
}
body.tophat-dashboard-layout-active > main {
    background-color: #0A1628;
}
.bg-navy { background-color: #0A1628; }
.text-white { color: #fff; }
#public-inquiry-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
