/* Layout & Grid System - CONSOLIDATED */

/* Containers */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--spacing-section) 0;
    position: relative;
}

/* Header/Nav */
.header {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 5px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 140px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: white;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CAROUSEL LAYOUT (Fixed Height) */

.carousel-container {
    position: relative;
    width: 100%;
    height: 680px; /* Fixed height to contain cards + padding */
    overflow: hidden;
}

.unified-deals-wrapper {
    display: flex;
    overflow-x: scroll;
    gap: 30px;
    padding: 20px 5px 40px 5px;
    height: 100%; /* Fill container */
    align-items: flex-start; /* Align top */
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.unified-deals-wrapper::-webkit-scrollbar {
    display: none;
}

/* Lease Card Layout - FORCE HEIGHT */
.lease-card {
    flex: 0 0 400px; /* Fixed width */
    width: 400px;    /* Explicit width */
    min-width: 400px;
    height: 600px;   /* Explicit height */
    min-height: 600px;
    position: relative;
    display: flex;   /* Ensure flex context */
    flex-direction: column;
    box-sizing: border-box; /* Include borders in height */
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 51, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.carousel-nav:hover {
    background: white;
    color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Hero Section Base */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.full-width-video {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.full-width-video video, 
.full-width-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    background-color: #050505;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 80px 0 40px;
}

.footer-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.6;
}

.footer .logo img {
    height: auto;
    width: 300px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .lease-card {
        flex: 0 0 350px;
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 50px; 
    }
    
    .nav-links {
        display: none; 
    }
    
    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }
    
    .logo img {
        height: 60px;
    }

    .footer .logo img {
        width: 200px;
    }
    
    .lease-card {
        flex: 0 0 85vw;
        width: 85vw;
        min-width: 300px;
    }
    
    .carousel-nav {
        display: none;
    }
}
