/* ============================================
   ALODHAIB PARTS - Design System
   Theme: Red + Navy (matching alodhaib.com.sa)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Brand Colors - Red Primary */
    --red-900: #7a0a1c;
    --red-800: #9b0d23;
    --red-700: #b50f28;
    --red-600: #C8102E;
    --red-500: #d42b45;
    --red-400: #e04560;
    --red-300: #e57373;
    --red-200: #f0a0a0;
    --red-100: #f8d0d0;
    --red-50: #fef2f2;

    /* Navy - Secondary/Dark */
    --navy-900: #0F1A2E;
    --navy-800: #152640;
    --navy-700: #1c3356;
    --navy-600: #24436e;
    --navy-500: #1e3a5f;
    --navy-400: #2a4a73;
    --navy-300: #3d6390;
    --navy-200: #6b8eb5;
    --navy-100: #a3bdd6;
    --navy-50: #dce8f3;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Functional */
    --bg-primary: var(--white);
    --bg-dark: var(--navy-900);
    --text-primary: var(--gray-900);
    --text-light: var(--white);
    --text-muted: var(--gray-600);
    --accent: var(--red-600);
    --accent-hover: var(--red-800);

    /* Spacing */
    --section-py: 80px;
    --container-max: 1200px;

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-ar);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="ltr"] body {
    font-family: var(--font-en);
}

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

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

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section Title ---------- */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--red-700);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red-600);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--red-800), var(--red-700));
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar-info a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.top-bar-info a:hover {
    color: var(--white);
}

.top-bar-info i {
    color: var(--red-400);
    font-size: 0.9rem;
}

.lang-switch {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav a {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--red-700);
    background: var(--red-50);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-800);
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--red-900) 0%, var(--red-700) 40%, var(--red-600) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(15,26,46,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

/* Animated car parts pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--red-400);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 30px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-badge i {
    color: rgba(255,255,255,0.7);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231,76,60,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 420px;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--red-400);
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ============================================
   BRANDS MARQUEE
   ============================================ */
.brands-section {
    padding: 48px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.brands-title {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brands-marquee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.brand-item {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-500);
    transition: all var(--transition-base);
    font-family: var(--font-en);
    letter-spacing: 1px;
}

.brand-item:hover {
    opacity: 1;
    color: var(--navy-600);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--section-py) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--red-700);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content h2 span {
    color: var(--accent);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.about-feature:hover {
    background: var(--navy-50);
}

.about-feature i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy-800);
}

.about-visual {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.about-image-placeholder .about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

[dir="ltr"] .about-floating-card {
    left: auto;
    right: -20px;
}

.about-floating-card .afc-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--red-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.about-floating-card .afc-text strong {
    display: block;
    font-size: 1.5rem;
    color: var(--navy-800);
    line-height: 1;
}

.about-floating-card .afc-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height var(--transition-base);
    border-radius: 0 0 2px 2px;
}

[dir="ltr"] .service-card::before {
    right: auto;
    left: 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy-600);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--red-600));
    color: var(--white);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-section {
    padding: var(--section-py) 0;
    background: linear-gradient(135deg, var(--red-900), var(--red-700));
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(15,26,46,0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.why-section .section-title h2 {
    color: var(--white);
}

.why-section .section-title h2::after {
    background: var(--red-400);
}

.why-section .section-title p {
    color: rgba(255,255,255,0.75);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.why-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-base);
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.why-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: all var(--transition-base);
}

.why-card:hover .why-card-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ============================================
   CAR BRANDS SECTION
   ============================================ */
.car-brands-section {
    padding: var(--section-py) 0;
    background: var(--white);
}

.car-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.car-brand-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition-base);
}

.car-brand-card:hover {
    border-color: var(--navy-300);
    background: var(--navy-50);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.car-brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--navy-600);
    box-shadow: var(--shadow-sm);
}

.car-brand-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}

.cta-card {
    background: linear-gradient(135deg, var(--red-800), var(--red-900));
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231,76,60,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-white {
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   BRANCHES SECTION
   ============================================ */
.branches-section {
    padding: var(--section-py) 0;
    background: var(--white);
}

.branch-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.branch-filter {
    padding: 8px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.branch-filter:hover {
    border-color: var(--navy-300);
    color: var(--navy-700);
}

.branch-filter.active {
    background: var(--red-600);
    border-color: var(--red-600);
    color: var(--white);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.branch-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.branch-card.hidden {
    display: none !important;
}

.branch-card:hover {
    border-color: var(--navy-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.branch-card-header {
    padding: 0;
}

.branch-badge {
    background: linear-gradient(135deg, var(--accent), var(--red-600));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

.branch-card-body {
    padding: 20px;
    flex: 1;
}

.branch-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-card-body h3 i {
    color: var(--accent);
    font-size: 0.9rem;
}

.branch-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.branch-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.branch-meta span {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-meta i {
    color: var(--navy-400);
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
}

.branch-card-footer {
    display: flex;
    border-top: 1px solid var(--gray-200);
}

.branch-card-footer a {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.branch-map-link {
    color: var(--navy-600);
    border-left: 1px solid var(--gray-200);
}

[dir="ltr"] .branch-map-link {
    border-left: none;
    border-right: 1px solid var(--gray-200);
}

.branch-map-link:hover {
    background: var(--navy-50);
    color: var(--navy-800);
}

.branch-call-link {
    color: var(--accent);
}

.branch-call-link:hover {
    background: rgba(231,76,60,0.05);
    color: var(--accent-hover);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--section-py) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--navy-300);
    background: var(--navy-50);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.contact-card a.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
}

.contact-card a.contact-link:hover {
    color: var(--accent-hover);
    gap: 12px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--navy-300);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-800);
    font-size: 1rem;
    gap: 16px;
    user-select: none;
}

.faq-question i {
    color: var(--accent);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: var(--gray-100);
}

.map-container {
    width: 100%;
    height: 350px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}

[dir="ltr"] .map-overlay {
    right: auto;
    left: 24px;
}

.map-overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 6px;
}

.map-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a::before {
    content: '‹';
    transition: transform var(--transition-fast);
    color: var(--accent);
}

[dir="ltr"] .footer-col ul li a::before {
    content: '›';
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 8px;
}

[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--red-300);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

[dir="ltr"] .scroll-top {
    left: auto;
    right: 30px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: all var(--transition-base);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}

[dir="ltr"] .whatsapp-btn {
    left: auto;
    right: 30px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats-grid {
        max-width: 360px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 20px auto 0;
        display: inline-flex;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .branches-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 60px;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-bar-info {
        gap: 16px;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }

    .navbar-nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

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

    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

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

    .car-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .map-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        max-width: none;
        border-radius: 0;
    }
}

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

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

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

    .car-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .branch-filters {
        gap: 6px;
    }

    .branch-filter {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}