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

:root {
    --primary-color: #dc2626;
    --primary-light: #ef4444;
    --primary-dark: #b91c1c;
    --secondary-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* WhatsApp float button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp green */
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.18);
    z-index: 1100; /* above header (1000) */
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
    outline: none;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: white;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 64px;
        height: 64px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    display: block;
    height: 70px; /* fits within header padding */
    width: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo img {
        height: 70px;
    }
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    min-height: 48px;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* make both columns equal height */
}

/* Desktop-only: nudge logo further left while keeping a small gap from viewport edge */
@media (min-width: 1024px) {
    .header .container {
        padding-left: 0px; /* smaller left padding on desktop */
        padding-right: 0px;
    }

    /* If extra nudge is needed, you can use small negative margin on nav-brand */
    .nav-brand {
        margin-left: 6px;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    /* make the illustration fill the available height of the column, with a sensible max */
    max-width: 520px;
    height: auto;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* default gradient fallback; can be overridden by setting --hero-image on .hero-illustration */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-illustration[style*="--hero-image"] {
    background-size: cover;
    background-position: center center;
}

.hero-illustration[src] {
    max-width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Ensure the content column vertically centers its content and matches height */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    .hero-illustration {
        max-width: 520px;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-illustration {
        max-width: 100%;
        min-height: 220px;
    }
}

/* hero image styles: use .hero-illustration element or set --hero-image on it for background */

/* Add to your modelsCSS */
.model-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 1.5rem;
}
.model-img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.about, .services, .why-choose, .explore, .contact, .partner {
    padding: 80px 0;
}

.about {
    background: var(--background-light);
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card, .feature-card {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon, .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3, .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p, .feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-choose {
    background: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--background);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 2.5rem;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Vehicle Categories */
.explore {
    background: var(--background);
    position: relative;
}

.explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, rgba(239, 68, 68, 0.02) 100%);
    pointer-events: none;
}

.vehicle-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.vehicle-card {
    background: var(--background);
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover::before {
    opacity: 0.05;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.vehicle-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    display: block;
    position: relative;
    z-index: 1;
}

.vehicle-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.vehicle-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.vehicle-brands {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.contact-item strong {
    color: var(--primary-color);
}

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

/* Partner Section */
.partner {
    background: var(--background-light);
    text-align: center;
}

.partner-content {
    max-width: 600px;
    margin: 0 auto;
}

.partner-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-sections {
    display: flex;
    gap: 4rem;
    flex: 1;
    justify-content: flex-end;
}

.footer-section h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #9ca3af;
}

.contact-item strong {
    color: white;
}

.footer-section p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero .container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-illustration {
        max-width: 300px;
        min-height: 200px;
    }

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

    .about, .services, .why-choose, .explore, .contact, .partner {
        padding: 60px 0;
    }

    .services-grid, .features-grid, .vehicle-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-sections {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-cta {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 200px;
    }

    .vehicle-card {
        padding: 2rem 1.5rem;
    }

    .service-card, .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Touch-friendly interactions */
@media (hover: none) {
    .vehicle-card:active,
    .service-card:active,
    .feature-card:active {
        transform: scale(0.95);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #b91c1c;
        --text-primary: #000000;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Brands page tweaks: ensure brand images and labels are centered and consistent */
.brands-grid .brand-card .brand {
    display: flex;
    flex-direction: column;
    align-items: center; /* center image and text horizontally */
    justify-content: center;
    gap: 1rem;
}

.brands-grid .brand-card .brand .brand-img {
    display: block;
    max-width: 160px; /* constrain width so images don't stretch the layout */
    max-height: 80px; /* keep a consistent height across brands */
    width: auto;
    height: auto;
    object-fit: contain; /* preserve aspect ratio */
}

/* Small screens: make images slightly larger and keep centering */
@media (max-width: 480px) {
    .brands-grid .brand-card .brand .brand-img {
        max-width: 220px;
        max-height: 110px;
    }
}