:root {
    --primary-color: #2D5A27;
    --secondary-color: #8B4513;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-bg: #F9FAF8;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

[dir="rtl"] {
    --font-family: 'Cairo', sans-serif;
}

[dir="ltr"] {
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--accent-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-switcher a {
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--white) !important;
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vision-mission .card {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .vision-mission .card {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.prod-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.prod-info {
    padding: 20px;
}

.prod-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Why Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.why-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-badges img {
    height: 45px;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

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

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form .btn {
    border: none;
    cursor: pointer;
}

.form-feedback {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: #222;
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
    }
    
    .navbar.scrolled .menu-toggle {
        color: var(--primary-color);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        z-index: 999;
        display: flex; /* Always flex but hidden by right -100% */
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    [dir="rtl"] .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        color: var(--text-color) !important;
        font-size: 1.2rem;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
}
