:root {
    --primary-green: #0F421F;
    --primary-light-green: #1e6635;
    --accent-gold: #C5A059;
    --primary-dark: #1b1a24;
    --light-gray: #caced4;
    --dark-text: #222222;
    --gray-text: #555555;
    --white: #FFFFFF;
    --bg-main: #F2F4F3;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-main);
}

body.lang-en {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    text-align: left;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Language Toggle Logic */
.en { display: none; }
body.lang-en .ar { display: none; }
body.lang-en .en { display: block; }
body.lang-en span.en { display: inline; }
span.ar { display: inline; }
body.lang-en span.ar { display: none; }

/* --- Header --- */
header {
    background-color: var(--light-gray);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo-area { display: flex; align-items: center;  }
.logo img { height: 80px; width: auto; }   
.logo-text span { font-size: 1.4rem; color: var(--primary-green); font-weight: 600; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; color: var(--dark-text); position: relative; padding: 5px 0; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-green); }

.lang-toggle {
    background: var(--bg-main);
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-green);
    font-family: inherit;
    transition: var(--transition);
}
.lang-toggle:hover { background: var(--primary-green); color: var(--white); }

.mobile-lang-btn { display: none; }
.mobile-actions { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary-green); }

/* --- Hero --- */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(15, 66, 31, 0.92), rgba(15, 66, 31, 0.8)), url('./src/hero.webp') center/cover;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}
.hero h2 { font-size: 3rem; margin-bottom: 20px; font-weight: 900; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; opacity: 0.9; line-height: 1.8; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
}
.btn-gold { background-color: var(--accent-gold); }
.btn-gold:hover { background-color: #b08d4e; transform: translateY(-2px); }
.btn-outline-white { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary-green); }

/* --- Products --- */
.products { padding: 100px 0; background-color: var(--primary-dark); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 10px; }
.section-header .gold-line { width: 80px; height: 4px; background-color: var(--accent-gold); margin: 0 auto; border-radius: 2px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.product-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(15, 66, 31, 0.12); border-color: var(--accent-gold); }

.product-img { height: 220px; width: 100%; }
.img-standard { background: linear-gradient(135deg, #e0e0e0, #f5f5f5); }
.img-moisture { background: linear-gradient(135deg, #b2dfdb, #e0f2f1); }
.img-fireproof { background: linear-gradient(135deg, #f8bbd0, #fce4ec); }

.product-info { padding: 25px; text-align: center; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-green); }
.product-info p { color: var(--gray-text); margin-bottom: 25px; font-size: 0.95rem; }

.product-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 4px; }
.btn-data-sheet { background-color: var(--bg-main); color: var(--primary-green); border: 1px solid #ddd; }
.btn-data-sheet:hover { border-color: var(--primary-green); background: var(--primary-green); color: var(--white); }
.btn-whatsapp { background-color: #25D366; color: var(--white); }
.btn-whatsapp:hover { background-color: #1da851; }

/* --- About --- */
.about-us { padding: 100px 0; background-color: var(--primary-green); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 20px; }
.about-content p { color: var(--white); margin-bottom: 15px; line-height: 1.8; }
.about-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item h4 { font-size: 2.5rem; color: var(--accent-gold); font-weight: 900; }
.stat-item span { color: var(--white); font-size: 0.9rem; }
.about-img-box { height: 400px; border-radius: 8px; overflow: hidden; position: relative; }

/* --- Why Us --- */
.why-us { padding: 100px 0; background-color: var(--primary-dark); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}
.feature-card:hover { border-color: var(--accent-gold); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-icon {
    width: 80px; height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-green);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background-color: var(--primary-green); color: var(--white); }
.feature-card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.feature-card p { color: var(--gray-text); font-size: 0.95rem; }

/* --- Contact --- */
/* --- Contact Cards Section --- */
.contact { padding: 100px 0; background-color: var(--primary-green);color: var(--white); }
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-card-item {
    background-color: rgba(255, 255, 255, 0.1); /* شفافية خفيفة على الأخضر */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.contact-card-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.contact-card-item h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Zrar CTA Kbeer */
.btn-cta-big {
    padding: 20px 50px !important;
    font-size: 1.3rem !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Mobile adjustment for contact cards */
@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr 1fr; /* كارتين في الموبايل */
    }
    .btn-cta-big {
        font-size: 1.1rem !important;
        padding: 15px 30px !important;
    }
}

/* --- Footer --- */
footer { background-color: #091f10; color: #aaa; padding: 40px 0; text-align: center; font-size: 0.9rem; }

/* --- Float WhatsApp --- */
.float-whatsapp {
    position: fixed; bottom: 30px; left: 30px;
    background-color: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999; transition: var(--transition);
}
body.lang-en .float-whatsapp { left: auto; right: 30px; }
.float-whatsapp:hover { transform: scale(1.1); background-color: #1da851; }

/* =========================================
   ACCESSIBILITY & PERFORMANCE BEST PRACTICES
   ========================================= */

/* Focus states for keyboard navigation (Accessibility) */
*:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Respect user motion preferences (Performance/Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .desktop-lang-btn { display: none; }
    .mobile-lang-btn { display: inline-block; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; right: 0; left: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h2 { font-size: 2rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-stats { justify-content: center; }
}


 