/* ============================================
   شركة الأبرار الحديثة - Company Colors
   Primary: #C41E3A (Red), #1a1a1a (Black)
   ============================================ */

:root {
    --primary-red: #C41E3A;
    --primary-red-dark: #a01830;
    --primary-red-light: #e63950;
    --primary-black: #1a1a1a;
    --primary-black-light: #2d2d2d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--primary-black);
    background: var(--white);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', 'Tajawal', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle - داخل القائمة */
.lang-toggle {
    display: flex;
    gap: 5px;
    background: var(--gray-200);
    padding: 5px;
    border-radius: 30px;
    margin-inline-start: 15px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: 25px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-red);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--gray-200);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-black);
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-black);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(196,30,58,0.6) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196,30,58,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: var(--gray-100);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--gray-800);
}

/* Partners / Authorized Agent Section */
.partners {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-black-light) 100%);
    color: var(--white);
}

.partners .section-header h2 {
    color: var(--white);
}

.partners .section-header p {
    color: rgba(255,255,255,0.85);
}

.partners .title-underline {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.partner-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 40px 35px;
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196,30,58,0.2);
}

.partner-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.partner-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.partner-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

/* Vision, Mission, Goals */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vm-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-red);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-icon i {
    font-size: 2rem;
    color: var(--white);
}

.vm-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.vm-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
}

/* Products Section */
.products {
    background: var(--gray-100);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.products-cta {
    text-align: center;
    margin-top: 40px;
}

/* Products Page */
.page-hero {
    position: relative;
    height: 400px;
    margin-top: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(196,30,58,0.7) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.page-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.products-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-red);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.contact-card a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.cta-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.5);
}

.cta-btn:hover {
    background: var(--white);
    color: var(--primary-red);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-brand .partners {
    color: var(--primary-red-light);
    font-weight: 500;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red-light);
}

.footer-contact p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--primary-red-light);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* RTL / LTR Support */
body[dir="ltr"] .logo-section {
    flex-direction: row;
}

body[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: var(--transition);
        gap: 20px;
    }

    body[dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        right: 0;
    }

    body[dir="ltr"] .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .company-name {
        font-size: 0.95rem;
    }

    .lang-toggle {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card img {
        height: 180px;
    }

    .products-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-item img {
        height: 180px;
    }

    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .cta-contact {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .company-name {
        font-size: 0.85rem;
    }
}
