/* ================================================================
   SADADK — Website Stylesheet
   Premium fintech/SaaS aesthetic · Glassmorphism · Bilingual EN/AR
   ================================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
    /* Brand colors */
    --primary:   #07568E;
    --navy:      #084F85;
    --sky:       #1E7FC4;
    --mist:      #B4D8F2;
    --glass:     #F0F6FC;
    --ink:       #0A1628;
    --text:      #0A1628;
    --text-muted: #4A5B73;
    --white:     #FFFFFF;

    /* Surfaces */
    --bg:         #FFFFFF;
    --bg-alt:     #F0F6FC;
    --surface:    rgba(255, 255, 255, 0.65);
    --surface-solid: #FFFFFF;
    --border:     rgba(7, 86, 142, 0.10);
    --border-strong: rgba(7, 86, 142, 0.18);

    /* Gradients */
    --grad-hero:  linear-gradient(135deg, #051428 0%, #07568E 50%, #084F85 100%);
    --grad-cta:   linear-gradient(135deg, rgba(5,20,40,0.88) 0%, rgba(7,86,142,0.78) 100%);
    --grad-accent: linear-gradient(135deg, #07568E 0%, #1E7FC4 100%);

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(7, 86, 142, 0.06);
    --shadow:     0 8px 32px rgba(7, 86, 142, 0.12);
    --shadow-lg:  0 20px 60px rgba(7, 86, 142, 0.18);
    --shadow-glass: 0 8px 32px rgba(7, 86, 142, 0.10), inset 0 1px 0 rgba(255,255,255,0.6);

    /* Radius */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-full: 999px;

    /* Motion */
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --dur:       0.3s;

    /* Fonts */
    --font-en:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-ar:   "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
    --font:      var(--font-en);

    /* Layout */
    --container: 1240px;
    --gutter:    24px;
    --section-y: clamp(40px, 5.5vw, 72px);
}

[lang="ar"] {
    --font: var(--font-ar);
}

/* Dark mode */
[data-theme="dark"] {
    --bg:         #051428;
    --bg-alt:     #0A1F38;
    --surface:    rgba(10, 31, 56, 0.65);
    --surface-solid: #0A1F38;
    --text:       #E8F1FA;
    --text-muted: #7EA8D0;
    --border:     rgba(180, 216, 242, 0.12);
    --border-strong: rgba(180, 216, 242, 0.22);
    --glass:      #0A1F38;
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow:     0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
[lang="ar"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--sky); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky); }

/* Skip link */
.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--primary); color: #fff; padding: 12px 20px;
    border-radius: var(--r-md); z-index: 1000;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--text); }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-muted); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 16px;
}
[lang="ar"] .eyebrow { letter-spacing: 1px; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
[lang="ar"] h2 { font-size: clamp(24px, 3.2vw, 36px); }
[lang="ar"] #about h2 { font-size: clamp(24px, 3.2vw, 34px); }

/* ---------- 4. LAYOUT ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
section { padding: var(--section-y) 0; position: relative; }

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(7, 86, 142, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(7, 86, 142, 0.45); color: #fff; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }
.btn-secondary {
    background: var(--surface-solid);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ---------- 6. NAVIGATION ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    /* Always-opaque dark navy background — no transparency that would let content bleed through. */
    background: rgba(5, 20, 40, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
    transition: padding var(--dur) var(--ease);
}
.nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.30);
}
[data-theme="dark"] .nav { background: rgba(5, 20, 40, 0.98); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
}
.nav-logo img {
    height: 56px;
    width: auto;
    transition: opacity var(--dur) var(--ease);
    flex-shrink: 0;
}
.nav-logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.15;
}
[lang="ar"] .nav-logo-text {
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}
.nav.scrolled .nav-logo img { height: 48px; }
@media (max-width: 960px) {
    .nav-logo img { height: 48px; }
    .nav-logo-text { font-size: 13px; letter-spacing: 1px; }
    [lang="ar"] .nav-logo-text { font-size: 15px; }
}
@media (max-width: 720px) {
    .nav-logo { gap: 10px; }
    .nav-logo img { height: 42px; }
    .nav-logo-text { font-size: 11px; letter-spacing: 0.8px; }
    [lang="ar"] .nav-logo-text { font-size: 13px; }
}
@media (max-width: 480px) {
    .nav-logo { gap: 8px; }
    .nav-logo { white-space: normal; }
    .nav-logo img { height: 36px; }
    .nav-logo-text { font-size: 9px; letter-spacing: 0.4px; line-height: 1.15; max-width: 9ch; }
    [lang="ar"] .nav-logo-text { font-size: 12px; line-height: 1.3; max-width: none; }
    .nav-actions { gap: 6px; }
    .nav-toggle-btn, .nav-lang, .hamburger { width: 36px; height: 36px; }
    .nav-lang { padding: 0 8px; font-size: 11px; }
}
@media (max-width: 380px) {
    .nav-logo { gap: 6px; }
    .nav-logo img { height: 32px; }
    .nav-logo-text { font-size: 8.5px; }
    [lang="ar"] .nav-logo-text { font-size: 11px; }
}
.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
}
.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--dur) var(--ease);
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a.active::after {
    content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 2px; background: var(--sky); border-radius: 2px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-toggle-btn {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background var(--dur) var(--ease);
}
.nav-toggle-btn:hover { background: rgba(255, 255, 255, 0.18); }
.nav-toggle-btn svg { width: 18px; height: 18px; }
.nav-lang {
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    padding: 0 12px; height: 40px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex; align-items: center;
}
.nav-lang:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.hamburger {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.hamburger svg { width: 22px; height: 22px; }

/* Mobile menu */
@media (max-width: 960px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(380px, 85vw);
        background: rgba(5, 20, 40, 0.98);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 96px 32px 32px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--dur) var(--ease);
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    [dir="rtl"] .nav-menu {
        right: auto; left: 0;
        transform: translateX(-100%);
        border-left: none;
        border-right: 1px solid rgba(255,255,255,0.08);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu a { font-size: 20px; color: #fff; }
    .hamburger { display: inline-flex; }
    .nav-menu-cta { display: flex !important; }
}

/* ---------- 7. HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    z-index: -2;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(5,20,40,0.88) 0%, rgba(7,86,142,0.72) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero h1 {
    color: #fff;
    margin-bottom: 22px;
    font-size: clamp(38px, 4.6vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.hero-sub {
    color: var(--mist);
    font-size: clamp(16px, 1.3vw, 19px);
    margin-bottom: 40px;
    max-width: 680px;
    line-height: 1.6;
}
.hero .eyebrow { font-size: 13px; margin-bottom: 18px; }

/* Arabic */
[lang="ar"] .hero h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.35; letter-spacing: 0; }
[lang="ar"] .hero-sub { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; max-width: 620px; }
[lang="ar"] .hero .eyebrow { font-size: 15px; letter-spacing: 0.5px; }

@media (max-width: 720px) {
    .hero h1 { font-size: clamp(28px, 7vw, 38px); }
    [lang="ar"] .hero h1 { font-size: clamp(26px, 7vw, 36px); }
    [lang="ar"] .hero .eyebrow { font-size: 13px; }
}
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 56px; row-gap: 16px; }
.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    row-gap: 12px;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}
.stat-pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.scroll-indicator {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: #fff;
    opacity: 0.5;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ---------- 8. INDUSTRIES STRIP (anonymized social proof) ---------- */
.proof-strip {
    padding: 32px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.proof-inner {
    display: flex; align-items: center; gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.proof-label {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-muted);
}
.proof-items {
    display: flex; gap: 48px; flex-wrap: wrap;
    justify-content: center;
    color: var(--text); font-weight: 500; font-size: 14px;
}
.proof-items span { opacity: 0.75; }

/* ---------- 9. CARDS ---------- */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

/* ---------- 10. ABOUT SECTION ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
[dir="rtl"] .about-grid { grid-template-columns: 1fr 1.05fr; }
.about-img-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-wrap::before {
    content: ""; position: absolute; inset: -20px;
    background: var(--grad-accent); opacity: 0.15;
    border-radius: var(--r-xl); z-index: -1;
    filter: blur(40px);
}
.about-img-wrap img { width: 100%; display: block; }
/* About stats now placed as a full-width row UNDER the about grid */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}
.about-stat {
    padding: 24px 22px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.about-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.about-stat-num {
    font-size: 24px; font-weight: 800; color: var(--primary);
    letter-spacing: -0.02em;
    display: block; margin-bottom: 6px;
    line-height: 1.1;
}
.about-stat-label { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }
[lang="ar"] .about-stat-num { font-size: 22px; letter-spacing: 0; }
[lang="ar"] .about-stat-label { font-size: 14px; }

@media (max-width: 900px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    [dir="rtl"] .about-grid { grid-template-columns: 1fr; }
}

/* ---------- 11. SERVICES ---------- */
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.section-head .lead { margin-bottom: 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    display: flex; flex-direction: column;
    background: var(--surface-solid);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--mist), var(--sky));
    overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-label {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--sky); margin-bottom: 12px;
}
.service-card h3 { color: var(--text); margin-bottom: 12px; }
.service-card p { flex: 1; margin-bottom: 20px; font-size: 15px; }
.service-link {
    font-size: 14px; font-weight: 600; color: var(--primary);
    display: inline-flex; gap: 6px; align-items: center;
    transition: gap var(--dur) var(--ease);
}
.service-link:hover { gap: 12px; }
[dir="rtl"] .service-link svg { transform: scaleX(-1); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

/* ---------- 12. INDUSTRIES ---------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.industry-card {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: #fff;
    cursor: default;
}
.industry-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.industry-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,20,40,0) 0%, rgba(5,20,40,0.85) 100%);
    transition: background var(--dur) var(--ease);
}
.industry-card:hover img { transform: scale(1.06); }
.industry-card:hover::after {
    background: linear-gradient(180deg, rgba(5,20,40,0.1) 0%, rgba(5,20,40,0.92) 100%);
}
.industry-content {
    position: absolute; z-index: 1;
    bottom: 28px; left: 28px; right: 28px;
}
[dir="rtl"] .industry-content { text-align: right; }
.industry-card h3 { color: #fff; margin-bottom: 6px; }
.industry-card p { color: var(--mist); font-size: 14px; margin: 0; }

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

/* ---------- 13. WHY SADADK ---------- */
.why-section { background: var(--bg-alt); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    padding: 28px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
}
.why-card:hover {
    border-color: var(--sky);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.why-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    background: var(--grad-accent);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; }

@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .why-grid { grid-template-columns: 1fr; } }

/* ---------- 14. TEAM ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.team-card {
    padding: 36px 28px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--dur) var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--grad-accent);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 28px; font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-role {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--sky);
    margin-bottom: 16px; display: block;
}
.team-bio { font-size: 14px; margin: 0; }

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

/* ---------- 15. CONTACT ---------- */
.contact-section {
    position: relative;
    padding: var(--section-y) 0;
    color: #fff;
    overflow: hidden;
}
.contact-bg {
    position: absolute; inset: 0; z-index: -2;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(5,20,40,0.92) 0%, rgba(7,86,142,0.85) 100%);
}
.contact-section .eyebrow { color: var(--sky); }
.contact-section h2 { color: #fff; }
.contact-section .lead { color: var(--mist); }

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    margin-top: 16px;
    align-items: start;
}
[dir="rtl"] .contact-grid { grid-template-columns: 1.1fr 0.9fr; }

.contact-info { display: grid; gap: 16px; }
.contact-info-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}
.contact-info-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: rgba(30, 127, 196, 0.25);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: #fff; }
.contact-info-label {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--mist);
    display: block; margin-bottom: 4px;
}
.contact-info-value { font-size: 15px; font-weight: 500; color: #fff; }
.contact-info-value a { color: #fff; }
.contact-info-value a:hover { color: var(--mist); }
.contact-phone-row {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.contact-phone-row .phone-link {
    display: inline-flex; align-items: center; gap: 4px;
}
.contact-phone-row .whatsapp-link {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #25D366;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform var(--dur) var(--ease);
}
.contact-phone-row .whatsapp-link:hover { transform: scale(1.12); }
.contact-phone-row .whatsapp-link svg { width: 14px; height: 14px; color: #fff; }

.contact-form-card {
    padding: 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--mist);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 14px 16px;
    background: rgba(5, 20, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-md);
    color: #fff;
    font-size: 15px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--sky);
    background: rgba(5, 20, 40, 0.55);
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-field select option { background: var(--navy); color: #fff; }
.form-hp { position: absolute; left: -9999px; opacity: 0; }
.form-submit-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 24px; flex-wrap: wrap;
}
.form-note { font-size: 13px; color: var(--mist); margin: 0; }
.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 14px;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}
.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

/* Browser default for [hidden] — re-asserted with !important so nothing overrides it. */
[hidden] { display: none !important; }

/* Full-card success state (replaces form on submit) */
.form-success-card {
    display: none;
    text-align: center;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-lg);
    color: #fff;
    animation: fadeInUp 0.5s var(--ease);
}
.form-success-card.visible { display: block; }
.form-success-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 32px rgba(34, 197, 94, 0.35);
    box-sizing: border-box;
    flex-shrink: 0;
}
.form-success-icon svg {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px;
    max-height: 36px;
    color: #fff;
    flex-shrink: 0;
}
.form-success-card h3 { color: #fff; margin-bottom: 12px; font-size: 24px; }
.form-success-card p { color: var(--mist); margin-bottom: 8px; font-size: 15px; }
.form-success-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--mist);
}
.form-success-meta a { color: #fff; text-decoration: underline; }
.form-success-card .btn-secondary {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-success-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* When success is shown, hide the form fields */
.contact-form-card.submitted .form-row,
.contact-form-card.submitted .form-field,
.contact-form-card.submitted .form-submit-row,
.contact-form-card.submitted .form-status { display: none; }

@media (max-width: 900px) {
    .contact-grid, [dir="rtl"] .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 24px; }
}

/* ---------- 16. FOOTER ---------- */
.footer {
    background: #051428;
    color: var(--mist);
    padding: 72px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    white-space: nowrap;
}
.footer-logo { height: 56px; width: auto; }
.footer-logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}
[lang="ar"] .footer-logo-text {
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}
.footer-tagline { font-size: 14px; color: var(--mist); max-width: 300px; }
.footer h4 {
    color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--mist); font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-contact-item { font-size: 14px; color: var(--mist); margin-bottom: 10px; }
.footer-contact-item a { color: var(--mist); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
    color: rgba(180, 216, 242, 0.6);
}
.footer-bottom .legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}
[dir="ltr"] .footer-bottom .legal { text-align: right; }
[dir="rtl"] .footer-bottom .legal { text-align: left; }
.footer-bottom .legal span { display: block; }
@media (max-width: 720px) {
    .footer-bottom { flex-direction: column; gap: 12px; }
    .footer-bottom .legal { text-align: inherit; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 17. FLOATING WHATSAPP ---------- */
.fab-whatsapp {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 99;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4);
    animation: pulse 3s ease-in-out infinite;
    transition: transform var(--dur) var(--ease);
}
[dir="rtl"] .fab-whatsapp { right: auto; left: 24px; }
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 28px; height: 28px; color: #fff; }
.fab-whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}
[dir="rtl"] .fab-whatsapp-tooltip { right: auto; left: 72px; }
.fab-whatsapp:hover .fab-whatsapp-tooltip { opacity: 1; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0.12); }
}

/* ---------- 18. REVEAL ANIMATIONS (subtle, never hide content) ---------- */
/* Content is always fully visible. The "reveal" class is purely decorative and
   adds a soft slide-up effect when the element enters the viewport. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 19. PDF DOWNLOAD MODAL ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 40, 0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface-solid);
    border-radius: var(--r-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    background: transparent;
}
[dir="rtl"] .modal-close { right: auto; left: 16px; }
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal h3 { margin-bottom: 8px; }
.modal p { margin-bottom: 24px; font-size: 14px; }
.modal-field { margin-bottom: 16px; }
.modal-field input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 15px;
}
.modal-field input:focus { outline: none; border-color: var(--sky); }
.modal-submit { width: 100%; }

/*