/* public/css/tm4ex.css */

:root {
    --brand: #003366;
    --brand-dark: #122e4d;
    --accent: #de6444;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f8fa;
    --white: #fff;
    --help-radius: 18px;
    --help-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
    --help-shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.18);
    --header-h: 64px;
    --help-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.body {
    margin: 0;
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding: 0 16px;
}

.hidden {
    display: none;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mt-8 {
    margin-top: 2rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-5 {
    gap: 1.25rem;
}
.block {
    display: block;
}
.p-6 {
    padding: 1.5rem;
}
.text-brand {
    color: var(--accent);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    height: 66px;
    width: auto;
    display: block;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 22px;
}
.main-nav .nav-link {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease;
}
.main-nav .nav-link:hover {
    color: var(--brand);
}

.main-nav .nav-link {
    position: relative;
    font-weight: 500;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.main-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.main-nav .nav-link.is-active {
    font-weight: 800;
    color: var(--brand);
}
.main-nav .nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-nav a.is-active {
    font-weight: 800;
    color: var(--brand);
    position: relative;
}
.mobile-nav a.is-active::after {
    content: "";
    position: absolute;
    inset: auto 0 -4px 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(1);
    border-radius: 2px;
}

.mobile-nav.hidden {
    display: none !important;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.nav-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) {
    top: 15px;
}
.nav-toggle span:nth-child(2) {
    top: 21px;
}
.nav-toggle span:nth-child(3) {
    top: 27px;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
    top: 21px;
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 21px;
}

.header-cta {
    display: none;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    gap: 3px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    z-index: 120;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.12);
}
.mobile-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 8px 0;
}
.mobile-nav .btn {
    margin-top: 8px;
}

.nav-backdrop.hidden {
    display: none !important;
}
.nav-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: saturate(140%) blur(1px);
    z-index: 110;
}

/* =========================
   Language Switch (Header)
========================= */
.lang-switch {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 6px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 44px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.05s ease;
}

.lang-btn:hover {
    border-color: rgba(0, 51, 102, 0.35);
    background: rgba(0, 51, 102, 0.04);
}

.lang-btn:active {
    transform: translateY(1px);
}

[dir="rtl"] .main-nav {
    gap: 18px;
}
[dir="ltr"] .main-nav {
    gap: 18px;
}

[dir="ltr"] body.body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans";
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero--home {
    /* background-image: url("/images/hero4.jpg"); */
    /* background-position: center right; */
    background-color: var(--brand) !important;
}
.hero--home .hero-bg {
    background: linear-gradient(
            to left,
            rgba(10, 18, 28, 0.12) 0%,
            rgba(10, 18, 28, 0.24) 30%,
            rgba(10, 18, 28, 0.36) 55%,
            rgba(10, 18, 28, 0.42) 75%,
            rgba(10, 18, 28, 0.46) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(10, 18, 28, 0.18) 0%,
            rgba(10, 18, 28, 0.1) 40%,
            rgba(10, 18, 28, 0) 100%
        );
}

/* للتأكد: لا نضع أي صورة خلفية للهيرو الرئيسية */
.hero--home {
    background-image: none !important;
}

.hero--home > .container {
    padding-block: clamp(48px, 12vh, 140px) clamp(32px, 10vh, 100px);
}

.hero--careers {
    background: var(--brand);
    min-height: 560px;
}

.hero--careers > .container {
    padding-block: clamp(96px, 18vh, 220px);
}

.hero--careers .hero-bg {
    background: none;
}

.hero--careers .hero-art {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 560px;
    min-height: 420px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.15s ease;
    will-change: opacity;

    /* RTL الافتراضي: خلها يسار */
    left: max(0px, calc((100vw - 1380px) / 2));
    right: auto;
    object-position: left center;
}

/* LTR: خلها يمين */
[dir="ltr"] .hero--careers .hero-art {
    left: auto;
    right: max(0px, calc((100vw - 1380px) / 2));
    object-position: right center;
}

.hero--careers .hero-art.is-fade {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero--careers .hero-art {
        transition: none !important;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero--inner .hero-sub {
    color: #e5e7eb;
    max-width: 720px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
            to left,
            rgba(10, 18, 28, 0.18) 0%,
            rgba(10, 18, 28, 0.32) 30%,
            rgba(10, 18, 28, 0.44) 55%,
            rgba(10, 18, 28, 0.5) 75%,
            rgba(10, 18, 28, 0.54) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(10, 18, 28, 0.28) 0%,
            rgba(10, 18, 28, 0.14) 40%,
            rgba(10, 18, 28, 0) 100%
        );
}
.hero .hero-title,
.hero .hero-sub,
.hero .hero-bullets {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero .sep {
    opacity: 0.7;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-visual .illustration {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 4/3;
}
.illu-svg {
    width: 100%;
    height: 100%;
    padding: 0;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.25;
}
.hero-sub {
    margin-top: 12px;
    font-size: 18px;
    color: var(--muted);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.hero-bullets {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
}

.hero--home .hero-grid {
    justify-items: center;
}

.hero--home .hero-copy {
    text-align: center;
    margin-inline: auto;
}

.hero--home .hero-actions {
    justify-content: center;
}

.hero--home .hero-bullets {
    justify-content: center;
}

/* ===== Hero 3D Layer (Vanta) ===== */
.hero-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero--home {
    background: transparent;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    display: inline-block;
}
.dot-green {
    background: #22c55e;
}
.sep {
    opacity: 0.5;
}

.hero--flat {
    background: var(--brand);
}
.hero--flat .hero-bg {
    display: none;
}
.hero--short {
    min-height: 240px;
    padding: 48px 0;
}

/* Sections */
.section {
    padding: 56px 0;
}
.section-white {
    background: #fff;
}
.section-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
}
.h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.muted {
    color: var(--muted);
}

.grid-4,
.grid-3,
.grid-6 {
    display: grid;
}
.grid-4 {
    grid-template-columns: 1fr 1fr;
}
.grid-3 {
    grid-template-columns: 1fr;
}
.grid-6 {
    grid-template-columns: 1fr 1fr;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.card-title {
    font-weight: 700;
}

.logo-slot {
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #9ca3af;
    display: grid;
    place-items: center;
}
.step {
    font-size: 12px;
    color: #d1d5db;
}

/* ===== Why section cards with image on top ===== */
.why-card {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.35s var(--help-ease),
        box-shadow 0.35s var(--help-ease);
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

.why-media {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}
.why-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.7s var(--help-ease), filter 0.35s ease;
    will-change: transform;
}
.why-card:hover .why-media img {
    transform: scale(1.08);
}

.why-body {
    background: #fff;
    padding: 1rem 1.5rem 0.6rem;
}

.why-card.reveal {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
    filter: blur(2px);
    transition: opacity 0.5s ease, transform 0.55s var(--help-ease),
        filter 0.45s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.why-card.reveal.in {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .why-card,
    .why-media img,
    .why-card.reveal {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s,
        filter 0.2s;
}
.btn-brand {
    background: var(--brand);
    color: #fff;
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-brand:hover {
    background: var(--brand-dark);
}
.btn-secondary {
    background: var(--accent);
    color: #fff;
}
.btn-secondary:hover {
    filter: brightness(0.95);
}
.btn-outline {
    background: #fff;
    border-color: var(--line);
    color: #111827;
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.btn-dark {
    background: #111827;
    color: #fff;
}
.block {
    width: 100%;
}

/* Links */
.link-brand {
    color: var(--brand);
    text-decoration: none;
}
.link-brand:hover {
    opacity: 0.85;
}

/* Form base */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}
.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    outline: none;
}
.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 60, 102, 0.12);
}
.input-full {
    grid-column: 1 / -1;
}

/* ======================
   Contact (Professional)
====================== */
.contact-section {
    background: linear-gradient(
        180deg,
        rgba(23, 60, 102, 0.04),
        rgba(23, 60, 102, 0)
    );
}
.contact-grid {
    display: grid;
    gap: 24px;
}

.contact-form--pro {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(17, 24, 39, 0.06);
    padding: 24px 24px 14px 24px;
    background: #fff;
}
.contact-form--pro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 12px;
    background: var(--accent);
}
.contact-form__head .section-title {
    margin-bottom: 6px;
}

/* input with icons */
.input-group {
    position: relative;
}
.input-ico {
    position: absolute;
    inset: 0 auto 0 12px;
    display: grid;
    place-items: center;
    color: #9aa4b2;
    pointer-events: none;
}
[dir="rtl"] .input-ico {
    inset: 0 12px 0 auto;
}

.input-ico.top {
    align-items: flex-start;
    padding-top: 12px;
}

.input.with-ico {
    padding-left: 40px;
}
[dir="rtl"] .input.with-ico {
    padding-right: 40px;
}
.input.textarea {
    resize: vertical;
}

/* states */
.input,
.input.textarea {
    background: #fff;
    border-color: var(--line);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:hover,
.input.textarea:hover {
    border-color: #cfd6df;
}
.input:focus,
.input.textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 60, 102, 0.12);
}

/* submit */
.contact-submit {
    height: 46px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 6px;
}

/* note */
.form-note {
    font-size: 12px;
    color: #8592a3;
    margin-top: 6px;
}

/* ======================
   Form Alerts (Unified)
====================== */
.form-alert {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.7;
}

.form-alert--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.form-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* side card */
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.contact-card--pro {
    box-shadow: 0 6px 22px rgba(17, 24, 39, 0.05);
}
.contact-list.pro {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}
.contact-list.pro .bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-inline-start: 8px;
}
/* Contact section entry animations */
.contact-form--pro.reveal,
.contact-card--pro.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.contact-form--pro.reveal.in {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.contact-card--pro.reveal {
    transform: translateY(18px) translateX(-12px) scale(0.985);
}
[dir="rtl"] .contact-card--pro.reveal {
    transform: translateY(18px) translateX(12px) scale(0.985);
}

.contact-card--pro.reveal.in {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .contact-form--pro.reveal,
    .contact-card--pro.reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ===== Services entrance (distinct) ===== */
.reveal.reveal-svc {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    filter: blur(4px);
    transition: opacity 0.26s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), filter 0.26s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.reveal-svc.in {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal.reveal-svc,
    .reveal.reveal-svc.in {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ===== Partners: rise from bottom ===== */
.reveal.reveal-partners {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
    transition: opacity 0.26s ease,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), filter 0.26s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.reveal-partners.in {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal.reveal-partners,
    .reveal.reveal-partners.in {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.help .reveal {
    transition: opacity 0.6s ease, transform 0.7s var(--help-ease),
        filter 0.6s ease;
}

.help-card {
    transition: transform 0.45s var(--help-ease),
        box-shadow 0.45s var(--help-ease), border-color 0.45s var(--help-ease),
        filter 0.45s var(--help-ease);
}

.help-card .help-bg {
    transition: transform 0.9s var(--help-ease);
}

.help-card .help-overlay {
    transition: opacity 0.5s var(--help-ease);
}
.help-card .help-shine {
    transition: opacity 0.5s var(--help-ease), transform 0.5s var(--help-ease);
}

.help-card:hover,
.help-card:focus-visible {
    transform: translateY(-6px) scale(1.01);
}

.help-grid .help-card:nth-child(1) {
    --reveal-delay: 80ms;
}
.help-grid .help-card:nth-child(2) {
    --reveal-delay: 180ms;
}
.help-grid .help-card:nth-child(3) {
    --reveal-delay: 280ms;
}
.help-grid .help-card:nth-child(4) {
    --reveal-delay: 380ms;
}

.stat-num {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    filter: blur(2px);
    transition: opacity 0.38s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}
.stat-num.in {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .stat-num,
    .stat-num.in {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* ===== Input + Button Combo ===== */
.input-combo,
.input-combo * {
    box-sizing: border-box;
}
.input-combo {
    direction: rtl;
    position: relative;
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: #1f2937;
}
.combo-ico {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 14px;
    color: #9ca3af;
    display: inline-flex;
}
.combo-input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 14px;
    padding-inline-start: 44px;
    font-size: 16px;
    background: transparent;
    color: #fff;
    direction: rtl;
    text-align: right;
}
.combo-input::placeholder {
    color: #9ca3af;
}
.combo-input:focus {
    box-shadow: 0 0 0 3px rgba(23, 60, 102, 0.18);
}
.combo-btn {
    border: 0;
    outline: 0;
    background: var(--accent);
    color: #fff;
    padding: 0 20px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.05s ease;
}
.combo-btn:hover {
    filter: brightness(0.95);
}
.combo-btn:active {
    transform: translateY(1px);
}
.track-form .input-combo {
    height: 48px;
}

/* Footer */
.site-footer {
    background: var(--brand);
    color: #e6eef6;
    padding-top: 40px;
}
.footer-grid {
    display: grid;
    gap: 24px;
    padding-bottom: 20px;
    grid-template-columns: 1fr;
}
.brand-logo--footer {
    height: 124px;
}
.footer-head {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}
.footer-list a,
.footer-bottom .links a,
.footer-social .social-link {
    position: relative;
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.footer-list a::after,
.footer-bottom .links a::after,
.footer-social .social-link::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 2px;
}
.footer-list a:hover,
.footer-bottom .links a:hover,
.footer-social .social-link:hover {
    color: var(--accent);
}
.footer-list a:hover::after,
.footer-bottom .links a:hover::after,
.footer-social .social-link:hover::after {
    transform: scaleX(1);
}

.footer-muted {
    color: #cdd7e6;
    margin-top: 12px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.footer-social .social-link {
    display: inline-flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #cdd7e6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 28px;
}
.footer-bottom .links {
    display: flex;
    gap: 16px;
}

.line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mt-4 {
    margin-top: 1rem;
}

/* Newsletter */
.newsletter {
    display: flex;
    align-items: center;
    margin-top: 12px;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
}
.newsletter .input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.newsletter .input::placeholder {
    color: #9ca3af;
}
.newsletter .btn-accent {
    background: var(--accent);
    border: none;
    border-radius: 0;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.newsletter .btn-accent:hover {
    background: #b84f3a;
}
.newsletter .btn-accent::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" stroke="white" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>')
        center/contain no-repeat;
    background: #fff;
}

.faq {
    display: grid;
    gap: 14px;
}
.faq-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease,
        transform 0.04s ease;
}
.faq-item:hover {
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}
.faq-item.open {
    border-color: rgba(205, 95, 71, 0.45);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}
.faq-item.open::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), #e07a64);
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    font-size: 17px;
    border: 0;
    cursor: pointer;
    text-align: inherit;
}
.faq-q:focus-visible {
    outline: 3px solid rgba(23, 60, 102, 0.18);
    outline-offset: 2px;
    border-radius: 10px;
}
.faq-q__text {
    line-height: 1.6;
}
.faq-q .chev {
    transition: transform 0.25s ease, color 0.25s ease;
    color: var(--accent);
}
.faq-item.open .chev {
    transform: rotate(180deg);
}
.faq-a {
    height: 0;
    overflow: hidden;
    transition: height 0.28s ease;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fafafa);
}
.faq-a__inner {
    padding: 16px 20px 20px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 15px;
}
.faq-a__inner a.link-brand {
    font-weight: 600;
}

/* ===== Privacy Policy ===== */
.policy {
    color: var(--ink);
    line-height: 1.9;
}
.policy h2 {
    font-size: 20px;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--brand-dark);
    position: relative;
    padding-inline-start: 10px;
}

.policy h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.policy p {
    margin-bottom: 16px;
}
.policy ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.policy ul li {
    position: relative;
    margin-bottom: 8px;
    padding-inline-start: 22px;
}

.policy ul li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.policy a {
    color: var(--brand);
    text-decoration: none;
}
.policy a:hover {
    text-decoration: underline;
}

.help .section-title {
    margin-bottom: 2px;
}
.help-grid {
    align-items: stretch;
}

.help-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 220px;
    padding: 18px;
    border-radius: var(--help-radius);
    overflow: hidden;
    box-shadow: var(--help-shadow);
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease, filter 0.25s ease;
    will-change: transform;
    background: #0b1420;
}

.help-card {
    height: clamp(220px, 28vw, 300px);
}

.help-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    display: block;
}

.help-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--help-pos, 50% 50%);
    transform: translateZ(0);
    image-rendering: auto;
    will-change: transform;
}

.help-card .help-overlay,
.help-card .help-shine {
    border-radius: inherit;
}

/* ===== Ground Shadow (new) ===== */
.help-card::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 10px;
    height: 22px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: radial-gradient(
        50% 60% at 50% 50%,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0) 70%
    );
}

.help-card .step {
    color: #e5e7eb;
    font-weight: 800;
    letter-spacing: 0.8px;
}
.help-card .h3 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.help-card .muted.on-dark {
    color: #e8edf5;
    opacity: 0.92;
}

.help-card .help-body {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 6px;
}

/* Gradient overlay for readability */
.help-card .help-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to top,
            rgba(11, 20, 32, 0.55) 12%,
            rgba(11, 20, 32, 0.12) 66%
        ),
        radial-gradient(
            120% 80% at 50% 100%,
            rgba(11, 20, 32, 0.65),
            transparent 60%
        );
    mix-blend-mode: multiply;
    transition: opacity 0.25s ease;
}

/* Subtle shine on hover */
.help-card .help-shine {
    position: absolute;
    inset: -40% -40%;
    z-index: 2;
    background: radial-gradient(
            30% 20% at 20% 0%,
            rgba(255, 255, 255, 0.18),
            transparent 60%
        ),
        radial-gradient(
            35% 25% at 100% 100%,
            rgba(255, 255, 255, 0.1),
            transparent 60%
        );
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

/* Hover / focus interactions */
.help-card:hover,
.help-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--help-shadow-lg), 0 12px 38px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
}
.help-card:hover::before,
.help-card:focus-visible::before {
    opacity: 0.7;
    transform: translateY(0) scale(1);
}
.help-card:hover .help-img,
.help-card:focus-visible .help-img {
    transform: scale(1.04);
}
.help-card:hover .help-shine,
.help-card:focus-visible .help-shine {
    opacity: 0.6;
    transform: translateY(-3px);
}

/* Reveal on scroll (entrance animation) */
.reveal {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
    transition: opacity 0.24s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* Hero داخلي للصفحات (بدون فراغ ضخم) */
.hero--inner {
    min-height: 360px;
    padding: 72px 0;
    background-position: center;
}
.hero--inner .hero-sub {
    color: #e5e7eb;
    max-width: 720px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .help-card,
    .help-card .help-bg,
    .help-card .help-shine,
    .reveal,
    .help-card::before {
        transition: none !important;
    }
}

.whatsapp-fab {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(
            120% 80% at 30% 20%,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0) 60%
        ),
        linear-gradient(180deg, #25d366, #1ebe5d);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease, filter 0.22s ease, background-position 0.4s ease;
    background-size: 120% 120%;
    background-position: center;
    animation: wapp-breathe 4s ease-in-out infinite;
}
@keyframes wapp-breathe {
    0%,
    100% {
        box-shadow: 0 10px 26px rgba(37, 211, 102, 0.26),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 14px 34px rgba(37, 211, 102, 0.34),
            0 4px 10px rgba(0, 0, 0, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

.whatsapp-fab::after {
    content: "";
    position: absolute;
    inset: -30% -30%;
    transform: rotate(26deg) translateY(60%);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.whatsapp-fab:hover::after {
    transform: rotate(26deg) translateY(-18%);
    opacity: 0.9;
}

.whatsapp-fab:hover {
    transform: translateY(-3px);
    filter: saturate(1.05);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.36),
        0 6px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.whatsapp-fab:active {
    transform: translateY(-1px) scale(0.985);
}

.whatsapp-fab svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab,
    .whatsapp-fab::after,
    .whatsapp-fab::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive */
/* <= 991.98px */
@media (max-width: 991.98px) {
    .hero--careers .hero-art {
        width: clamp(360px, 52vw, 520px);
        min-height: 380px;
        opacity: 0.7;
    }
    .hero--careers > .container {
        padding-block: clamp(72px, 14vh, 160px);
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
        justify-items: center;
        text-align: center;
    }

    .footer-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px;
        justify-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-list li {
        width: 100%;
    }
    .footer-list a {
        display: inline-block;
        padding: 6px 0;
    }

    .footer-social {
        justify-content: center;
    }
    .newsletter {
        margin-inline: auto;
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
    }
    .footer-bottom .links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* <= 767.98px */
@media (max-width: 767.98px) {
    .contact-form .form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-form .form .input-group {
        grid-column: 1 / -1;
    }

    [dir="rtl"] .contact-form .input.with-ico {
        padding-right: 40px;
    }

    .help-card {
        height: clamp(220px, 44vw, 280px);
    }

    .hero--home {
        background-position: center center !important;
    }
}

/* <= 480px */
@media (max-width: 480px) {
    .hero--careers .hero-art {
        display: none;
        /* min-height: 380px; */
    }
    .hero--careers > .container {
        padding-block: 56px;
    }
    .faq-q {
        padding: 16px;
        font-size: 15px;
    }
    .faq-a__inner {
        padding: 14px 16px 18px;
    }
    .whatsapp-fab {
        width: 54px;
        height: 54px;
        bottom: 14px;
        inset-inline-end: 14px;
    }
    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }
}

/* <= 420px */
@media (max-width: 420px) {
    .footer-list {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 8px 16px;
    }
}

/* >= 768px */
@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .reveal.reveal-svc:nth-child(even) {
        transform: translateY(26px) translateX(-10px) scale(0.965)
            rotate(0.4deg);
    }
    .reveal.reveal-svc.in:nth-child(even) {
        transform: none;
    }
    .grid-4 .reveal.reveal-partners:nth-child(odd) {
        transform: translateY(42px) scale(0.985);
    }
    .grid-4 .reveal.reveal-partners.in:nth-child(odd) {
        transform: none;
    }
}

/* >= 992px */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-grid {
        /* grid-template-columns: 1fr 1fr; */
        align-items: center;
    }
    .brand-logo {
        height: 66px;
    }
    .contact-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
    .main-nav {
        display: flex;
    }
    .header-cta {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .nav-toggle {
        display: none;
    }
    .mobile-nav {
        display: none !important;
    }
    .brand-logo--footer {
        height: 124px;
    }
    .whatsapp-fab::before {
        content: "تواصل عبر واتساب";
        position: absolute;
        bottom: 50%;
        transform: translateY(50%) translateX(8px);
        inset-inline-end: calc(100% + 12px);
        white-space: nowrap;
        background: #0b1420;
        color: #e8edf5;
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease,
            transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .whatsapp-fab:hover::before {
        opacity: 1;
        transform: translateY(50%) translateX(0);
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* >= 1100px */
@media (min-width: 1100px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ****************************
****************************
**************************** */

.chatbot-fab {
    position: fixed;
    bottom: 18px;
    inset-inline-start: 18px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #003366;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}
.chatbot-fab:hover {
    filter: brightness(1.05);
}
.chatbot-panel {
    position: fixed;
    inset-inline-start: 18px;
    bottom: 82px;
    width: 320px;
    max-height: 60vh;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 9999;
}
.chatbot-head {
    padding: 10px 12px;
    background: #173c66;
    color: #fff;
    font-weight: 700;
}
.chatbot-body {
    padding: 10px;
    overflow: auto;
    max-height: calc(60vh - 110px);
}
.chatbot-msg {
    margin: 8px 0;
    line-height: 1.7;
    word-wrap: break-word;
}
.chatbot-msg.user {
    text-align: start;
}
.chatbot-msg.bot {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 8px 10px;
}
.chatbot-msg.bot a.chatbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #de6444;
    color: #fff !important;
    text-decoration: none;
    border: 1px solid #de6444;
    font-weight: 700;
    line-height: 1;
    transition: filter 0.2s ease, transform 0.05s ease;
    white-space: nowrap;
}
.chatbot-msg.bot a.chatbtn:hover {
    filter: brightness(0.95);
}
.chatbot-msg.bot a.chatbtn:active {
    transform: translateY(1px);
}
.chatbot-msg.bot .chat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.chatbot-input {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #eef0f3;
}
.chatbot-input input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
}
.chatbot-input button {
    border: 0;
    background: #de6444;
    color: #fff;
    border-radius: 10px;
    padding: 0 14px;
}

@media (max-width: 420px) {
    .chatbot-panel {
        inset-inline-start: 12px;
        width: calc(100vw - 24px);
    }
    .chatbot-fab {
        inset-inline-start: 12px;
    }
}
