/* الصفحة الرئيسية (resources/views/home.blade.php وأقسامها): الخاص بالرئيسية فقط. المشترك في public/css/sections.css */

/* ---------- Hero ---------- */
.home-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-300);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-hook {
    margin: 1rem 0 0;
    background: linear-gradient(90deg, var(--accent-300), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.35rem, 3.2vw, 1.9rem);
    font-weight: 800;
}

.home-pill {
    display: inline-block;
    margin: 1.25rem 0 0;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--bs-border-radius);
    color: var(--primary-100);
    font-size: 0.95rem;
}

.home-pill i { color: var(--accent-400); }

.home-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 1.5rem 0 0;
    color: var(--primary-200);
    font-size: 0.95rem;
}

.home-checks i { color: var(--accent-400); }

/* ---------- بطاقة الهيرو الجانبية التفاعلية ---------- */
.home-hero-side-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.hero-badge-upcoming {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.15), rgba(245, 124, 0, 0.25));
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
}

.hero-badge-upcoming .badge-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent-500);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-badge-upcoming .badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-badge-upcoming .badge-pill {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge-upcoming .badge-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1.1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-service-card .service-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-service-card .service-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-service-card .service-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-400);
    margin-bottom: 0.1rem;
}

.hero-service-card .service-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.hero-service-card .service-desc {
    color: var(--primary-100);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.hero-integration-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1.1rem;
}

.hero-integration-card .integration-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-100);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-integration-card .integration-icon {
    color: var(--accent-400);
}

.hero-integration-card .integration-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-integration-card .platform-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-integration-card .platform-chip.chip-featured {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.35), rgba(245, 124, 0, 0.45));
    border-color: var(--accent-400);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(245, 124, 0, 0.25);
}

/* ---------- العرض التفاعلي وإطارات الواجهة ---------- */
.home-demo-wrap {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
    padding-bottom: 1rem;
}

.home-play {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.7rem;
    border: 1px solid var(--primary-200);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-500);
    font-size: 0.75rem;
    font-weight: 700;
}

.home-dsteps {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--primary-100);
}

.home-dstep {
    flex: 1 0 9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    text-align: start;
    transition: background-color 0.15s;
}

.home-dstep:hover { background: var(--primary-50); }

.home-dstep > b {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-500);
    font-size: 0.85rem;
}

.home-dstep strong { display: block; font-size: 0.9rem; line-height: 1.3; }

.home-dstep small { color: var(--bs-secondary-color); font-size: 0.75rem; }

.home-dstep.is-done > b { background: var(--primary-500); color: #fff; }

.home-dstep[aria-selected='true'] { border-bottom-color: var(--accent-500); background: var(--accent-50); }

.home-dstep[aria-selected='true'] > b { background: var(--accent-500); color: var(--primary-900); }

.home-wcard {
    height: 100%;
    padding: 1.1rem;
    border: 1px solid var(--primary-100);
    border-radius: var(--bs-border-radius-lg);
    background: #fff;
}

.home-wtitle { margin: 0 0 0.9rem; color: var(--primary-500); font-size: 0.95rem; font-weight: 800; }

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

.home-kv span { color: var(--bs-secondary-color); }

.home-tl { margin: 0.9rem 0 0; padding: 0; }

.home-tl li {
    position: relative;
    padding: 0.35rem 1.4rem 0.35rem 0;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

.home-tl li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.75rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--primary-200);
}

.home-tl li small { display: block; color: #6f5a6c; }

.home-tl li.is-done::before { background: var(--primary-500); }

.home-tl li.is-active { color: var(--primary-900); font-weight: 700; }

.home-tl li.is-active::before { background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-100); }

.home-empty { margin: 0; padding: 1rem; border-radius: var(--bs-border-radius); background: var(--primary-50); color: var(--bs-secondary-color); font-size: 0.9rem; }

.home-ok { margin: 0.75rem 0 0; padding: 0.6rem 0.9rem; border-radius: var(--bs-border-radius); background: #e8f6ee; color: #146c43; font-size: 0.9rem; font-weight: 700; }

.home-msg { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem; border-radius: var(--bs-border-radius); background: var(--accent-50); }

.home-msg > i { margin-top: 0.2rem; color: var(--accent-700); font-size: 1.2rem; }

.home-msg b { display: block; }

.home-msg span { color: var(--bs-secondary-color); font-size: 0.9rem; }

.home-mock-note { margin: 0.75rem 0 0; color: var(--bs-secondary-color); font-size: 0.8rem; text-align: center; }

/* ---------- شعارات وأرقام ---------- */
.home-logos {
    direction: ltr;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.home-logos__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: home-marquee 45s linear infinite;
}

.home-logos:hover .home-logos__track { animation-play-state: paused; }

.home-logo img { width: auto; max-height: 3rem; opacity: 0.75; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }

.home-logo img:hover { opacity: 1; filter: none; }

.home-logo__name { display: block; line-height: 3rem; white-space: nowrap; font-size: 1.125rem; font-weight: 700; color: var(--bs-secondary-color); }

@keyframes home-marquee {
    to { transform: translateX(-50%); }
}

.home-stats { position: relative; z-index: 2; margin-top: 1rem; }

/* ---------- الفجوات (مشكلة ← حل) ---------- */
.home-fixes,
.home-fixes__head {
    --home-pain: #b4443c;
    --home-pain-bg: #fbeceb;
}

/* صف لكل مشكلة: المشكلة | سهم | الحل. في RTL العمود الأول على اليمين فتُقرأ المشكلة أولاً */
.home-fixes__head,
.home-fix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    align-items: stretch;
}

.home-fixes { display: grid; gap: 0.9rem; margin: 0; padding: 0; }

.home-fixes__head { display: none; margin-bottom: 0.6rem; }

.home-fixes__label { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; }
.home-fixes__label--pain { color: var(--home-pain); }
.home-fixes__label--fix { color: var(--accent-700); }

.home-fix__pain {
    display: flex;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    border-radius: var(--bs-border-radius-lg);
    border-inline-start: 4px solid var(--home-pain);
    background: #fff;
    box-shadow: var(--bs-box-shadow-sm);
}

.home-fix__pain p { color: var(--bs-body-color); opacity: 0.78; line-height: 1.8; }

.home-fix__pain .icon-circle { background: var(--home-pain-bg); color: var(--home-pain); }

.home-fix__arrow {
    display: grid;
    place-items: center;
    color: var(--accent-600);
    font-size: 1.1rem;
}

.home-fix__solution {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.05rem 1.4rem;
    border-radius: var(--bs-border-radius-lg);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: #fff;
    box-shadow: 0 6px 18px rgba(80, 47, 76, 0.22);
}

.home-fix__solution p { color: rgba(255, 255, 255, 0.88); line-height: 1.8; }

.home-fix__title { color: var(--accent-400); font-size: 1.05rem; font-weight: 800; }

.home-fix__link { align-self: flex-start; margin-top: 0.25rem; color: var(--accent-300); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.home-fix__link:hover { color: #fff; text-decoration: underline; }

@media (min-width: 992px) {
    .home-fixes__head { display: grid; }
}

/* موبايل وتابلت: المشكلة فوق والسهم ينزل والحل تحت */
@media (max-width: 991.98px) {
    .home-fix { grid-template-columns: minmax(0, 1fr); }

    .home-fixes { gap: 1.25rem; }

    .home-fix__arrow { padding: 0.15rem 0; transform: rotate(-90deg); }
}

.home-rule {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--bs-border-radius-lg);
    background: #fff;
    box-shadow: var(--bs-box-shadow-sm);
}

/* ---------- رحلة الشحنة ---------- */
.home-jtabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
}

.home-jtab {
    flex: 1 0 8.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.9rem 0.5rem;
    border: 2px solid var(--primary-100);
    border-radius: var(--bs-border-radius-lg);
    background: #fff;
    color: var(--primary-700);
    transition: border-color 0.15s, background-color 0.15s;
}

.home-jtab:hover { border-color: var(--primary-300); }

.home-jtab__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-100); color: var(--accent-700); }

.home-jtab__num { color: var(--bs-secondary-color); font-size: 0.75rem; }

.home-jtab__title { font-weight: 800; }

.home-jtab.active { border-color: var(--accent-500); background: var(--accent-50); }

.home-jtab.active .home-jtab__icon { background: var(--accent-500); color: var(--primary-900); }

.home-jcol { height: 100%; padding: 1.25rem; border: 1px solid var(--primary-100); border-radius: var(--bs-border-radius-lg); background: #fff; line-height: 1.9; }

.home-jcol h3 { color: var(--primary-500); }

.home-jcol h3 i { color: var(--accent-600); }

a.home-flow__node:hover { border-color: var(--accent-400); background: rgba(248, 165, 27, 0.15); color: #fff; }

/* ---------- آراء العملاء ---------- */
.home-reviews {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.home-review { flex: 0 0 min(24rem, 88%); scroll-snap-align: start; }

/* ==========================================================================
   الأنماط الحديثة للأقسام الإضافية (منهجية الـ 16 قسماً للصفحة الرئيسية)
   ========================================================================== */

/* 1. الكروت الزجاجية العائمة أسفل الهيرو */
.home-hero-highlights {
    margin-top: -2.5rem;
    position: relative;
    z-index: 3;
    padding-bottom: 2rem;
}

.home-highlight-card {
    background: #fff;
    border: 1px solid rgba(80, 47, 76, 0.08);
    border-top: 3px solid transparent;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 12px 32px -4px rgba(26, 10, 24, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.home-highlight-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--accent-500);
    box-shadow: 0 20px 45px -8px rgba(80, 47, 76, 0.16);
}

.home-highlight-card .icon-circle {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(248, 165, 27, 0.14) 0%, rgba(80, 47, 76, 0.05) 100%);
    border: 1px solid rgba(248, 165, 27, 0.25);
    color: var(--primary-600);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.home-highlight-card:hover .icon-circle {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: #1a0f18;
    transform: scale(1.08) rotate(-4deg);
    border-color: transparent;
}

/* 2. بوابة العمليات السريعة (حاسبة الأسعار والتتبع المباشر) */
.home-tool-card {
    background: #fff;
    border: 1px solid rgba(80, 47, 76, 0.08);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    height: 100%;
    box-shadow: 0 12px 32px -4px rgba(26, 10, 24, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.home-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px -8px rgba(80, 47, 76, 0.15);
}

.home-tool-card--pricing {
    border-top: 4px solid var(--primary-500);
}

.home-tool-card--pricing:hover {
    border-top-color: var(--primary-600);
}

.home-tool-card--tracking {
    border-top: 4px solid var(--accent-500);
}

.home-tool-card--tracking:hover {
    border-top-color: var(--accent-600);
}

.home-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.home-tool-badge--primary {
    background: rgba(80, 47, 76, 0.08);
    color: var(--primary-700);
}

.home-tool-badge--accent {
    background: rgba(248, 165, 27, 0.15);
    color: var(--primary-900);
}

/* 3. معايير الأمان وحماية البضائع */
.home-security-card {
    background: #fff;
    border: 1px solid rgba(80, 47, 76, 0.08);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 8px 24px -4px rgba(26, 10, 24, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-security-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.12);
}

.home-security-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.home-security-card:hover .home-security-icon {
    background: #059669;
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

/* 4. كروت تجربة التاجر والأسطول */
.home-showcase-box {
    background: #fff;
    border: 1px solid rgba(80, 47, 76, 0.08);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    height: 100%;
    box-shadow: 0 10px 30px -4px rgba(26, 10, 24, 0.06);
    transition: all 0.3s ease;
}

.home-showcase-box:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 165, 27, 0.35);
    box-shadow: 0 18px 42px -6px rgba(80, 47, 76, 0.12);
}

