/* ================================================================
   ACH — Arab Consult House | Main Stylesheet  v4
   ================================================================ */
:root {
    --primary:       #1a5fb4;
    --primary-dark:  #0d3b7a;
    --primary-light: #4a90d9;
    --accent:        #e8b931;
    --white:         #ffffff;
    --light-gray:    #f5f7fa;
    --dark:          #1a1a2e;
    --text:          #333333;
    --text-light:    #666666;
    --transition:    all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --top-bar-h: 38px;
    --header-h:  74px;
    --chrome-h:  112px;   /* top-bar + header */

    --font-en-heading: 'Playfair Display', serif;
    --font-en-body:    'Montserrat', sans-serif;
    --font-ar-heading: 'Markazi Text', serif;
    --font-ar-body:    'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* html { scroll-behavior: smooth; } <--- REMOVED to prevent jQuery conflicts */

body {
    font-family: var(--font-en-body);
    color: var(--text);
    overflow-x: hidden;
    background: var(--white);
    padding-top: 0; /* Removed padding since chrome is sticky now */
}

h1,h2,h3,h4,h5,h6,.logo-text,.stat-number { font-family: var(--font-en-heading); }

body[dir="rtl"] { font-family: var(--font-ar-body); }
body[dir="rtl"] h1,body[dir="rtl"] h2,body[dir="rtl"] h3,
body[dir="rtl"] h4,body[dir="rtl"] h5,body[dir="rtl"] h6,
body[dir="rtl"] .logo-text,body[dir="rtl"] .stat-number { font-family: var(--font-ar-heading); }

/* ================================================================
   PAGE LOADER
   ================================================================ */
.page-loader {
    position: fixed; inset: 0;
    background: #fff; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
    display: flex; flex-direction: column; align-items: center; gap: 26px;
    animation: loaderFadeIn 0.5s ease forwards;
}
@keyframes loaderFadeIn {
    from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); }
}
.loader-logo-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.loader-logo-wrap::before {
    content: '';
    position: absolute; width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,95,180,0.08) 0%, transparent 70%);
    animation: loaderPulse 1.8s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%,100% { transform:scale(0.9); opacity:0.6; } 50% { transform:scale(1.2); opacity:1; }
}
.loader-logo {
    height: 70px; width: auto; max-width: 260px; object-fit: contain;
    animation: loaderLogoBounce 1.3s cubic-bezier(0.34,1.56,0.64,1) forwards; opacity: 0;
}
@keyframes loaderLogoBounce {
    0% { opacity:0; transform:scale(0.6); } 60% { opacity:1; transform:scale(1.06); } 100% { opacity:1; transform:scale(1); }
}
.loader-bar-track { width: 220px; height: 3px; background: rgba(26,95,180,0.1); border-radius: 3px; overflow: hidden; }
.loader-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    animation: loaderProgress 1.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loaderProgress { 0%{width:0%} 40%{width:55%} 70%{width:80%} 100%{width:100%} }
.loader-tagline {
    font-size: 12px; font-weight: 500; color: var(--text-light);
    letter-spacing: 1.8px; text-transform: uppercase;
    opacity: 0; animation: loaderTextIn 0.6s ease 0.4s forwards;
}
@keyframes loaderTextIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }

/* ================================================================
   CHROME — top-bar + header as a single sticky unit
   ================================================================ */
.chrome {
    position: sticky;
    top: 0 !important; /* Changed from calc(-1 * var(--top-bar-h)) to keep top nav visible */
    z-index: 1100;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.chrome.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── TOP BAR (inside .chrome) ── */
.top-bar {
    width: 100%;
    height: var(--top-bar-h);
    background: var(--primary-dark);
    font-size: 12.5px; font-weight: 500;
}
.top-bar-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 30px; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.top-bar-left { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.top-bar-left a,
.top-bar-left span {
    color: rgba(255,255,255,0.82); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: color 0.2s;
}
.top-bar-left a:hover { color: var(--accent); }
.top-bar-left i { color: var(--accent); font-size: 11px; }

.top-bar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.top-bar-right a {
    color: rgba(255,255,255,0.75); text-decoration: none;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: var(--transition);
    background: rgba(255,255,255,0.1);
}
.top-bar-right a:hover { background: var(--accent); color: var(--dark); }

/* ── HEADER (inside .chrome, sits below top-bar) ── */
.header {
    width: 100%;
    height: var(--header-h);
    background: #fff;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 30px; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; transition: var(--transition); }

/* Nav — dark text */
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
    color: var(--dark);
    text-decoration: none; font-size: 14px; font-weight: 600;
    letter-spacing: 0.3px; padding: 8px 14px; border-radius: 8px;
    position: relative; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(26,95,180,0.06); }
.nav-links li.active > a { color: var(--primary); }

.nav-links a::after {
    content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform 0.3s ease; border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--dark); font-size: 22px; cursor: pointer; padding: 4px;
    transition: color 0.3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .nav-links a { padding: 8px 10px; font-size: 13px; } }
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .top-bar-left span { display: none; }
}
@media (max-width: 768px) {
    /* Hide top bar */
    .top-bar { display: none; }
    
    /* Lock chrome to top */
    .chrome { top: 0 !important; }
    
    /* Shrink padding so elements don't get pushed off screen */
    .header-inner { padding: 0 15px; gap: 10px; }
    
    /* Scale down the logo slightly */
    .logo-img { max-width: 160px; height: auto; }
    
    /* Tighten up the language pill and menu button */
    .header-actions { gap: 8px; }
    .lang-pill { padding: 4px 5px; }
    .lang-pill-option { font-size: 11px; padding: 3px 10px; }
    .mobile-menu-btn { font-size: 20px; padding: 2px; }
}

/* ================================================================
   LANGUAGE PILL — single elegant EN|AR toggle
   ================================================================ */
.lang-pill {
    position: relative; display: flex; align-items: center;
    background: var(--light-gray);
    border: 1.5px solid rgba(26,95,180,0.22);
    border-radius: 50px; padding: 5px 6px;
    cursor: pointer; gap: 0;
    transition: all 0.3s ease;
    outline: none; font-family: inherit; overflow: hidden;
    
    direction: ltr !important; /* ADD THIS: Prevents RTL flexbox from breaking the slider alignment */
}
.lang-pill:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(26,95,180,0.14);
}

.lang-pill-option {
    position: relative; z-index: 2;
    font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
    padding: 4px 12px; border-radius: 50px;
    color: var(--text-light);
    transition: color 0.3s; user-select: none; line-height: 1;
}

.lang-pill-option.active { color: white; }

.lang-pill-sep {
    font-size: 10px; color: rgba(26,95,180,0.25);
    z-index: 2; pointer-events: none; line-height: 1; user-select: none;
}

/* The sliding capsule */
.lang-pill-slider {
    position: absolute;
    top: 4px; bottom: 4px;
    /* Width = half the pill minus side padding */
    width: calc(50% - 7px);
    left: 4px;
    background: var(--primary);
    border-radius: 50px; z-index: 1;
    transition: left 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(26,95,180,0.35);
}
/* EN active = slider on LEFT (default) */
/* AR active = slider on RIGHT */
.lang-pill.ar .lang-pill-slider { left: calc(50% + 3px); }


/* ================================================================
   MOBILE MENU
   ================================================================ */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: white; z-index: 2000; padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
}
.mobile-nav.active { right: 0; }
[dir="rtl"] .mobile-nav { right: auto; left: -100%; }
[dir="rtl"] .mobile-nav.active { left: 0; right: auto; }

.mobile-nav ul { list-style: none; flex-grow: 1; }
[dir="rtl"] .mobile-nav ul { text-align: right; }
.mobile-nav li { margin-bottom: 6px; }
.mobile-nav a {
    color: var(--dark); text-decoration: none; font-size: 17px; font-weight: 600;
    display: block; padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--primary); }

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1500;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.close-menu {
    position: absolute; top: 22px; right: 22px;
    background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark);
}
[dir="rtl"] .close-menu { right: auto; left: 22px; }

.mobile-social {
    display: flex; justify-content: center; gap: 12px;
    padding-top: 22px; border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--light-gray); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; text-decoration: none; transition: var(--transition);
}
.mobile-social a:hover { background: var(--accent); color: var(--dark); }

/* ================================================================
   HERO VIDEO (Fully Responsive & Proportional)
   ================================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: auto;               /* Lets the height be dictated by the video */
    aspect-ratio: 16 / 9;       /* Standard video ratio */
    min-height: unset;          /* Removes forced minimums that cause cropping */
    background: #000;           /* Clean background while loading */
    overflow: hidden;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s ease;
}
.slide.active { opacity: 1; visibility: visible; }

.slide video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    transform: none;           /* Removes the 50% offset from earlier */
    object-fit: contain;       /* Ensures the entire video is always visible */
}

/* Sound toggle — bottom-LEFT of hero, always visible */
.sound-toggle {
    position: absolute; bottom: 30px; left: 30px; right: auto;
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
    color: white; font-size: 18px; cursor: pointer; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); opacity: 1; pointer-events: all;
}
.sound-toggle:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); transform: scale(1.1); }
body[dir="rtl"] .sound-toggle { left: auto; right: 30px; }

.scroll-down {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 10; animation: bounce 2s infinite;
}
.scroll-down i { color: white; font-size: 26px; }

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 768px) {
    .sound-toggle { bottom: 20px; left: 20px; width: 44px; height: 44px; font-size: 15px; }
    body[dir="rtl"] .sound-toggle { left: auto; right: 20px; }
}

/* ================================================================
   SHARED SECTION
   ================================================================ */
section { padding: 100px 0; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

.section-header { text-align: center; margin-bottom: 65px; }
.section-header h2 {
    font-size: clamp(28px,3vw,42px); font-weight: 800; color: var(--dark);
    margin-bottom: 12px; position: relative; display: inline-block;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 55px; height: 4px; background: var(--accent); border-radius: 2px;
}
.section-header p {
    color: var(--text-light); font-size: 17px; margin-top: 24px;
    max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

.fade-in { opacity: 0; transform: translateY(35px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   ABOUT
   ================================================================ */
.about { background: var(--light-gray); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); display: block; }
.about-image::before {
    content: ''; position: absolute; top: -18px; left: -18px;
    width: 100%; height: 100%; border: 3px solid var(--accent); border-radius: 20px; z-index: -1;
}
[dir="rtl"] .about-image::before { left: auto; right: -18px; }

/* About Video (Option 2 — replaces static image) */
.about-video-wrap { overflow: hidden; border-radius: 20px; }
.about-video {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
/* Sound toggle inside about panel */
.about-sound-toggle {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 42px; height: 42px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
    color: #fff; font-size: 15px; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s, transform 0.2s;
}
.about-sound-toggle:hover { background: var(--accent); color: var(--dark); transform: scale(1.1); }
[dir="rtl"] .about-sound-toggle { left: auto; right: 14px; }

.section-badge {
    display: inline-block; background: var(--accent); color: var(--dark);
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 50px; margin-bottom: 14px;
}
.about-content h2 {
    font-size: clamp(24px,2.8vw,36px); font-weight: 800; color: var(--dark);
    margin-bottom: 18px; line-height: 1.25;
}
.about-content p { font-size: 16px; line-height: 1.9; color: var(--text-light); margin-bottom: 18px; }

.days-badge {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: 16px; padding: 18px 24px; margin: 22px 0 14px;
}
.days-number {
    font-size: 56px; font-weight: 900; line-height: 1;
    color: var(--accent); font-family: var(--font-en-heading); flex-shrink: 0;
}
body[dir="rtl"] .days-number { font-family: var(--font-ar-heading); }
.days-text { display: flex; flex-direction: column; gap: 3px; }
[dir="rtl"] .days-text { text-align: right; }
.days-text strong { font-size: 15px; font-weight: 700; }
.days-text span { font-size: 13px; opacity: 0.8; }

.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.stat-card {
    background: white; padding: 22px 18px; border-radius: 14px; text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.1); }
.stat-number { font-size: 32px; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .about-stats { grid-template-columns: 1fr; } }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 70px 0; text-align: center; color: white;
}
.cta-banner h2 { font-size: clamp(22px,3vw,36px); margin-bottom: 14px; color: white; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.82); max-width: 580px; margin: 0 auto 32px; line-height: 1.8; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: var(--dark);
    padding: 15px 34px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 15px; transition: var(--transition);
}
.cta-btn:hover { background: white; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: var(--primary); }

/* ================================================================
   VALUES
   ================================================================ */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.value-card {
    background: white; padding: 48px 32px; border-radius: 20px; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); transition: var(--transition);
    position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.04);
}
.value-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary); transform: scaleX(0); transition: var(--transition);
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,0.11); }
.value-icon {
    width: 88px; height: 88px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; font-size: 34px; color: white;
    box-shadow: 0 10px 30px rgba(26,95,180,0.25);
}
.value-card h3 { font-size: 21px; font-weight: 700; color: var(--dark); margin-bottom: 13px; }
.value-card p { color: var(--text-light); line-height: 1.8; font-size: 15px; }

@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

/* ================================================================
   WHY US
   ================================================================ */
.why-us { background: var(--light-gray); }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.feature-card {
    background: white; padding: 40px 22px; border-radius: 18px; text-align: center;
    box-shadow: 0 8px 35px rgba(0,0,0,0.05); transition: var(--transition); position: relative;
}
.feature-card:hover { transform: translateY(-7px); box-shadow: 0 20px 48px rgba(0,0,0,0.10); }
.feature-number {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--dark); font-size: 15px;
}
.feature-icon {
    width: 68px; height: 68px; background: var(--light-gray); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 14px auto 18px; font-size: 26px; color: var(--primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }

@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .features-grid { grid-template-columns: 1fr; } }

/* ================================================================
   SERVICES
   ================================================================ */
.services { background: var(--dark); color: white; }
.services .section-header h2 { color: white; }
.services .section-header p { color: rgba(255,255,255,0.7); }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }

.service-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 38px; transition: var(--transition);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0; transition: var(--transition); z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-4px); border-color: transparent; }
.service-card > * { position: relative; z-index: 1; }

.service-header {
    display: flex; align-items: center; gap: 18px; margin-bottom: 14px;
}
[dir="rtl"] .service-header { text-align: right; }

.service-icon {
    width: 62px; height: 62px; background: var(--accent); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--dark); flex-shrink: 0; transition: var(--transition);
}
.service-card:hover .service-icon { background: white; transform: rotate(8deg); }
.service-header h3 { font-size: 20px; font-weight: 700; }
.service-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
[dir="rtl"] .service-desc { text-align: right; }

.service-list { list-style: none; }
.service-list li {
    padding: 7px 0; color: rgba(255,255,255,0.72);
    display: flex; align-items: center; gap: 10px;
    font-size: 14.5px; transition: var(--transition);
}
.service-card:hover .service-list li { color: rgba(255,255,255,0.95); }
.service-list li i { color: var(--accent); font-size: 12px; flex-shrink: 0; }
[dir="rtl"] .service-list { text-align: right; }

@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* ================================================================
   LANGUAGES
   ================================================================ */
.languages {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white; text-align: center;
}
.languages .section-header h2 { color: white; }
.languages .section-header p { color: rgba(255,255,255,0.8); }
.lang-flags { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.lang-item {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22); border-radius: 50px;
    padding: 11px 26px; display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 15px; transition: var(--transition); cursor: default;
}
.lang-item:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); transform: translateY(-3px); }
.lang-flag { font-size: 26px; line-height: 1; }

/* ================================================================
   PARTNERS — Side-by-side squares with 100% width
   ================================================================ */
.partners { background: white; }
.ach-partners-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }

.ach-partner-card {
    background: var(--light-gray); border-radius: 20px; padding: 32px;
    display: flex; flex-direction: row; align-items: center; gap: 24px;
    border: 1px solid rgba(0,0,0,0.04); transition: var(--transition);
}
.ach-partner-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(0,0,0,0.09); background: white; }
[dir="rtl"] .ach-partner-card { text-align: right; }

.ach-partner-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 16px;
    overflow: hidden;
}
.ach-partner-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.ach-partner-card:hover .ach-partner-logo img { transform: scale(1.05); }

/* Fallback text logo */
.logo-name {
    font-weight: 800; font-size: 20px; color: var(--primary);
    letter-spacing: -0.5px;
}

.ach-partner-info h4 {
    font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px;
}
.ach-partner-info > p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.partner-services { list-style: none; margin-top: 4px; }
.partner-services li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: var(--text-light); padding: 4px 0;
}
.partner-services li i { color: var(--primary); font-size: 11px; width: 14px; flex-shrink: 0; }
[dir="rtl"] .partner-services { text-align: right; }

@media (max-width: 900px) { .ach-partners-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) {
    .ach-partner-card { flex-direction: column; text-align: center; }
}

/* ================================================================
   GOVERNMENT ENTITIES
   ================================================================ */
.gov-partners { background: var(--light-gray); }
.gov-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.gov-item {
    background: white; border-radius: 14px; padding: 16px 10px 12px;
    text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: var(--transition); display: flex; flex-direction: column;
    align-items: center; gap: 9px; border: 1px solid rgba(0,0,0,0.04);
}
.gov-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); border-color: var(--primary-light); }
.gov-item img { max-height: 44px; max-width: 100%; object-fit: contain; }
.gov-item span { font-size: 10.5px; font-weight: 600; color: var(--text); line-height: 1.3; display: block; }

@media (max-width: 992px) { .gov-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 768px) { .gov-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .gov-grid { grid-template-columns: repeat(2,1fr); } }

/* ================================================================
   CLIENTS
   ================================================================ */
.clients { background: white; }
.clients-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 14px; align-items: center; }
.client-logo {
    background: var(--light-gray); border-radius: 12px; padding: 14px 10px;
    display: flex; align-items: center; justify-content: center; height: 76px;
    border: 1px solid rgba(0,0,0,0.04); transition: var(--transition);
}
.client-logo:hover { background: white; box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.client-logo img { max-width: 100%; max-height: 46px; object-fit: contain; filter: grayscale(35%); transition: filter 0.3s; }
.client-logo:hover img { filter: grayscale(0%); }

@media (max-width: 1200px) { .clients-grid { grid-template-columns: repeat(5,1fr); } }
@media (max-width: 768px)  { .clients-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px)  { .clients-grid { grid-template-columns: repeat(2,1fr); } }

/* ================================================================
   PRESENCE
   ================================================================ */
.presence { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; }
.presence .section-header h2 { color: white; }
.presence .section-header p { color: rgba(255,255,255,0.8); }
.presence-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
.presence-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 16px;
    padding: 28px 18px; text-align: center; transition: var(--transition);
}
.presence-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.presence-icon { font-size: 26px; color: var(--accent); margin-bottom: 11px; }
.presence-card h4 { font-size: 17px; font-weight: 700; color: white; margin-bottom: 5px; }
.presence-card span { font-size: 12px; color: rgba(255,255,255,0.7); }

@media (max-width: 992px) { .presence-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 576px) { .presence-grid { grid-template-columns: repeat(2,1fr); } }

/* ================================================================
   CONTACT
   ================================================================ */
.contact { background: var(--dark); color: white; }
.contact .section-header h2 { color: white; }
.contact .section-header p { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.contact-info h3 { font-size: 26px; margin-bottom: 16px; }
.contact-info > p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 26px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-item > i {
    width: 48px; height: 48px; background: var(--primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: white; flex-shrink: 0;
}
.contact-item div { display: flex; flex-direction: column; gap: 3px; }
[dir="rtl"] .contact-item div { text-align: right; }
.contact-item strong { display: block; font-size: 13px; font-weight: 600; }
.contact-item a,
.contact-item span { color: rgba(255,255,255,0.7); font-size: 14.5px; text-decoration: none; }
.contact-item a:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: white; text-decoration: none;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

.contact-form { background: rgba(255,255,255,0.05); padding: 38px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 16px; border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: white; font-size: 14.5px; transition: var(--transition); font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.08); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.38); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.form-group select option { background: var(--primary-dark); color: white; }
[dir="rtl"] .form-group select { background-position: left 14px center; }
.submit-btn {
    width: 100%; padding: 15px; background: var(--accent); color: var(--dark);
    border: none; border-radius: 11px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
}
.submit-btn:hover { background: white; transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: #0f0f1a; color: white; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
    height: 42px; width: auto; max-width: 200px; object-fit: contain;
    margin-bottom: 16px; display: block;
    filter: brightness(0) invert(1);
}
.footer-logo:hover { opacity: 0.85; }
.footer-brand .logo-text { color: white; font-size: 26px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); line-height: 1.8; font-size: 13.5px; }
.footer-links h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: white; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.58); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
    text-align: center; color: rgba(255,255,255,0.4); font-size: 13px;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FLOATING BUTTONS
   ================================================================ */
.floating-buttons {
    position: fixed; bottom: 28px; right: 28px;
    z-index: 999; display: flex; flex-direction: column; gap: 12px;
}
[dir="rtl"] .floating-buttons { right: auto; left: 28px; }

.float-btn {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white; cursor: pointer;
    transition: var(--transition); border: none; text-decoration: none;
    box-shadow: 0 5px 18px rgba(0,0,0,0.28);
}

/* WhatsApp — always visible */
.whatsapp-btn { background: #25D366; opacity: 1; pointer-events: all; }
.whatsapp-btn:hover { background: #128C7E; transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

/* Back to top — hidden until scrolled, shown via JS adding .visible */
.back-to-top {
    background: var(--primary);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important; /* Fixed */
}
.back-to-top:hover { background: var(--primary-dark); transform: scale(1.1) !important; }

@media (max-width: 768px) {
    .floating-buttons { bottom: 18px; right: 18px; }
    [dir="rtl"] .floating-buttons { right: auto; left: 18px; }
    .float-btn { width: 48px; height: 48px; font-size: 19px; }
}
/* ===== VIDEO MODAL ===== */
.video-modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.88);
    align-items: center; justify-content: center;
    padding: 1rem;
}
.video-modal-overlay.active { display: flex; }
.video-modal-box {
    position: relative;
    width: 100%; max-width: 960px;
    background: #000; border-radius: 12px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.video-modal-box video {
    width: 100%; height: auto;
    display: block; aspect-ratio: 16/9;
}
.video-modal-close {
    position: absolute; top: 10px; right: 12px;
    background: rgba(0,0,0,.6); border: none;
    color: #fff; font-size: 1.1rem;
    width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer; z-index: 10; line-height: 1;
    transition: background .2s;
}
.video-modal-close:hover { background: rgba(255,255,255,.2); }
[dir="rtl"] .video-modal-close { right: auto; left: 12px; }

/* ===== VIDEO POPUP FLOAT BUTTON ===== */
.video-popup-btn {
    background: var(--accent, #e8b931);
    color: #1a1a2e;
    opacity: 1;
    pointer-events: all;
}
.video-popup-btn:hover {
    background: #d4a428;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(232,185,49,.4);
}