/* Components Styles - Distributed Layout Redesign */

/* Navbar - Floating Glass Design (Restored) */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Pequeño */
    max-width: 1600px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.85);
    /* Glass Background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    /* Sin esquinas (Rounded) */
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* Marcos visibles */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    top: 10px;
    width: 98%;
    padding: 0.6rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
    /* Softer border on scroll */
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links .mobile-only-nav {
    display: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    position: relative;
}

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

.nav-links a:hover {
    opacity: 1;
    color: var(--color-accent-gold);
}

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

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
}

/* Outline Button Variant */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--color-accent-gold);
    color: white;
    /* Text becomes white on gold bg */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden by default on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-primary);
    z-index: 1002;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        top: 0 !important;
        width: 100% !important;
        padding: 0.8rem 1rem !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        /* Solid White Header (Restored) */
        position: fixed !important;
        background-color: rgba(255, 255, 255, 1) !important;
        /* Solid White */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000 !important;
        transition: background-color 0.3s ease;
    }

    .navbar .logo img {
        /* Invert (Black Box->White Box, White Text->Black Text) */
        filter: invert(1) !important;
        /* Multiply (White Box becomes Transparent, Black Text stays Black) */
        mix-blend-mode: multiply !important;
        max-height: 45px !important;
    }

    /* Adjust body padding for fixed navbar if needed, or rely on main padding */
    /* FLEX Layout for Mobile Navbar (Simpler & More Robust) */
    .nav-container {
        display: flex !important;
        justify-content: center !important;
        /* Center Logo */
        align-items: center !important;
        width: 100% !important;
        height: 60px !important;
        padding: 0 !important;
        position: relative !important;
    }

    /* 1. Hamburger Button (Absolute Left) */
    .mobile-menu-btn {
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.8rem !important;
        z-index: 1200 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
        color: var(--color-text-primary) !important;
    }

    /* 2. Logo Wrapper (Center Flow) */
    /* Remove all grid properties and just ensure it's centered in flex */
    .nav-container>div:first-child,
    .nav-container>.logo,
    .nav-container>a.logo {
        position: static !important;
        /* In normal flow */
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        pointer-events: auto !important;
        flex: 0 0 auto !important;
        /* Don't grow/shrink */
    }

    /* Ensure image fits */
    .nav-container>div:first-child img,
    .nav-container>.logo img,
    .nav-container>a.logo img {
        max-height: 40px !important;
        width: auto !important;
        object-fit: contain;
    }

    /* Force reset any inline styles */
    .nav-container>div:first-child[style] {
        margin: 0 !important;
        gap: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* Hide rating badge wrapper explicitly within the logo container */
    .nav-container>div:first-child>.header-rating,
    .nav-container>div:first-child>div[onclick] {
        display: none !important;
    }

    /* Hide Desktop CTA in mobile explicitly if not hidden already */
    .nav-container>a.btn {
        display: none !important;
    }

    .logo {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
    }

    .logo img {
        max-height: 45px !important;
        /* Smaller logo as requested */
        width: auto !important;
    }

    /* Hide Rating explicitly */
    .header-rating {
        display: none !important;
    }

    /* Hide Desktop Nav explicitly */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        /* Slide from left */
        right: auto !important;
        height: 100vh !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        z-index: 1000 !important;
        box-shadow: none !important;
        padding-top: 60px !important;
        display: flex !important;
    }

    .nav-links.active {
        left: 0 !important;
        /* Active state at left 0 */
    }

    .nav-links li {
        opacity: 1 !important;
        /* Force visible inside menu */
        transform: none !important;
        margin: 1.5rem 0 !important;
    }

    .nav-links a {
        font-size: 1.5rem !important;
        color: var(--color-text-primary) !important;
        display: block !important;
    }

    /* Ensure Vender mi coche is visible in mobile menu */
    .nav-links .mobile-only-nav {
        display: block !important;
    }

    /* Hide Desktop Buttons */
    .navbar>a.btn,
    .desktop-only-btn,
    .navbar .btn {
        display: none !important;
    }

    .hero {
        /* Fix: Start page AFTER the header */
        margin-top: 80px;
        /* Push hero down by header height */
        height: calc(100dvh - 80px);
        /* Adjust height to fit reduced space */
        align-items: center;
        /* Center content vertically in remaining space */
    }

    .hero-content {
        padding-top: 0;
        /* No extra padding needed now that we use margin */
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem;
        /* Smaller title on mobile */
    }
}

/* --- Hero Section: Full Screen Immersive --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
    /* Reset padding from split layout */
}

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

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

.overlay {
    /* Restored Overlay for text readability */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    /* Restored Centered Content */
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    flex: initial;
    order: initial;
    width: 100%;
    background: transparent;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--color-accent-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.5s forwards;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: white;
    /* Ensure visibility on dark overlay */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* Animation handled by JS/Reveal class now */
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    /* or brighter since it's on dark overlay now */
    color: #e0e0e0;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.1s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeUp 1s ease-out 1.4s forwards;
    width: 100%;
}

.hero-search-form {
    display: flex;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    /* High opacity white for contrast */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0;
    /* Removed padding to make button square/flush */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Ensure button corners allow container radius */
}

.hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    outline: none;
}

.hero-search-form input::placeholder {
    color: var(--color-text-muted);
}

.btn-search {
    flex-shrink: 0;
    /* Prevent button from shrinking/cutting off */
    background: var(--color-accent-gold);
    color: var(--color-bg-primary);
    border: none;
    padding: 0 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    /* Ensure it fills height */
}

.btn-search:hover {
    background: white;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Watermark */
.watermark-overlay {
    position: absolute;
    bottom: 20px;
    left: auto;
    right: 20px;
    /* Restored to right */
    width: 100px;
    opacity: 0.8;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* --- Inventory Grid: Horizontal List Layout --- */
/* --- Inventory Grid: Small Grid Layout --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* "Slightly bigger" cards */
    gap: 1.5rem;
    padding: 2rem 0;
}

.car-card {
    /* Vertical Card default */
    background-color: var(--color-bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.car-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reserved Status Styling */
.car-card.is-reserved .card-image-wrapper::after {
    content: "RESERVADO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    border: 3px solid white;
    padding: 0.5rem 1.5rem;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    letter-spacing: 2px;
}

/* --- Inventory Card Design (Compact) --- */
.car-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* Back to 16:9 approx, wider feel */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.car-card:hover .card-image {
    transform: scale(1.05);
}

.car-card.is-reserved .card-image {
    filter: grayscale(100%);
}

.car-card.is-reserved .status-badge {
    background-color: #444;
    color: #ccc;
    border-color: #666;
}

.status-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background-color: var(--color-accent-gold);
    color: var(--color-bg-primary);
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card-content {
    padding: 1rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    /* Much smaller title */
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-price {
    font-size: 1.2rem;
    /* Smaller price */
    color: var(--color-accent-gold);
    font-weight: 600;
    display: block;
    margin-top: 0.2rem;
}

.card-specs {
    display: flex;
    gap: 0.8rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    /* Smaller text */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.card-specs span {
    position: relative;
}

.card-specs span:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -0.5rem;
    color: #ddd;
}

/* Actions */
.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    /* Space between textual specs and button */
    align-items: center;
    width: 100%;
    /* Force full width use */
}

.btn-details {
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.btn-details:hover {
    color: var(--color-accent-gold);
}

/* DGT Badge Small */
.dgt-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
    color: white;
    margin-left: 6px;
    vertical-align: middle;
}

.dgt-zero {
    background-color: #3b82f6;
    /* Blue */
}

.dgt-eco {
    background: linear-gradient(135deg, #10b981 50%, #3b82f6 50%);
    /* Green/Blue Split */
}

.dgt-c {
    background-color: #10b981;
    /* Green */
}

.dgt-b {
    background-color: #fbbf24;
    /* Yellow */
}


.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-accent-gold-dim);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--color-accent-gold);
    margin-bottom: 0.2rem;
}

/* Reviews Section */
/* Reviews Carousel */
.reviews-carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0 3rem 0;
    /* Space for shadow/scroll */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.reviews-carousel-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.reviews-track {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    align-items: flex-start;
    /* Prevent cards from stretching to max height */
}

.review-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Hard/Industrial look */
    padding: 2rem;
    min-width: 320px;
    /* Fixed width for standard card sizes */
    max-width: 350px;
    flex: 0 0 auto;
    /* Don't shrink */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--color-text-primary);
}

.verified-badge {
    font-size: 0.8rem;
    color: #3b82f6;
    /* Blue for verification */
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    color: var(--color-accent-gold);
    letter-spacing: 2px;
}

.review-text {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-gallery {
    margin-top: 1rem;
    margin-left: -2rem;
    /* Negate card padding left */
    margin-right: -2rem;
    /* Negate card padding right */
    margin-bottom: -2rem;
    /* Negate card padding bottom */
    width: calc(100% + 4rem);
    /* Full bleed width */
    height: auto;
    border-radius: 0 0 4px 4px;
    /* Round only bottom corners matching card */
    overflow: hidden;
    display: block;
}

.review-image {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Show full image, don't crop */
    transition: transform 0.3s ease;
    display: block;
    /* Remove bottom whitespace */
}

.review-card:hover .review-image {
    transform: scale(1.05);
}

/* Nav Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    /* Dark background */
    border: 1px solid var(--color-accent-gold);
    /* Clean gold border */
    color: var(--color-accent-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 0;
    outline: none;
    /* Remove focus outline line */
}

.google-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7c4dff;
    /* Deep purple default, will vary */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    flex-shrink: 0;
    object-fit: cover;
    /* For img tags */
}

.carousel-nav-btn:hover {
    background: var(--color-accent-gold);
    color: black;
    transform: translateY(-50%) scale(1.1);
    /* Keep vertical align */
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Header Rating */
/* Header Rating */
/* Header Rating */
/* Header Rating */
.header-rating {
    text-align: center;
}

.header-rating:hover {
    transform: scale(1.05);
}

.header-stars {
    /* No special styles needed for emoji stars */
}

.header-rating-text {
    font-size: 1rem;
    /* B 1rem */
    color: #333;
    /* Dark text for light theme */
    font-weight: 600;
    /* Medium-Bold */
    letter-spacing: 0.5px;
}

/* Reviews Modal Overlay */
.reviews-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light backdrop */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reviews-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reviews-modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-accent-gold);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Soft shadow */
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-total-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.big-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.modal-reviews-list {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-review-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-review-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.verified-text {
    color: #3b82f6;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.date {
    margin-left: auto;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }
}

/* --- About Section (Global) --- */
.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.about-content {
    flex: 1;
    /* Text takes 1 unit of space */
}

.about-image {
    flex: 1.2;
    /* Image takes 1.2 units (Larger) */
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness for New Layouts */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-content,
    .hero-bg {
        flex: 1 1 100%;
        order: initial;
    }

    .hero-bg {
        height: 60vh;
        min-height: auto;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    /* Inventory: Allow grid to auto-fit instead of forcing 1 column */
    /* This was causing "super big" cards on laptops */
    .inventory-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .car-card {
        flex-direction: column;
        height: auto;
    }

    .card-image-wrapper {
        width: 100%;
        /* Let padding-top handle aspect ratio */
    }

    .card-content {
        width: 100%;
    }

    .about-grid {
        flex-direction: column;
    }
}

/* --- Restored WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.5);
    color: white;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- Professional Animation Classes --- */
.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.reveal-text-wrapper {
    overflow: hidden;
    display: block;
}

.reveal-text {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: textSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* DGT Environmental Badges */
.dgt-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    font-family: Arial, sans-serif;
}

.dgt-zero {
    background-color: #00458f;
}

.dgt-eco {
    background: linear-gradient(135deg, #00458f 50%, #00965e 50%);
}

.dgt-c {
    background-color: #00965e;
}

.dgt-b {
    background-color: #fdb913;
    color: #1a1a1a;
}