/* ============================================================
   FURSAN MANAGEMENT SOLUTIONS – Main Stylesheet
   Design System: Dark Charcoal + Lime Yellow accent
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/duotone/style.css');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/bold/style.css');

/* ── CSS Variables ── */
:root {
    --primary:        #B89354;   /* Brand Gold */
    --primary-dark:   #9C7C45;   /* Hover Gold */
    --accent:         #B89354;   /* Fursan Gold for secondary accents */
    --dark:           #0f172a;   /* Deep Navy for headings and dark sections */
    --dark-2:         #1e293b;   /* Slate 800 */
    --dark-3:         #334155;   /* Slate 700 */
    --white:          #ffffff;
    --off-white:      #f8fafc;   /* Slate 50 */
    --light-grey:     #f1f5f9;   /* Slate 100 */
    --border:         #e2e8f0;   /* Slate 200 */
    --text:           #475569;   /* Slate 600 for body text */
    --text-muted:     #64748b;   /* Slate 500 */
    --font:           'Outfit', sans-serif;
    --radius:         12px;
    --radius-lg:      20px;
    --shadow:         0 1px 3px rgba(15, 23, 42, 0.05); /* Very subtle shadow */
    --shadow-lg:      0 4px 12px rgba(15, 23, 42, 0.08); /* Soft elevated shadow */
    --transition:     all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; letter-spacing: -0.04em; }
h2 { font-size: 2.75rem; letter-spacing: -0.03em; }
h3 { font-size: 1.75rem; letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section padding ── */
.section-padding { padding: 100px 0; }
.bg-grey { background: var(--light-grey); }
.bg-dark  { background: var(--dark); }

/* ── Prevent decorative elements from causing horizontal scroll ── */
section { overflow-x: clip; }
.hero-section,
.marquee-section,
.about-snapshot,
.services-section,
.sectors-section { overflow: hidden; }

/* ── Section header (centred) ── */
.section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-header-center h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-header-center p  { color: var(--text-muted); margin-top: 12px; }
.center-btn { text-align: center; margin-top: 50px; }

/* ── Kicker ── */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--dark);
    margin-bottom: 14px;
}
.kicker::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.kicker-light { color: var(--primary); }
.kicker-light::before { background: var(--primary); }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 147, 84, 0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}
.btn-ghost:hover {
    background: var(--dark);
    color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Preloader ── */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Scroll Animation System ── */

/* Shared base: invisible until triggered */
.anim,
.fade-in-up,
.anim-up,
.anim-left,
.anim-right,
.anim-zoom,
.anim-flip,
.anim-scale,
.anim-pop,
.anim-slide-left,
.anim-slide-right {
    opacity: 0;
    will-change: opacity, transform, filter;
}

/* 1. Fade + Slide Up (default, cards, headlines) */
.fade-in-up,
.anim-up {
    transform: translateY(50px);
    filter: blur(6px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-up.appear,
.anim-up.appear {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* 2. Slide in from Left */
.anim-left {
    transform: translateX(-70px);
    filter: blur(4px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s ease;
}
.anim-left.appear {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* 3. Slide in from Right */
.anim-right {
    transform: translateX(70px);
    filter: blur(4px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s ease;
}
.anim-right.appear {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* 4. Zoom + Fade In (images, badges, hero elements) */
.anim-zoom {
    transform: scale(0.88);
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1s ease;
}
.anim-zoom.appear {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* 5. Flip Up (icon containers, stat blocks) */
.anim-flip {
    transform: perspective(800px) rotateX(25deg) translateY(30px);
    filter: blur(3px);
    transform-origin: center top;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.9s ease;
}
.anim-flip.appear {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
    filter: blur(0);
}

/* 6. Scale Up from center (kicker labels, highlights) */
.anim-scale {
    transform: scale(0.7);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.anim-scale.appear {
    opacity: 1;
    transform: scale(1);
}

/* 7. Pop — spring zoom from zero with slight rotation */
.anim-pop {
    transform: scale(0) rotate(-3deg);
    filter: blur(4px);
    transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.5s ease;
}
.anim-pop.appear {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
}

/* 8. Strong slide from left → converges to center (grid cards) */
.anim-slide-left {
    transform: translateX(-140px) scale(0.9);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.9s ease;
}
.anim-slide-left.appear {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* 9. Strong slide from right → converges to center (grid cards) */
.anim-slide-right {
    transform: translateX(140px) scale(0.9);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.9s ease;
}
.anim-slide-right.appear {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Auto-stagger delays — applied by JS to .grid-animate children */
.anim-auto-delay-0 { transition-delay: 0s; }
.anim-auto-delay-1 { transition-delay: 0.10s; }
.anim-auto-delay-2 { transition-delay: 0.20s; }
.anim-auto-delay-3 { transition-delay: 0.30s; }
.anim-auto-delay-4 { transition-delay: 0.40s; }
.anim-auto-delay-5 { transition-delay: 0.50s; }

/* Manual stagger delays */
.anim-delay-1 { transition-delay: 0.1s !important; }
.anim-delay-2 { transition-delay: 0.2s !important; }
.anim-delay-3 { transition-delay: 0.3s !important; }
.anim-delay-4 { transition-delay: 0.4s !important; }
.anim-delay-5 { transition-delay: 0.5s !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .anim, .fade-in-up,
    .anim-up, .anim-left, .anim-right,
    .anim-zoom, .anim-flip, .anim-scale,
    .anim-pop, .anim-slide-left, .anim-slide-right {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    padding: 4px 0;
}
.nav-list a:hover  { color: var(--primary-dark); }
.nav-list a.active {
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}
/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 200;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { border-bottom: 1px solid var(--border); }
.dropdown li:last-child { border: none; }
.dropdown a {
    display: block;
    padding: 13px 20px;
    font-size: 0.88rem;
    color: var(--dark);
}
.dropdown a:hover { background: var(--light-grey); color: var(--dark); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mobile-actions {
    display: none;
}
.lang-toggle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    padding: 8px 18px;
    background: var(--light-grey);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lang-toggle:hover { 
    background: var(--primary); 
    color: var(--white); 
}

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.mobile-menu-toggle span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION  – Dark split layout
   ============================================================ */
.hero-section {
    background: var(--light-grey);
    padding: 80px 0 0;
    overflow: hidden;
    position: relative;
}
.hero-section::before {
    /* subtle grain texture */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='1' y='1' fill='%23ffffff08'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 580px;
}
/* LEFT */
.hero-left { padding-bottom: 60px; }
.hero-heading {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    color: var(--dark);
    font-weight: 800;
    line-height: 1.08;
    margin: 14px 0 20px;
}
.hero-heading span { color: var(--primary); }
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* stat row */
.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}
.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.hero-stat span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* RIGHT – image mosaic */
.hero-right { align-self: end; }
.hero-mosaic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align right to control cascade */
    padding-top: 30px;
    padding-right: 30px;
}
.mosaic-main {
    width: 60%;
    aspect-ratio: 1 / 1; /* Guarantees a perfect square */
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}
.mosaic-secondary {
    width: 90%;
    height: 240px;
    margin-top: -50px;
    margin-right: 30px; /* Steps the cascade exactly 30px from the right */
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(13, 32, 74, 0.15);
}
/* yellow accent block behind mosaic */
.hero-mosaic::before {
    content: '';
    position: absolute;
    top: 0px; right: 0px; /* Sticking out 30px top and right due to container padding */
    width: 45%; height: 50%;
    background: var(--primary);
    border-radius: var(--radius-lg);
    z-index: 0;
}

/* Floating badge */
.hero-badge {
    position: absolute;
    bottom: 20px; left: -20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 25px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}
.hero-badge-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.hero-badge-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

/* ============================================================
   ABOUT SNAPSHOT
   ============================================================ */
.about-snapshot { background: var(--off-white); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
}
.about-img-wrap img { width: 100%; height: 450px; object-fit: cover; }
.about-img-badge {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--primary);
    border-radius: var(--radius);
    padding: 16px 22px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
}
.about-img-badge .badge-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.about-img-badge .badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    opacity: 0.7;
}
.about-text h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin-top: 12px; }
.about-text p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.about-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-stat .stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.about-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
    border-color: transparent;
}
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon-wrap {
    width: 56px; height: 56px;
    background: var(--light-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.svc-icon-wrap svg { width: 28px; height: 28px; color: var(--dark); }
.svc-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}
.svc-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.svc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--light-grey);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
}
.svc-card:hover .svc-arrow {
    background: var(--primary);
}

/* ============================================================
   WHY US / VISION 2030
   ============================================================ */
.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.why-heading {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    color: var(--dark);
    margin-top: 14px;
    margin-bottom: 28px;
}
.why-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 0.97rem;
}
.check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.why-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.why-img-wrap img { width: 100%; height: 420px; object-fit: cover; }

/* ============================================================
   CLIENTS STRIP
   ============================================================ */
.clients-strip {
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}
.clients-label {
    text-align: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 30px;
}
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Optional: fade edges for a premium look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 80px;
    animation: marquee-scroll 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); /* 40px is half the gap */ }
}
.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    opacity: 0.3;
    transition: var(--transition);
    cursor: default;
}
.client-name:hover { opacity: 0.8; }

/* ============================================================
/* ============================================================
   SERVICES PAGE – PREMIUM GRID
   ============================================================ */
.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.premium-svc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.premium-svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04); border: 1px solid var(--border);
}
.svc-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.premium-svc-card:hover .svc-card-img img {
    transform: scale(1.08);
}
.svc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}
.premium-svc-card:hover .svc-overlay {
    opacity: 0.1;
}
.svc-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.svc-card-content .btn {
    margin: 0 auto;
    display: table;
}
.svc-card-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
}
.svc-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}
.svc-card-content .btn {
    align-self: flex-start;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    background: var(--light-grey);
    padding: 110px 0 60px;
    text-align: center;
}
.page-header h1 { color: var(--dark); font-size: clamp(2rem, 4vw, 3.2rem); }
.page-header p  { color: var(--text-muted); margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--light-grey);
    color: var(--text);
    padding: 80px 0 24px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo-block p { font-size: 0.88rem; line-height: 1.8; margin-top: 14px; max-width: 280px; }
.site-footer h3 {
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 0.88rem; color: var(--text); }
.site-footer ul a:hover { color: var(--primary); }
.footer-contact li {
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

/* ============================================================
   STICKY WHATSAPP
   ============================================================ */
.sticky-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    color: white;
    padding: 14px 16px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    font-weight: 600;
    overflow: hidden;
    box-sizing: border-box;
    /* Ensure it stays fixed in viewport even if html overflows */
    will-change: auto;
    isolation: isolate;
}

.whatsapp-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
    font-size: 1.05rem;
}

.sticky-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37,211,102,0.45);
    padding-left: 16px;
    padding-right: 26px;
}

.sticky-whatsapp:hover .whatsapp-text {
    max-width: 160px;
    opacity: 1;
    margin-left: 14px;
}
.sticky-whatsapp svg { display: block; flex-shrink: 0; }

/* ============================================================
   HEADER – scroll shadow
   ============================================================ */
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.10); }

/* ============================================================
   NAV OVERLAY (mobile)
   ============================================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active { display: block; opacity: 1; }

/* ============================================================
   CHEVRON icon inside nav link
   ============================================================ */
.chevron {
    width: 15px; height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
a.sub-open .chevron { transform: rotate(180deg); }

/* Desktop: hide mobile-only elements */
.mobile-sub { display: none; }
.drawer-header { display: none; }

/* ============================================================
   RESPONSIVE – Tablet (≤991px)
   ============================================================ */
@media (max-width: 991px) {

    /* ── Side Drawer Menu ── */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Slide from left on LTR */
        width: min(340px, 85vw);
        height: 100dvh;
        background: var(--white);
        z-index: 1005; /* Above header */
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
        display: flex;
        flex-direction: column;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .main-nav.nav-open {
        left: 0;
    }
    
    /* RTL: Slide from right */
    [dir="rtl"] .main-nav {
        left: auto;
        right: -100%;
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    [dir="rtl"] .main-nav.nav-open {
        right: 0;
    }

    /* ── Drawer Header (Logo + Close X) ── */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 24px;
        border-bottom: 1px solid var(--border);
    }
    .drawer-close {
        background: var(--primary);
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dark);
        cursor: pointer;
        transition: var(--transition);
    }
    .drawer-close:hover {
        background: var(--primary-dark);
    }

    /* ── Nav list ── */
    .nav-list {
        flex-direction: column;
        align-items: stretch; /* Fix centered items from desktop CSS */
        gap: 0;
        padding: 20px 0;
        flex: 1;
    }
    .nav-list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 0 22px;
        margin: 3px 14px;
        border-radius: 10px;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
        color: var(--dark);
        border-bottom: none !important; /* Reset desktop active border */
    }
    .nav-list > li > a:hover,
    .nav-list > li > a.active { 
        color: var(--primary-dark);
        background: var(--light-grey);
    }
    
    /* ── Desktop dropdown: HIDDEN on mobile ── */
    .dropdown { display: none !important; }

    /* ── Mobile accordion sub-menu ── */
    .mobile-sub {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
        margin: 0;
    }
    .mobile-sub a {
        display: block;
        padding: 10px 20px 10px 36px;
        margin: 2px 16px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;
        color: var(--text);
    }
    .mobile-sub a:hover { color: var(--primary-dark); background: var(--light-grey); }
    [dir="rtl"] .mobile-sub a { padding: 10px 36px 10px 20px; }

    /* ── Mobile bottom actions ── */
    .mobile-actions {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 24px 28px 36px;
        margin-top: auto;
    }
    .mobile-lang-btn {
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--border);
        font-weight: 700;
        text-align: center;
    }
    .mobile-lang-btn:hover {
        border-color: var(--dark);
        color: var(--dark);
    }
    .mobile-actions .btn-primary { text-align: center; }

    .svc-card-content .btn {
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 14px 15px;
        line-height: 1.3;
    }

    /* ── Hide desktop header-actions ── */
    .header-actions { display: none; }

    /* ── Hamburger button (Header) ── */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--light-grey);
        border: 1px solid var(--border);
        border-radius: 4px;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
    }
    [dir="rtl"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
    .mobile-menu-toggle:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
    .mobile-menu-toggle::before {
        content: '\2261'; /* Triple bar / hamburger symbol */
        font-size: 1.8rem;
        color: var(--dark);
        line-height: 1;
    }
    /* We don't need the span animation anymore because we have a dedicated close button */
    .mobile-menu-toggle span { display: none; }

    /* ── Layout fixes ── */
    .hero-inner   { grid-template-columns: 1fr; }
    .hero-left    { padding-bottom: 0; }
    .hero-right   { display: none; }
    .about-inner  { grid-template-columns: 1fr; gap: 36px; }
    .why-inner    { grid-template-columns: 1fr; gap: 36px; }
    .why-img-wrap { display: none; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE – Mobile (≤767px)
   ============================================================ */
@media (max-width: 767px) {
    .section-padding { padding: 56px 0; }
    .clients-strip   { padding: 36px 0; }

    /* Typography */
    .hero-heading { font-size: 2rem !important; }
    h1 { font-size: 1.9rem !important; }
    h2 { font-size: 1.55rem !important; }

    /* Hero */
    .hero-section   { padding: 52px 0 48px; }
    .hero-sub       { font-size: 0.95rem; }
    .hero-cta-row   { flex-direction: column; gap: 12px; }
    .hero-cta-row .btn { width: 100%; text-align: center; padding: 15px; }
    .hero-stat-row  { gap: 16px; margin-top: 32px; padding-top: 24px; flex-wrap: wrap; }
    .hero-stat-divider { display: none; }
    .hero-stat strong  { font-size: 1.6rem; }

    /* About */
    .about-img-wrap img { height: 260px; }
    .about-stats        { gap: 24px; }
    .about-stat .stat-num { font-size: 1.8rem; }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .svc-card      { padding: 26px 20px 20px; }



    /* Core values */
    .values-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

    /* Page header */
    .page-header         { padding: 80px 0 40px !important; }
    .page-header h1      { font-size: 1.75rem !important; }

    /* Clients */
    /* Marquee mobile override */
    .marquee-track { gap: 40px; }
    .client-name { font-size: 0.95rem; }

    /* Footer */
    .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }


}

/* ============================================================
   RTL overrides → see rtl.css
   ============================================================ */

/* ============================================================
   RESPONSIVE – Short Laptop Screens (e.g., Macbook Air 13")
   ============================================================ */
@media (max-height: 850px) and (min-width: 992px) {
    .hero-section { padding: 40px 0 0; }
    .hero-inner {
        min-height: 500px;
        gap: 30px;
    }
    .hero-left { padding-bottom: 20px; }
    .hero-heading {
        font-size: 2.8rem;
        margin-bottom: 10px;
    }
    .hero-sub {
        margin-bottom: 20px;
        font-size: 1rem;
    }
    .hero-stat-row {
        margin-top: 20px;
        padding-top: 15px;
    }
    .mosaic-main {
        width: 55%;
    }
    .mosaic-secondary {
        height: 200px;
    }
}

/* ── Competency Cards ── */
.competency-card {
    transition: var(--transition);
}
.competency-card:hover {
    background: var(--off-white) !important;
    transform: translateY(-2px);
}

/* Interactive Cards */
.interactive-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(184, 147, 84, 0.15) !important;
}
.interactive-img {
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.interactive-card:hover .interactive-img {
    transform: scale(1.08);
}
.interactive-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}
.interactive-card:hover .interactive-icon {
    transform: scale(1.1);
    color: var(--primary-dark) !important;
}

/* Interactive Cards - Extra Links */
.interactive-link .link-arrow {
    transition: transform 0.3s ease;
}
.interactive-card:hover .link-arrow {
    transform: translateX(5px);
}
.swiper-slide.h-auto {
    height: auto !important;
}
