/*
Theme Name: LoKeysLLC Custom Theme
Description: Custom built theme for the rental fleet.
Author: Brandon Sanders Sr.
Version: 4.1
*/


/* =========================================
       GLOBAL DESKTOP STYLES
       ========================================= */

/* Forces the absolute deepest layers of the WordPress theme to be black */
/*html, body, .site, #page, .site-content {
        background-color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }*/

/* =========================================
       GLOBAL RESETS & BOUNDARIES
       ========================================= */

/* 1. Forbids the website from ever scrolling left or right */
html, body {
    background-color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100%;
}

/* 2. Forces EVERY element to keep padding inside its width */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Forces the global website background to black */
body {
    background-color: #000000 !important;
    margin: 0;
    padding: 0;
}

/* Forces the canvas holding the banner to be black */
.hero-canvas {
    background-color: #000000 !important;
    width: 100%;
    padding: 2rem 0;
}

.hero-banner {
    /* The Floating Island Effect stays the same */
    width: 95%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Solid dark base color */
    background-color: #121212;
}

/* LAYER 2: The Background Image (Moved on top of the gradient) */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    /* NEW: Controls how the image behaves inside the wrapper */
    .hero-bg-wrapper img {
        width: 100%;
        height: 100%;
        /* 'cover' makes it fill the whole box. 
        If you want to see the whole car without cutting off edges, change this to 'contain' */
        object-fit: contain;
        /* Keeps that upward 35% adjustment you liked earlier */
        object-position: center 35%;
    }

/* LAYER 1: The Dark Gradient Tint (Moved to the back) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);*/
    z-index: 0;
}

.hero-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    /* UPDATED: Forces the text and glass box to sit on top of the overlay */
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
    text-align: left;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-secondary, #cccccc);
}

.btn-primary {
    background-color: var(--accent-orange, #ff5e00);
    color: var(--bg-dark, #121212);
    border: 2px solid var(--accent-orange, #ff5e00);
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: transparent;
        color: var(--accent-orange, #ff5e00);
        box-shadow: 0 10px 20px rgba(255, 94, 0, 0.15);
        transform: translateY(-2px);
    }

/* The Frosted Glass Widget */
.hero-widget-square {
    width: fit-content;
    height: fit-content;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    /* Shrinks the entire box and image by 25% */
    transform: scale(0.75);
    transform-origin: center right;
}

.featured-section {
    /* Dark gray to light gray gradient */
    background: linear-gradient(to bottom, #333333 0%, #d3d3d3 100%);
    width: 100%;
    padding: 5rem 5%;
}

.section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.inventory-container {
    width: 95%;
    max-width: 1400px; /* Or whatever your maximum layout width is */
    /* THE FIX: 0 top/bottom margin, Auto left/right margin centers the block */
    margin: 0 auto;
}

.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    /* THE FIX: Centers all items horizontally along the row */
    justify-content: center;
    gap: 2rem; /* Keeps an even space between your car cards */
}

/* =========================================
       MOBILE OVERRIDES
       ========================================= */
@media (max-width: 960px) {
    .hero-banner {
        /* Snaps back to full edge-to-edge width on mobile */
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 2rem 5%;
    }
    /* THE FIX: Pushes the text down so the car graphic is visible above it */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* ADD THIS LINE: Creates empty space above the text */
        margin-top: 120px;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }

    .hero-widget-square {
        margin: 0 auto;
        padding: 15px;
        width: fit-content;
        max-width: 100%;
        /* Reset the scaling and origin for mobile so it stays centered */
        transform: scale(0.75);
        transform-origin: center center;
    }
    /* THE FIX: Anchors the car graphic to the very top on mobile screens */
    .hero-bg-wrapper img {
        object-position: center top;
    }
}

/* NEW: Define your brand colors so the variables work! */
:root {
    --text-primary: #ffffff; /* Sets main text to white */
    --accent-orange: #ff5e00; /* Sets your hot orange accent */
}


/* =========================================
        PROMO TOP BANNER
        ========================================= */
.promo-banner {
    background-color: #ff5e00;
    color: #ffffff;
    text-align: center;
    padding: 10px 5%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1000;
    /* THE FIX: We removed width: 100% so the div calculates itself naturally */
    margin: 0;
    box-sizing: border-box;
}

    .promo-banner a {
        color: #121212;
        text-decoration: underline;
        font-weight: bold;
        margin-left: 10px;
        transition: color 0.3s ease;
    }

        .promo-banner a:hover {
            color: #ffffff;
            text-decoration: none;
        }

@media (max-width: 768px) {
    .promo-banner {
        font-size: 0.8rem;
        padding: 12px 5%;
        line-height: 1.4;
    }

        .promo-banner a {
            display: inline-block;
            margin-top: 4px;
            margin-left: 0;
        }
}

/* =========================================
        HEADER NAVIGATION
        ========================================= */
header {
    background-color: #000000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

/* NEW: Wraps the logo and tagline together so they are both clickable */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-weight: 700;
}

    /* UPDATED: specifically targets the 'KEYS' span so the tagline stays gray */
    .logo .highlight-keys {
        color: var(--accent-orange);
    }

/* NEW: Styles the smaller secondary text */
.logo-tagline {
    font-size: 0.7rem;
    color: #aaaaaa; /* Muted gray so it doesn't fight the main logo */
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-container ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-container a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-container a:hover {
        color: var(--accent-orange);
    }