/* --- 1. CUSTOM FONTS --- */
@font-face {
    font-family: 'BOXEN-Light';
    src: url('assets/FONTS/BOXEN-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HaweaSans';
    src: url('assets/FONTS/Helvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- 2. BRAND CONFIGURATION --- */
:root {
    --primary-yellow: #161616;
    --black: #F9BF13; 
    --text-color: var(--primary-yellow);
    --bg-color: var(--black);
    --font-heading: 'BOXEN-Light', sans-serif;
    --font-body: 'HaweaSans', Arial, sans-serif;
    --max-width: 1100px;
    --header-offset: 10rem;
    --hero-height: 70vh;
}

body.dark-mode {
    --primary-yellow: #F9BF13;
    --black: #161616;
    --text-color: var(--primary-yellow);
    --bg-color: var(--black);
}

/* --- 3. BASE STYLES --- */
html, body {
    height: 100vh;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.splash-active {
    overflow: hidden;
}

body.splash-active .site-header,
body.splash-active .hero-section,
body.splash-active .content-area,
body.splash-active .site-footer,
body.splash-active .fixed-figure {
    opacity: 0;
    transform: translateY(12px);
}

body.splash-complete .site-header,
body.splash-complete .hero-section,
body.splash-complete .content-area,
body.splash-complete .site-footer,
body.splash-complete .fixed-figure {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 900ms ease, transform 900ms ease;
}

.splash-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--bg-color);
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-video {
    width: min(78vw, 760px);
    max-height: 76vh;
    object-fit: contain;
    display: block;
}

/* --- 4. HEADER & BRANDING --- */
.mobile-banner {
    display: none;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0; 
    background-color: var(--black);
    z-index: 50;
}

.header-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.logo {
    height: auto;
    max-height: clamp(96px, 18vw, 216px); 
    max-width: 36%; 
    flex-shrink: 1; 
    object-fit: contain;
}

.banner {
    height: auto;
    max-height: clamp(70px, 15vw, 180px);
    max-width: 60%; 
    flex-shrink: 1;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .header-branding {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    .logo, .banner { 
        max-height: 168px; 
        max-width: 90%; 
        width: auto;
    }
}

/* --- 5. HERO SECTION --- */
.hero-section {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
    background-color: var(--black);
    border-top: 2px solid #1a1a1a;
    z-index: 12;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active,
.hero-slide.exiting { 
    animation: heroPan 15s linear forwards; 
}

.hero-slide.active { 
    opacity: 1; 
    z-index: 2;
}

.hero-slide.exiting {
    opacity: 0;
    z-index: 1;
}

@keyframes heroPan {
    0% { object-position: 25% center; }
    100% { object-position: 75% center; }
}

/* --- 6. MAIN CONTENT --- */
.content-area {
    width: 100%;
    margin-top: calc(var(--header-offset) + var(--hero-height));
    padding: 6rem 0;
    text-align: center;
    position: relative;
    z-index: 20;
    background-color: var(--bg-color);
    flex-grow: 1;
}

.description {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.description h1,
.description h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 4vw, 2.5rem);
    letter-spacing: 2px;
    text-wrap: balance;
    font-weight: 900; 
}

.description p {
    font-size: 1.3rem;
    color: var(--primary-yellow);
    font-weight: 300;
    max-width: 55ch; 
    margin: 0 auto 2.5rem;
    text-wrap: pretty;
    opacity: 0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.description h2,
.contact-info {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.description p.visible {
    opacity: 0.8;
    transform: translateY(0);
}

.description h2.visible,
.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info:not(.visible) {
    pointer-events: none;
}

.scroll-indicator {
    display: none;
}

/* --- 7. CONTACT SECTION --- */
.contact-footer-block {
    border-top: 1px solid #333;
    padding-top: .5rem;
    margin-top: 2rem;
    max-width: 800px; 
    margin: 2rem auto 0;
}

.contact-instruction {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0rem;
    text-wrap: balance;
    letter-spacing: 2px;
}

.business-card-format {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

.business-card-format a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

.business-card-format a:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

.spacer { margin: 0 1rem; opacity: 0.5; }

.contact-group {
    display: inline-flex;
    align-items: center;
}

/* --- 8. MOBILE ADJUSTMENT --- */
@media (max-width: 768px) {
    .site-header {
        padding: 0.2rem 0; 
    }

    .header-branding {
        gap: 0.1rem; 
    }

    .description {
        margin-bottom: 0;
    }

    .description p {
        font-size: .85rem;
        margin-bottom: .5rem;
        max-width: 80%;
    }

    .mobile-swap-container {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        justify-items: center;
    }
    
    .mobile-swap-container > * {
        grid-area: 1 / 1;
    }

    .scroll-indicator {
        display: block;
        width: 0;
        height: 0;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 15px solid var(--text-color);
        margin-top: 1.5rem; 
        cursor: pointer;
        animation: bounce 2s infinite;
        transition: opacity 0.5s ease-out;
        z-index: 30;
    }

    .scroll-indicator.hidden,
    .fixed-figure.hidden {
        opacity: 0;
        pointer-events: none;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-8px); }
        60% { transform: translateY(-4px); }
    }

    .contact-instruction {
        font-size: .9rem;
    }

    .business-card-format { 
        flex-direction: column; 
        font-size: 1rem; 
        gap: 0rem;
    }
    
    .business-card-format > .desktop-only { 
        display: none; 
    }
    
    .contact-group .spacer {
        display: inline;
        margin: 0 0.5rem;
    }

    .contact-group {
        display: block;
        white-space: nowrap; 
    }

    .fixed-figure {
        display: block; 
        width: clamp(100px, 20vw, 140px); 
        right: 0.5rem;
    }

    .desktop-banner { display: none; }
    .mobile-banner { display: block; }
    
    :root { 
        --header-offset: 10.5rem; 
        --hero-height: 50vh; 
    }
    
    .content-area { 
        padding: 0rem 0;
        margin-top: calc(var(--header-offset) + var(--hero-height));
    }
}

/* --- 9. FOOTER --- */
.site-footer {
    padding: 0rem 0 1rem;
    text-align: center;
    font-size: 0.5rem;
    text-wrap: balance;
    color: var(--text-color);
    background-color: var(--bg-color);
    opacity: 1;
    position: relative;
    z-index: 20;
}

.footer-locations p {
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.fixed-figure {
    position: fixed;
    bottom: 0;
    right: 1rem;
    width: clamp(120px, 10vw, 180px);
    max-height: 30vh;
    object-fit: contain;
    z-index: 60;
    pointer-events: none;
    transition: opacity 0.5s ease-out; 
}

@media (prefers-reduced-motion: reduce) {
    html, body {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-slide.active,
    .hero-slide.exiting {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .splash-screen {
        display: none;
    }

    body.splash-active .site-header,
    body.splash-active .hero-section,
    body.splash-active .content-area,
    body.splash-active .site-footer,
    body.splash-active .fixed-figure {
        opacity: 1;
        transform: none;
    }
}
