:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent-color: #81c784;
    --bg-light: #f4f7f4;
    --text-dark: #2c3e50;
    --text-muted: #666666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html[lang="en"], html[lang="tr"] { font-family: 'Poppins', sans-serif; }
html[lang="fa"] { font-family: 'Vazirmatn', sans-serif; }
html[lang="ar"] { font-family: 'Cairo', sans-serif; }

body { color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
.bg-white { background-color: var(--white); }

/* Top Info Bar */
.top-bar { background-color: var(--primary-dark); color: var(--white); padding: 8px 5%; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
[dir="ltr"] .top-info span { margin-right: 15px; margin-left: 0; }
[dir="rtl"] .top-info span { margin-left: 15px; margin-right: 0; }
.top-info a { color: var(--white); text-decoration: none; }
[dir="ltr"] .top-info i { margin-right: 5px; margin-left: 0; }
[dir="rtl"] .top-info i { margin-left: 5px; margin-right: 0; }
.top-info i { color: var(--accent-color); }

.lang-switch .lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--white); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: var(--transition); }
[dir="ltr"] .lang-switch .lang-btn { margin-left: 5px; }
[dir="rtl"] .lang-switch .lang-btn { margin-right: 5px; }
.lang-switch .lang-btn.active, .lang-switch .lang-btn:hover { background-color: var(--primary-light); border-color: var(--primary-light); }

/* Navigation */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text h1 { font-size: 1.5rem; color: var(--primary-dark); font-weight: 800; line-height: 1; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-color); }
.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--primary-dark); }

/* Hero Section */
.hero { background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../Images/100.avif'); background-size: cover; background-position: center; color: var(--white); padding: 100px 5% 120px; text-align: center; }
.hero h2 { font-size: 2.6rem; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 1.15rem; max-width: 750px; margin: 0 auto 30px; opacity: 0.9; }
.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn { padding: 12px 28px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: var(--transition); display: inline-block; cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary-dark); transform: translateY(-2px); }

/* Submit Button & Spinner */
.btn-block { width: 100%; border-radius: 6px; }
#btn-submit { display: flex; justify-content: center; align-items: center; gap: 8px; transition: background-color 0.3s ease; }
#btn-submit:disabled { background-color: #666666; cursor: not-allowed; opacity: 0.8; }

/* General Layouts */
section { padding: 70px 5%; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-dark); position: relative; display: inline-block; padding-bottom: 10px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--primary-color); }

/* Statistics Bar */
.stats { background-color: var(--primary-dark); color: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; padding: 50px 5%; }
.stat-item i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 10px; }
.stat-item .number { font-size: 2.2rem; font-weight: 700; }

/* About Grid */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.about-text h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 15px; }
.about-text p { margin-bottom: 15px; color: var(--text-muted); }
.features-list { list-style: none; margin-top: 15px; }
.features-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--primary-color); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.service-card { background: var(--white); padding: 30px 20px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-5px); border-bottom-color: var(--primary-color); }
.service-card i { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 15px; }

/* Sustainability */
.eco-commitment { background-color: var(--white); border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.eco-intro { text-align: center; max-width: 800px; margin: 0 auto; color: var(--text-muted); }
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.eco-box { background: var(--bg-light); padding: 20px; border-radius: 8px; text-align: center; }
.eco-box i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); height: 220px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); padding: 15px; font-size: 0.9rem; font-weight: 600; }

/* Branches */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.branch-card { background: var(--white); padding: 25px; border-radius: 10px; box-shadow: var(--shadow); }
[dir="ltr"] .branch-card { border-left: 5px solid var(--primary-color); }
[dir="rtl"] .branch-card { border-right: 5px solid var(--primary-color); }
.branch-card h3 { color: var(--primary-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

/* Contact Form */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { background: var(--primary-dark); color: var(--white); padding: 35px; border-radius: 10px; }
.contact-info h3 { margin-bottom: 20px; font-size: 1.5rem; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-item i { font-size: 1.3rem; color: var(--accent-color); }
.contact-form { background: var(--white); padding: 35px; border-radius: 10px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.form-group textarea { height: 110px; resize: vertical; }

/* Footer */
footer { background-color: #111; color: #aaa; padding: 40px 5% 20px; text-align: center; font-size: 0.9rem; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-links a { color: var(--white); background: #333; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); }
.social-links a:hover { background: var(--primary-color); }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; backdrop-filter: blur(3px); transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--white); padding: 40px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; transform: translateY(-30px) scale(0.95); transition: all 0.3s ease; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-icon i { font-size: 5rem; color: var(--primary-light); margin-bottom: 20px; }
.modal-content h3 { color: var(--primary-dark); margin-bottom: 15px; font-size: 1.6rem; font-weight: 700; }
.modal-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.05rem; }
.modal-content .btn { width: 100%; border-radius: 8px; font-size: 1.1rem; }
.error-icon i { color: #d32f2f; }
.btn-danger { background-color: #d32f2f; color: var(--white); border: none; width: 100%; border-radius: 8px; font-size: 1.1rem; padding: 12px 28px; cursor: pointer; transition: var(--transition); }
.btn-danger:hover { background-color: #b71c1c; transform: translateY(-2px); }

/* Floating WhatsApp Button */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #ffffff; border-radius: 50px; text-align: center; font-size: 32px; box-shadow: 2px 2px 10px rgba(0,0,0,0.15); z-index: 1000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; animation: whatsapp-pulse 2s infinite; }
[dir="rtl"] .whatsapp-float { right: auto; left: 40px; }
.whatsapp-float:hover { background-color: #128c7e; color: #ffffff; transform: scale(1.1); box-shadow: 2px 2px 15px rgba(0,0,0,0.3); animation: none; }

/* WhatsApp Tooltip */
.whatsapp-tooltip { position: absolute; right: 75px; top: 50%; transform: translateY(-50%); background-color: #333333; color: #ffffff; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.2); pointer-events: none; }
.whatsapp-tooltip::after { content: ''; position: absolute; top: 50%; right: -6px; transform: translateY(-50%); border-width: 6px 0 6px 6px; border-style: solid; border-color: transparent transparent transparent #333333; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }
[dir="rtl"] .whatsapp-tooltip { right: auto; left: 75px; }
[dir="rtl"] .whatsapp-tooltip::after { right: auto; left: -6px; border-width: 6px 6px 6px 0; border-color: transparent #333333 transparent transparent; }

/* Scroll to Top Button */
.scroll-top-btn { position: fixed; bottom: 40px; right: 110px; background-color: var(--primary-color); color: var(--white); border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 999; display: flex; align-items: center; justify-content: center; }
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background-color: var(--primary-dark); transform: scale(1.1); }
[dir="rtl"] .scroll-top-btn { right: auto; left: 110px; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .hero h2 { font-size: 1.8rem; }
    .top-bar { flex-direction: column; gap: 5px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 28px; }
    [dir="rtl"] .whatsapp-float { left: 20px; }
    .scroll-top-btn { bottom: 20px; right: 80px; width: 45px; height: 45px; font-size: 18px; }
    [dir="rtl"] .scroll-top-btn { left: 80px; }
}

.hiddena{display:none;}