/*
 * أقسام وعناصر مشتركة بين الرئيسية وصفحات الخدمات (والصفحات الجاية): عناوين الأقسام، إطار الواجهة التوضيحي،
 * كشف المبالغ، مسار المراحل، رسم الشحن، كروت الخدمات، الخطوات، الأسئلة الشائعة، والـ CTA.
 * يتحمل بعد site.css. الأنماط الخاصة بصفحة معينة في public/css/pages/.
 */

.icon-sm { font-size: 0.8em; }

.flex-none { flex: none; }

.text-accent { color: var(--accent-600); }

.text-accent-light { color: var(--accent-400); }

.home-heading { max-width: 44rem; }

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--accent-700);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-heading__sub {
    margin: 0.5rem 0 0;
    color: var(--primary-500);
    font-weight: 700;
}

.home-heading__lead {
    margin: 0.75rem 0 0;
    color: var(--bs-secondary-color);
    line-height: 2;
}

.home-heading.is-dark h2 { color: #fff; }

.home-heading.is-dark .section-eyebrow { color: var(--accent-300); }

.home-heading.is-dark .home-heading__sub { color: var(--accent-300); }

.home-heading.is-dark .home-heading__lead { color: var(--primary-200); }

.home-win {
    overflow: hidden;
    border: 1px solid var(--primary-100);
    border-radius: var(--bs-border-radius-xl);
    background: #fff;
    box-shadow: 0 1.25rem 3rem rgba(26, 15, 24, 0.18);
}

.home-win__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--primary-100);
    background: var(--primary-50);
}

.home-dots { display: inline-flex; gap: 0.35rem; }

.home-dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--primary-200); }

.home-win__title { flex: 1; min-width: 0; overflow: hidden; font-size: 0.9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.home-badge {
    flex: none;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-100);
    color: var(--accent-800);
    font-size: 0.75rem;
    font-weight: 700;
}

.home-rows { margin: 0; padding: 0; }

.home-rows li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--primary-100); font-size: 0.95rem; }

.home-rows li.is-minus b { color: var(--danger-600); }

.home-rows li.is-total { margin-top: 0.25rem; padding: 0.75rem; border: 0; border-radius: var(--bs-border-radius); background: var(--primary-50); color: var(--primary-500); font-weight: 800; }

.home-chip {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--primary-200);
    color: var(--primary-500);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-chip--lg { margin: 0; padding: 0.4rem 1rem; font-size: 0.95rem; }

.service-card { transition: box-shadow 0.2s, transform 0.2s; }

.service-card:hover { box-shadow: 0 0.75rem 1.5rem rgba(26, 15, 24, 0.12) !important; transform: translateY(-3px); }

.home-dark {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    color: #fff;
}

.home-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.home-flow__col { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; max-width: 14rem; }

.home-flow__node {
    display: block;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--bs-border-radius);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.15s, border-color 0.15s;
}

.home-flow__node.is-dest { border-color: rgba(248, 165, 27, 0.45); }

.home-flow__arrow { color: var(--accent-400); font-size: 1.5rem; transform: rotate(-90deg); }

.home-flow__hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--bs-border-radius-lg);
    background: linear-gradient(160deg, var(--primary-500), var(--primary-700));
    box-shadow: 0 0 0 6px rgba(248, 165, 27, 0.18);
}

.home-flow__hub img { width: 7.5rem; height: auto; }

.home-flow__hub small { color: var(--primary-200); }

@media (min-width: 768px) {
    .home-flow { flex-direction: row; justify-content: center; }
    .home-flow__arrow { transform: none; }
    .home-flow__col { width: auto; min-width: 8rem; }
}

.home-stages { counter-reset: stage; }

.home-stages li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--primary-100);
    font-weight: 700;
}

.home-stages li:last-child { border-bottom: 0; }

.home-stages li span {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary-500);
    color: #fff;
}

.home-stages li:last-child span { background: var(--accent-500); color: var(--primary-900); }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-500);
    color: #fff;
    font-weight: 800;
}

.step-number--accent { background: var(--accent-500); color: var(--primary-900); }

.faq-accordion {
    max-width: 48rem;
    --bs-accordion-active-bg: var(--primary-50);
    --bs-accordion-active-color: var(--primary-500);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(80, 47, 76, 0.18);
    --bs-accordion-border-radius: var(--bs-border-radius-lg);
    --bs-accordion-inner-border-radius: calc(var(--bs-border-radius-lg) - 1px);
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.5rem;
    border-radius: var(--bs-border-radius-xl);
    background: var(--accent-500);
    color: var(--primary-900);
}

.cta-band h2 { color: var(--primary-900); }

.cta-band::before {
    content: '';
    position: absolute;
    inset-inline-start: -5rem;
    bottom: -7rem;
    width: 21rem;
    height: 21rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.cta-band > * { position: relative; }
