/* ═══════════════════════════════════════════════════════════════════════
   قطبة لخدمات الأعمال — Invest landing (standalone, on-brand with Qattba)
   Mobile-first, RTL, clean and direct. Brand tokens mirror the main site.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #000F3F;          /* Qattba brand */
    --navy-700: #0a1a4d;
    --green: #00BD0D;         /* Qattba success green (accents, checks) */
    --green-600: #009d0b;
    --lime: #92EF4B;          /* Qattba accent */
    --wa: #25d366;            /* WhatsApp brand */
    --wa-600: #1ebe5b;
    --ink: #0f172a;
    --muted: #5b6678;
    --line: #e6e9ef;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --r: 14px;
    --r-lg: 22px;
    --shadow: 0 10px 30px -12px rgba(0, 15, 63, .18);
    --ff: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --ff-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--ff);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    font-size: 17px;
    overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.3; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.bidi-en { unicode-bidi: plaintext; direction: ltr; display: inline-block; font-family: var(--ff-en); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit; font-weight: 800; font-size: 1.0625rem;
    padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    min-height: 54px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-600); box-shadow: 0 8px 22px -8px rgba(37,211,102,.6); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 8px 22px -8px rgba(0,15,63,.5); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { font-size: 1.15rem; padding: 18px 34px; min-height: 60px; }
.btn-block { width: 100%; }
.wa-ico { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; }
.brand-name { font-weight: 900; font-size: 1.05rem; color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.header-phone svg { color: var(--green); }
.header-cta { padding: 11px 18px; min-height: 44px; font-size: .95rem; }

/* ── Hero ── */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 56px 0 48px; text-align: center; }
.hero h1 { font-size: 2.1rem; margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }
.hero-sub strong { color: var(--ink); }
.price-block { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 26px; }
.price-tag { display: flex; align-items: baseline; gap: 6px; color: var(--navy); font-weight: 900; }
.price-tag .cur { font-size: 1.6rem; }
.price-tag .amt { font-size: 4rem; line-height: 1; letter-spacing: -.03em; }
.price-note { color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-cta-row { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.hero-microcopy { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ── Section shell ── */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: 1.85rem; margin-bottom: 12px; }
.section-head p { font-size: 1.08rem; }
.bg-soft { background: var(--bg-soft); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .98rem; }

/* ── Deliverables card ── */
.deliver-wrap { max-width: 760px; margin: 0 auto; }
.deliver-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.deliver-top { background: var(--navy); color: #fff; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.deliver-top h3 { color: #fff; font-size: 1.3rem; }
.deliver-top .price-tag { color: #fff; }
.deliver-top .price-tag .cur { font-size: 1.2rem; }
.deliver-top .price-tag .amt { font-size: 2.6rem; }
.deliver-body { padding: 30px; }
.deliver-list { display: grid; gap: 16px; margin-bottom: 8px; }
.deliver-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.deliver-list li svg { color: var(--green); flex-shrink: 0; margin-top: 4px; }
.deliver-list li span small { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }
.deliver-excl { margin-top: 22px; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--r); font-size: .92rem; color: var(--muted); }
.deliver-cta { margin-top: 26px; }

/* ── Apostille section ── */
.apostille-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.apostille-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.apostille-head h3 { font-size: 1.35rem; }
.tag-optional { background: rgba(0,189,13,.12); color: var(--green-600); font-weight: 800; font-size: .82rem; padding: 6px 14px; border-radius: 999px; }
.apostille-price { color: var(--navy); font-weight: 900; font-size: 1.5rem; margin: 6px 0 16px; }

/* ── FAQ ── */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--navy);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--green); font-weight: 700; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-a strong { color: var(--ink); }

/* ── Final CTA ── */
.final-cta { background: var(--navy); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.final-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.final-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Footer ── */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { color: var(--muted); font-size: .88rem; }

/* ── Sticky mobile WhatsApp bar ── */
.mobile-bar { display: none; }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,15,63,.55);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: var(--r-lg); max-width: 460px; width: 100%;
    padding: 30px; box-shadow: 0 24px 60px -12px rgba(0,15,63,.5); text-align: center;
    animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 1.3rem; margin-bottom: 10px; }
.modal p { margin-bottom: 22px; }
.modal-actions { display: grid; gap: 12px; }
.modal-actions .btn { width: 100%; }
.modal-hint { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { padding: 40px 0 36px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-sub { font-size: 1.05rem; }
    .price-tag .amt { font-size: 3.2rem; }
    .section-head h2 { font-size: 1.55rem; }
    section { padding: 44px 0; }
    .header-phone { display: none; }
    .brand-name { font-size: .95rem; }
    .deliver-body, .apostille-card { padding: 24px; }

    /* Sticky bottom WhatsApp bar */
    .mobile-bar {
        display: block; position: fixed; bottom: 0; right: 0; left: 0; z-index: 60;
        background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        box-shadow: 0 -6px 20px -10px rgba(0,15,63,.25);
    }
    .mobile-bar .btn { width: 100%; }
    body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
