/* ===================== Reset ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand colors extracted from Grande Vallée Cars logo */
    --primary: #1a3a5c;      /* Deep Navy Blue — car body */
    --secondary: #4da6d9;    /* Sky Blue — car windows */
    --accent: #7dc242;       /* Fresh Green — swoosh lines */
    --gold: #7dc242;         /* Brand Green (replaces gold) */
    --gray-mid: #6c757d;     /* Slate Gray — subtitle text */

    --light: #f0f6fb;
    --dark: #0f1e2d;
    --white: #ffffff;

    /* Brand Gradient: Navy → Sky Blue */
    --gradient: linear-gradient(
        135deg,
        #4da6d9 25%,
        #1e5080 50%,
        #1a3a5c 75%
    );

    /* Accent gradient: Green sweep */
    --gradient-green: linear-gradient(
        135deg,
        #5aab28 0%,
        #7dc242 100%
    );
}

/* ===================== Body ===================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    transition: all 0.3s ease;
}

body.rtl { direction: rtl; text-align: right; }

/* ===================== Container ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== Header ===================== */
header {
    background: var(--gradient);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.35);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 260px;
    height: auto;
    background: transparent;
    padding: 0;
}

.logo-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.header-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid rgba(255,255,255,0.25);
    padding-left: 20px;
}

.header-phone {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--accent);
}

/* ===================== Lang Switch ===================== */
.lang-switch {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(10px);
}

.lang-switch span {
    margin: 0 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-switch span:hover {
    color: var(--accent);
}

/* ===================== Hero Section ===================== */
.hero {
    background: linear-gradient(135deg, #e8f4fb 0%, #f0f6fb 100%);
    color: var(--primary);
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: none;
    font-weight: 700;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-green);
    border-radius: 2px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
    color: var(--gray-mid);
    text-shadow: none;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== Infinite Carousel ===================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 30px;
    overflow: hidden;
    border-radius: 15px;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex: 0 0 320px;
    margin: 0 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(26,58,92,0.3);
}

.carousel-item h4 {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-green);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(125, 194, 66, 0.45);
    transition: all 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(125, 194, 66, 0.65);
}

/* ===================== Sections ===================== */
section {
    scroll-margin-top: 100px;
    padding: 60px 0;
}

section:nth-child(even) {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-green);
    border-radius: 2px;
}

/* ===================== Cars Grid ===================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.car-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26,58,92,0.1);
    transition: all 0.4s;
}

.car-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(26,58,92,0.2);
}

.car-image {
    height: 220px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    padding: 25px;
}

.car-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.car-features {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.feature {
    background: var(--light);
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

.car-price {
    font-size: 28px;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
}

.reserve-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 8px 15px rgba(26,58,92,0.25);
    transition: all 0.3s;
}

.reserve-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(26,58,92,0.35);
    background: var(--gradient-green);
}

/* ===================== Reservation Form ===================== */
.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26,58,92,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(125, 194, 66, 0.25);
}

.price-display {
    background: var(--gradient);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    color: white;
}

.price-display h3 {
    color: white;
    margin-bottom: 10px;
}

.price-display .total {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent);
}

/* ===================== Contact Section ===================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26,58,92,0.1);
    transition: all 0.3s;
    border-top: 4px solid var(--accent);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26,58,92,0.2);
}

.contact-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ===================== Floating WhatsApp Button ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===================== Footer ===================== */
footer {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 50px 20px;
    font-size: 16px;
    border-top: 4px solid var(--accent);
}

/* ===================== Utilities ===================== */
.hidden {
    display: none !important;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .reservation-form {
        padding: 20px;
    }

    .carousel-item {
        flex: 0 0 280px;
    }
}

html {
    scroll-behavior: smooth;
}