/* ==========================================================================
   ZED MARKETING — Digital Marketing & Advertising Agency
   صفحة مختصرة: الهدف الأساسي = اتصال أو واتساب
   Brand: #0F0F0F / #FFC400 / #E5E5E5 / #FFFFFF · RTL · Mobile first
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg:        #0F0F0F;
    --bg-soft:   #141417;
    --card:      #18181C;
    --line:      #292930;
    --line-2:    #383841;

    --brand:      #FFC400;
    --brand-600:  #E5B000;
    --brand-soft: rgba(255, 196, 0, .10);
    --brand-line: rgba(255, 196, 0, .24);
    --brand-glow: rgba(255, 196, 0, .30);

    --wa:      #25D366;
    --wa-600:  #1FB855;
    --wa-glow: rgba(37, 211, 102, .28);

    --text:   #FFFFFF;
    --text-2: #E5E5E5;
    --text-3: #A0A0AA;
    --text-4: #74747E;
    --ink:    #0F0F0F;

    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --t-fast:   .18s cubic-bezier(.4, 0, .2, 1);
    --t-normal: .32s cubic-bezier(.4, 0, .2, 1);

    --container: 980px;
    --sticky-h: 74px;
    --pad-x: 20px;
}

/* --------------------------------------------------------------------------
   2) Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { width: 100%; height: 100%; display: block; }
bdi { unicode-bidi: isolate; }
.nw { white-space: nowrap; }

::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}
.container-narrow { max-width: 760px; }

/* --------------------------------------------------------------------------
   3) Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.btn-sm { padding: 9px 16px; font-size: .875rem; min-height: 40px; }
.btn-lg { padding: 15px 24px; font-size: 1.0625rem; width: 100%; min-height: 56px; }

.icon    { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 21px; height: 21px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }

.btn-call { background: var(--brand); color: var(--ink); box-shadow: 0 6px 20px var(--brand-glow); }
.btn-call:hover { background: var(--brand-600); transform: translateY(-2px); }

.btn-wa { background: var(--wa); color: #06251A; box-shadow: 0 6px 20px var(--wa-glow); }
.btn-wa:hover { background: var(--wa-600); transform: translateY(-2px); }

.btn:active { transform: scale(.975); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: var(--r-pill);
    color: var(--brand);
    font-size: .8125rem;
    font-weight: 700;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--wa);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseRing 1.9s ease-out infinite;
}

/* --------------------------------------------------------------------------
   4) Header
   -------------------------------------------------------------------------- */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 10px 0;
    background: rgba(15, 15, 15, .78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background-color var(--t-normal), border-color var(--t-normal);
}
.top-bar.is-stuck { background: rgba(15, 15, 15, .95); border-bottom-color: var(--line); }

.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo-area { display: flex; align-items: center; gap: 9px; }
.logo-icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    background: var(--brand);
    color: var(--ink);
    font-weight: 900;
    font-size: 1.15rem;
    border-radius: 9px;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
/* nowrap: الاسم كان بيتقسم على سطرين على الموبايل */
.brand-name { font-weight: 900; font-size: .9rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub  { font-size: .75rem; color: var(--text-4); font-weight: 600; white-space: nowrap; }

.top-cta { display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   5) Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(28px, 5vw, 52px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-glow {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to left,  rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 74% 66% at 50% 30%, #000 26%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 74% 66% at 50% 30%, #000 26%, transparent 78%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(1.65rem, 6vw, 2.6rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -.015em;
    margin: 14px 0 0;
}
.hero-title .hl { color: var(--brand); }

.hero-sub {
    font-size: clamp(.9375rem, 2.5vw, 1.0625rem);
    color: var(--text-3);
    margin-top: 14px;
    max-width: 580px;
}

.hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    width: 100%;
    max-width: 470px;
    margin-top: 24px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 16px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-4);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--wa); }

/* --------------------------------------------------------------------------
   5a) شريط الدول
   -------------------------------------------------------------------------- */
.countries {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    width: 100%;
}
.countries-label { font-size: .8125rem; color: var(--text-4); font-weight: 700; }
.country {
    padding: 5px 13px;
    background: var(--card);
    border: 1px solid var(--brand-line);
    border-radius: var(--r-pill);
    font-size: .8125rem;
    font-weight: 800;
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   5b) Proof + why
   -------------------------------------------------------------------------- */
.proof-section {
    padding: clamp(26px, 4vw, 42px) 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.proof {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--brand);
    border-radius: var(--r-md);
    text-align: right;
}
.proof-num {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    font-weight: 900;
    color: var(--brand);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.proof-plus { font-size: .75em; }
.proof-unit { font-size: .55em; font-weight: 800; color: var(--text-2); }
.proof-word { font-size: .82em; }
.proof-label { font-size: .8125rem; color: var(--text-3); font-weight: 600; line-height: 1.6; }

.why { margin-top: clamp(24px, 4vw, 36px); }
.why .mini-title { margin-bottom: 16px; }

.why-list { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: .9rem;
    color: var(--text-3);
    line-height: 1.8;
}
.why-list svg { width: 19px; height: 19px; color: var(--wa); flex-shrink: 0; margin-top: 5px; }
.why-list strong { color: var(--text); font-weight: 800; }

/* --------------------------------------------------------------------------
   6) Chips sections (services / sectors)
   -------------------------------------------------------------------------- */
.section { padding: clamp(30px, 4.5vw, 46px) 0; }
.chips-section { border-top: 1px solid var(--line); }
.chips-section.alt { background: var(--bg-soft); }

.mini-title {
    font-size: clamp(1.0625rem, 3vw, 1.3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 6px;
}
.mini-note {
    font-size: .8125rem;
    color: var(--text-4);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4px;
    line-height: 1.8;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text-2);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.chip svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.chip:hover { border-color: var(--brand-line); }

/* --------------------------------------------------------------------------
   6b) Sectors — القسم المُبرز
   -------------------------------------------------------------------------- */
.sectors-section {
    padding: clamp(36px, 5.5vw, 62px) 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 196, 0, .07), transparent 68%),
        var(--bg-soft);
    border-block: 1px solid var(--line);
}

.sectors-head { text-align: center; margin-bottom: clamp(22px, 3.5vw, 32px); }
.sectors-title {
    font-size: clamp(1.3rem, 4.4vw, 1.95rem);
    font-weight: 900;
    line-height: 1.4;
    margin: 12px 0 8px;
}
.sectors-note {
    font-size: .8125rem;
    color: var(--text-4);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.8;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sector-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    padding: 18px 10px;
    min-height: 116px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: transform var(--t-normal), border-color var(--t-normal), background-color var(--t-normal);
}
.sector-card:hover { transform: translateY(-3px); border-color: var(--brand-line); }

.sector-ico {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    flex-shrink: 0;
}
.sector-ico svg { width: 22px; height: 22px; }

.sector-card h3 {
    font-size: .875rem;
    font-weight: 800;
    color: var(--text-2);
    line-height: 1.5;
}

/* بطاقة "نشاطك مش موجود؟" */
.sector-card.is-cta {
    background: rgba(37, 211, 102, .07);
    border-color: rgba(37, 211, 102, .3);
}
.sector-card.is-cta .sector-ico {
    background: rgba(37, 211, 102, .12);
    border-color: rgba(37, 211, 102, .35);
    color: var(--wa);
}
.sector-card.is-cta h3 { color: var(--wa); }
/* الرابط بيغطي الكارت كله عشان مساحة الضغط تكون كبيرة */
.sector-link { position: absolute; inset: 0; border-radius: var(--r-md); }

/* --------------------------------------------------------------------------
   7) Final strip
   -------------------------------------------------------------------------- */
.final-strip {
    padding: clamp(34px, 5vw, 54px) 0;
    text-align: center;
    border-top: 1px solid var(--line);
    background: radial-gradient(ellipse 88% 70% at 50% 0%, rgba(255, 196, 0, .07), transparent 70%);
}
.final-title { font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 900; line-height: 1.45; margin-bottom: 8px; }
.final-desc  { font-size: .9375rem; color: var(--text-3); margin-bottom: 22px; }
.final-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    max-width: 470px;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   8) Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #0B0B0D; border-top: 1px solid var(--line); padding: 24px 0 26px; text-align: center; }

.disclaimer {
    font-size: .75rem;
    line-height: 1.85;
    color: var(--text-4);
    max-width: 780px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
}

.footer-about { font-size: .8125rem; color: var(--text-3); margin-bottom: 6px; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text-3);
}
/* مساحة ضغط مريحة (44px) على الموبايل */
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.footer-nav a:hover { color: var(--brand); }

.copyright { font-size: .75rem; color: var(--text-4); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }

/* --------------------------------------------------------------------------
   9) Sticky CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 140;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(15, 15, 15, .98) 70%, rgba(15, 15, 15, 0));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .06);
    animation: slideUpIn .5s cubic-bezier(.22, 1, .36, 1) .35s both;
}
.sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 10px;
    border-radius: var(--r-pill);
    font-size: 1.0625rem;
    font-weight: 800;
    transition: transform var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.sticky-btn:active { transform: scale(.965); }
.sticky-wa   { background: var(--wa);    color: #06251A; }
.sticky-call { background: var(--brand); color: var(--ink); }

/* --------------------------------------------------------------------------
   9b) بوب-أب التواصل
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 8, 10, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--t-normal);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }

.modal-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--brand-line);
    border-radius: var(--r-lg);
    padding: 30px 22px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
    transform: scale(.93) translateY(12px);
    opacity: 0;
    transition: transform .42s cubic-bezier(.34, 1.4, .5, 1), opacity var(--t-normal);
}
.modal.is-open .modal-card { transform: scale(1) translateY(0); opacity: 1; }

.modal-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 14px;
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-3);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.modal-close:hover { color: #FFF; background: rgba(255, 255, 255, .09); }

.modal-ico {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .12);
    border: 1px solid rgba(37, 211, 102, .32);
    color: var(--wa);
}
.modal-ico svg { width: 26px; height: 26px; }

.modal-title { font-size: 1.25rem; font-weight: 900; line-height: 1.45; margin-bottom: 8px; }
.modal-sub   { font-size: .9rem; color: var(--text-3); line-height: 1.8; margin-bottom: 22px; }

.modal-cta { display: grid; gap: 10px; }

.modal-dismiss {
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--text-4);
    font-family: var(--font);
    font-size: .8125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    min-height: 40px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.modal-dismiss:hover { color: var(--text-2); }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   10) Motion
   الإخفاء المبدئي بيتطبّق بس لما الـ JS شغال (.js على html)،
   فلو الـ JS وقع الصفحة تفضل ظاهرة بالكامل.
   -------------------------------------------------------------------------- */
.js .hero-anim {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .65s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--d, 0ms);
}
.js .hero-anim.is-shown { opacity: 1; transform: none; }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   11) Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
    .hero-cta, .final-cta { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 560px) {
    .sector-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (min-width: 700px) {
    .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .why-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .sector-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    :root { --pad-x: 24px; --sticky-h: 78px; }
    .sticky-cta {
        /* width صريح لازم: مع left:50% + right:auto العنصر بيتقلّص لحجم محتواه */
        width: min(440px, calc(100% - 32px));
        inset-inline: auto;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 26px 26px 0 0;
        border: 1px solid rgba(255, 255, 255, .09);
        border-bottom: none;
    }
    @keyframes slideUpIn {
        from { opacity: 0; transform: translateX(-50%) translateY(100%); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

/* شاشات ضيقة جداً */
@media (max-width: 359px) {
    .top-cta .btn-label { display: none; }
    .top-cta .btn-sm { padding: 9px 11px; }
    .brand-sub { display: none; }
}

@media (hover: none) {
    .btn-call:hover, .btn-wa:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   12) Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js .hero-anim, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   13) Legal pages (privacy.html / terms.html)
   -------------------------------------------------------------------------- */
.legal { padding: clamp(30px, 5vw, 56px) 0 40px; }
.legal h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 900; margin-bottom: 8px; }
.legal .updated { font-size: .8125rem; color: var(--text-4); margin-bottom: 28px; }
.legal h2 { font-size: 1.0625rem; font-weight: 800; color: var(--brand); margin: 28px 0 10px; }
.legal p, .legal li { font-size: .9375rem; color: var(--text-2); line-height: 1.95; }
.legal ul { margin: 8px 0 0; padding-inline-start: 0; }
.legal li { position: relative; padding-inline-start: 20px; margin-bottom: 6px; }
.legal li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0; top: .78em;
    width: 6px; height: 6px;
    background: var(--brand);
    border-radius: 50%;
}
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 34px; color: var(--brand); font-weight: 700; font-size: .9375rem; }
