:root {
    --primary: #006a44;
    --primary-dark: #004d32;
    --primary-light: #14742a;
    --accent: #9cf89c;
    --dark: #002112;
    --text: #171d19;
    --muted: #5f6b63;
    --bg: #f5fbf4;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
body.rtl-mode {
    font-family: 'Noto Sans Arabic', 'Manrope', sans-serif;
}
.site-header.scrolled .lang-switcher .btn-outline-custom.text-white {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.site-header:not(.scrolled) .lang-nav-link {
    opacity: 0.92;
}
.site-header.scrolled .lang-nav-link {
    color: var(--primary) !important;
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    transition: all .35s ease;
    padding: 1rem 0;
}
.site-header.transparent { background: transparent; }
.site-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,.08);
    padding: .65rem 0;
}
.site-header.scrolled .nav-link { color: var(--text) !important; }
.site-header.scrolled .navbar-brand img.logo-white { display: none; }
.site-header.scrolled .navbar-brand img.logo-dark { display: block; }
.site-header:not(.scrolled) .navbar-brand img.logo-dark { display: none; }
.site-header:not(.scrolled) .nav-link { color: #fff !important; }
.site-header.scrolled .btn-outline-custom.text-white { color: var(--primary) !important; border-color: var(--primary) !important; }

.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: .75rem;
    padding: .65rem 1.35rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,106,68,.25);
}
.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: .75rem;
    padding: .6rem 1.25rem;
    background: transparent;
}
.btn-outline-custom:hover { background: var(--primary); color: #fff; }
.btn-light-custom {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    border-radius: .75rem;
    padding: .65rem 1.35rem;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #002112 0%, #006a44 55%, #14742a 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-visual img { border-radius: 1.25rem; box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.stat-float {
    position: absolute;
    background: rgba(255,255,255,.95);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    animation: float 4s ease-in-out infinite;
}
.stat-float:nth-child(2) { animation-delay: 1s; }
.stat-float:nth-child(3) { animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-padding { padding: 5rem 0; }
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}

.service-card, .feature-card, .team-card, .value-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid #eaefe9;
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover, .feature-card:hover, .team-card:hover, .value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,106,68,.12);
}
.service-icon {
    width: 64px; height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.workflow-step {
    text-align: center;
    position: relative;
}
.workflow-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,106,68,.3);
}

.stats-section {
    background: linear-gradient(rgba(0,33,18,.88), rgba(0,33,18,.88)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
    color: #fff;
}
.counter { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); }

.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.page-banner {
    background: linear-gradient(135deg, #002112, #006a44);
    padding: 8rem 0 4rem;
    color: #fff;
    margin-top: 0;
}

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.85);
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

.timeline-item {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px; top: 4px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--primary);
}

.faq-search { border-radius: .75rem; border: 2px solid #eaefe9; padding: .75rem 1rem; }
.accordion-button:not(.collapsed) { background: rgba(0,106,68,.08); color: var(--primary); }

.legal-content h2 { font-size: 1.35rem; font-weight: 800; margin-top: 2rem; margin-bottom: .75rem; color: var(--primary-dark); }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; }

.testimonial-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.swiper-pagination-bullet-active { background: var(--primary) !important; }

@media (max-width: 991px) {
    .site-header:not(.scrolled) { background: rgba(0,33,18,.95); }
    .stat-float { position: relative !important; margin-bottom: .75rem; display: inline-block; }
}
