/* --- Brand Variables --- */
:root {
    --primary: #C6BA32; /* Yellow-Green from Logo */
    --secondary: #425829; /* Dark Olive from Logo */
    --gradient: linear-gradient(135deg, #7b993f 0%, #C6BA32 50%, #7b993f 100%);
    --accent: #D4C735; 
    --text-dark: #111827;
    --text-light: #ffffff;
    --bg-light: #f4f6f0; 
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Montserrat', 'Cairo', sans-serif; 
    color: var(--text-dark); 
    font-size: 1.15rem;
    line-height: 1.8;
    background-color: #ffffff;
    overflow-x: hidden; 
}

/* Bilingual Font Switching */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    font-family: 'Cairo', sans-serif;
}
html[lang="en"] body, html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
    font-family: 'Montserrat', sans-serif;
}

.hidden { display: none !important; }

h1, h2, h3, h4 { font-weight: 800; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: auto; }

section { padding: 100px 0; } 
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; color: var(--secondary); margin-bottom: 15px; }
.section-title p { color: #4b5563; max-width: 700px; margin: auto; font-size: 1.2rem; }

/* --- Header & Nav (Desktop) --- */
header {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    padding: 20px 0; 
    transition: var(--transition); background: transparent;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-wrapper { 
    display: flex; justify-content: space-between; align-items: center; position: relative;
    direction: ltr; /* Logo on Left, Actions on Right */
}

.logo img { height: 75px; width: auto; transition: var(--transition); }
.logo-img-color { display: none; }
.logo-img-white { display: block; }

header.scrolled .logo img { height: 60px; }
header.scrolled .logo-img-white { display: none; }
header.scrolled .logo-img-color { display: block; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 600; font-size: 1.1rem; }
header.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }
header.scrolled .nav-links a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 20px; direction: ltr; }

/* Language Switcher Styling */
.lang-switch { 
    display: flex; gap: 4px; padding: 4px; align-items: center; direction: ltr;
    background: rgba(0, 0, 0, 0.2); border-radius: 30px; 
    backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); 
}
header.scrolled .lang-switch {
    background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1);
}
.lang-switch .divider { display: none; }
.lang-switch button { 
    font-size: 0.95rem; padding: 6px 15px; border-radius: 20px; 
    color: white; font-weight: 600; opacity: 1; transition: var(--transition);
    background: transparent; border: none; cursor: pointer;
}
header.scrolled .lang-switch button { color: var(--text-dark); }
.lang-switch button.active { 
    background: var(--primary) !important; color: white !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* Desktop Whatsapp Button */
.whatsapp-btn {
    background: var(--gradient); color: white; 
    padding: 10px 25px; border-radius: 50px;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(198, 186, 50, 0.4); font-weight: 800;
    z-index: 1001; 
}
.whatsapp-btn:hover { background: var(--secondary); color: white; transform: scale(1.05); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; color: var(--primary); font-size: 1.8rem; cursor: pointer; z-index: 1001; }

.mobile-only { display: none; } /* Hide mobile items on desktop */

/* --- Buttons --- */
.btn {
    padding: 15px 35px; border-radius: 8px; font-weight: 700; font-size: 1.1rem;
    display: inline-block; cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(198,186,50,0.3); }
.btn-primary:hover { background: var(--secondary); color: white; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(66,88,41,0.3); border-color: var(--primary); }
.btn-secondary { background: transparent; color: var(--secondary); border-color: var(--primary); }
.hero .btn-secondary { color: var(--text-light); }
.btn-secondary:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-image: url('../assets/images/hero_image.jpeg');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; text-align: center; color: var(--text-light);
    position: relative;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(66,88,41,0.57) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; width: 100%; padding: 0 20px;}
.hero h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.3; color: var(--text-light); text-align: center;}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; max-width: 800px; margin-inline: auto; opacity: 0.95; color: #ddd; text-align: center; }
.hero-btns { display: flex; gap: 20px; text-align: center; justify-content: center; flex-wrap: wrap; }

/* --- About Section --- */
.about-layout { display: flex; align-items: center; gap: 60px; margin-bottom: 60px; }
.about-text-content { flex: 1; text-align: start; }
.about-text-content p { margin-bottom: 20px; color: #4b5563; }
.about-image { flex: 1; position: relative; width: 100%; }
.about-image img { width: 100%; max-width: 550px; border-radius: 20px; box-shadow: 0 20px 50px rgba(198,186,50,0.2); border: 2px solid var(--primary); }

.counters-wrapper { background: var(--secondary); color: white; padding: 50px; border-radius: 20px; display: flex; justify-content: space-around; gap: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); flex-wrap: wrap;}
.counter-item { text-align: center; flex: 1; min-width: 150px;}
.counter-item h3 { font-size: 3.5rem; color: var(--primary); margin-bottom: 5px; direction: ltr; }
.counter-item p { font-size: 1.2rem; font-weight: 700; color: #ccc; }

/* --- Services/Products Section --- */
.products { background: var(--bg-light); text-align: center; } 
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.card { 
    background: white; padding: 40px 25px; border-radius: 20px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: var(--transition);
    border: 1px solid #edf2f7; position: relative; overflow: hidden;
}
.card-brand { font-size: 0.9rem; color: var(--secondary); font-weight: 700; margin-bottom: 15px; display: block; text-transform: uppercase; letter-spacing: 1px; }

.card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(66,88,41,0.15); }
.card:hover::before { transform: scaleX(1); }

.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--secondary); }

/* --- CTA Section --- */
.cta { 
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2510 100%);
    text-align: center; color: var(--text-light); padding: 80px 0; border-top: 3px solid var(--primary); border-bottom: 3px solid var(--primary);
}
.cta h2 { font-size: 2.5rem; margin-bottom: 20px; color: white; text-align: center; }
.cta p { margin-bottom: 30px; font-size: 1.2rem; color: #ccc; text-align: center;}
.cta .btn-primary { background: var(--primary); color: white; border: 2px solid var(--primary); }
.cta .btn-primary:hover { background: transparent; color: var(--primary); }

/* --- Contact Section --- */
.contact-layout { display: flex; gap: 50px; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.info-card { 
    background: white; padding: 25px; border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 20px; transition: var(--transition);
    border: 1px solid #edf2f7; 
    border-left: 4px solid transparent; /* LTR orientation */
}
.info-card:hover { transform: translateX(10px); box-shadow: 0 10px 30px rgba(198,186,50,0.1); border-left-color: var(--primary); }

.info-icon { min-width: 60px; height: 60px; background: var(--bg-light); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--secondary); }
.info-content { text-align: start; }
.info-content h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--secondary); }
.info-content a, .info-content span { color: #4b5563; font-weight: 600; font-size: 1rem; }
.info-content a:hover { color: var(--primary); }

.contact-form-container { 
    flex: 1.2; background: white; padding: 40px; border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(66,88,41,0.08); border: 1px solid #edf2f7; width: 100%;
}
.contact-form-container h3 { font-size: 2rem; margin-bottom: 25px; color: var(--secondary); text-align: start;}

form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; gap: 20px; }
.input-group input { flex: 1; width: 100%; }
input, textarea { 
    width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px; 
    font-family: inherit; font-size: 1rem; background: #fafafa; transition: var(--transition);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(198,186,50,0.1); }
button[type="submit"] { 
    background: var(--gradient); color: white; border: none; padding: 15px; 
    border-radius: 10px; cursor: pointer; font-size: 1.2rem; font-weight: 800; transition: var(--transition); width: 100%;
}
button[type="submit"]:hover { box-shadow: 0 10px 25px rgba(198,186,50,0.3); transform: translateY(-3px); }

.form-message { display: none; padding: 15px; margin-top: 15px; border-radius: 8px; font-weight: bold; text-align: center; }
.form-message.success { display: block; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-message.error { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Footer --- */
footer { background: var(--secondary); color: white; text-align: center; padding: 50px 0 30px; border-top: 2px solid var(--primary);}
footer .logo-img { height: 90px; margin-bottom: 20px; } 
footer p { opacity: 0.7; font-size: 1rem; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-layout, .contact-layout { flex-direction: column; }
    .about-image { text-align: center; margin-top: 20px; }
    .counters-wrapper { padding: 30px; }
}

@media (max-width: 768px) {
    header .container { width: 100%; padding: 0 15px; max-width: 100%; }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }

    /* Mobile Header Layout: Lang Switch Left, Logo Center, Hamburger Right */
    .nav-wrapper { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; direction: ltr; }
    
    .header-actions { order: 1; justify-self: start; }
    .logo { order: 2; margin: 0 auto; justify-self: center; }
    .menu-toggle { order: 3; display: block; font-size: 1.6rem; margin: 0; justify-self: end; }
    header.scrolled .menu-toggle { color: var(--text-dark); }
    
    .logo img { height: 45px; } 
    
    /* WhatsApp button in Hamburger Menu */
    .whatsapp-btn-mobile { 
        display: flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--gradient); color: white; padding: 10px 15px; 
        border-radius: 5px; font-weight: 600; font-size: 1rem; margin-top: 10px; 
    }
    
    .nav-links {
        position: absolute; top: 65px; left: 0; width: 100%; background: white;
        flex-direction: column; gap: 0; text-align: center; max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 0 0 15px 15px; z-index: 999;
    }
    .nav-links.active { max-height: 400px; border-top: 1px solid #edf2f7; padding-bottom: 15px;}
    .nav-links li { padding: 12px 15px; width: 100%; border-bottom: 1px solid #edf2f7; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { color: var(--text-dark); }
    .nav-links a:hover { color: var(--primary); }

    section { padding: 60px 0; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1.1rem; }

    .hero { height: 100vh; display: flex; align-items: center; text-align: center; padding-top: 60px; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.3; margin-top: 0; text-align: center;}
    .hero h1 span { color: var(--primary); -webkit-text-fill-color: initial; } 
    .hero p { font-size: 1rem; margin-bottom: 30px; max-width: 100%; padding: 0 10px; color: #ddd; text-align: center;}
    .hero-btns { display: flex; gap: 15px; justify-content: center; flex-direction: row; width: 100%; }
    .hero-btns .btn { width: auto; padding: 12px 20px; font-size: 1rem; flex: 1; max-width: 160px; text-align: center; }

    .counters-wrapper { flex-direction: column; gap: 30px; padding: 40px 20px; }
    .counter-item h3 { font-size: 2.5rem; }
    .input-group { flex-direction: column; gap: 20px; }
    .contact-form-container { padding: 30px 20px; }
    .cta h2 { font-size: 1.8rem; }
    .cta p { font-size: 1.1rem; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; } 
}
