/* CSS RESET & VARIABLES */
:root {
    --primary-red: #D32F2F; /* Automotive Logo Red */
    --primary-red-hover: #B71C1C;
    --dark-bg: #1A1A1A;
    --light-bg: #F8F9FA;
    --text-color: #333;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

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

body.rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}
.text-red { color: var(--primary-red); }
.text-white,
.text-white h2,
.text-white p { 
    color: var(--white) !important; 
}
.icon-red { color: var(--primary-red); margin-bottom: 15px;}
.italic { font-style: italic; }

/* NAVBAR */
.navbar {
    background: #A80000; /* أحمر متناسق مع الشعار */
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.03);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #FFCDD2;
}
.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}
.btn-primary:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
}
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1550355291-bbee04a92027?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* SECTIONS COMMON */
.section {
    padding: 5rem 0;
}
.bg-light {
    background-color: var(--light-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.2rem;
}
.subtitle {
    color: #666;
    font-size: 1.05rem;
}
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-red);
    margin: 0.5rem auto 1rem auto;
}
.bg-white {
    background-color: var(--white);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s, border-bottom 0.3s;
}
.about-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-red);
}
.ceo-word {
    background: var(--dark-bg);
    color: var(--white);
}
.ceo-word h3 { color: var(--white); }

/* BRANCHES SECTION (NEW CARDS DESIGN) */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.branch-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative;
    border-top: 4px solid var(--primary-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.12);
}

.featured-branch {
    border-top-color: var(--dark-bg);
}

.branch-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.rtl .branch-badge {
    right: 20px;
    left: auto;
}
body:not(.rtl) .branch-badge {
    left: 20px;
    right: auto;
}

.text-badge-red {
    background: var(--primary-red);
    color: var(--white);
}
.text-badge-dark {
    background: var(--dark-bg);
    color: var(--white);
}

.branch-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.branch-location {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.branch-info-list {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-title {
    font-weight: 700;
    color: var(--dark-bg);
}

.info-value {
    color: #555;
}

.branch-desc {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
}

/* SALES CHANNELS SECTION */
.sales-section {
    background: var(--dark-bg);
    color: var(--white);
}
.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.sales-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.sales-card:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}
.sales-card i {
    color: var(--primary-red);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.sales-card:hover i {
    color: var(--white);
}
.sales-card h4 {
    color: var(--white);
}

/* FOOTER */
.footer {
    background: #111;
    color: #ccc;
    padding: 4rem 0 0 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand h2 { color: var(--white); }
.footer-contact h3 { color: var(--white); margin-bottom: 1rem; }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.footer-bottom .powered-by {
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #A80000;
        text-align: center;
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2rem; }
}

/* تنسيق الخريطة المصغرة والزر العائم داخل كروت الفروع */
.map-box {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.2rem;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay-btn {
    position: absolute;
    bottom: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rtl .map-overlay-btn {
    right: 10px;
    left: auto;
}

body:not(.rtl) .map-overlay-btn {
    left: 10px;
    right: auto;
}

.map-overlay-btn:hover {
    background: var(--dark-bg);
    color: var(--white);
    transform: translateY(-2px);
}