/* ============================================================
   ريف الخبراء — ستايل الموقع (v1.0 — Polished)
   ============================================================ */

:root {
    --brand: #5400A8;
    --brand-light: #e8dcf7;
    --brand-soft: #7a2fc7;
    --brand-dark: #3d0078;
    --brand-darker: #280050;
    --gold: #A89048;
    --gold-light: #f5efdd;
    --gold-soft: #c9b06a;
    --success: #16a34a;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --warn: #d97706;
    --info: #2563eb;

    --text: #0f172a;
    --text-dim: #475569;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #faf7fe;
    --bg-elev: #f1ebfa;
    --bg-code: #f6f6f8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 30px rgba(84, 0, 168, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 8px 24px rgba(84, 0, 168, 0.18), 0 3px 8px rgba(15, 23, 42, 0.06);

    --t-fast: 0.15s;
    --t-base: 0.25s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-dark);
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--brand); }
.nav-logo img { height: 34px; }
.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
    align-items: center;
}
.nav-links a {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.94rem;
    position: relative;
    padding: 6px 0;
    transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active {
    color: var(--brand);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--brand);
    border-radius: 2px 2px 0 0;
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--brand-dark);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-cta { gap: 6px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-ghost, .btn-gold, .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.94rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: inherit;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: white !important;
    box-shadow: 0 2px 6px rgba(84, 0, 168, 0.2);
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 0, 168, 0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--brand) !important;
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--bg-elev);
    border-color: var(--brand);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #8e7a3a 100%);
    color: white !important;
    box-shadow: 0 2px 6px rgba(168, 144, 72, 0.3);
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 144, 72, 0.4);
}
.btn-success { background: var(--success); color: white !important; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-full { display: flex; width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(168, 144, 72, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(84, 0, 168, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--brand-dark);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid var(--brand-light);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.hero h1 .highlight {
    background: linear-gradient(120deg, var(--brand) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.75;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
    max-width: 700px;
    margin: 0 auto;
}
.hero-stats > div { text-align: center; }
.hero-stats strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.hero-stats span {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

@media (max-width: 760px) {
    .hero { padding: 48px 20px 56px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.02rem; }
    .hero-stats { gap: 32px; padding-top: 24px; }
    .hero-stats strong { font-size: 1.6rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section.block {
    padding: 72px 0;
}
section.block.alt {
    background: var(--bg-soft);
}
.sec-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.sec-tag {
    display: inline-block;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sec-head h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.sec-head p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin: 0;
}

@media (max-width: 760px) {
    section.block { padding: 48px 0; }
    .sec-head h2 { font-size: 1.6rem; }
}

/* ============================================================
   HOW IT WORKS (3 steps)
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.step-num {
    position: absolute;
    top: -18px;
    right: 50%;
    transform: translateX(50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(84, 0, 168, 0.3);
}
.step-icon { font-size: 2.6rem; margin: 16px 0 10px; }
.step h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0 0 8px;
    font-weight: 800;
}
.step p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   AUDIENCE SPLIT (Talent vs Company)
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.audience {
    padding: 32px 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.audience:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.audience.talent::before,
.audience.company::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 5px;
}
.audience.talent::before { background: linear-gradient(90deg, var(--brand), var(--brand-soft)); }
.audience.company::before { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.audience-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
}
.audience h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin: 0 0 10px;
    font-weight: 800;
}
.audience p.lead {
    color: var(--text-dim);
    margin: 0 0 20px;
    font-size: 1rem;
}
.audience ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.audience ul li {
    padding: 8px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: start;
    gap: 10px;
}
.audience ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   SPECIALIZATIONS GRID
   ============================================================ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.spec-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--t-fast);
}
.spec-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.spec-icon { font-size: 1.5rem; }
.spec-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.92rem;
}

/* ============================================================
   TIERS (Pricing)
   ============================================================ */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 920px) { .tiers-grid { grid-template-columns: 1fr; } }

.tier {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-silver { border-color: #cbd5e1; }
.tier-gold {
    border-color: var(--gold-soft);
    background: linear-gradient(180deg, white 0%, #fdfaf0 100%);
    transform: scale(1.03);
    box-shadow: var(--shadow);
}
.tier-gold:hover { transform: scale(1.03) translateY(-4px); }

.badge-popular {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--gold), #8e7a3a);
    color: white;
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(168, 144, 72, 0.3);
}

.tier h3 {
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 800;
}
.tier-price {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.tier-price .price {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--brand);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.tier-silver .tier-price .price { color: var(--text); }
.tier-gold .tier-price .price { color: var(--gold); }

.tier-cycle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 8px 0 24px;
    min-height: 42px;
}
.tier-cycle strong { color: var(--text); font-weight: 700; }
.tier-cycle .save {
    color: var(--success);
    font-weight: 700;
    display: inline-block;
    background: var(--success-light);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.82rem;
    margin-top: 4px;
}

.tier ul {
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
    flex: 1;
    font-size: 0.95rem;
}
.tier li {
    padding: 7px 0;
    color: var(--text-dim);
    display: flex;
    align-items: start;
    gap: 8px;
}

/* ============================================================
   TESTIMONIAL / TRUST
   ============================================================ */
.trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 0;
    opacity: 0.75;
}
.trust-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.trust-row .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 820px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    position: relative;
}
.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--brand-light);
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}
.testimonial-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   CTA (Final)
   ============================================================ */
.cta-final {
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 144, 72, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
    color: white;
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final h2 {
    font-size: 2rem;
    color: white;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.cta-final p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.08rem;
    line-height: 1.75;
}
.cta-final .btn-gold {
    background: white;
    color: var(--brand-dark) !important;
    border: none;
}
.cta-final .btn-gold:hover { background: #faf7fe; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0f0a1a;
    color: #cbd5e1;
    padding: 48px 0 32px;
    margin-top: 0;
}
.footer-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 0 24px;
}
@media (max-width: 760px) { .footer-wrap { grid-template-columns: 1fr; } }
.footer-brand {
    display: flex;
    align-items: start;
    gap: 14px;
}
.footer-brand img {
    height: 36px;
    filter: brightness(1.5);
}
.footer-brand strong { color: white; font-size: 1.1rem; display: block; }
.footer-brand small { color: #94a3b8; font-size: 0.85rem; }
.footer-brand p { margin: 10px 0 0; font-size: 0.9rem; color: #94a3b8; max-width: 320px; }
.footer-col h4 {
    color: white;
    font-size: 0.88rem;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a {
    color: #cbd5e1;
    display: block;
    padding: 4px 0;
    font-size: 0.92rem;
    transition: color var(--t-fast);
}
.footer-col a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding: 24px 24px 0;
    margin-top: 32px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #64748b;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
    .nav, .footer, .cta-final { display: none !important; }
}

/* ============================================================
   ACCESSIBILITY FOCUS
   ============================================================ */
*:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 2px;
    border-radius: 4px;
}
