﻿/* ================================================
   AQA Assistance — Premium Design System v2.0
   Modern Corporate | 2025
================================================ */

/* ─── Design Tokens ─── */
:root {
    /* Brand Colors */
    --c-navy:       #091729;
    --c-navy-mid:   #0d2547;
    --c-blue:       #2D7FC1;
    --c-blue-lt:    #4AABDE;
    --c-green:      #3DD68C;
    --c-green-lt:   #5AEAA4;
    --c-green-dk:   #22C97E;

    /* Neutral Palette */
    --c-white:      #ffffff;
    --c-gray-50:    #f8fafc;
    --c-gray-100:   #f1f5f9;
    --c-gray-200:   #e2e8f0;
    --c-gray-400:   #94a3b8;
    --c-gray-600:   #475569;
    --c-dark:       #0a1628;

    /* Semantic */
    --c-text:       #0f1e2e;
    --c-muted:      #64748b;

    /* Gradients */
    --g-brand:  linear-gradient(135deg, #091729 0%, #0d2547 100%);
    --g-blue:   linear-gradient(135deg, #2D7FC1 0%, #4AABDE 100%);
    --g-green:  linear-gradient(135deg, #3DD68C 0%, #5AEAA4 100%);
    --g-surface:linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);

    /* Shadows */
    --s-sm:  0 1px 3px rgba(9,23,41,.07), 0 1px 2px rgba(9,23,41,.04);
    --s-md:  0 4px 16px rgba(9,23,41,.09), 0 2px 6px rgba(9,23,41,.05);
    --s-lg:  0 16px 48px rgba(9,23,41,.12), 0 4px 16px rgba(9,23,41,.07);
    --s-xl:  0 32px 80px rgba(9,23,41,.15), 0 8px 24px rgba(9,23,41,.09);
    --s-green: 0 8px 28px rgba(61,214,140,.28);

    /* Spacing */
    --section-pad:    6rem;
    --section-pad-sm: 4rem;

    /* Radii */
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   22px;
    --r-xl:   32px;
    --r-full: 9999px;

    /* Transitions */
    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 450ms;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Manrope', 'Tajawal', sans-serif;
    color: var(--c-text);
    background: var(--c-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn, .eyebrow, .stat-value {
    font-family: 'Plus Jakarta Sans', 'Manrope', 'Tajawal', sans-serif;
    letter-spacing: -0.02em;
}

html[dir='rtl'] body,
html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3,
html[dir='rtl'] h4, html[dir='rtl'] h5, html[dir='rtl'] h6,
html[dir='rtl'] .navbar-brand, html[dir='rtl'] .btn,
html[dir='rtl'] .eyebrow, html[dir='rtl'] .stat-value {
    font-family: 'Tajawal', 'Manrope', sans-serif;
    letter-spacing: 0;
}

html[dir='rtl'] body, .rtl-mode {
    direction: rtl;
    text-align: right;
}

.site-body { min-height: 100vh; }

/* ─── Gradient Text ─── */
.gradient-text {
    background: var(--g-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Eyebrow ─── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-green);
    background: rgba(61,214,140,.1);
    padding: 0.3rem 0.9rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(61,214,140,.22);
}

.eyebrow-light {
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
}

/* ─── Buttons ─── */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--r-md);
    transition: all var(--t-base) var(--ease);
}

.btn-gold {
    background: var(--g-green);
    color: #fff;
    border: none;
    box-shadow: var(--s-green);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(61,214,140,.38);
    color: #fff;
}

.btn-green {
    background: var(--g-green);
    color: #fff;
    border: none;
    box-shadow: var(--s-green);
}
.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(61,214,140,.38);
    color: #fff;
}

.btn-brand {
    background: var(--g-brand);
    color: #fff;
    border: none;
    box-shadow: var(--s-md);
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--s-xl);
    color: #fff;
}

.btn-glass {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--c-blue);
    border-color: var(--c-blue);
}
.btn-outline-primary:hover {
    background: var(--c-blue);
    border-color: var(--c-blue);
    color: #fff;
}

/* ─── Top Bar ─── */
.top-bar {
    background: #04101e;
    color: rgba(255,255,255,.6);
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.top-bar a, .top-bar-lang {
    color: var(--c-green);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--t-fast);
}
.top-bar a:hover, .top-bar-lang:hover { color: #fff; }

/* ─── Navbar ─── */
.corporate-navbar {
    background: rgba(9,23,41,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    z-index: 1050;
    transition: all var(--t-base) var(--ease);
}
.corporate-navbar.navbar-scrolled {
    background: rgba(9,23,41,1);
    box-shadow: 0 4px 32px rgba(0,0,0,.45);
}

.brand-icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: var(--r-md);
    background: var(--g-green);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--s-green);
    flex-shrink: 0;
}
.brand-text { font-size: 1.18rem; color: #fff; line-height: 1.2; }
.brand-text strong { font-weight: 800; letter-spacing: 0.03em; }
.brand-sub { font-weight: 400; opacity: .78; }

.corporate-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.8rem !important;
    color: rgba(255,255,255,.72);
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.corporate-navbar .nav-link:hover,
.corporate-navbar .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,.07);
}
.corporate-navbar .nav-link.active {
    color: var(--c-green);
    background: rgba(61,214,140,.1);
}

.corporate-navbar .dropdown-menu {
    background: #0d2547;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,.38);
    padding: 0.6rem;
    min-width: 220px;
}
.corporate-navbar .dropdown-item {
    color: rgba(255,255,255,.75);
    border-radius: var(--r-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--t-fast);
}
.corporate-navbar .dropdown-item:hover {
    background: rgba(61,214,140,.12);
    color: var(--c-green);
}

/* ─── Hero Slider ─── */
.hero-slider-section { position: relative; }

.hero-slide {
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

/* Large glow orb per slide */
.hero-slide::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,214,140,.12) 0%, transparent 65%);
    inset-inline-end: -200px;
    top: -200px;
    pointer-events: none;
    z-index: 0;
}

.hero-slide-1 { background: linear-gradient(135deg, #070f1c 0%, #0d2547 55%, #122d5c 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #091828 0%, #0f2d52 55%, #163866 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #04090f 0%, #0b1e38 55%, #0e2748 100%); }

.hero-slide .hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(61,214,140,.07) 0%, transparent 55%),
                radial-gradient(ellipse at 15% 80%, rgba(45,127,193,.1) 0%, transparent 45%);
    z-index: 0;
}

.hero-slide .container { position: relative; z-index: 1; }

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
.hero-float { animation: float 5.5s ease-in-out infinite; }

.hero-heading {
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,.18);
}
.hero-slide .lead {
    color: rgba(255,255,255,.78) !important;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* ─── Carousel Controls ─── */
.carousel-control-icon {
    width: 52px; height: 52px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 0.95rem;
    transition: all var(--t-base) var(--ease);
}
.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
    background: var(--c-green);
    border-color: var(--c-green);
    transform: scale(1.1);
    box-shadow: var(--s-green);
}
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: 1; }
.carousel-indicators { margin-bottom: 2rem; }
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    background: transparent;
    opacity: .6;
    transition: all var(--t-base) var(--ease);
    margin: 0 5px;
}
.carousel-indicators .active {
    background: var(--c-green);
    border-color: var(--c-green);
    opacity: 1;
    width: 36px;
    border-radius: var(--r-sm);
}

/* Fade transition */
.carousel-fade .carousel-item { transition: opacity 0.85s ease-in-out; }

/* Entrance animations */
.carousel-item .hero-heading,
.carousel-item .eyebrow,
.carousel-item .lead,
.carousel-item .btn,
.carousel-item .glass-card,
.carousel-item .hero-features-grid,
.carousel-item .hero-stats-card {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.carousel-item.active .eyebrow       { opacity: 1; transform: none; transition-delay: .2s; }
.carousel-item.active .hero-heading  { opacity: 1; transform: none; transition-delay: .35s; }
.carousel-item.active .lead          { opacity: 1; transform: none; transition-delay: .5s; }
.carousel-item.active .btn           { opacity: 1; transform: none; transition-delay: .62s; }
.carousel-item.active .glass-card,
.carousel-item.active .hero-features-grid,
.carousel-item.active .hero-stats-card { opacity: 1; transform: none; transition-delay: .55s; }

/* ─── Glass Card ─── */
.glass-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--r-xl);
    box-shadow: var(--s-xl);
    border: 1px solid rgba(255,255,255,.65);
}
.hero-card { color: var(--c-text); }

/* Hero points */
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li {
    display: flex; align-items: center; gap: 0.65rem;
    margin-bottom: 0.8rem; font-size: 0.95rem;
    color: var(--c-text);
}
.hero-points li i { color: var(--c-green); font-size: 0.9rem; }

/* Hero feature grid (slide 2) */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    gap: 0.5rem;
    transition: all var(--t-base) var(--ease);
}
.hero-feature-item:hover {
    background: rgba(61,214,140,.18);
    transform: translateY(-4px);
}
.hero-feature-item i { color: var(--c-green); }

/* Hero stats card (slide 3) */
.hero-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.1;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: var(--c-muted);
    font-weight: 500;
}

/* ─── Icon Badge ─── */
.icon-badge, .service-icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: var(--r-md);
    background: var(--g-brand);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--s-md);
}
.icon-badge-green { background: var(--g-green); box-shadow: var(--s-green); }
.icon-badge-lg { width: 68px; height: 68px; border-radius: var(--r-lg); font-size: 1.5rem; }

/* ─── Service Cards ─── */
.service-card {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--s-md);
    border: 1px solid rgba(9,23,41,.05);
    overflow: hidden;
    transition: all var(--t-base) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--s-xl);
    transform: translateY(-8px);
    border-color: rgba(61,214,140,.25);
}
.service-card-top-bar {
    height: 4px;
    background: var(--g-green);
    flex-shrink: 0;
}
.service-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--c-blue);
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    transition: gap var(--t-fast), color var(--t-fast);
}
.service-card .link-arrow:hover { color: var(--c-green); gap: 0.65rem; }

/* ─── Trust Tiles ─── */
.trust-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid rgba(9,23,41,.05);
    box-shadow: var(--s-sm);
    transition: all var(--t-base) var(--ease);
}
.trust-tile:hover {
    box-shadow: var(--s-md);
    border-color: rgba(61,214,140,.2);
    transform: translateY(-3px);
}
.trust-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: rgba(61,214,140,.1);
    color: var(--c-green);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background var(--t-fast), color var(--t-fast);
}
.trust-tile:hover .trust-icon { background: var(--g-green); color: #fff; }
.trust-text { font-weight: 600; font-size: 0.92rem; color: var(--c-text); }

/* ─── Platform Grid ─── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.platform-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 130px;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid rgba(9,23,41,.06);
    box-shadow: var(--s-sm);
    font-weight: 600;
    color: var(--c-text);
    gap: 0.5rem;
    transition: all var(--t-base) var(--ease);
}
.platform-item:hover {
    background: var(--g-brand);
    color: #fff;
    box-shadow: var(--s-xl);
    transform: translateY(-4px);
    border-color: transparent;
}
.platform-item i { font-size: 1.5rem; color: var(--c-green); transition: color var(--t-fast); }
.platform-item:hover i { color: #5AEAA4; }

/* ─── Stats Section ─── */
.stats-section {
    background: var(--g-brand);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}
.stats-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,214,140,.1) 0%, transparent 65%);
    top: -150px; right: -150px;
    pointer-events: none;
}
.stats-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,127,193,.2) 0%, transparent 60%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}
.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    transition: all var(--t-base) var(--ease);
}
.stat-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,.2);
}
.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--g-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    color: rgba(255,255,255,.65);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* ─── Solution Cards ─── */
.solution-card {
    background: #fff;
    border-radius: var(--r-xl);
    border: 1px solid rgba(9,23,41,.06);
    box-shadow: var(--s-md);
    padding: 2.5rem;
    height: 100%;
    transition: all var(--t-base) var(--ease);
    overflow: hidden;
    position: relative;
}
.solution-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 4px; height: 100%;
    background: var(--g-green);
    border-radius: 4px 0 0 4px;
}
.solution-card-individual::before { background: var(--g-blue); }
.solution-card:hover { box-shadow: var(--s-xl); transform: translateY(-5px); }

.solution-list {
    list-style: none;
    padding: 0; margin: 1.25rem 0 1.75rem;
}
.solution-list li {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--c-gray-100);
    font-size: 0.93rem;
    color: var(--c-muted);
}
.solution-list li::before {
    content: '';
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(61,214,140,.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%233DD68C' d='M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    flex-shrink: 0;
}

/* ─── Testimonials ─── */
.testimonials-section {
    background: var(--g-brand);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}
.testimonials-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 90% 15%, rgba(61,214,140,.09) 0%, transparent 35%),
        radial-gradient(circle at 10% 85%, rgba(45,127,193,.12) 0%, transparent 38%);
    pointer-events: none;
}
.testimonial-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-xl);
    padding: 2rem;
    color: #fff;
    position: relative;
    transition: all var(--t-base) var(--ease);
}
.testimonial-card:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,.2);
}
.testimonial-card .quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--c-green);
    opacity: .25;
    font-family: Georgia, serif;
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 1.5rem;
    pointer-events: none;
}
.testimonial-card .quote-text {
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    font-style: italic;
    font-size: 0.97rem;
    position: relative;
    z-index: 1;
    padding-top: 1.2rem;
    margin-bottom: 1.25rem;
}
.testimonial-stars { color: var(--c-green); font-size: 0.78rem; letter-spacing: 2px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--g-green);
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ─── Lead Form ─── */
.lead-form-section { background: var(--c-gray-50); }
.lead-form-card {
    background: #fff;
    border-radius: var(--r-xl);
    box-shadow: var(--s-xl);
    border: 1px solid rgba(9,23,41,.05);
    padding: 3rem;
}
.content-card {
    background: #fff;
    border-radius: var(--r-xl);
    border: 1px solid rgba(9,23,41,.06);
    box-shadow: var(--s-md);
    padding: 2rem 2.5rem;
}
.form-control, .form-select {
    border-radius: var(--r-md);
    min-height: 52px;
    border: 1.5px solid var(--c-gray-200);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    background: var(--c-gray-50);
}
.form-control:focus, .form-select:focus {
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(61,214,140,.15);
    background: #fff;
    outline: none;
}
textarea.form-control { min-height: 140px; resize: none; }
.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--c-gray-600);
    margin-bottom: 0.4rem;
}

/* ─── Emergency Strip ─── */
.emergency-strip {
    background: linear-gradient(135deg, #b02a18 0%, #de3d28 100%);
    position: relative; overflow: hidden;
}
.emergency-strip::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 65%);
    inset-inline-end: -60px; top: -90px;
    pointer-events: none;
}

/* ─── Footer ─── */
.footer-section {
    background: #04101e;
    color: #fff;
    position: relative;
}
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--g-green);
}
.footer-brand-icon {
    width: 50px; height: 50px;
    border-radius: var(--r-md);
    background: var(--g-green);
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: var(--s-green);
    margin-bottom: 1rem;
}
.footer-desc {
    color: rgba(255,255,255,.5);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 260px;
}
.footer-section h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--c-green);
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--t-fast), padding-inline-start var(--t-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover { color: var(--c-green); padding-inline-start: 4px; }
.footer-contact-item {
    display: flex; align-items: center; gap: 0.75rem;
    color: rgba(255,255,255,.5);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}
.footer-contact-item i {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-green);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: all var(--t-fast);
}
.footer-social a:hover {
    background: var(--c-green);
    border-color: var(--c-green);
    color: #fff;
    transform: translateY(-3px);
}
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1rem; }
.footer-bottom-text { color: rgba(255,255,255,.3); font-size: 0.82rem; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(61,214,140,.1) 0%, transparent 45%);
    pointer-events: none;
}

/* ─── Utilities ─── */
.bg-soft         { background: var(--c-gray-50) !important; }
.bg-light-soft   { background: #f1f5f9 !important; }
.text-green      { color: var(--c-green) !important; }
.text-navy       { color: var(--c-navy) !important; }
.section-block    { padding: var(--section-pad) 0; }
.section-block-sm { padding: var(--section-pad-sm) 0; }
.section-header   { max-width: 540px; }
.section-header-center { max-width: 600px; margin-inline: auto; text-align: center; }
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(61,214,140,.3), transparent);
    border: none;
    margin: 0;
}
.related-link {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--c-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    padding: 0.55rem 0.8rem;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
}
.related-link:hover { color: var(--c-green); background: rgba(61,214,140,.07); }

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
    :root { --section-pad: 4rem; --section-pad-sm: 3rem; }
    .hero-slide { min-height: 520px; padding: 3.5rem 0; }
    .hero-heading { font-size: 2rem; }
    .platform-grid { grid-template-columns: 1fr; }
    .carousel-control-prev, .carousel-control-next { display: none; }
    .lead-form-card { padding: 2rem 1.5rem; }
    .solution-card { padding: 1.75rem; }
}

@media (max-width: 575.98px) {
    .hero-slide { min-height: 480px; }
    .stat-value { font-size: 2.2rem; }
    .eyebrow { font-size: 0.68rem; }
    .solution-card { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════
   RTL (Arabic) Overrides
   Supplements Bootstrap RTL CSS
   ═══════════════════════════════════════════════════ */

/* ── Flip directional arrows ── */
html[dir='rtl'] .link-arrow i,
html[dir='rtl'] .btn i.fa-arrow-right {
    transform: scaleX(-1);
    display: inline-block;
}

/* ── Solution card accent bar — fix border-radius for RTL ── */
html[dir='rtl'] .solution-card::before {
    border-radius: 0 4px 4px 0;
}

/* ── Eyebrow letter-spacing reset for Arabic ── */
html[dir='rtl'] .eyebrow {
    letter-spacing: 0.03em;
}

/* ── Service card body text align ── */
html[dir='rtl'] .service-card-body,
html[dir='rtl'] .trust-tile {
    text-align: right;
}

/* ── Platform items align to right in RTL ── */
html[dir='rtl'] .platform-item {
    align-items: flex-end;
}

/* ── Footer links hover: remove start padding, use end ── */
html[dir='rtl'] .footer-links a:hover {
    padding-inline-start: 0;
    padding-inline-end: 4px;
}

/* ── Footer contact icon: ensure correct alignment ── */
html[dir='rtl'] .footer-contact-item {
    direction: rtl;
}

/* ── Section header alignment ── */
html[dir='rtl'] .section-header {
    text-align: right;
}

/* ── Hero CTA buttons gap direction ── */
html[dir='rtl'] .hero-points li i {
    margin-inline-end: 0.5rem;
    margin-inline-start: 0;
}

/* ── Testimonial quote mark position ── */
html[dir='rtl'] .quote-mark {
    left: auto;
    right: 1.5rem;
}

/* ── Stat section pseudo-elements mirror ── */
html[dir='rtl'] .stats-section::before {
    right: auto;
    left: -150px;
}
html[dir='rtl'] .stats-section::after {
    left: auto;
    right: -100px;
}

/* ── Page hero glow mirror ── */
html[dir='rtl'] .page-hero::after {
    background-image: radial-gradient(circle at 20% 50%, rgba(61,214,140,.1) 0%, transparent 45%);
}

/* ── Navbar: correct brand icon margins in RTL ── */
html[dir='rtl'] .brand-icon {
    margin-inline-end: 0.5rem;
    margin-inline-start: 0;
}

/* ═══════════════════════════════════════════════════
   Mobile Responsiveness — Enhanced
   ═══════════════════════════════════════════════════ */

/* Touch-friendly tap targets */
@media (max-width: 991.98px) {
    /* Navbar mobile improvements */
    .navbar-collapse { padding: .5rem 0; }
    .navbar .nav-link { padding: .65rem 1rem; min-height: 44px; display: flex; align-items: center; }
    .navbar .btn { min-height: 44px; padding: .5rem 1.25rem; }
    .navbar-toggler { min-width: 44px; min-height: 44px; }

    /* Hero: stack content, improve readability */
    .hero-heading { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.25; }
    .hero-subheading { font-size: 1rem; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .hero-cta-group .btn { width: 100%; max-width: 320px; min-height: 48px; }

    /* Stats section: 2 columns on tablet */
    .stats-grid,
    .row.stats-row > [class*='col-'] { flex: 0 0 50%; max-width: 50%; }

    /* Service cards: 2-col grid tablet */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

    /* Platform grid: already 1-col via earlier rule — keep */

    /* Forms: full width inputs */
    .lead-form-card .row > [class*='col-'] { flex: 0 0 100%; max-width: 100%; }

    /* Trust tiles: 2-col */
    .trust-grid { grid-template-columns: repeat(2, 1fr); }

    /* Coverage map: shrink */
    .coverage-map-wrap { min-height: 260px; }

    /* Page hero heading */
    .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); }

    /* Section padding reduction */
    .section-header { margin-bottom: 2.5rem !important; }
}

@media (max-width: 767.98px) {
    /* Stats: 2-col maintained, but smaller font */
    .stat-value { font-size: 2rem; }
    .stat-label { font-size: .8rem; }

    /* Service cards: single column on small-md */
    .services-grid { grid-template-columns: 1fr; }
    .solution-card { flex-direction: column !important; gap: 1rem; }

    /* Trust: 2-col still fine */
    .trust-grid { grid-template-columns: repeat(2, 1fr); }

    /* Testimonial cards: full width */
    .testimonial-card { padding: 1.5rem; }

    /* Tables: horizontal scroll */
    .table-responsive-stack table { min-width: 480px; }

    /* Footer columns */
    .footer-cols > [class*='col-'] { margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
    /* Hero */
    .hero-slide { min-height: 440px !important; padding: 2.5rem 0; }
    .hero-heading { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .hero-points { display: none; } /* hide bullet points on tiny screens */

    /* Stats: single column */
    .stats-grid,
    .row.stats-row > [class*='col-'] { flex: 0 0 100%; max-width: 100%; }

    /* Trust: single column */
    .trust-grid { grid-template-columns: 1fr; }

    /* Buttons: full-width on < 576 */
    .hero-cta-group .btn { max-width: 100%; }

    /* Section title size */
    .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }

    /* Lead form padding */
    .lead-form-card { padding: 1.5rem 1rem !important; }

    /* Platform item: center on phone */
    .platform-item { align-items: center; text-align: center; }

    /* Footer bottom bar: stack */
    .footer-bottom .d-flex { flex-direction: column; gap: .4rem; text-align: center; }

    /* Navbar brand: smaller on phone */
    .navbar-brand { font-size: .9rem; }
    .navbar-brand img { height: 36px !important; }
}

/* Prevent horizontal scroll */
body { overflow-x: hidden; }
.container, .container-fluid { max-width: 100vw; }

