:root {
    --color-bg: #050A0A;
    --color-bg-secondary: #081010;
    --color-bg-card: #0B1212;

    --color-text-primary: #F5F7F6;
    --color-text-secondary: #A7B0AE;
    --color-text-muted: #6F7A77;

    --color-accent: #C4F51A;
    --color-accent-bright: #D2FF2A;

    --color-border: rgba(255,255,255,0.10);
    --color-border-light: rgba(255,255,255,0.06);

    --container-width: 1240px;

    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 96px;
    --space-6xl: 120px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

html {
    font-size: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: calc(100% - 64px);
    max-width: var(--container-width);
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .container {
        width: calc(100% - 48px);
    }
}

@media (max-width: 767px) {
    .container {
        width: calc(100% - 40px);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 180ms ease-in-out;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #07100A;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 650;
    padding: 11px 18px;
    border-radius: 5px;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-bright);
    transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
body {
    /* Offset for fixed header */
    padding-top: 100px;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: var(--container-width);
    z-index: 9999;
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: calc(16px + var(--wp-admin--admin-bar--height, 32px));
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 10, 10, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    height: 70px;
    padding: 0 20px;
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo a {
    display: flex;
    align-items: center;
}

.custom-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* removes black background */
}

/* Collapse Container (Desktop) */
.site-header__collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* Navigation */
.site-header__nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 24px;
}

.nav-list a {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(245, 247, 246, 0.82);
    transition: color 200ms ease;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    white-space: nowrap; /* Prevent "About Us" from wrapping */
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--color-accent);
}

.nav-list .current-menu-item > a {
    color: var(--color-accent);
}

.nav-list .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
}

/* CTA */
.site-header__cta {
    margin-left: auto;
    flex-shrink: 0;
}

.site-header__cta .btn {
    white-space: nowrap;
}

/* Right Section Toggle */
.site-header__toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 32px;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Responsive Header
   ========================================================================== */
@media (max-width: 1023px) {
    .site-header {
        width: calc(100% - 48px);
    }
    
    .site-header__inner {
        height: 66px;
    }

    .custom-logo {
        width: 125px;
    }
    
    .nav-list {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 80px;
    }

    .site-header {
        top: 12px;
        width: calc(100% - 32px);
    }
    
    body.admin-bar .site-header {
        top: calc(12px + var(--wp-admin--admin-bar--height, 46px));
    }

    .site-header__inner {
        height: 60px;
        padding: 0 16px;
    }

    .custom-logo {
        width: 115px;
    }

    /* Mobile Menu Dropdown */
    .site-header__collapse {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(5, 10, 10, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 12px;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-header__collapse.is-open {
        display: flex;
    }

    .site-header__nav {
        position: static;
        transform: none;
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px; /* Accessible touch target */
    }

    .site-header__cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .site-header__cta .btn {
        width: 100%;
    }

    .site-header__toggle {
        display: flex;
        margin-left: auto;
    }
    
    /* Toggle active state */
    .site-header__toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-header__toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .site-header__toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Fix header offset for home page */
body.home,
body.front-page {
    padding-top: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    /* Hero padding-top ensures content clears the 100px fixed header */
    padding-top: 100px;
    /* Use svh for mobile devices where viewport height changes due to UI */
    min-height: 100svh;
    display: flex;
    align-items: flex-end; /* Lower-left positioning on desktop */
    padding-bottom: 80px;
    overflow: hidden;
    background-color: var(--color-bg);
}

.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(3, 8, 8, 0.95) 0%,
        rgba(3, 8, 8, 0.75) 45%,
        rgba(3, 8, 8, 0.35) 75%,
        rgba(3, 8, 8, 0.50) 100%
    );
}

.hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero__content {
    max-width: 700px;
}

.hero__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.hero__eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: var(--color-text-secondary);
    margin-right: 12px;
}

.hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.hero__title-highlight {
    color: var(--color-accent);
}

.hero__description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 570px;
    margin-bottom: var(--space-2xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.hero__button,
.hero__button-secondary {
    min-height: 44px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 5px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.hero__scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.hero__scroll-line {
    width: 1px;
    height: 30px;
    background-color: var(--color-text-primary);
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        align-items: center;
        padding-bottom: 0;
    }

    .hero__content {
        max-width: 600px;
    }
    
    .hero__title {
        font-size: clamp(48px, 6vw, 64px);
    }
    
    .hero__description {
        font-size: 16px;
    }
}

/* Mobile Stacked Layout */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0; /* Remove padding so video goes behind header */
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero__media {
        position: relative;
        width: 100%;
        height: auto; /* Reset desktop 100% height */
        aspect-ratio: 3 / 4; /* Taller aspect ratio for mobile screens */
        margin-bottom: var(--space-xl);
    }

    .hero__video {
        object-position: 70% center; /* Ensure EV focal point */
    }
    
    .hero__overlay {
        display: none; /* Text is below video on mobile, overlay unnecessary */
    }
    
    br.desktop-only {
        display: none;
    }

    .hero__scroll {
        display: none;
    }
    
    .hero__title {
        font-size: clamp(40px, 8vw, 48px);

    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: clamp(34px, 10vw, 40px);
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .hero__button,
    .hero__button-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 48px;
    }
}
