/* =====================================================
   AMAAL SAHARI (أعمال صحاري) - MAIN STYLESHEET
   Colors: Palm Green (#366A44), Sand Amber (#EC883A), Dark Royal Palm (#163220)
   Font: Cairo (Arabic + Latin)
   Direction: RTL
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* iOS/Safari Cross-Browser Compatibility */
* { -webkit-tap-highlight-color: transparent; }

:root {
    --green: #366A44;
    --green-dark: #163220;
    --green-gradient: linear-gradient(135deg, #2E5C3A 0%, var(--green-dark) 100%);
    --green-light: #48895B;
    --amber: #EC883A;
    --amber-dark: #C76614;
    --amber-light: #F5A968;
    /* High-contrast amber specifically for text on light backgrounds (WCAG AA 4.7:1) */
    --amber-text: #C76614;
    --dark: #163220;
    --dark2: #0E2416;
    --dark3: #1B3C27;
    --gray: #F8FAF8;
    --gray2: #EAF0EC;
    --gray3: #CFDDD3;
    /* Razor-sharp typography contrast */
    --text-dark: #121B15; /* Deep rich forest black (14.5:1 contrast on white) */
    --text-mid: #2F3E33;  /* Crisp charcoal-green (7.5:1 contrast on white, AAA) */
    --text-light: #506456; /* 5.2:1 contrast on white */
    --white: #ffffff;
    --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --transition: 0.3s ease;
    --radius: 6px;
    --shadow: 0 4px 20px rgba(22,50,32,0.09);
    --shadow-lg: 0 8px 40px rgba(16,36,23,0.18);
    --logo-sweep-offset: max(0px, calc((100vw - 1280px) / 2));
    --site-header-height: 104px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS rotation */
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    direction: rtl;
    text-align: right;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Better font rendering on macOS/iOS */
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber-text); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn-primary {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border: 2px solid var(--green);
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); -webkit-transform: translateY(-2px); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(54,106,68,0.3); }
.btn-primary.is-loading,
.btn-primary:disabled,
.btn-amber.is-loading,
.btn-amber:disabled,
button.is-loading,
button:disabled {
    cursor: not-allowed;
    opacity: .78;
    pointer-events: none;
}

.btn-amber {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #EC883A 0%, #D47120 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #D47120;
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); -webkit-transform: translateY(-2px); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(236,136,58,0.4); }

.btn-hero {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #EC883A 0%, #D47120 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    padding: 13px 32px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid #D47120;
    transition: var(--transition);
    margin-top: 24px;
}
.btn-hero:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.btn-contact {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #EC883A 0%, #D47120 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    padding: 9px 22px;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid #D47120;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(236, 136, 58, 0.35);
}
.btn-contact:hover { 
    background: var(--amber-dark); 
    border-color: var(--amber-dark); 
    color: var(--white); 
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 136, 58, 0.45);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-white:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn-lg { font-size: 17px; padding: 15px 38px; }

/* Section Headers */
.section-header { margin-bottom: 50px; }
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-title.text-amber { color: var(--amber-text); }
.section-title.text-green { color: var(--green); }
.section-desc {
    font-size: 16px;
    color: var(--text-mid);
    max-width: 780px;
    line-height: 1.9;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
.text-white .section-title { color: var(--white); }
.text-white .section-desc { color: rgba(255,255,255,0.85); }

/* Section spacing */
section { padding: 80px 0; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background:
        radial-gradient(ellipse 380px 220px at 94% 50%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(135deg, #245738 0%, var(--green-dark) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

/* No gradient overlay under the logo area */
.site-header::before {
    display: none !important;
}

.site-header.scrolled {
    background:
        radial-gradient(ellipse 300px 180px at 94% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 100%),
        rgba(19, 46, 32, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.45);
    border-bottom: 1px solid rgba(229,138,43,0.3);
}

[dir="ltr"] .site-header {
    background:
        radial-gradient(ellipse 380px 220px at 6% 50%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(135deg, #245738 0%, var(--green-dark) 100%);
}

[dir="ltr"] .site-header.scrolled {
    background:
        radial-gradient(ellipse 300px 180px at 6% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 100%),
        rgba(19, 46, 32, 0.95);
}

/* Static Navbar Mode */
body.navbar-static .site-header {
    position: relative !important;
    top: auto !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.2);
}
body.navbar-static .hero-slider,
body.navbar-static .page-hero {
    margin-top: 0 !important;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: var(--site-header-height);
    gap: 20px;
    padding-inline: clamp(18px, 3vw, 52px);
    transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
    height: 74px;
}

/* Logo Image - Standard and clean */
.header-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo-img {
    height: 86px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}
.site-header.scrolled .site-logo-img {
    height: 60px;
}
.footer-logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav */
.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 18px; /* Increased font size */
    font-weight: 700;
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link i { font-size: 10px; transition: transform 0.3s; color: rgba(255,255,255,0.8); }
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.14); }
.nav-link:hover i { color: #ffffff; }
.nav-item.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.nav-item.active .nav-link { color: #ffffff; font-weight: 700; background: rgba(255,255,255,0.12); }
.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--amber);
    border-radius: 3px 3px 0 0;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--green);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
    z-index: 100;
    -webkit-animation: dropIn 0.2s ease;
    animation: dropIn 0.2s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-item:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 16px; /* Increased dropdown font size */
    font-weight: 600;
    transition: var(--transition);
    border-right: 3px solid transparent;
}
.dropdown li a:hover { color: var(--green); background: rgba(54,106,68,0.06); border-right-color: var(--green); }
[dir="ltr"] .dropdown { right: auto; left: 0; }
[dir="ltr"] .dropdown li a { border-right: none; border-left: 3px solid transparent; }
[dir="ltr"] .dropdown li a:hover { border-left-color: var(--green); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 861px) {
    .header-actions {
        gap: 14px;
    }
    .header-actions .btn-contact,
    .header-actions .lang-switch,
    .header-actions .btn-search {
        height: 56px;
        min-height: 56px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-sizing: border-box;
    }
    .header-actions .btn-contact {
        padding: 0 28px;
        border-width: 1px;
        font-size: 16px;
        box-shadow: 0 10px 22px rgba(212, 113, 32, .28);
    }
    .header-actions .lang-switch {
        padding: 0 16px;
        border-width: 1px;
        font-size: 13px;
    }
    .header-actions .btn-search {
        width: 56px;
        min-width: 56px;
        padding: 0;
        font-size: 22px;
    }
}
.btn-search {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-search:hover { color: #fff; background: var(--amber); border-color: var(--amber); box-shadow: 0 7px 16px rgba(229,138,43,.22); }
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: var(--transition);
    white-space: nowrap;
}
.lang-flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    border-radius: 3px;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 1px 4px rgba(0,0,0,.12);
}
.lang-switch:hover { color: #ffffff; border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.14); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(0,0,0,0.03);
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 9px 10px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.hamburger:hover,
.hamburger.active {
    background: rgba(54,106,68,0.08);
    border-color: var(--green);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 17, 0.68);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Popup Elements (hidden on desktop) */
.drawer-extra-actions,
.popup-close-btn,
.popup-lang-wrap {
    display: none !important;
}

/* Search Bar */
.search-bar {
    background: rgba(250,252,249,.96);
    border-top: 1px solid rgba(22,75,48,.08);
    border-bottom: 1px solid rgba(22,75,48,.12);
    box-shadow: 0 18px 36px rgba(18,58,39,.1);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.search-bar.open { max-height: 80px; padding: 14px 0; }
.search-bar .container { display: flex; align-items: center; gap: 12px; }
.search-input {
    flex: 1;
    min-height: 48px;
    background: #fff;
    border: 1px solid rgba(22,75,48,.16);
    border-radius: 14px;
    color: #153c29;
    font-family: var(--font);
    font-size: 15px;
    padding: 11px 18px;
    text-align: right;
    direction: rtl;
    outline: none;
    transition: var(--transition);
}
.search-input::placeholder { color: #829087; }
.search-input:focus { border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px rgba(229,138,43,.12),0 8px 22px rgba(20,55,37,.07); }
.search-close {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,75,48,.07);
    border: 1px solid rgba(22,75,48,.1);
    border-radius: 13px;
    color: #315b43;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.search-close:hover { color: #fff; background: var(--amber); border-color: var(--amber); }

.search-bar.open { max-height: 420px; padding: 14px 0 20px; }
.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    max-height: 280px;
    overflow-y: auto;
    padding: 0 4px;
    width: 100%;
    align-items: stretch !important;
}
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    color: #244b35;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(22,75,48,.1);
    box-shadow: 0 5px 14px rgba(20,55,37,.04);
}
.search-result-item:hover {
    background: #fffaf4;
    border-color: rgba(229,138,43,.65);
    color: #17462f;
    transform: translateX(-4px);
}
.search-res-cat {
    font-size: 11px;
    background: var(--amber);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.search-res-title {
    flex: 1;
    margin: 0 14px;
    font-size: 14px;
    font-weight: 700;
}
.search-result-item i {
    font-size: 12px;
    opacity: 0.7;
}
.search-empty {
    color: #66766d;
    font-size: 13.5px;
    text-align: center;
    padding: 14px 0;
}

/* Site Toast Notification */
.site-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(19, 46, 32, 0.96);
    color: var(--white);
    padding: 14px 26px;
    border-radius: 40px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    border: 1px solid var(--amber);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.site-toast i {
    color: var(--amber);
    font-size: 17px;
}
.site-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    margin-top: var(--site-header-height);
    /* iOS Safari uses dvh for dynamic viewport, fallback to svh then vh */
    height: calc(100vh - var(--site-header-height));
    height: calc(100svh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
    padding: 0;
    /* Fix iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

.slides-container { position: relative; width: 100%; height: 100%; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    -webkit-transition: opacity 0.55s ease;
    transition: opacity 0.55s ease;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    /* iOS fix: force GPU compositing */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: opacity;
}
.slide::before {
    content: "";
    position: absolute;
    inset: -2.5%;
    background-image: inherit;
    background-size: cover;
    background-position: inherit;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 5.5s cubic-bezier(.2,.8,.2,1), filter .7s ease;
    will-change: transform;
    z-index: 0;
}
.slide.active { opacity: 1; z-index: 2; }
.hero-slider .slide {
    transform: translateZ(0);
    transition: opacity .72s ease;
}
.hero-slider .slide.active {
    transform: translateZ(0);
}
.hero-slider .slide:nth-child(even) {
    transform: translateZ(0);
}
.hero-slider .slide:nth-child(even).active {
    transform: translateZ(0);
}
.slide.active::before { transform: scale(1.11) translate3d(-1.4%, .8%, 0); }
.slide:nth-child(even).active::before { transform: scale(1.11) translate3d(1.4%, -.8%, 0); }
.slide:nth-child(3n).active::before { transform: scale(1.1) translate3d(0, -1.2%, 0); }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(15,39,27,0.92) 0%,
        rgba(19,46,32,0.78) 55%,
        rgba(0,0,0,0.42) 100%
    );
    z-index: 1;
}
/* Slider Progress Bar */
.slider-progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,0.18);
    z-index: 20;
}
.slider-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: right center;
    transition: none;
}
[dir="ltr"] .slider-progress-fill {
    transform-origin: left center;
}
.slider-progress-fill.is-running {
    animation: sliderProgressRun var(--slide-duration, 3500ms) linear forwards;
}
@keyframes sliderProgressRun {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.slide-content {
    position: relative;
    z-index: 3;
    padding-right: 80px;
    max-width: 720px;
}

/* Slide Badge */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 138, 43, 0.22);
    color: #ffc278;
    border: 1px solid rgba(229, 138, 43, 0.5);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.active .slide-badge {
    opacity: 1;
    transform: translateY(0);
    animation: heroTextRise .65s cubic-bezier(.16,1,.3,1) .06s both;
}
.slide-badge i {
    color: var(--amber);
}

/* Slider Text Entrance Animation */
.slide .slide-title,
.slide .slide-desc,
.slide .hero-btn-group {
    opacity: 0;
    -webkit-transform: translateY(35px);
    transform: translateY(35px);
    -webkit-transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), -webkit-transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-title {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    animation: heroTextRise .72s cubic-bezier(.16,1,.3,1) .14s both;
}

.slide.active .slide-desc {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    animation: heroTextRise .72s cubic-bezier(.16,1,.3,1) .27s both;
}

.slide.active .hero-btn-group {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    animation: heroTextRise .72s cubic-bezier(.16,1,.3,1) .4s both;
}

@keyframes heroTextRise {
    from { opacity: 0; transform: translateY(42px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .slide::before {
        transition: none;
        transform: none !important;
    }
}

.slide-title {
    font-size: clamp(30px, 4.8vw, 54px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    text-shadow: 0 2px 25px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}
.slide-title span { color: var(--amber); }
.slide-desc {
    font-size: 17.5px;
    color: rgba(255,255,255,0.96);
    margin-top: 18px;
    max-width: 580px;
    line-height: 1.8;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* Dual CTA buttons */
.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #E58A2B 0%, #D47517 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    padding: 13px 30px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid #D47517;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(184,99,10,0.35);
    cursor: pointer;
}
.btn-hero-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,99,10,0.55);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    padding: 13px 26px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 32px;
    height: 5px;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
    padding: 0;
}
.dot.active { background: var(--amber); width: 48px; }

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(27,59,43,0.6);
    border: 2px solid rgba(255,255,255,0.35);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    touch-action: manipulation;
}
.slider-arrow:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-50%) scale(1.05); }
.slider-prev { right: 24px; }
.slider-next { left: 24px; }

/* Hero Scroll Down Indicator - Symmetrically Centered Under Slider Dots */
.hero-scroll-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(15, 39, 27, 0.50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    z-index: 10;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
}
.hero-scroll-indicator:hover {
    background: rgba(236, 136, 58, 0.92);
    border-color: var(--amber);
    color: #ffffff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 22px rgba(236, 136, 58, 0.38);
}
.hero-scroll-indicator i {
    font-size: 11px;
    animation: bounceDown 1.8s infinite;
}
.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}
.scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--amber);
    border-radius: 2px;
    animation: mouseWheel 1.8s infinite;
}
@keyframes mouseWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(9px); }
}
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(2px); }
}

/* =====================================================
   TRUST BAR (Social proof directly below Hero)
   Pure White Crisp Bar - Fully Centered Alignment
   ===================================================== */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5ede7;
    padding: 20px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(27, 59, 43, 0.04);
}
.trust-bar-inner {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    text-align: center;
}
.trust-bar-label {
    font-size: 15px;
    font-weight: 800;
    color: #141C16;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.trust-bar-label i {
    color: var(--amber);
    font-size: 17px;
}
.trust-bar-logos {
    width: min(100%, 1080px);
    max-width: 1080px;
    margin-inline: auto;
    overflow: hidden;
    padding: 5px 0;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.trust-logo-track { display:flex;width:max-content;min-width:max-content;-webkit-animation:trustLogosMarquee 24s linear infinite;animation:trustLogosMarquee 24s linear infinite;will-change:transform;transform:translate3d(0,0,0); }
.trust-bar-logos:hover .trust-logo-track { animation-play-state:paused; }
.trust-logo-group { display:flex;align-items:center;gap:18px;padding-inline-end:18px; }
.trust-logo-card { width:160px;height:76px;padding:8px 12px;display:flex;align-items:center;justify-content:center;border:1px solid #e3ebe6;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(18,64,43,.06);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;flex:0 0 auto;overflow:hidden; }
.trust-logo-card:hover { transform:translateY(-3px);border-color:rgba(229,138,43,.55);box-shadow:0 12px 28px rgba(18,64,43,.12); }
.trust-logo-card img { display:block;width:118%;max-width:none;height:62px;object-fit:contain;filter:saturate(.94);transform:scale(1.28);transform-origin:center; }
.trust-logo-fallback { display:flex;align-items:center;justify-content:center;gap:8px;color:#1b3b2b;font-size:13px;font-weight:800;text-align:center;line-height:1.35;direction:inherit; }
.trust-logo-fallback i { color:var(--amber); }
@-webkit-keyframes trustLogosMarquee { from { -webkit-transform:translate3d(0,0,0); transform:translate3d(0,0,0); } to { -webkit-transform:translate3d(-33.333333%,0,0); transform:translate3d(-33.333333%,0,0); } }
@keyframes trustLogosMarquee { from { -webkit-transform:translate3d(0,0,0); transform:translate3d(0,0,0); } to { -webkit-transform:translate3d(-33.333333%,0,0); transform:translate3d(-33.333333%,0,0); } }
@media (prefers-reduced-motion: reduce) { .trust-logo-track { animation-play-state:paused; } }
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f8f5;
    border: 1px solid #dbe7df;
    color: #1B3B2B;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
    transition: var(--transition);
}
.trust-pill i {
    color: var(--amber);
    font-size: 14px;
}
.trust-pill:hover {
    background: #ffffff;
    border-color: var(--amber);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 138, 43, 0.2);
}

/* =====================================================
   STATS SECTION (Harmonious Symmetrical Design)
   ===================================================== */
.stats-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: #f8faf8;
    border-top: 1px solid #e7eee9;
    border-bottom: 1px solid #e7eee9;
}
.stats-bg-img {
    position: absolute;
    inset: 0;
    background: url('../images/stats-bg.png') center/cover;
    opacity: 0.025;
    filter: grayscale(100%);
    pointer-events: none;
}
.stats-overlay-color {
    display: none;
}
.stats-inner { position: relative; z-index: 2; }
.stats-header { text-align: center; margin-bottom: 45px; }
.stats-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #141C16;
    letter-spacing: -0.5px;
}
.stats-subtitle {
    font-size: 17px;
    color: #c97720;
    margin-top: 10px;
    font-weight: 700;
}

.stats-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

/* Featured Milestone Banner (2009 / +45) - Centered Horizontal Hallmark */
.stats-featured-box {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(135deg, #163220 0%, #0E2416 100%);
    border-radius: 16px;
    padding: 22px 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 35px rgba(16, 36, 23, 0.18);
    border: 1.5px solid rgba(236, 136, 58, 0.55);
    position: relative;
    overflow: hidden;
    gap: 20px;
}
.stats-featured-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 136, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.featured-col-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.featured-top-label {
    font-size: 13.5px;
    color: var(--amber-light);
    font-weight: 800;
    letter-spacing: 0.5px;
}
.featured-year {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.featured-separator {
    width: 1px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.featured-col-num {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.featured-big-num {
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 18px rgba(229, 138, 43, 0.35);
}

.featured-col-exp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1.2;
}
.featured-bottom-label {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.45;
}

/* 4-Column Symmetrical Grid on Soft Porcelain */
.stats-grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid #e1ebe3;
    border-radius: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(20, 28, 22, 0.05);
}
.stat-box:hover {
    background: #ffffff;
    border-color: var(--amber);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(229, 138, 43, 0.16);
}

.stat-box-top {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.stat-box-num {
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 900;
    color: #141C16;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-box-icon {
    font-size: 24px;
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(236, 136, 58, 0.08);
    border-radius: 10px;
    transition: var(--transition);
    flex-shrink: 0;
}
.stat-box:hover .stat-box-icon {
    transform: scale(1.08);
    background: rgba(236, 136, 58, 0.14);
}

.stat-box-label {
    font-size: 14px;
    color: #384e41;
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: 0.1px;
}

@media (max-width: 1100px) {
    .stats-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .stats-featured-box {
        flex-direction: column;
        padding: 24px 20px;
        gap: 14px;
    }
    .featured-separator {
        width: 60px;
        height: 1px;
    }
    .stats-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =====================================================
   TIMELINE SECTION — alternating editorial journey
   ===================================================== */
.timeline-section { position: relative; background: linear-gradient(180deg,#f7faf7 0%,#eef4ef 100%); padding: 72px 0 82px; overflow: hidden; }
.timeline-section::before { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; top: -250px; inset-inline-end: -160px; background: radial-gradient(circle,rgba(229,138,43,.11),transparent 68%); pointer-events: none; }
.timeline-intro { max-width: 790px; margin: 0 auto 30px; text-align: center; }
.timeline-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--amber-text); font-size: 12px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.timeline-eyebrow::before, .timeline-eyebrow::after { content: ''; width: 25px; height: 1px; background: rgba(229,138,43,.55); }
.timeline-intro .section-title { color: #123b28; margin-bottom: 10px; }
.timeline-intro .section-desc { max-width: 760px; margin: 0 auto; color: #5b6d63; font-size: 15px; line-height: 1.7; }
.timeline { position: relative; max-width: 1080px; margin: 0 auto; padding: 4px 0; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(to bottom,transparent 0%,var(--amber) 7%,#34704b 28%,#34704b 82%,var(--amber) 94%,transparent 100%); }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); align-items: center; margin-bottom: 10px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-year { grid-column: 2; grid-row: 1; position: relative; z-index: 2; min-width: 0; padding: 0; text-align: center; }
.timeline-year::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--amber); border: 4px solid #f3f7f3; box-shadow: 0 0 0 2px #2d6846,0 0 0 8px rgba(45,104,70,.08); }
.timeline-year span { position: absolute; top: 50%; inset-inline-start: calc(50% + 20px); transform: translateY(-50%); color: #255d3c; font-size: 14px; font-weight: 900; letter-spacing: .3px; }
.timeline-item:nth-child(odd) .timeline-year span { left: calc(50% + 20px); right: auto; }
.timeline-item:nth-child(even) .timeline-year span { right: calc(50% + 20px); left: auto; }
.timeline-content { grid-column: 1; grid-row: 1; position: relative; min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; border: 1px solid rgba(22,75,48,.1); border-radius: 12px; background: rgba(255,255,255,.91); box-shadow: 0 8px 20px rgba(20,55,37,.055); transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-content::after { content: ''; position: absolute; top: 50%; inset-inline-end: -9px; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg); background: #fff; border-top: 1px solid rgba(22,75,48,.1); border-inline-end: 1px solid rgba(22,75,48,.1); }
.timeline-item:nth-child(even) .timeline-content::after { inset-inline-end: auto; inset-inline-start: -9px; border-inline-end: 0; border-top: 0; border-inline-start: 1px solid rgba(22,75,48,.1); border-bottom: 1px solid rgba(22,75,48,.1); }
.timeline-content:hover { transform: translateY(-3px); border-color: rgba(229,138,43,.42); box-shadow: 0 14px 34px rgba(20,55,37,.1); }
.timeline-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.timeline-step { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(229,138,43,.11); color: var(--amber-text); font-size: 10px; font-weight: 900; }
.timeline-phase { color: #175334; font-size: 14px; font-weight: 850; margin: 0; text-transform: none; letter-spacing: 0; }
.timeline-content p { margin: 0; color: #5a6b62; font-size: 13px; line-height: 1.5; }
html[dir="ltr"] .timeline-item { text-align: left; }
html[dir="ltr"] .timeline-year span { inset-inline-start: auto; inset-inline-end: calc(50% + 25px); }
html[dir="ltr"] .timeline-item:nth-child(odd) .timeline-year span { right: calc(50% + 20px); left: auto; }
html[dir="ltr"] .timeline-item:nth-child(even) .timeline-year span { left: calc(50% + 20px); right: auto; }

/* =====================================================
   SERVICES SECTION — editorial layout with imagery
   ===================================================== */
.services-section { position: relative; background: #f5f7f3; padding: 110px 0; overflow: hidden; }
.services-bg { position: absolute; inset: 0; background: radial-gradient(circle at 8% 18%, rgba(229,138,43,.12), transparent 24%), linear-gradient(115deg, transparent 63%, rgba(22,75,48,.055) 63% 64%, transparent 64%); }
.services-section > .container { position: relative; z-index: 2; }
.services-intro { display: grid; grid-template-columns: minmax(0,.85fr) minmax(320px,.7fr); gap: clamp(40px,8vw,120px); align-items: end; margin-bottom: 48px; }
.services-eyebrow { display: block; color: var(--amber-text); font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.services-intro .section-title { color: #123b28; margin: 0; text-wrap: balance; }
.services-intro .section-desc { color: #506158; margin: 0; max-width: 620px; font-size: 17px; line-height: 1.9; }
.services-category { margin-bottom: 68px; }
.services-category:last-of-type { margin-bottom: 0; }
.services-category-title { width: fit-content; max-width: 100%; font-size: 14px; color: #25603f; letter-spacing: .3px; line-height: 1.6; font-weight: 850; margin-bottom: 22px; padding: 9px 16px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: rgba(22,75,48,.07); }
.services-category-title::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(229,138,43,.12); }
.services-grid, .services-grid-6 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.service-card { position: relative; min-height: 365px; background: rgba(255,255,255,.9); border: 1px solid rgba(22,75,48,.11); border-radius: 18px; text-align: start; transition: var(--transition); cursor: pointer; box-shadow: 0 12px 35px rgba(20,55,37,.055); overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { background: #fff; border-color: rgba(229,138,43,.7); transform: translateY(-6px); box-shadow: 0 20px 48px rgba(20,55,37,.12); }
.service-media { position: relative; height: 176px; overflow: hidden; background: #dfe7e1; }
.service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,45,28,.4), transparent 62%); }
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.055); }
.service-icon { position: absolute; z-index: 2; inset-inline-start: 22px; bottom: 18px; width: 46px; height: 46px; border-radius: 13px; font-size: 19px; color: #fff; background: var(--amber); box-shadow: 0 8px 18px rgba(0,0,0,.18); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.service-number { position: absolute; z-index: 2; inset-inline-end: 20px; top: 18px; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.service-card-content { position: relative; flex: 1; padding: 24px 52px 28px 24px; }
html[dir="ltr"] .service-card-content { padding: 24px 24px 28px 52px; }
.service-title { font-size: 19px; line-height: 1.45; font-weight: 850; color: #153c29; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: #607067; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-sm { min-height: 345px; }
.service-card-sm .service-title { font-size: 17px; margin-bottom: 9px; }
.service-card-arrow { position: absolute; inset-inline-end: 23px; bottom: 27px; color: rgba(22,75,48,.32); font-size: 13px; transition: var(--transition); }
html[dir="ltr"] .service-card-arrow { inset-inline-end: auto; inset-inline-start: 23px; }
html[dir="ltr"] .service-card-arrow i { transform: scaleX(-1); }
.service-card:hover .service-card-arrow { color: var(--amber-text); transform: translateX(-4px); }
html[dir="ltr"] .service-card:hover .service-card-arrow { transform: translateX(4px); }
.services-cta { display: flex; justify-content: center; margin-top: 52px; }
.btn-services-all { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 24px; border-radius: 999px; background: #153c29; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(21,60,41,.16); transition: var(--transition); }
.btn-services-all:hover { background: var(--amber); color: #fff; transform: translateY(-2px); }
.service-card { color: inherit; text-decoration: none; }
.service-detail-card { color: inherit; text-decoration: none; cursor: pointer; }
.service-card:focus-visible, .service-detail-card:focus-visible { outline: 3px solid rgba(229,138,43,.55); outline-offset: 4px; }
.service-detail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--amber-text); font-size: 13px; font-weight: 800; }

/* Dedicated service profile */
.service-profile { background: #f6f8f5; }
.service-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(36px,6vw,82px); align-items: start; padding-top: 76px; padding-bottom: 90px; }
.service-profile-main { min-width: 0; }
.service-profile-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.service-profile-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--amber); color: #fff; font-size: 25px; box-shadow: 0 12px 26px rgba(229,138,43,.25); }
.service-profile-category { display: block; color: var(--amber-text); font-size: 12px; font-weight: 850; letter-spacing: .7px; margin-bottom: 7px; }
.service-profile-heading h1 { margin: 0; color: #123b28; font-size: clamp(28px,4vw,46px); line-height: 1.3; text-wrap: balance; }
.service-profile-lead { margin: 0 0 32px; padding: 22px 24px; border-inline-start: 4px solid var(--amber); border-radius: 12px; background: #fff; color: #4b5d53; font-size: 17px; line-height: 1.9; box-shadow: 0 8px 24px rgba(20,55,37,.05); }
.service-profile-image { aspect-ratio: 16/8.5; border-radius: 22px; overflow: hidden; margin-bottom: 38px; box-shadow: 0 18px 45px rgba(20,55,37,.13); }
.service-profile-image img { width: 100%; height: 100%; object-fit: cover; }
.service-profile-content { background: #fff; padding: clamp(24px,4vw,46px); border-radius: 20px; color: #405249; font-size: 16px; line-height: 2; box-shadow: 0 12px 35px rgba(20,55,37,.06); }
.service-profile-content :is(h2,h3,h4) { color: #153c29; line-height: 1.4; margin: 1.5em 0 .6em; }
.service-profile-content > :first-child { margin-top: 0; }
.service-profile-content img { border-radius: 14px; margin-block: 22px; }
.service-profile-content iframe, .service-profile-content video { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; margin-block: 24px; }
.service-profile-aside { position: sticky; top: 120px; }
.service-quote-card { padding: 30px; border-radius: 22px; background: #153c29; color: #fff; box-shadow: 0 20px 46px rgba(21,60,41,.2); }
.service-quote-card > span { color: #f1a348; font-size: 13px; font-weight: 800; }
.service-quote-card h2 { margin: 12px 0 24px; color: #fff; font-size: 23px; line-height: 1.55; }
.service-quote-card .btn-services-all { width: 100%; background: var(--amber); box-shadow: none; }
.related-services { padding: 78px 0 90px; background: #fff; }
.related-services-heading { margin-bottom: 28px; }
.related-services-heading span { color: var(--amber-text); font-size: 12px; font-weight: 850; }
.related-services-heading h2 { color: #153c29; font-size: 30px; margin: 7px 0 0; }

/* =====================================================
   PEOPLE SECTION
   ===================================================== */
.people-section { padding: 85px 0; background: var(--white); }
.people-banner {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}
.people-img {
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center top;
}
.people-pillars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 40px 60px 0;
    background: linear-gradient(to bottom, rgba(54,106,68,0.92) 55%, rgba(0,0,0,0) 100%);
    z-index: 2;
}
.pillar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    text-align: center;
}
.pillar:not(:last-child) { border-left: 1px solid rgba(255,255,255,0.25); }
.pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(229,138,43,0.3);
    border: 2px solid var(--amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    margin-bottom: 8px;
}
.pillar p { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.4; }
.people-cta { text-align: center; margin-top: 40px; }

/* =====================================================
   IMPACT SECTION
   ===================================================== */
.impact-section { background: var(--gray); padding: 85px 0; }
.impact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.impact-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.impact-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.impact-card:hover .impact-card-bg { transform: scale(1.06); }
.impact-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19,46,32,0.95) 0%, rgba(19,46,32,0.65) 55%, rgba(0,0,0,0.15) 100%);
}
.impact-card-content {
    position: relative;
    z-index: 2;
    padding: 32px 26px;
    width: 100%;
}
.impact-icon { font-size: 28px; color: var(--amber); margin-bottom: 12px; }
.impact-card-content h3 { font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.impact-card-content p { font-size: 13.5px; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 18px; }
.impact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--amber);
    padding-bottom: 3px;
    transition: var(--transition);
}
.impact-btn:hover { color: var(--white); border-color: var(--white); transform: translateX(-4px); }
.impact-btn i { transition: transform 0.3s ease; }
.impact-btn:hover i { transform: translateX(-4px); }

@media (max-width: 992px) {
    .impact-cards { grid-template-columns: 1fr; max-width: 550px; margin-left: auto; margin-right: auto; }
}

/* =====================================================
   CLIENTS SECTION
   ===================================================== */
.clients-section { background: var(--white); padding: 75px 0; }
.clients-carousel-wrap { overflow: hidden; margin-top: 40px; -webkit-overflow-scrolling: touch; }
.clients-carousel {
    display: -webkit-flex;
    display: flex;
    gap: 20px;
    -webkit-animation: infiniteScroll 28s linear infinite;
    animation: infiniteScroll 28s linear infinite;
    width: -webkit-max-content;
    width: max-content;
}
.clients-carousel:hover { -webkit-animation-play-state: paused; animation-play-state: paused; }
@-webkit-keyframes infiniteScroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes infiniteScroll {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
.client-logo {
    width: 175px;
    height: 95px;
    flex-shrink: 0;
    background: #f9fbf9;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    border: 1px solid var(--gray3);
    transition: var(--transition);
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.client-logo i {
    font-size: 22px;
    color: var(--green);
    transition: var(--transition);
}
.client-logo:hover {
    border-color: var(--amber);
    color: var(--green-dark);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(27,59,43,0.12);
}
.client-logo:hover i {
    color: var(--amber);
    transform: scale(1.15);
}

/* =====================================================
   PRE-FOOTER CTA (High Conversion Design)
   ===================================================== */
.prefooter-cta {
    background: linear-gradient(135deg, #f8faf8 0%, #eef5f0 58%, #fff7ed 100%);
    padding: 85px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #dbe7df;
    border-bottom: 1px solid #dbe7df;
}
.prefooter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(54,106,68,0.08), rgba(229,138,43,0.1), rgba(54,106,68,0.06));
    pointer-events: none;
}
.prefooter-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}
.prefooter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(229,138,43,0.35);
    color: #9a5a18;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.prefooter-cta h2 {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 18px;
    line-height: 1.4;
}
.prefooter-desc {
    font-size: 16px;
    color: #385544;
    line-height: 1.8;
    margin-bottom: 34px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.prefooter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--green);
    transition: var(--transition);
    text-decoration: none;
}
.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.btn-cta-phone:hover {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
    transform: translateY(-2px);
}
.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    padding: 14px 26px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    text-decoration: none;
}
.btn-cta-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.45);
    color: var(--white);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--green-dark); color: var(--white); border-top: 4px solid var(--amber); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 50px;
    padding: 60px 40px;
}
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.88); margin: 20px 0 8px; line-height: 1.7; }
.footer-brand-slogan { font-size: 13.5px; color: var(--amber); font-weight: 700; }
.footer-heading { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; right: 0; width: 36px; height: 3px; background: var(--amber); border-radius: 2px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.85); transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--amber); transform: translateX(-4px); }
.footer-address { font-style: normal; }
.footer-address p { font-size: 13px; color: rgba(255,255,255,0.88); margin-bottom: 10px; line-height: 1.6; display: flex; align-items: flex-start; gap: 8px; }
.footer-address p i { color: var(--amber); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-address a { color: rgba(255,255,255,0.88); transition: var(--transition); }
.footer-address a:hover { color: var(--amber); }
.footer-social { margin-top: 20px; }
.social-label { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.social-icons { display: flex; gap: 10px; }
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}
.social-icon:hover { background: var(--amber); color: var(--white); border-color: var(--amber); transform: translateY(-2px); }
.footer-bottom {
    background: var(--dark2);
    padding: 18px 40px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .container { padding: 0; }

.about-overview {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f4 100%);
}
.about-overview-grid {
    gap: clamp(34px, 5vw, 70px);
}
.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--amber-text);
    font-size: 13px;
    font-weight: 900;
}
.about-text p {
    color: #24382c;
    font-size: 16px;
    line-height: 2;
}
.about-img-frame {
    border: 1px solid rgba(54,106,68,.14);
    box-shadow: 0 24px 60px rgba(22,50,32,.14);
}
.about-stats-section {
    position: relative;
    padding: 70px 0;
    background: #163220;
    overflow: hidden;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}
.about-stats-section .stats-overlay-color {
    background: linear-gradient(135deg, rgba(22,50,32,.94), rgba(54,106,68,.82));
}
.about-stat-card {
    min-height: 190px;
    padding: 28px 22px;
    border: 1px solid rgba(236,136,58,.3);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,250,248,.94));
    box-shadow: 0 22px 50px rgba(0,0,0,.22);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.about-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--amber);
    font-size: 24px;
}
.about-stat-card .stat-box-num {
    color: var(--green-dark);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
}
.about-stat-card .stat-box-label {
    color: #334238;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.about-stats-grid .about-stat-card,
.about-stats-grid .about-stat-card:nth-child(4),
.about-stats-grid .about-stat-card:nth-child(5) {
    grid-column: auto;
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    /* Safe area for iOS home bar */
    bottom: calc(30px + env(safe-area-inset-bottom));
    bottom: calc(30px + constant(safe-area-inset-bottom));
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--amber);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: var(--transition);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(229,138,43,0.4);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.scroll-top.visible { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
.scroll-top:hover { background: var(--amber-dark); -webkit-transform: translateY(-2px); transform: translateY(-2px); }

/* =====================================================
   PAGE-SPECIFIC: PAGE HERO
   ===================================================== */
.page-hero {
    margin-top: var(--site-header-height);
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(27,59,43,0.88) 0%,
        rgba(229,138,43,0.45) 100%
    );
}
.page-hero-content { position: relative; z-index: 2; padding-right: 80px; }
.page-hero-content h1 { font-size: clamp(28px, 5vw, 50px); font-weight: 900; color: var(--white); }
.page-hero-content .breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-top: 12px;
}
.page-hero-content .breadcrumb a { color: var(--amber); font-weight: 600; }
.page-hero-content .breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 992px) {
    .container { padding: 0 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .impact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .site-header {
        background: #ffffff !important;
        box-shadow: 0 2px 14px rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    [dir="ltr"] .site-header {
        background: #ffffff !important;
    }

    /* ── Mobile Popup Menu (Modal with Links Only) ── */
    .header-nav {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -46%) scale(0.94);
        width: min(360px, 90vw);
        max-height: min(600px, 82vh);
        background: #ffffff;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 1002;
        border-radius: 24px;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(24, 56, 36, 0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.32s;
        padding: 48px 16px 20px;
        display: flex !important;
        justify-content: flex-start;
    }

    /* ── Mobile Header Layout: Centered Logo, Menu & Search on opposite sides ── */
    .header-inner {
        position: relative;
        height: 84px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-inline: 16px;
    }
    .site-header.scrolled .header-inner {
        height: 68px;
    }

    /* Centered Enlarged Logo */
    .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        padding: 0;
        max-width: min(260px, 56vw);
    }
    .site-header {
        background: #ffffff !important;
    }
    .site-header::before {
        display: none !important;
    }
    .site-logo-img {
        height: 64px;
        max-height: 64px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        transition: height 0.25s ease;
    }
    .site-header.scrolled .site-logo-img {
        height: 50px;
        max-height: 50px;
    }
    :root {
        --site-header-height: 84px;
    }

    /* Actions: Menu on right, Search on left in RTL; reverse in LTR */
    .header-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 3;
        margin: 0 !important;
        padding: 0;
        pointer-events: none;
    }
    .header-actions .btn-contact,
    .header-actions .lang-switch {
        display: none !important;
    }

    /* Hamburger & Search: Pointer events enabled & order */
    .hamburger {
        order: 1;
        pointer-events: auto;
        display: flex;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #f4f7f5;
        border: 1px solid rgba(24, 56, 36, 0.1);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 0;
        min-width: 42px;
        min-height: 42px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .hamburger:hover,
    .hamburger.active {
        background: #e4eee7;
        border-color: var(--green);
    }
    .hamburger span {
        width: 18px;
        height: 2px;
        background: #1a3826;
        border-radius: 2px;
    }

    .btn-search {
        order: 2;
        pointer-events: auto;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #f4f7f5;
        border: 1px solid rgba(24, 56, 36, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #1a3826;
        padding: 0;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .btn-search:hover {
        background: #e4eee7;
        color: var(--green);
        border-color: var(--green);
    }

    /* Popup open — silky smooth centered popup */
    .header-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Disable drawer header & actions completely — links only */
    .header-nav::before,
    .drawer-header,
    .drawer-extra-actions {
        display: none !important;
        content: none !important;
    }

    /* ── Popup Close Button ── */
    .popup-close-btn {
        position: absolute;
        top: 14px;
        left: 16px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f1f5f2;
        border: 1px solid rgba(24, 56, 36, 0.08);
        color: #2c4a37;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.22s ease;
        z-index: 10;
        touch-action: manipulation;
    }
    .popup-close-btn:hover,
    .popup-close-btn:active {
        background: #e2ece5;
        color: #0b1f13;
        transform: scale(1.08);
    }

    /* ── Nav list (Links Only) ── */
    .header-nav .nav-list {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        padding: 0;
        margin: 0;
        flex: 1 1 auto;
    }

    /* Nav Items */
    .header-nav .nav-item {
        width: 100%;
        border-bottom: none;
        border-radius: 14px;
        overflow: hidden;
        transition: background 0.2s ease;
    }

    /* Nav Links */
    .header-nav .nav-link {
        padding: 13px 18px;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #173623;
        border-radius: 12px;
        white-space: normal;
        transition: all 0.22s ease;
        background: transparent;
        border-right: none;
    }
    .header-nav .nav-link:hover,
    .header-nav .nav-link:active {
        background: rgba(54, 106, 68, 0.08);
        color: var(--green);
    }
    .header-nav .nav-item.active > .nav-link {
        color: var(--green-dark);
        background: rgba(54, 106, 68, 0.12);
        font-weight: 800;
    }
    .header-nav .nav-item.active > .nav-link::before {
        content: '';
        width: 5px;
        height: 18px;
        border-radius: 4px;
        background: var(--amber);
        margin-left: 10px;
        flex-shrink: 0;
    }

    /* Chevron */
    .header-nav .nav-link i.fa-chevron-down {
        font-size: 11px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
        color: #6d8576;
        margin-right: auto;
        margin-left: 0;
        flex-shrink: 0;
    }
    .header-nav .nav-item.dropdown-open > .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--green);
    }

    /* Accordion Dropdown — Modern Soft Nested Card */
    .header-nav .dropdown {
        display: none !important;
        position: static;
        background: #f6faf7;
        border-radius: 12px;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
        padding: 6px 8px;
        margin: 4px 6px 8px;
        border: 1px solid rgba(24, 56, 36, 0.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .header-nav .nav-item.dropdown-open > .dropdown {
        display: block !important;
        animation: fadeInPopup 0.25s ease;
    }
    .header-nav .dropdown li {
        list-style: none;
        margin-bottom: 2px;
    }
    .header-nav .dropdown li:last-child {
        margin-bottom: 0;
    }
    .header-nav .dropdown li a {
        padding: 10px 14px;
        font-size: 14.5px;
        font-weight: 600;
        color: #2c4937;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        transition: all 0.2s ease;
        border-right: none;
    }
    .header-nav .dropdown li a::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        opacity: 0.55;
        flex-shrink: 0;
        transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    }
    .header-nav .dropdown li a:hover,
    .header-nav .dropdown li a:active {
        color: var(--green-dark);
        background: rgba(54, 106, 68, 0.09);
    }
    .header-nav .dropdown li a:hover::before {
        opacity: 1;
        transform: scale(1.3);
        background: var(--amber);
    }
    .header-nav .dropdown li.active a {
        color: var(--green-dark);
        font-weight: 700;
        background: rgba(54, 106, 68, 0.12);
    }

    /* Desktop hover dropdowns — disable on mobile */
    .nav-item:hover .dropdown { display: none !important; }
    .header-nav .nav-item.dropdown-open .dropdown { display: block !important; }

    /* ── Language Switcher Button inside Popup ── */
    .popup-lang-wrap {
        display: flex !important;
        width: 100%;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(24, 56, 36, 0.08);
        justify-content: center;
        flex-shrink: 0;
    }
    .popup-lang-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #173623 !important;
        font-size: 14.5px;
        font-weight: 700;
        padding: 10px 18px;
        border-radius: 12px;
        background: #f4f7f5;
        border: 1px solid rgba(24, 56, 36, 0.1);
        text-decoration: none;
        width: 100%;
        transition: all 0.22s ease;
    }
    .popup-lang-btn:hover,
    .popup-lang-btn:active {
        background: rgba(54, 106, 68, 0.1);
        color: var(--green) !important;
        border-color: var(--green);
    }
    .popup-lang-btn i {
        font-size: 14px;
        color: var(--green);
    }

    /* ── Other layout tweaks ── */
    .slide-content { padding-right: 24px; padding-left: 24px; }
    .hero-slider { max-height: 600px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .services-section .container { padding: 0 20px; }
    section { padding: 60px 0; }
    .people-pillars { flex-wrap: wrap; background: rgba(54,106,68,0.95); position: static; padding: 30px 20px; }
    .people-img { height: 300px; }
    .pillar { min-width: calc(50% - 20px); }
    .pillar:not(:last-child) { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 16px; margin-bottom: 16px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-scroll-indicator { display: none; }
    .trust-bar-inner { justify-content: center; text-align: center; }
    .trust-bar-logos { justify-content: center; }
    /* Hide slider arrows on mobile to prevent blocking text */
    .slider-arrow {
        display: none !important;
    }
    .slider-dots {
        bottom: 16px;
    }
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .header-inner {
        height: 78px;
        padding-inline: 12px;
    }
    .site-header.scrolled .header-inner {
        height: 64px;
    }
    .site-logo-img {
        height: 58px;
        max-height: 58px;
        max-width: min(220px, 52vw);
    }
    .site-header.scrolled .site-logo-img {
        height: 48px;
        max-height: 48px;
    }
    .container { padding: 0 16px; }
    .stat-number { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .slide-title { font-size: 26px; }
    .hero-btn-group { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { justify-content: center; width: 100%; text-align: center; }
    .prefooter-actions { flex-direction: column; width: 100%; }
    .btn-cta-phone, .btn-cta-whatsapp, .prefooter-actions .btn-primary { width: 100%; justify-content: center; }
}

/* Page Specific details */
.about-overview { padding: 80px 0; }
.about-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { color: var(--green); }
.about-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 20px; font-size: 15.5px; }
.about-img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; height: 380px; object-fit: cover; }
.leadership-section { background: var(--gray); padding: 80px 0; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.leader-info { padding: 20px; }
.leader-name { font-size: 17px; font-weight: 800; color: var(--green-dark); }
.leader-title { font-size: 13.5px; color: var(--amber-text); font-weight: 700; margin-top: 5px; }
.leader-quote { font-size: 13.5px; color: var(--text-mid); margin-top: 10px; line-height: 1.7; font-style: italic; }

/* =====================================================
   TEAM & STAFF SECTION (فريق العمل والكوادر المتخصصة)
   ===================================================== */
.team-section {
    background: #f8faf8;
    padding: 85px 0;
    position: relative;
    border-top: 1px solid var(--gray2);
    border-bottom: 1px solid var(--gray2);
}

.team-badge-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(54, 106, 68, 0.08);
    color: var(--green);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(54, 106, 68, 0.2);
}

.team-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 45px;
}

.team-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--text-mid);
    border: 1px solid var(--gray3);
    padding: 9px 20px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.team-filter-btn:hover {
    color: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.team-filter-btn.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 4px 14px rgba(54, 106, 68, 0.25);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(27, 59, 43, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(27, 59, 43, 0.15);
    border-color: rgba(54, 106, 68, 0.35);
}

.team-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #e5ece7;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.06);
}

.team-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 39, 28, 0.88) 0%, rgba(16, 39, 28, 0.25) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.35s ease;
}

.team-card:hover .team-img-overlay {
    opacity: 0.95;
}

.team-dept-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(27, 59, 43, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.team-exp-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.team-exp-badge i {
    color: var(--amber);
}

.team-info {
    padding: 22px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.team-role {
    font-size: 13.5px;
    color: var(--amber-text);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-role i {
    font-size: 12px;
    opacity: 0.85;
}

.team-bio {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 18px;
    flex-grow: 1;
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray2);
    margin-top: auto;
}

.team-social-links {
    display: flex;
    gap: 8px;
}

.team-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--gray3);
}

.team-social-btn:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    transform: translateY(-2px);
}

.team-contact-link {
    font-size: 12.5px;
    color: var(--green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.team-contact-link:hover {
    color: var(--amber-text);
}

/* Join Team Banner Callout */
.team-join-callout {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--green-dark) 0%, #245738 100%);
    border-radius: 12px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(27, 59, 43, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-join-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--white);
}

.team-join-content p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.team-join-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid var(--amber);
}

.team-join-btn:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 138, 43, 0.4);
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .team-join-callout {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-filters {
        gap: 8px;
    }
    .team-filter-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}

.vision-section { padding: 80px 0; }
.vision-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.vision-card {
    padding: 36px 28px;
    background: var(--gray);
    border-radius: var(--radius);
    border-bottom: 4px solid var(--green);
    transition: var(--transition);
    text-align: center;
}
.vision-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); border-bottom-color: var(--amber); }
.vision-card-icon { font-size: 36px; color: var(--amber-text); margin-bottom: 16px; }
.vision-card h3 { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.vision-card p { font-size: 14px; color: var(--text-mid); line-height: 1.8; }

.services-page-section { padding: 80px 0; }
.services-tabs {
    display: flex;
    gap: 8px;
}
/* =====================================================
   INTERNAL PAGES RESPONSIVE DESIGN SYSTEM
   ===================================================== */

/* ── Split 2-Column Grid (Generic for About/People/Impact/Careers) ── */
.split-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-2col-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}
.split-2col-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .split-2col-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .split-2col-media img {
        height: 260px;
    }
}

/* ── About Overview & Leadership ── */
.about-overview { padding: 80px 0; }
.about-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { color: var(--green); }
.about-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 20px; font-size: 15.5px; }
.about-img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; height: 380px; object-fit: cover; }

.leadership-section { background: var(--gray); padding: 80px 0; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.leader-info { padding: 20px; }
.leader-name { font-size: 17px; font-weight: 800; color: var(--green-dark); }
.leader-title { font-size: 13.5px; color: var(--amber-text); font-weight: 700; margin-top: 5px; }
.leader-quote { font-size: 13.5px; color: var(--text-mid); margin-top: 10px; line-height: 1.7; font-style: italic; }

@media (max-width: 992px) {
    .about-overview-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-img-frame img { height: 280px; }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .leadership-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .leader-img { height: 240px; }
    .leader-info { padding: 16px; }
}

/* ── Timeline Responsive ── */
@media (max-width: 768px) {
    .timeline-section { padding: 68px 0 74px; }
    .timeline-intro { margin-bottom: 46px; text-align: start; }
    .timeline-intro .section-desc { font-size: 15px; }
    .timeline-eyebrow { font-size: 11px; }
    .timeline-eyebrow::after { display: none; }
    .timeline { padding: 0; }
    .timeline::before { display: block; left: 24px; right: auto; width: 2px; transform: none; }
    .timeline-item { display: grid; grid-template-columns: 76px minmax(0,1fr); column-gap: 10px; margin-bottom: 26px; padding: 0; }
    .timeline-year, .timeline-item:nth-child(even) .timeline-year { grid-column: 1; grid-row: 1; align-self: start; min-width: 0; padding: 0; }
    .timeline-year::after { left: 24px; top: 21px; width: 15px; height: 15px; border-width: 3px; transform: translate(-50%,-50%); }
    .timeline-year span { position: absolute; top: 10px; left: 36px; right: auto; transform: none; min-width: 58px; padding: 6px 9px; border-radius: 999px; background: #e8f0e9; color: #255d3c; font-size: 13px; line-height: 1; direction: ltr; unicode-bidi: isolate; text-align: center; white-space: nowrap; }
    .timeline-content, .timeline-item:nth-child(even) .timeline-content { grid-column: 2; grid-row: 1; min-height: 0; padding: 22px 18px; border-radius: 15px; }
    .timeline-content::after, .timeline-item:nth-child(even) .timeline-content::after { display: none; }
    .timeline-card-meta { padding-top: 32px; margin-bottom: 9px; }
    .timeline-phase { font-size: 14px; }
    .timeline-content p { font-size: 14px; line-height: 1.85; }
    html[dir="ltr"] .timeline::before { left: 24px; right: auto; }
    html[dir="ltr"] .timeline-item { grid-template-columns: 76px minmax(0,1fr); padding: 0; }
    html[dir="ltr"] .timeline-year, html[dir="ltr"] .timeline-item:nth-child(even) .timeline-year { grid-column: 1; }
    html[dir="ltr"] .timeline-year span { left: 36px; right: auto; }
    html[dir="ltr"] .timeline-content, html[dir="ltr"] .timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
}

/* ── Vision, Mission, Values ── */
.vision-section { padding: 80px 0; }
.vision-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.vision-card {
    padding: 36px 28px;
    background: var(--gray);
    border-radius: var(--radius);
    border-bottom: 4px solid var(--green);
    transition: var(--transition);
    text-align: center;
}
.vision-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); border-bottom-color: var(--amber); }
.vision-card-icon { font-size: 36px; color: var(--amber-text); margin-bottom: 16px; }
.vision-card h3 { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.vision-card p { font-size: 14px; color: var(--text-mid); line-height: 1.8; }

@media (max-width: 900px) {
    .vision-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .vision-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .vision-card { padding: 26px 20px; }
}

/* ── Training & Development Grid ── */
.training-section { background: var(--gray); padding: 80px 0; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.training-card {
    background: var(--white);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    padding: 30px 24px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.training-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: var(--shadow);
}
.training-icon { font-size: 32px; color: var(--amber); margin-bottom: 14px; }
.training-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(54,106,68,0.1);
    color: var(--green);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
}
html[dir="ltr"] .training-badge {
    left: auto;
    right: 18px;
}
.training-title { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.training-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; margin: 0; }

@media (max-width: 992px) {
    .training-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .training-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .training-card { padding: 24px 18px; }
}

/* ── Saudization Statistics ── */
.saudization-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.saudi-stat {
    background: #f4f8f5;
    border: 1px solid #dbe7df;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
}
.saudi-stat-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}
.saudi-stat-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-mid);
    margin-top: 6px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .saudization-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .saudi-stat { padding: 12px 6px; }
    .saudi-stat-num { font-size: 20px; }
    .saudi-stat-label { font-size: 11px; }
}
@media (max-width: 420px) {
    .saudization-stats { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Services Page & Tabs ── */
.services-page-section { padding: 80px 0; }
.services-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--gray);
    padding: 6px;
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.tab-btn.active { background: var(--green); color: var(--white); }
.tab-btn:hover:not(.active) { background: rgba(54,106,68,0.08); color: var(--green); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.services-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--green);
}
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--amber); }
.service-detail-img { width: 100%; height: 200px; object-fit: cover; }
.service-detail-body { padding: 24px; }
.service-detail-icon { font-size: 32px; color: var(--amber-text); margin-bottom: 12px; }
.service-detail-title { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.service-detail-desc { font-size: 14px; color: var(--text-mid); line-height: 1.8; }
.service-category-stats {
    margin: 42px 0 8px;
    padding: 56px clamp(18px, 4vw, 44px);
    border-radius: 0;
    background-color: #eef4f0;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
.service-category-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 251, 249, .9);
}
.service-category-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.service-category-stat-card {
    min-height: 184px;
    padding: 26px 20px;
    border: 1px solid rgba(34, 71, 48, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 42px rgba(22, 50, 32, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.service-category-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
}
.service-category-stat-number {
    color: var(--green-dark);
    font-size: clamp(27px, 3.2vw, 40px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: .04em;
}
.service-category-stat-label {
    margin-top: 14px;
    color: #334338;
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 800;
}

@media (max-width: 992px) {
    .services-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .service-category-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .services-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex: 0 0 auto;
        min-width: auto;
        white-space: nowrap;
    }
}
@media (max-width: 640px) {
    .services-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-detail-img { height: 180px; }
    .service-detail-body { padding: 18px 16px; }
    .service-category-stats { margin-top: 28px; padding: 28px 14px; }
    .service-category-stats-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .service-category-stat-card { min-height: 170px; border-radius: 16px; padding: 24px 16px; }
    .service-category-stat-icon { width: 56px; height: 56px; font-size: 21px; margin-bottom: 18px; }
    .service-category-stat-label { font-size: 15px; margin-top: 12px; }
}

/* ── Contact Section ── */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 26px; font-weight: 900; color: var(--green-dark); margin-bottom: 24px; }
.contact-detail { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.contact-detail-item { display: flex; flex-direction: column; gap: 6px; }
.contact-detail-label { font-size: 15px; font-weight: 800; color: var(--green-dark); display: flex; align-items: center; gap: 8px; }
.contact-detail-label i { color: var(--amber-text); }
.contact-detail-value { font-size: 14px; color: var(--text-mid); }
.contact-detail-value a { color: var(--green-dark); font-weight: 700; }
.contact-detail-value a:hover { color: var(--amber-text); }
.contact-form-wrap { background: var(--gray); padding: 40px; border-radius: var(--radius); border-top: 4px solid var(--amber); }
.contact-form-wrap h2 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px; /* Minimum 16px to prevent iOS auto-zoom on focus */
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    outline: none;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
html[dir="ltr"] .form-group input,
html[dir="ltr"] .form-group textarea,
html[dir="ltr"] .form-group select {
    direction: ltr;
    text-align: left;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(54,106,68,0.12); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #bbb; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .contact-form-wrap { padding: 24px 18px; }
    .contact-info h2 { font-size: 20px; margin-bottom: 18px; }
}

/* ── Careers Page ── */
.careers-intro { padding: 70px 0; background: var(--gray); }
.careers-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.careers-list-section { padding: 70px 0; }
.careers-filters { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
    padding: 9px 20px;
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 24px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.job-cards { display: flex; flex-direction: column; gap: 16px; }
.job-card {
    background: var(--white);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.job-card:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(54,106,68,0.12); }
.job-info { flex: 1; }
.job-title { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.job-tag {
    font-size: 12.5px;
    color: var(--text-mid);
    background: var(--gray);
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-tag i { color: var(--amber); font-size: 11px; }
.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    border: 2px solid var(--green);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.job-apply-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--white); }

@media (max-width: 900px) {
    .careers-intro-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .careers-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 24px;
        scrollbar-width: none;
    }
    .careers-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 680px) {
    .job-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 18px;
    }
    .job-apply-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* ── Impact & Sustainability ── */
.impact-pillars { padding: 80px 0; }
.impact-pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.impact-pillar-card {
    padding: 36px 24px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--amber);
    transition: var(--transition);
}
.impact-pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--green); }
.impact-pillar-icon { font-size: 38px; color: var(--green); margin-bottom: 16px; }
.impact-pillar-card h3 { font-size: 16px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.impact-pillar-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.8; }

.sustainability-stats { background: var(--green-gradient); padding: 70px 0; border-top: 3px solid var(--amber); }
.sus-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sus-stat { text-align: center; }
.sus-stat-num { font-size: 42px; font-weight: 900; color: var(--amber); line-height: 1; }
.sus-stat-num span { font-size: 20px; color: var(--white); }
.sus-stat-label { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 10px; line-height: 1.5; }

@media (max-width: 1024px) {
    .impact-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sus-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
    .impact-pillars-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .impact-pillar-card { padding: 24px 18px; }
    .sus-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sus-stat-num { font-size: 32px; }
    .sus-stat-label { font-size: 12.5px; }
}
@media (max-width: 400px) {
    .sus-stats-grid { grid-template-columns: 1fr; }
}

/* ── Quote / RFP Page ── */
.quote-ribbon-section { background: #132e20; color: #ffffff; padding: 16px 0; border-bottom: 2px solid var(--amber); }
.quote-ribbon-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px; text-align: center; }
.quote-ribbon-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.quote-ribbon-item i { color: var(--amber); font-size: 18px; flex-shrink: 0; }
.quote-main-section { padding: 60px 0 80px; background: #f8fafc; }
.quote-flash-msg { margin-bottom: 30px; padding: 16px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.quote-flash-msg.flash-success { background: #ecfdf5; border: 1px solid #34d399; color: #065f46; }
.quote-flash-msg.flash-error { background: #fef2f2; border: 1px solid #f87171; color: #991b1b; }
.quote-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.quote-form-card { background: #ffffff; border-radius: 16px; padding: 36px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; }
.quote-form-header { margin-bottom: 28px; }
.quote-sub-badge { font-size: 12px; font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.quote-form-title { margin: 6px 0 10px 0; font-size: 24px; font-weight: 900; color: #1e293b; }
.quote-form-desc { margin: 0; font-size: 14px; color: #64748b; line-height: 1.6; }
.quote-form-section { margin-bottom: 26px; }
.quote-section-title { font-size: 15px; font-weight: 800; color: #0f172a; margin: 0 0 14px 0; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.quote-section-title i { color: var(--amber); }
.quote-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-row-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quote-service-checkbox { display: flex; align-items: center; gap: 10px; background: #f8fafc; padding: 12px 14px; border-radius: 8px; border: 1px solid #edf2f7; cursor: pointer; transition: all 0.2s ease; }
.quote-service-checkbox:hover { border-color: var(--amber); background: #fffbf6; }
.quote-service-checkbox input { width: 18px; height: 18px; accent-color: var(--amber); flex-shrink: 0; }
.quote-service-checkbox span { font-size: 13px; font-weight: 600; color: #1e293b; }
.quote-service-checkbox.quote-service-featured { background: #ecfdf5; border-color: #a7f3d0; }
.quote-service-checkbox.quote-service-featured strong { font-size: 13px; color: #065f46; }
.quote-submit-btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; font-weight: 800; border-radius: 10px; box-shadow: 0 4px 14px rgba(229, 138, 43, 0.35); }
.quote-privacy-note { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 12px; }
.quote-sidebar-card-primary { background: #1b3b2b; color: #ffffff; border-radius: 16px; padding: 30px; margin-bottom: 24px; box-shadow: 0 10px 25px rgba(27, 59, 43, 0.25); }
.quote-sidebar-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(229, 138, 43, 0.2); display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 22px; margin-bottom: 18px; }
.quote-sidebar-card-primary h3 { font-size: 19px; font-weight: 800; margin: 0 0 12px 0; color: #ffffff; }
.quote-sidebar-card-primary p { font-size: 13.5px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; }
.quote-sidebar-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.quote-sidebar-features li { display: flex; align-items: center; gap: 10px; }
.quote-sidebar-features li i { color: var(--amber); }
.quote-sidebar-card-secondary { background: #ffffff; border-radius: 16px; padding: 26px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.quote-sidebar-card-secondary h4 { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.quote-sidebar-card-secondary p { font-size: 13px; color: #64748b; margin-bottom: 18px; line-height: 1.5; }
.quote-sidebar-contacts { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.quote-sidebar-contacts a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e293b; font-weight: 700; background: #f8fafc; padding: 10px 14px; border-radius: 8px; transition: background 0.2s; }
.quote-sidebar-contacts a:hover { background: #f1f5f9; color: var(--green); }
.quote-sidebar-contacts a i { color: var(--amber); }

@media (max-width: 992px) {
    .quote-layout-grid { grid-template-columns: 1fr; gap: 28px; }
    .quote-row-3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .quote-form-card { padding: 22px 16px; }
    .quote-row-2col, .quote-row-3col, .quote-services-grid { grid-template-columns: 1fr; gap: 12px; }
    .quote-form-title { font-size: 20px; }
    .quote-sidebar-card-primary { padding: 22px 18px; }
    .quote-sidebar-card-secondary { padding: 20px 16px; }
    .quote-ribbon-container { flex-direction: column; gap: 10px; }
}

/* ── General Mobile Resiliency ── */
body {
    overflow-x: hidden;
}
img, iframe, video {
    max-width: 100%;
}
@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Safe space for mobile floating contact bar */
    }
}


/* =====================================================
   FLOATING CONTACT BAR
   ===================================================== */
.floating-contact-bar {
    display: flex !important;
    position: fixed;
    top: 50%;
    inset-inline-end: 18px;
    transform: translateY(-50%);
    z-index: 990;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    backdrop-filter: blur(22px) saturate(165%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 12px 38px rgba(15, 39, 27, .18), 0 2px 8px rgba(15, 39, 27, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: visible;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 22px;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: var(--font);
}

/* Slide-out label on hover */
.float-btn .float-label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    color: #143322;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, left 0.25s ease;
    border: 1px solid rgba(20,45,33,0.08);
    border-right: none;
    font-family: var(--font);
}

.float-btn:hover .float-label {
    opacity: 1;
    left: 100%;
}

/* WhatsApp */
.float-whatsapp { color: #25D366; }
.float-whatsapp:hover { background: rgba(37, 211, 102, 0.18); }
.float-whatsapp .float-label { border-color: rgba(37,211,102,0.3); }

/* Phone */
.float-phone { color: var(--amber); }
.float-phone:hover { background: rgba(229, 138, 43, 0.18); }
.float-phone .float-label { border-color: rgba(229,138,43,0.3); }

/* Email */
.float-email { color: #60a5fa; }
.float-email:hover { background: rgba(96, 165, 250, 0.18); }
.float-email .float-label { border-color: rgba(96,165,250,0.3); }

/* Live Chat */
.float-chat { color: var(--green-light); }
.float-chat:hover { background: rgba(65, 140, 97, 0.18); }
.float-chat .float-label { border-color: rgba(65,140,97,0.3); }

/* Online pulse dot */
.chat-pulse {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .95);
    animation: pulseGreen 1.8s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Divider between buttons */
.float-btn + .float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(15, 39, 27, .12);
}

@media (max-width: 768px) {
    .site-header,
    [dir="ltr"] .site-header,
    .site-header.scrolled,
    [dir="ltr"] .site-header.scrolled {
        background: radial-gradient(ellipse 220px 135px at 50% 50%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0) 100%), linear-gradient(135deg, #245738 0%, var(--green-dark) 100%) !important;
    }
    .hamburger {
        background: rgba(255,255,255,0.16);
        border-color: rgba(255,255,255,0.35);
    }
    .hamburger span {
        background: #ffffff;
    }
    .btn-search,
    .lang-switch {
        color: #ffffff;
        border-color: rgba(255,255,255,0.35);
        background: rgba(255,255,255,0.12);
    }
    .floating-contact-bar {
        display: -webkit-flex !important;
        display: flex !important;
        position: fixed;
        top: auto;
        bottom: 20px;
        /* Safe area for iOS home indicator */
        bottom: calc(20px + env(safe-area-inset-bottom));
        bottom: calc(20px + constant(safe-area-inset-bottom));
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        z-index: 990;
        -webkit-flex-direction: row;
        flex-direction: row;
        gap: 4px;
        padding: 6px 10px;
        background: rgba(20, 45, 33, 0.92);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
        overflow: hidden;
    }
    .float-btn .float-label { display: none; }
    .float-btn + .float-btn::before {
        top: 10px;
        bottom: 10px;
        left: 0;
        right: auto;
        width: 1px;
        height: auto;
    }
}

/* =====================================================
   iOS / SAFARI SPECIFIC FIXES
   ===================================================== */

/* Fix for tap delay on iOS */
a, button, [role="button"] {
    touch-action: manipulation;
}

/* Prevent sticky hover on iOS touch devices */
@media (hover: none) {
    .service-card:hover { transform: none; background: rgba(255,255,255,.9); border-color: rgba(22,75,48,.11); }
    .stat-box:hover { transform: none; }
    .btn-primary:hover { transform: none; }
    .btn-amber:hover { transform: none; }
    .impact-card:hover .impact-card-bg { transform: none; }
    .leader-card:hover { transform: none; }
    .vision-card:hover { transform: none; }
    .impact-pillar-card:hover { transform: none; }
    .social-icon:hover { transform: none; }
}

/* Fix for iOS momentum scrolling in overflow containers */
.header-nav.open,
.clients-carousel-wrap {
    -webkit-overflow-scrolling: touch;
}

/* Fix background-attachment: fixed not supported on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .stats-bg-img,
    .services-bg {
        background-attachment: scroll;
    }
}

/* ============================================================
   PHASE 1 ADDITIONS - Apply Modal + Enhancements
   ============================================================ */

/* ── Job Apply Modal ──────────────────────────────────────── */
.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 59, 43, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.apply-modal.open {
    opacity: 1;
    pointer-events: all;
}
.apply-modal-inner {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.apply-modal.open .apply-modal-inner {
    transform: translateY(0);
}
.apply-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray3);
    background: var(--gray);
    color: var(--text-mid);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.apply-modal-close:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.apply-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.apply-modal-job-name {
    font-size: 14.5px;
    color: var(--amber-text);
    font-weight: 700;
    margin-bottom: 24px;
    padding: 8px 14px;
    background: rgba(229, 138, 43, 0.1);
    border-radius: var(--radius);
    border-right: 3px solid var(--amber);
}
@media (max-width: 600px) {
    .apply-modal-inner { padding: 28px 20px; }
    .apply-modal-title { font-size: 18px; }
}

/* ── Phase 1 General Fixes ───────────────────────────────── */
/* Ensure contact form uses name attributes for AJAX */
#contact-form input,
#contact-form select,
#contact-form textarea {
    font-family: var(--font);
}

/* Field error messages */
.field-error {
    color: #e74c3c;
    font-size: 12.5px;
    display: block;
    margin-top: 4px;
}

/* =====================================================
   PHASE 6 — LTR MULTILINGUAL SUPPORT
   Seamless English LTR layout adaptation
   ===================================================== */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html[dir="ltr"] h1, 
html[dir="ltr"] h2, 
html[dir="ltr"] h3, 
html[dir="ltr"] h4, 
html[dir="ltr"] h5, 
html[dir="ltr"] h6,
html[dir="ltr"] .slide-title,
html[dir="ltr"] .section-title,
html[dir="ltr"] .nav-link {
    font-family: 'Inter', 'Cairo', sans-serif;
}

html[dir="ltr"] .site-header .header-inner {
    direction: ltr;
}

html[dir="ltr"] .header-actions {
    margin-right: 0;
    margin-left: auto;
}

/* Hero Slider in LTR mode */
html[dir="ltr"] .slide-content {
    padding-right: 0;
    padding-left: 100px;
    text-align: left;
}

html[dir="ltr"] .slide-overlay {
    background: linear-gradient(
        to right,
        rgba(15,39,27,0.92) 0%,
        rgba(19,46,32,0.78) 55%,
        rgba(0,0,0,0.42) 100%
    );
}

html[dir="ltr"] .hero-scroll-indicator {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}
html[dir="ltr"] .hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(-2px);
}

html[dir="ltr"] .slider-prev {
    left: 24px;
    right: auto;
}

html[dir="ltr"] .slider-next {
    right: 24px;
    left: auto;
}

/* Search Bar LTR */
html[dir="ltr"] .search-input {
    text-align: left;
    direction: ltr;
}

/* Floating Contact Bar */
html[dir="ltr"] .floating-contact-bar {
    left: auto;
    right: 0;
    border-radius: 12px 0 0 12px;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
}

html[dir="ltr"] .breadcrumb .sep {
    transform: rotate(180deg);
}

html[dir="ltr"] .prefooter-badge i,
html[dir="ltr"] .service-icon,
html[dir="ltr"] .contact-detail-item i {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="ltr"] .footer-links a,
html[dir="ltr"] .footer-address p {
    text-align: left;
}

html[dir="ltr"] .trust-bar-label {
    margin-left: 0;
    margin-right: 15px;
}

html[dir="ltr"] .stat-box {
    text-align: left;
}

html[dir="ltr"] .timeline-item {
    text-align: left;
}

/* Mobile Popup LTR */
@media (max-width: 860px) {
    html[dir="ltr"] .header-actions {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: space-between;
    }
    html[dir="ltr"] .popup-close-btn {
        left: auto;
        right: 16px;
    }
    html[dir="ltr"] .header-nav .nav-item.active > .nav-link::before {
        margin-left: 0;
        margin-right: 10px;
    }
    html[dir="ltr"] .header-nav .nav-link i.fa-chevron-down {
        margin-right: 0;
        margin-left: auto;
    }
}

.managed-hero.hero-slider,.managed-hero.page-hero{height:var(--hero-height);min-height:240px;max-height:none;padding:0;background:#0f271b;overflow:hidden}
.managed-hero .hero-picture{position:absolute;inset:0;display:block}
.managed-hero .hero-video-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.managed-hero .slide::before{display:none}
.managed-hero .hero-picture img{width:100%;height:100%;object-fit:cover;transform:scale(1.04);will-change:transform,filter;backface-visibility:hidden}
.managed-hero .slide.active.hero-image-animating .hero-picture img{animation:heroImageDriftA 4.8s ease-out both}
.managed-hero .slide:nth-child(even).active.hero-image-animating .hero-picture img{animation-name:heroImageDriftB}
.managed-hero .slide:nth-child(3n).active.hero-image-animating .hero-picture img{animation-name:heroImageDriftC}
@keyframes heroImageDriftA{from{transform:scale(1.01) translate3d(0,0,0)}to{transform:scale(1.18) translate3d(-2.6%,1.3%,0)}}
@keyframes heroImageDriftB{from{transform:scale(1.01) translate3d(0,0,0)}to{transform:scale(1.18) translate3d(2.6%,-1.3%,0)}}
@keyframes heroImageDriftC{from{transform:scale(1.01) translate3d(0,0,0)}to{transform:scale(1.16) translate3d(0,-2.2%,0)}}
.managed-hero .slide-content{width:100%;max-width:1200px;margin-inline:auto;padding:32px 80px;text-align:var(--hero-align);max-height:none;overflow:visible}
.managed-hero .slide-title,.managed-hero .slide-desc{max-width:850px;margin-inline:0;white-space:normal;overflow-wrap:anywhere}
.managed-hero[style*="--hero-align:center"] .slide-title,.managed-hero[style*="--hero-align:center"] .slide-desc{margin-inline:auto}
.managed-hero[style*="--hero-align:end"] .slide-title,.managed-hero[style*="--hero-align:end"] .slide-desc{margin-inline-start:auto}
.managed-hero[style*="--hero-align:center"] .hero-btn-group{justify-content:center}
.managed-hero[style*="--hero-align:end"] .hero-btn-group{justify-content:flex-end}
.managed-hero .slide:not(.active){pointer-events:none;visibility:hidden}
.managed-hero.page-hero .slide-title{font-size:clamp(28px,5vw,50px)}
.managed-hero .breadcrumb{display:flex;gap:10px;color:#fff;margin-top:16px;justify-content:var(--hero-align)}
.managed-hero .breadcrumb a{color:var(--amber)}
@media (prefers-reduced-motion: reduce){.managed-hero .hero-picture img{animation:none!important;transform:none!important}}
@media(max-width:600px){.managed-hero.hero-slider,.managed-hero.page-hero{height:var(--hero-mobile-height)}html[dir] .managed-hero .slide-content{padding:28px 24px}.managed-hero .slide-title{font-size:clamp(25px,7vw,38px)}.managed-hero .slide-desc{font-size:15px}.managed-hero .hero-btn-group{flex-wrap:wrap}.managed-hero .slider-arrow{top:auto;bottom:12px}.managed-hero .hero-scroll-indicator{display:none}}

.contracts-portal{padding:150px 0 90px;background:radial-gradient(ellipse 720px 420px at 88% 0%,rgba(255,255,255,.9),transparent 70%),linear-gradient(180deg,#f6faf7 0%,#eef5f0 100%);min-height:calc(100vh - 104px)}
.contracts-hero{text-align:center;max-width:820px;margin:0 auto 34px}
.contracts-kicker{display:inline-flex;align-items:center;gap:9px;color:var(--amber-text);font-size:13px;font-weight:900;margin-bottom:14px}
.contracts-hero h1{font-size:clamp(34px,5vw,62px);line-height:1.2;color:#123b28;margin:0 0 14px;font-weight:900}
.contracts-hero p{font-size:17px;line-height:1.9;color:#5a6b62;margin:0}
.contracts-layout{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:24px;align-items:start}
.contracts-search-card,.contracts-preview-card{background:rgba(255,255,255,.9);border:1px solid rgba(22,75,48,.1);border-radius:18px;box-shadow:0 18px 44px rgba(20,55,37,.09)}
.contracts-search-card{padding:26px;position:sticky;top:124px}
.contracts-search-card label{display:block;margin-bottom:16px;color:#173e29;font-weight:800;font-size:13px}
.contracts-search-card .form-control{margin-top:7px;height:48px;border-radius:10px}
.contracts-submit{width:100%;justify-content:center;margin-top:4px;border-radius:10px}
.contracts-note{font-size:12px;line-height:1.8;color:#6b7d71;margin:14px 0 0}
.contracts-alert{display:flex;gap:8px;align-items:center;background:#fff1f1;color:#9a1d1d;border:1px solid #ffd0d0;border-radius:10px;padding:11px 12px;margin-bottom:14px;font-size:13px;font-weight:700}
.contracts-preview-card{min-height:620px;overflow:hidden}
.contracts-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #e2eae4}
.contracts-result-head span{display:block;color:var(--amber-text);font-size:12px;font-weight:900;margin-bottom:5px}
.contracts-result-head h2{font-size:22px;color:#123b28;margin:0 0 4px}
.contracts-result-head p{margin:0;color:#617067;font-size:13px}
.contracts-download{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border-radius:10px;background:#245738;color:#fff;text-decoration:none;font-weight:800;font-size:13px;white-space:nowrap}
.contracts-mobile-actions{display:none;padding:14px 16px;border-bottom:1px solid #e2eae4;background:#f7faf8}
.contracts-open-preview{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;border-radius:10px;background:#e98225;color:#fff;font-weight:900;text-decoration:none}
.contracts-pdf-frame{display:block;width:100%;height:720px;border:0;background:#f3f6f4}
.contracts-empty{min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px;color:#607166}
.contracts-empty i{font-size:56px;color:var(--amber);margin-bottom:18px}
.contracts-empty h2{color:#143b28;font-size:26px;margin:0 0 10px}
.contracts-empty p{max-width:420px;line-height:1.8;margin:0}
@media(max-width:860px){.contracts-portal{padding:110px 0 58px}.contracts-layout{grid-template-columns:1fr}.contracts-search-card{position:static}.contracts-result-head{align-items:flex-start;flex-direction:column}.contracts-mobile-actions{display:block}.contracts-pdf-frame{height:560px}.contracts-preview-card,.contracts-empty{min-height:460px}}

.gallery-page{padding:150px 0 90px;background:linear-gradient(180deg,#f6faf7 0%,#eef5f0 100%);min-height:calc(100vh - 104px)}
.gallery-hero{text-align:center;max-width:820px;margin:0 auto 34px}
.gallery-kicker{display:inline-flex;align-items:center;gap:9px;color:var(--amber-text);font-size:13px;font-weight:900;margin-bottom:14px}
.gallery-hero h1{font-size:clamp(34px,5vw,60px);line-height:1.2;color:#123b28;margin:0 0 14px;font-weight:900}
.gallery-hero p{font-size:17px;line-height:1.9;color:#5a6b62;margin:0}
.gallery-tabs{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.gallery-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid rgba(22,75,48,.14);border-radius:999px;background:#fff;color:#204f35;font-weight:800;font-size:13px;text-decoration:none}
.gallery-tabs a.active,.gallery-tabs a:hover{background:#245738;color:#fff;border-color:#245738}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.gallery-card{overflow:hidden;border:1px solid rgba(22,75,48,.1);border-radius:16px;background:#fff;box-shadow:0 16px 38px rgba(20,55,37,.08)}
.gallery-media{position:relative;aspect-ratio:4/3;background:#e8f0ea;overflow:hidden}
.gallery-media img,.gallery-media video{width:100%;height:100%;object-fit:cover;display:block}
.gallery-preview-trigger{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;color:#fff;text-align:inherit}
.gallery-preview-trigger span{position:absolute;inset-inline:16px;bottom:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:10px;background:rgba(18,50,31,.82);backdrop-filter:blur(8px);font-weight:900;font-size:13px;opacity:0;transform:translateY(10px);transition:opacity .22s ease,transform .22s ease}
.gallery-preview-trigger:hover span,.gallery-preview-trigger:focus-visible span{opacity:1;transform:translateY(0)}
.gallery-video-link{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(135deg,#143b28,#245738);color:#fff;text-decoration:none;font-weight:900}
.gallery-video-link i{width:54px;height:54px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e98225}
.gallery-card-body{padding:16px 18px 18px}
.gallery-card-body span{display:block;color:var(--amber-text);font-size:12px;font-weight:900;margin-bottom:6px}
.gallery-card-body h2{margin:0;color:#123b28;font-size:18px;line-height:1.4}
.gallery-card-body p{margin:8px 0 0;color:#617067;font-size:13px;line-height:1.7}
.gallery-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff;border-radius:16px;border:1px solid rgba(22,75,48,.1);color:#607166}
.gallery-empty i{font-size:48px;color:var(--amber);margin-bottom:14px}
.gallery-empty h2{font-size:24px;color:#123b28;margin:0}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(8,22,14,.82);backdrop-filter:blur(10px)}
.gallery-lightbox figure{width:min(1120px,100%);max-height:92vh;margin:0;display:flex;flex-direction:column;gap:12px}
.gallery-lightbox img{display:block;width:100%;height:auto;max-height:78vh;object-fit:contain;border-radius:14px;background:#10251a;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.gallery-lightbox figcaption{display:flex;flex-direction:column;gap:4px;color:#fff;text-align:center}
.gallery-lightbox figcaption strong{font-size:18px;font-weight:900}
.gallery-lightbox figcaption span{font-size:14px;color:rgba(255,255,255,.78);line-height:1.7}
.gallery-lightbox-close{position:fixed;top:18px;inset-inline-end:18px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#173e29;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;box-shadow:0 12px 30px rgba(0,0,0,.22)}
body.gallery-preview-open{overflow:hidden}
@media(max-width:980px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.gallery-page{padding:112px 0 58px}.gallery-grid{grid-template-columns:1fr}.gallery-hero{text-align:start}.gallery-tabs{justify-content:flex-start}.gallery-preview-trigger span{opacity:1;transform:none}.gallery-lightbox{padding:14px}.gallery-lightbox-close{top:12px;inset-inline-end:12px}}

/* Homepage company overview — editorial metrics layout */
.stats-section {
    padding: 110px 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(229,138,43,.12), transparent 25%),
        radial-gradient(circle at 8% 88%, rgba(54,106,68,.10), transparent 28%),
        linear-gradient(145deg, #fbfcfb 0%, #f2f7f3 100%);
    isolation: isolate;
}
.stats-section::before {
    content: ''; position: absolute; inset-inline-end: -110px; top: -130px;
    width: 420px; height: 420px; border: 1px solid rgba(54,106,68,.09);
    border-radius: 50%; box-shadow: 0 0 0 46px rgba(54,106,68,.025), 0 0 0 92px rgba(54,106,68,.018); z-index: -1;
}
.stats-bg-img { opacity: .035; mix-blend-mode: multiply; }
.stats-header { max-width: 760px; margin: 0 auto 54px; }
.stats-kicker {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
    padding: 8px 14px; border-radius: 999px; background: rgba(229,138,43,.1);
    border: 1px solid rgba(229,138,43,.2); color: #a6540d; font-size: 12px; font-weight: 800;
}
.stats-kicker i { font-size: 11px; }
.stats-title { font-size: clamp(34px,4vw,50px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.stats-subtitle { max-width: 620px; margin: 13px auto 0; font-size: 16px; line-height: 1.75; color: #617067; font-weight: 600; }
.stats-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 2fr); align-items: stretch; gap: 22px; }
.stats-featured-box {
    min-height: 100%; padding: 38px 30px; border: 0; border-radius: 26px; margin: 0;
    flex-direction: column; justify-content: center; gap: 24px;
    background: radial-gradient(ellipse 360px 240px at 85% 12%, rgba(255,255,255,.14) 0%, rgba(255,255,255,.06) 42%, rgba(255,255,255,0) 78%), linear-gradient(135deg, #245738 0%, var(--green-dark) 100%);
    box-shadow: 0 24px 60px rgba(15,39,27,.2); outline: 1px solid rgba(255,255,255,.1); outline-offset: -8px;
}
.stats-featured-box::before { top: -30%; right: -35%; width: 130%; height: 80%; background: radial-gradient(circle,rgba(229,138,43,.16),transparent 67%); }
.stats-featured-box::after { content: attr(data-year); position: absolute; inset-inline-start: 18px; bottom: -18px; color: rgba(255,255,255,.035); font: 900 76px/1 var(--font); letter-spacing: -5px; }
.featured-col-found,.featured-col-exp { flex: 0; position: relative; z-index: 1; }
.featured-top-label { color: #f0b067; font-size: 13px; }
.featured-year { margin-top: 6px; font-size: clamp(42px,4vw,58px); }
.featured-col-num { position: relative; z-index: 1; padding: 0; }
.featured-big-num { font-size: clamp(66px,7vw,92px); color: #f28b33; }
.featured-bottom-label { max-width: 220px; font-size: 15px; color: rgba(255,255,255,.88); }
.featured-separator { width: 72px; height: 1px; background: linear-gradient(90deg,transparent,rgba(240,176,103,.55),transparent); }
.stats-grid-container { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.stat-box {
    grid-column: span 2; min-height: 164px; padding: 24px; gap: 20px; justify-content: space-between;
    border: 1px solid rgba(38,77,52,.1); border-radius: 20px; box-shadow: 0 10px 30px rgba(20,44,29,.055);
    position: relative; overflow: hidden;
}
.stat-box:nth-child(4),.stat-box:nth-child(5) { grid-column: span 3; }
.stat-box::after { content: attr(data-stat-index); position: absolute; inset-inline-end: 14px; bottom: -12px; font: 900 64px/1 var(--font); color: rgba(22,50,32,.035); }
.stat-box:nth-child(2n) { background: linear-gradient(145deg,#fff,#f8fbf9); }
.stat-box:hover { transform: translateY(-6px); border-color: rgba(229,138,43,.55); box-shadow: 0 18px 44px rgba(20,44,29,.12); }
.stat-box-top { flex-direction: row; position: relative; z-index: 1; }
html[dir="rtl"] .stat-box-top { flex-direction: row-reverse; }
.stat-box-num { font-size: clamp(25px,2.2vw,34px); color: #10291b; }
.stat-box-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff3e9; box-shadow: inset 0 0 0 1px rgba(229,138,43,.08); }
.stat-box-label { max-width: 26ch; position: relative; z-index: 1; color: #526158; font-size: 13.5px; line-height: 1.65; }

.stats-section:not(.about-stats-section) .stat-box {
    min-height: 150px;
    gap: 14px;
}
.stats-section:not(.about-stats-section) .stat-box-num {
    font-size: clamp(22px, 1.65vw, 28px);
    line-height: 1.18;
    letter-spacing: 0;
}
.stats-section:not(.about-stats-section) .stat-box-label {
    font-size: 12.5px;
    line-height: 1.55;
}
.stats-section:not(.about-stats-section) .stat-box-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

/* Newsletter subscription popup */
body.newsletter-popup-open { overflow: hidden; }
.newsletter-popup { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s ease; }
.newsletter-popup.is-visible { visibility: visible; opacity: 1; }
.newsletter-popup-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(4, 30, 20, .64); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.newsletter-popup-card { position: relative; z-index: 1; width: min(860px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: .84fr 1.16fr; border: 1px solid rgba(255,255,255,.72); border-radius: 36px; background: rgba(255,255,255,.97); box-shadow: 0 32px 90px rgba(0,32,20,.34); transform: translateY(28px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.2,.75,.25,1), opacity .35s ease; }
.newsletter-popup.is-visible .newsletter-popup-card { transform: translateY(0) scale(1); opacity: 1; }
.newsletter-popup-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; z-index: 4; width: 42px; height: 42px; border: 1px solid rgba(12,67,45,.12); border-radius: 50%; background: rgba(255,255,255,.88); color: #0c432d; box-shadow: 0 7px 20px rgba(0,0,0,.08); cursor: pointer; transition: transform .2s, background .2s; }
.newsletter-popup-close:hover { transform: rotate(8deg); background: #fff7ed; }
.newsletter-popup-visual { position: relative; min-height: 470px; overflow: hidden; padding: 54px 38px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 15% 15%, rgba(241,139,48,.42), transparent 32%), linear-gradient(145deg,#0a5035,#062d20); color: #fff; border-radius: 34px 0 0 34px; isolation: isolate; }
[dir="rtl"] .newsletter-popup-visual { border-radius: 0 34px 34px 0; }
.newsletter-popup-visual:after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(2,25,17,.62),transparent 65%); z-index:-1; }
.newsletter-popup-orbit { position:absolute; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.newsletter-popup-orbit.orbit-one { width:280px;height:280px;top:-70px;inset-inline-start:-90px; }
.newsletter-popup-orbit.orbit-two { width:180px;height:180px;top:42px;inset-inline-start:25px;border-color:rgba(241,139,48,.35); }
.newsletter-popup-logo { position:absolute;z-index:2;inset-block-start:30px;inset-inline-start:30px;width:190px;min-height:66px;padding:12px 16px;border:1px solid rgba(255,255,255,.62);border-radius:20px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);box-shadow:0 14px 35px rgba(0,25,17,.18);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
.newsletter-popup-logo img { display:block;width:100%;height:42px;object-fit:contain; }
.newsletter-popup-icon { width:72px;height:72px;margin-bottom:26px;border-radius:24px;display:grid;place-items:center;background:#f18b30;color:#fff;font-size:28px;box-shadow:0 18px 35px rgba(241,139,48,.3); }
.newsletter-popup-kicker { margin-bottom:10px;color:#ffc58d;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase; }
.newsletter-popup-visual strong { max-width:300px;font-size:25px;line-height:1.55;font-weight:800; }
.newsletter-popup-content { padding:64px 54px 48px; display:flex; flex-direction:column; justify-content:center; color:#0b2e20; }
.newsletter-popup-eyebrow { color:#d66a0b;font-size:13px;font-weight:800; }
.newsletter-popup-content h2 { margin:13px 0 12px;font-size:34px;line-height:1.3;color:#073d29;letter-spacing:-.025em; }
.newsletter-popup-content > p { margin:0 0 25px;color:#52645c;font-size:15px;line-height:1.9; }
.newsletter-popup-form label { display:block;margin-bottom:8px;color:#24483a;font-size:13px;font-weight:800; }
.newsletter-popup-field { position:relative; }
.newsletter-popup-field i { position:absolute;left:17px;top:50%;transform:translateY(-50%);color:#df771c; }
.newsletter-popup-field input { width:100%;height:55px;padding:0 18px 0 48px;border:1px solid #d7e2dc;border-radius:17px;background:#f7faf8;color:#123b2c;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s; }
.newsletter-popup-field input:focus { border-color:#df771c;box-shadow:0 0 0 4px rgba(223,119,28,.12); }
.newsletter-popup-submit { width:100%;height:55px;margin-top:12px;padding:0 20px;border:0;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(135deg,#e87818,#f39b47);color:#fff;font:inherit;font-weight:800;box-shadow:0 12px 25px rgba(223,119,28,.24);cursor:pointer;transition:transform .2s,box-shadow .2s; }
.newsletter-popup-submit:hover { transform:translateY(-2px);box-shadow:0 16px 30px rgba(223,119,28,.32); }
.newsletter-popup-submit:disabled { opacity:.7;cursor:wait; }
.newsletter-popup-submit.is-loading i { animation:newsletterSpin .8s linear infinite; }
.newsletter-popup-message { min-height:22px;margin-top:9px;font-size:13px;font-weight:700; }
.newsletter-popup-message.is-success { color:#15803d; }.newsletter-popup-message.is-error { color:#b91c1c; }
.newsletter-popup-note { margin-top:10px;color:#718078;font-size:11.5px; }.newsletter-popup-note i { color:#2f7252;margin-inline-end:4px; }
@keyframes newsletterSpin { to { transform:rotate(360deg); } }

/* Simplified newsletter popup */
.newsletter-popup { padding: 18px; }
.newsletter-popup-backdrop { background: rgba(7, 24, 17, .42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.newsletter-popup-card { width: min(430px, 100%); display: block; border-radius: 18px; border: 1px solid rgba(15, 81, 50, .12); box-shadow: 0 20px 55px rgba(0, 26, 18, .22); overflow: visible; }
.newsletter-popup-visual { display: none; }
.newsletter-popup-close { inset-block-start: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 10px; box-shadow: none; background: #f6faf7; }
.newsletter-popup-close:hover { transform: none; background: #fff3e8; }
.newsletter-popup-content { padding: 34px 30px 28px; min-height: 0; text-align: start; }
.newsletter-popup-content:before { content: "\f0e0"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; display: grid; place-items: center; background: #fff3e8; color: #df771c; font-size: 18px; }
.newsletter-popup-eyebrow { display: none; }
.newsletter-popup-content h2 { margin: 0 42px 8px 0; font-size: 24px; line-height: 1.35; letter-spacing: 0; }
[dir="rtl"] .newsletter-popup-content h2 { margin: 0 0 8px 42px; }
.newsletter-popup-content > p { margin-bottom: 18px; font-size: 13.5px; line-height: 1.75; }
.newsletter-popup-form label { font-size: 12.5px; }
.newsletter-popup-field input { height: 48px; border-radius: 10px; background: #fff; }
.newsletter-popup-submit { height: 48px; border-radius: 10px; margin-top: 10px; box-shadow: none; }
.newsletter-popup-submit:hover { transform: none; box-shadow: none; }
.newsletter-popup-message { min-height: 18px; font-size: 12.5px; }
.newsletter-popup-note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.6; }
