:root {
    --primary-color: #721c24;
    --secondary-color: #c49a6c;
    --text-color: #333;
    --light-bg: #f9f9f9;
}

body {
    font-family: 'Droid Arabic Naskh', serif; 
    color: var(--text-color);
    background-color: #fff;
    padding-top: 76px;
}

/* English Font Override */
body.lang-en {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    height: 80px;
}
.navbar-brand img { height: 55px; width: auto; }
.company-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 10px;
}
body.lang-en .company-name { margin-right: 0; margin-left: 10px; }

/* Language Button */
.lang-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 5px;
}
.lang-btn:hover { background: var(--primary-color); color: #fff; }

/* Offcanvas Menu */
.offcanvas { background-color: #fff; }
.offcanvas-header { border-bottom: 1px solid #eee; padding: 20px; }
.offcanvas-body .nav-link {
    font-size: 1.1rem; font-weight: 600; color: #333;
    padding: 15px 0; border-bottom: 1px solid #f0f0f0; transition: 0.3s;
}
.offcanvas-body .nav-link:hover, .offcanvas-body .nav-link.active { color: var(--primary-color); }
.offcanvas-body .nav-link:hover { padding-right: 10px; }
body.lang-en .offcanvas-body .nav-link:hover { padding-right: 0; padding-left: 10px; }

/* Store Button Mobile */
.mobile-store-btn {
    background-color: var(--primary-color); color: #fff !important;
    text-align: center; border-radius: 8px; margin-top: 20px; border: none;
}
.mobile-store-btn:hover { background-color: var(--secondary-color); color: #fff !important; }

/* Hero Section */
.hero-section {
    /* Updated dark background overlay */
    background: linear-gradient(rgba(114, 28, 36, 0.95), rgba(114, 28, 36, 0.95)), url('https://source.unsplash.com/1600x900/?warehouse,logistics');
    background-size: cover; background-position: center;
    height: 500px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
}
.hero-content h1 { font-weight: 700; font-size: 2.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-section { height: 400px; }
    .company-name { font-size: 1rem; }
}

/* Buttons */
.btn-custom {
    background-color: var(--secondary-color); color: #fff;
    padding: 12px 30px; font-weight: bold; border-radius: 5px; border: none; transition: 0.3s;
}
.btn-custom:hover { background-color: #a88258; color: #fff; }

/* Sections Common */
.section-title {
    text-align: center; color: var(--primary-color); margin-bottom: 40px; font-weight: 700; position: relative;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 4px;
    background-color: var(--secondary-color); margin: 15px auto 0;
}

/* Products */
.product-card {
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    padding: 30px 20px; text-align: center; transition: 0.3s; height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.product-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.product-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }

/* Features */
.features-section { background-color: var(--light-bg); padding: 60px 0; }
.feature-box { text-align: center; padding: 20px; margin-bottom: 20px; }
.feature-icon-circle {
    width: 70px; height: 70px; background-color: var(--primary-color);
    color: var(--secondary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px;
}

/* Brands Section */
.brands-section { 
    padding: 60px 0; 
    background-color: #fff; /* خلفية بيضاء للقسم */
}

/* الصندوق الموحد لكل ماركة */
.brand-box {
    width: 100%;
    height: 180px; /* ارتفاع ثابت وموحد لجميع الماركات */
    background-color: #fff; /* لون خلفية الصندوق */
    border: 1px solid #eee; /* إطار خفيف */
    border-radius: 12px; /* زوايا دائرية */
    display: flex; /* لتمكين المحاذاة المرنة */
    align-items: center; /* توسيط عمودي */
    justify-content: center; /* توسيط أفقي */
    padding: 20px; /* مسافة داخلية لعدم التصاق الشعار بالحواف */
    transition: all 0.3s ease; /* تأثير حركي ناعم */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* ظل خفيف */
}

/* تأثير عند مرور الماوس على الصندوق */
.brand-box:hover {
    transform: translateY(-5px); /* يرتفع قليلاً للأعلى */
    border-color: var(--secondary-color); /* يتغير لون الإطار */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* يزيد الظل */
}

/* تنسيق صورة الشعار نفسها */
.brand-logo {
    max-width: 100%; /* العرض لا يتجاوز الصندوق */
    max-height: 100%; /* الارتفاع لا يتجاوز الصندوق */
    object-fit: contain; /* السحر كله هنا: يجعل الصورة تتناسب داخل الإطار دون مط */
    filter: grayscale(100%); /* يجعل الشعار أبيض وأسود مبدئياً (اختياري) */
    opacity: 0.8;
    transition: 0.3s;
}

/* عند مرور الماوس، يظهر الشعار بلونه الأصلي */
.brand-box:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05); /* تكبير بسيط للشعار */
}

/* Retail CTA */
.retail-section { background-color: var(--primary-color); color: #fff; padding: 50px 0; text-align: center; }
.retail-btn {
    background-color: #fff; color: var(--primary-color); font-size: 1.1rem;
    padding: 12px 35px; border-radius: 50px; text-decoration: none;
    display: inline-block; margin-top: 20px; font-weight: bold;
}

/* Branches */
.branches-section { padding: 60px 0; background-color: #fff; }
.branch-card {
    border: 2px solid var(--secondary-color); border-radius: 15px;
    padding: 25px; height: 100%; margin-bottom: 20px;
}
.branch-title {
    color: var(--primary-color); font-weight: 700; margin-bottom: 20px;
    border-bottom: 1px solid #eee; padding-bottom: 15px; font-size: 1.3rem;
}
.contact-item { margin-bottom: 15px; display: flex; align-items: center; }
.contact-item i { color: var(--secondary-color); margin-left: 10px; width: 20px; }
body.lang-en .contact-item i { margin-left: 0; margin-right: 10px; }

.map-btn {
    display: block; width: 100%; text-align: center; background-color: #f1f1f1;
    color: #333; padding: 10px; border-radius: 5px; text-decoration: none;
    margin-top: 20px; transition: 0.2s;
}

/* Footer */
footer { background-color: #222; color: #ccc; padding: 50px 0 20px; }
footer h5 { color: #fff; margin-bottom: 20px; font-weight: 700; }
footer a { color: #ccc; text-decoration: none; display: block; margin-bottom: 10px; }
.copyright { border-top: 1px solid #444; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.9rem; }