/* Custom Styles for Autohaus-Center Website */

html, body {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 90px; /* Adjust as needed, based on navbar height */
}

/* Modern Navbar Styles */
.modern-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition: all 0.3s ease;
    min-height: 0 !important;
}

/* Override Bootstrap navbar classes */
nav.navbar.modern-navbar {
    padding: 0.7rem 0 !important;
}

.modern-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

/* Brand Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff !important;
    transition: transform 0.3s ease;
    gap: 0.5rem;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}

.navbar-brand img {
    height: 55px !important;
    max-height: 55px !important;
    transform: scale(1.3) !important;
    transform-origin: left center !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-text {
    letter-spacing: 0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

/* Browse All Button - Green */
.btn-search {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%) !important;
}

/* Navbar spacer for vehicle pages */
.navbar-spacer-injected {
    background: #ffffff !important;
    display: block !important;
    width: 100% !important;
    min-height: 80px !important;
    height: 80px !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force white background on body for vehicle pages */
body {
    background-color: #ffffff !important;
}

/* Specific spacing for index pages with main.container */
body > main.container,
main.container.pb-5 {
    margin-top: -49px !important;
    background: transparent !important;
}

/* Reduce spacing for hero sections on about, liquidation, financing, contact pages */
body > section.about-hero,
body > section.liquidation-hero,
body > section.financing-hero,
body > section.contact-hero {
    margin-top: -42px !important;
}

/* Reduce spacing for results pages - 65% less */
body > div.container-fluid {
    margin-top: -55px !important;
}

/* Make sure vehicle header is visible */
body > .container > header {
    margin-top: 0 !important;
}

/* Mobile Menu Toggler */
.navbar-toggler {
    padding: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.2rem 0.5rem;
    }

    #headquarters-image {
        max-width: 100% !important; /* Make headquarters image larger on mobile */
    }

    #why-lease-benefits {
        display: none !important; /* Hide "Why Lease with Autohaus-Center?" on mobile */
    }
}

.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.75rem 0 0.25rem 0; /* Ultra minimal padding */
    text-align: center;
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.hero-section p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.find-vehicle-heading {
    margin-top: 0;
}

/* Hide category badges initially */
.category-btn .badge {
    display: none;
}

/* Show badge only on active category button */
.category-btn.active .badge {
    display: inline-block;
}

/* ============================================
   RESPONSIVE STYLES FOR ALL HERO SECTIONS
   ============================================ */

/* Tablet and Mobile (768px and below) */
@media (max-width: 768px) {
    /* All hero sections */
    .liquidation-hero,
    .financing-hero,
    .about-hero,
    .contact-hero {
        padding: 60px 0 40px !important;
        margin-bottom: 2rem !important;
    }

    .liquidation-hero h1,
    .financing-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem !important;
    }

    .liquidation-hero .lead,
    .financing-hero .lead,
    .about-hero .lead,
    .contact-hero .lead {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    /* General hero sections */
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* All hero sections */
    .liquidation-hero,
    .financing-hero,
    .about-hero,
    .contact-hero {
        padding: 40px 0 30px !important;
    }

    .liquidation-hero h1,
    .financing-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 1.6rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    .liquidation-hero .lead,
    .financing-hero .lead,
    .about-hero .lead,
    .contact-hero .lead {
        font-size: 0.9rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    /* General hero sections */
    .hero-section h1 {
        font-size: 1.3rem !important;
    }

    .hero-section p {
        font-size: 0.85rem !important;
    }
}

/* Specific spacing for filter buttons on mobile */
@media (max-width: 768px) {
    #filter-buttons .category-btn {
        margin-bottom: 10px; /* Adds vertical space between button rows on mobile */
    }

    #filter-buttons.mb-4 {
        margin-bottom: 0.15rem !important; /* Reduce space by 90% between filter buttons and featured vehicles on mobile */
    }

    /* Hide 'Why Choose Us' section on about.html on mobile */
    #why-choose-us {
        display: none !important;
    }

    /* Add space between navbar and video on mobile on about.html */
    #video-container {
        margin-top: 2rem; /* Adjust as needed */
    }
}

/* Crop the bottom 3% of the about page video */
.image-card video {
    width: 100%;
    display: block;
    clip-path: inset(0 0 3% 0);
}

/* Image Feature for financing page */
.image-feature {
    transition: all 0.4s ease;
}

.image-feature:hover {
    transform: scale(1.03);
}


