/*
Theme Name: O.G. Automotive
Theme URI: https://ogautocc.com
Author: O.G. Automotive Team
Description: Custom high-performance theme for O.G. Automotive – Corpus Christi, TX
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: og-theme
*/

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #ffffff;
    background: #000;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* SITE-WIDE SMOKE VIDEO BACKGROUND + DARK OVERLAY (from header.php) */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.smoke-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* PRELOADER STYLES – Only loaded on homepage via conditional CSS */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

#preloader[style*="display: none"],
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* HEADER STYLES – Global */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    min-height: 280px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

#main-header.header-hidden {
    transform: translateY(-100%);
}

#main-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://ogautocc.com/wp-content/uploads/2025/09/469371739_122128796918477117_2839075088574291226_n.webp') center center / cover no-repeat;
    background-position: 40% 30%;
    z-index: -1;
}

#main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.nav-wrapper nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#main-header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

#main-header nav a:hover {
    color: #f28c38;
}

#main-header nav a.active {
    color: #f28c38;
    text-shadow: 0 0 8px rgba(255, 60, 0, 0.6), 0 0 16px rgba(255, 140, 0, 0.5);
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.1);
}

.logo {
    max-width: 155px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.7)) 
            drop-shadow(0 0 16px rgba(255, 140, 0, 0.6)) 
            drop-shadow(0 0 25px rgba(255, 180, 0, 0.4));
    animation: logo-soft-glow 2.5s ease-in-out infinite;
}

@keyframes logo-soft-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255,60,0,.7)) 
                drop-shadow(0 0 16px rgba(255,140,0,.6)) 
                drop-shadow(0 0 25px rgba(255,180,0,.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255,60,0,.9)) 
                drop-shadow(0 0 24px rgba(255,100,0,.8)) 
                drop-shadow(0 0 40px rgba(255,140,0,.7));
    }
}

/* Page content wrapper (added in header.php) */
.page-content {
    position: relative;
    z-index: 10;
}

/* Basic utility */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* Mobile header adjustments (global) */
@media (max-width: 500px) {
    #main-header {
        padding: 1rem 0;
        min-height: 180px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .nav-wrapper {
        width: 100%;
        margin-bottom: 1rem;
    }
    nav {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    #main-header nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }
    .logo-box {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
    .logo {
        max-width: 100px !important;
    }
}