/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #e32636;        /* Alizarin Red */
    --color-primary-hover: #b81725;  /* Deeper red for hover state */
    --color-bg-base: #000000;        /* Pure black */
    --color-bg-surface-1: #0a0a0a;  /* Dark gray 1 */
    --color-bg-surface-2: #121212;  /* Dark gray 2 */
    --color-bg-surface-3: #1c1c1e;  /* Dark gray 3 */
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a5;
    --color-text-muted: #636366;
    
    /* UI Borders & Accents */
    --color-border: #222222;
    --color-border-hover: #444444;
    --color-primary-glow: rgba(227, 38, 54, 0.25);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout Constants */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --container-max-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-surface-3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-header {
    margin-bottom: 4rem;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-divider {
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1.5rem auto 0;
}

.section-divider.text-left {
    margin-left: 0;
}

.section-subtitle {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: 0 4px 20px rgba(227, 38, 54, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(227, 38, 54, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: rgba(227, 38, 54, 0.05);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

.btn i.icon-right {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.btn:hover i.icon-right {
    transform: translateX(3px);
}

.btn i.icon-left {
    margin-right: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   HEADER / NAVIGATION STYLING
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(227, 38, 54, 0.1);
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px; /* Ajustável baseado no logo.png real */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 42px;
}

.logo-fallback {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    text-transform: uppercase;
    display: none; /* Hidden by default when logo image is loaded successfully */
}

.logo-fallback span {
    color: var(--color-primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background-color: rgba(227, 38, 54, 0.1);
    color: var(--color-text-primary);
    border: 1px solid rgba(227, 38, 54, 0.3);
}

.btn-nav:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1100;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Hamburger active animation */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   HOME / HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-base);
    padding: 8rem 0 6rem 0;
    overflow: hidden;
}

/* Ambient glow blobs to create premium neon aesthetic */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(227, 38, 54, 0.09) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 38, 54, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Image column expanded to 1.1fr for larger visual presence */
    gap: 2rem; /* Reduced gap to allow maximum space for the car image */
    align-items: center;
    width: 100%;
    z-index: 2;
    margin-bottom: 3.5rem;
}

.hero-content-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 0 2.5rem 0;
    font-weight: 300;
    text-align: left;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
}

.hero-image-right {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    transform: scale(1.35) translateX(12%); /* Blows up the vehicle size and shifts it right, bleeding off edge */
    transform-origin: right center;
    transition: var(--transition-smooth);
}

.hero-img-wrapper:hover {
    transform: scale(1.42) translateX(10%); /* Custom premium hover scaling preserving alignment */
}

.hero-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
}

.hero-img-glow {
    display: none; /* Removed internal shadow box overlay */
}

/* Floating Stats Bar */
.hero-stats-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem 4rem;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-down-indicator:hover {
    color: var(--color-text-primary);
}

.scroll-down-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Animations for loading */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

/* ==========================================================================
   SOBRE NÓS SECTION STYLING
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    background-color: var(--color-bg-surface-1);
    position: relative;
    border-top: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.about-highlight-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-paragraph {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.05rem;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.pillar-card {
    display: flex;
    gap: 1.25rem;
}

.pillar-icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(227, 38, 54, 0.06);
    border: 1px solid rgba(227, 38, 54, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon-box {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: 0 4px 15px var(--color-primary-glow);
    border-color: var(--color-primary);
}

.pillar-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.pillar-info p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* About image frame styling */
.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.about-image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(227, 38, 54, 0.2);
    border-radius: 6px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.about-image-frame:hover::after {
    border-color: var(--color-primary);
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: grayscale(20%) brightness(85%);
    transition: var(--transition-slow);
}

.about-image-frame:hover .about-img {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(95%);
}

.image-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.about-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-accent {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.badge-text {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-top: 0.1rem;
}

/* ==========================================================================
   ESTOQUE / INVENTORY SECTION STYLING
   ========================================================================== */
.inventory-section {
    padding: 8rem 0;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.car-card {
    background-color: var(--color-bg-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    height: 100%;
}

.car-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(227, 38, 54, 0.05);
}

.car-image-container {
    position: relative;
    overflow: hidden;
    background-color: #050505;
    height: 300px;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.car-badge-type {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
}

.car-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-brand {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.car-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.car-specs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-bg-surface-3);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.spec-chip i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

.car-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.car-price-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* ==========================================================================
   CONTACT SECTION STYLING
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background-color: var(--color-bg-surface-1);
    position: relative;
    border-top: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.contact-method-card {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(227, 38, 54, 0.05);
    border: 1px solid rgba(227, 38, 54, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.contact-details h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

.contact-details .phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    margin: 0.25rem 0;
}

.contact-details .map-link,
.contact-details .action-link,
.contact-details .instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.contact-details .map-link:hover,
.contact-details .action-link:hover,
.contact-details .instagram-link:hover {
    color: var(--color-text-primary);
}

/* Contact Form Column */
.form-wrapper {
    background-color: var(--color-bg-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.25rem;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.form-control {
    background-color: var(--color-bg-surface-3);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.85rem 1.1rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary-glow);
    background-color: rgba(28, 28, 30, 0.8);
}

/* Styled select indicator dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select.form-control option {
    background-color: var(--color-bg-surface-3);
    color: var(--color-text-primary);
}

textarea.form-control {
    resize: none;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.footer {
    background-color: var(--color-bg-base);
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-info {
    margin-bottom: 2rem;
}

.footer-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 120px; /* Increased size by +150% (from 48px to 120px) */
    width: auto;
    object-fit: contain;
}

.footer-brand-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.footer-divider-bottom {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin-bottom: 2rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ==========================================================================
   MODAL DIALOG (DYNAMIC VEHICLE DETAILS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

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

.modal-container {
    background-color: var(--color-bg-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(227, 38, 54, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2.25rem;
    color: var(--color-text-secondary);
    line-height: 1;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-body-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.modal-car-gallery {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-color: #050505;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0) 100%);
    pointer-events: none;
}

.modal-car-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-brand {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.modal-price-tag {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--color-border);
    padding-left: 0.75rem;
}

.modal-spec-item:hover {
    border-left-color: var(--color-primary);
}

.spec-label {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.modal-features-section {
    margin-bottom: 2.5rem;
}

.modal-features-section h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.features-list li {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.modal-cta-wrapper {
    margin-top: auto;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON STYLING
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Pulsing effect ring around WhatsApp button */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #25d366;
    animation: wave 2s infinite ease-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1100px) {
    .about-grid {
        gap: 3rem;
    }
    .about-img {
        height: 460px;
    }
    .inventory-grid {
        gap: 2rem;
    }
}
@media (max-width: 992px) {
    :root {
        --header-height: 80px; /* Generous header height on mobile to prevent crammed logo! */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero Section adjustments */
    .hero-section {
        padding: 8rem 0 3rem 0; /* Increased to 8rem to give generous breathing room below fixed header */
        min-height: auto;
    }

    .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }

    .hero-content-left {
        display: contents; /* Dissolves wrapper, turning children into direct grid items for custom ordering */
    }

    .hero-tag {
        order: 1;
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
        order: 2;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        text-align: center;
        margin: 0 auto 0.25rem;
        order: 3;
    }

    .hero-image-right {
        max-width: 500px;
        margin: 0 auto;
        order: 4; /* Car image placed ABOVE the buttons on mobile */
    }

    .hero-buttons {
        order: 5; /* Buttons placed BELOW the car image on mobile */
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
    }

    .hero-img-wrapper {
        transform: scale(1.3) translateX(0); /* Significantly enlarged the car image on mobile */
        transform-origin: center;
        justify-content: center;
        margin: 0.25rem 0;
    }

    .hero-img-wrapper:hover {
        transform: scale(1.35) translateX(0);
    }

    /* General section padding reductions for compact mobile flow */
    .about-section {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-img {
        height: 320px;
    }

    .about-text-content {
        padding: 0 0.5rem; /* Comfort side margins on mobile */
    }

    /* Contact Section Layout */
    .contact-section {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-wrapper {
        padding: 2rem;
    }

    /* Modal Layout */
    .modal-body-content {
        grid-template-columns: 1fr;
    }

    .modal-car-gallery {
        height: 300px;
        min-height: auto;
    }

    .modal-car-info {
        max-height: none;
        overflow-y: visible;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header toggle menu drawer */
    .mobile-nav-toggle {
        display: block;
    }

    .container {
        padding: 0 1.25rem; /* Extra comfort padding off the phone edges */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #080808;
        border-left: 1px solid var(--color-border);
        padding: 7rem 2.5rem 3rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        box-shadow: -10px 0 40px rgba(0,0,0,0.9);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .header-cta-wrapper {
        display: none;
    }

    /* Hero layout adjustments - Horizontal compact stats bar for mobile! */
    .hero-stats-bar {
        flex-direction: row; /* Keep stats in one elegant line! */
        justify-content: space-around;
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
        margin-top: 0.15rem;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 80px; /* Keep spacious header height even on small mobile screens */
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-tag {
        font-size: 0.72rem;
        letter-spacing: 0.25em;
    }

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

    .hero-buttons {
        flex-direction: row; /* Side-by-side buttons on small screens */
        width: 100%;
        max-width: 380px;
        margin: 0.25rem auto 0;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.75rem 0.5rem; /* Snug vertical and horizontal padding to avoid overflow */
        font-size: 0.72rem; /* Compact clean typography */
        white-space: nowrap; /* Avoid wrapping button text */
        flex: 1; /* Both buttons scale to equal width */
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .scroll-down-indicator {
        display: none; /* Hide on small screens to save space */
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .whatsapp-floating-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}
