/* Grid & Layout System */

/* 12-Column Grid */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-24);
}

.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }

/* Base spans for components whose visual styles live in components.css.
   Kept here (with their responsive overrides below) so cascade order
   between layout.css and components.css can never fight over grid-column. */
.card-premium { grid-column: span 3; }
.stat-col { grid-column: span 4; }

/* Vertical Spacing Classes */
.py-128 { padding-top: var(--space-128); padding-bottom: var(--space-128); }
.py-96  { padding-top: var(--space-96); padding-bottom: var(--space-96); }
.py-64  { padding-top: var(--space-64); padding-bottom: var(--space-64); }
.py-48  { padding-top: var(--space-48); padding-bottom: var(--space-48); }

.my-128 { margin-top: var(--space-128); margin-bottom: var(--space-128); }
.my-96  { margin-top: var(--space-96); margin-bottom: var(--space-96); }
.my-64  { margin-top: var(--space-64); margin-bottom: var(--space-64); }

/* Header & Navigation Layout */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-premium);
    display: flex;
    align-items: center;
    background: #000;
    border-bottom: 1px solid var(--border-color);
}

.header-premium.scrolled {
    height: 80px;
    background: #000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper img {
    height: 60px;
    width: auto;
    transition: var(--transition-premium);
}

.header-premium.scrolled .logo-wrapper img {
    height: 42px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-32);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-8) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section Layout */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background Layer */
.hero-video-container {
    position: fixed; /* Fixed viewport reference to enable scroll narrative */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: opacity 0.8s var(--ease-premium);
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dramatic Lighting Overlays */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-overlay-radial);
    transition: background 0.8s var(--ease-premium);
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 0 var(--space-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive constraints */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Mobile menu behavior handled in JS & components.css */
    }
    .mobile-nav-toggle {
        display: block;
    }

    .card-premium {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem !important;
    }
    .hero-content {
        padding: var(--space-32) var(--space-16) !important;
    }

    .col-span-5,
    .col-span-6,
    .col-span-7,
    .stat-col {
        grid-column: span 12;
    }

    .stat-col-divider {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-24) 0;
    }
}

@media (max-width: 576px) {
    .card-premium {
        grid-column: span 12;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn-premium {
        width: 100%;
    }
}
