/* CSS Reset & Variables */
:root {
    --primary-color: #192756;
    --primary-light: #24346e;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    /* Gold/Amber for contrast */
    --text-color: #334155;
    --light-text: #94a3b8;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.highlight {
    color: var(--accent-color);
}

.subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-link.btn-primary {
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero.jpg');
    /* Modern car stock image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 39, 86, 0.9) 0%, rgba(25, 39, 86, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Brands Section */
/* Brands Accordion */
.brands-accordion {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-accordion-item {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.brand-accordion-item.active {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.brand-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: var(--white);
    min-height: 120px;
    padding: 0;
    position: relative;
    transition: background 0.3s;
}

.brand-header:hover {
    background: #f8fafc;
}

.brand-header-image {
    width: 40%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.brand-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Gradient to blend image with white background */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 95%);
}

.brand-header-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem auto;
}

.brand-header .toggle-icon {
    font-size: 1.5rem;
    color: var(--light-text);
    transition: transform 0.3s ease;
    background: var(--light-gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.brand-accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white);
}

.brand-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    padding: 0 2rem;
    opacity: 0;
}

.brand-accordion-item.active .brand-body {
    max-height: 2000px;
    /* Safe upper limit */
    padding: 2rem;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

.brand-description {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.brand-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    /* Blue background with low opacity */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.feature-icon-wrapper i {
    font-size: 1.2rem;
    color: #0056b3;
    /* Darker blue for icon */
}

.feature-icon-wrapper span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* Gallery Styles */
.models-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    height: 220px;
    /* > 200px as requested */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .models-gallery {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.brand-cta {
    text-align: center;
}

.model-compact {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.model-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.model-compact-img {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.model-compact h4 {
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.brand-cta {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        min-height: auto;
    }

    .brand-header-image {
        width: 100%;
        height: 150px;
    }

    .brand-header-image::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    }

    .brand-header-content {
        width: 100%;
    }
}

/* Contact Section */
.contact {
    background-color: #f1f5f9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.info-list {
    margin-top: 2.5rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(25, 39, 86, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-form-card {
    background: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

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

    .nav-item {
        margin: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}