/* ============================================================
   home.css — Styles specific to index.html
   ============================================================ */

/* ----- Hero ----- */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(230, 126, 34, 0.22), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(41, 128, 185, 0.35), transparent 60%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    padding: 28px 2rem 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: heroGradientShift 18s ease infinite;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%, 100% 50%, 0% 0%; }
    50%      { background-position: 100% 50%, 0% 50%, 100% 100%; }
}

/* Floating glow orbs */
.hero .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.hero .hero-orb.one {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #f39c12, transparent 70%);
    top: -100px; inset-inline-start: -120px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.hero .hero-orb.two {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #3498db, transparent 70%);
    bottom: -120px; inset-inline-end: -100px;
    animation: orbFloat2 14s ease-in-out infinite;
}
.hero .hero-orb.three {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #e67e22, transparent 70%);
    top: 50%; inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 16s ease-in-out infinite;
    opacity: 0.35;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 30px) scale(1.15); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, -40px) scale(1.1); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-45%, -55%) scale(1.2); }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(230, 126, 34, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(41, 128, 185, 0.25), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(20px, -10px, 0) scale(1.05); }
}

/* 1000px بدل 820px: يتيح للعنوان العربي أن يبقى على سطر واحد بحجم الخط الكامل.
   مربّع البحث يحدّ نفسه بـ 680px، والفقرة سطر واحد متوسّط — فلا يتأثران بالتوسيع. */
.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: heroFadeUp 0.7s ease-out both;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    color: white;
    font-size: var(--fs-hero);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    line-height: 1.3;
    /* يوازن السطرين في الإنجليزية بدل ترك كلمة يتيمة في السطر الثاني.
       لا أثر له على العربية (سطر واحد). المتصفحات القديمة تتجاهله بأمان. */
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--accent-light);
    background: linear-gradient(135deg, var(--accent-light), #ffc97a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-md);
    margin-bottom: 20px;
}

/* ----- Hero search box ----- */
.search-box {
    background: white;
    border-radius: 18px;
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 720px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(230, 126, 34, 0.25);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    font-size: var(--fs-md);
    outline: none;
    border-radius: 10px;
    color: var(--text-dark);
    min-width: 0;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* ----- Unified category grid (contractors / projects / activities) ----- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.cat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 16px 22px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.03), rgba(230, 126, 34, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(26, 82, 118, 0.16);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}
.cat-card:hover::before { opacity: 1; }

.cat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    margin: 0 auto 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.cat-card:hover .cat-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 22px rgba(230, 126, 34, 0.35);
}

.cat-name {
    font-weight: 700;
    font-size: var(--fs-base);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.cat-count {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease;
}

.cat-card:hover .cat-count {
    background: var(--accent);
    color: white;
}

/* Hidden cards (collapsed state) — revealed when grid has .is-expanded */
.cat-card-hidden { display: none; }
.cat-grid.is-expanded .cat-card-hidden { display: block; animation: catFadeIn .25s ease; }

@keyframes catFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sub-branch count badge (activities with children) */
.cat-sub-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--primary);
    color: white;
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* "View all" header button keeps the grid in collapsed state until clicked */
.cat-grid-viewall.is-open {
    background: var(--primary);
    color: white;
}

/* ----- Legacy category-grid (used by test.html sandbox) ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.03), rgba(230, 126, 34, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(26, 82, 118, 0.18);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.category-card:hover::before { opacity: 1; }

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    margin: 0 auto 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.35);
}

.category-name {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* ----- Companies grid ----- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.company-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

.company-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 25px 60px rgba(26, 82, 118, 0.28), 0 0 0 1px rgba(230, 126, 34, 0.2);
    color: inherit;
    border-color: rgba(230, 126, 34, 0.25);
}

/* Accent sweep on hover */
.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}
.company-card:hover::after { width: 100%; }

.company-card .img-wrap {
    height: 180px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.company-card .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 47, 68, 0.35) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.company-card:hover .img-wrap::after { opacity: 1; }

.company-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-card:hover .img-wrap img { transform: scale(1.08); }

.company-card .verified-pin {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: linear-gradient(135deg, #d4a017 0%, #f1c40f 45%, #fcd34d 55%, #d4a017 100%);
    background-size: 200% 100%;
    color: #3d2b00;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
}
.company-card .verified-pin i { color: #3d2b00; position: relative; z-index: 1; }

.company-card .body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-card h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.company-card .meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.company-card .meta i { color: var(--primary-light); }

.company-card .desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card .rating-row {
    margin-top: 10px;
    margin-bottom: 2px;
}

.company-card .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    gap: 8px;
}

.company-card .footer-row .view-link {
    color: var(--primary);
    font-weight: 700;
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.company-card:hover .footer-row .view-link {
    color: var(--accent);
    gap: 8px;
}

/* Reveal arrow direction flips in RTL via logical properties icons */
.company-card .footer-row .view-link i { transition: transform 0.25s ease; }
.company-card:hover .footer-row .view-link i { transform: translateX(-4px); }
body[dir="ltr"] .company-card:hover .footer-row .view-link i { transform: translateX(4px); }

/* ============================================================
   Simple hero search
   ============================================================ */
.search-simple {
    background: white;
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 680px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body[dir="rtl"] .search-simple {
    padding: 8px 20px 8px 8px;
}

.search-simple:focus-within {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(230, 126, 34, 0.25);
    transform: translateY(-2px);
}

.search-simple-icon {
    color: var(--primary-light);
    font-size: var(--fs-md);
    flex-shrink: 0;
}

.search-simple input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: var(--fs-md);
    color: var(--text-dark);
    padding: 14px 0;
    min-width: 0;
}

.search-simple input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.btn-search {
    padding: 14px 26px;
    border-radius: 12px;
    font-size: var(--fs-base);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-search-arrow {
    font-size: var(--fs-sm);
    transition: transform 0.3s ease;
}

.btn-search:hover .btn-search-arrow { transform: translateX(-3px); }
body[dir="ltr"] .btn-search-arrow { transform: scaleX(-1); }
body[dir="ltr"] .btn-search:hover .btn-search-arrow { transform: scaleX(-1) translateX(-3px); }

.hero-trust {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-sm);
    position: relative;
    z-index: 1;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust strong { color: var(--accent-light); font-weight: 800; }

/* ============================================================
   Category count badge
   ============================================================ */
.category-card { position: relative; }

.category-count {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease;
}

.category-card:hover .category-count {
    background: var(--accent);
    color: white;
}

/* "Show more" tile in categories grid */
.category-more {
    background: var(--bg-soft);
    border: 2px dashed var(--border);
    cursor: pointer;
    font: inherit;
    color: var(--primary);
}
.category-more:hover {
    border-color: var(--primary-light);
    background: white;
    color: var(--primary-dark);
}
.category-more .category-icon {
    background: linear-gradient(135deg, var(--primary-light), #5dade2);
}

/* ============================================================
   Activity chips
   ============================================================ */
.activity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-soft);
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.activity-chip i {
    color: var(--primary-light);
    font-size: var(--fs-sm);
    transition: color 0.25s ease;
}

.activity-chip:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.25);
}

.activity-chip:hover i { color: white; }

.chip-count {
    background: var(--bg-soft);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}

.activity-chip:hover .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ============================================================
   Location tabs + grid
   ============================================================ */
.location-tabs {
    display: inline-flex;
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.location-tab {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.location-tab.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.25s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(26, 82, 118, 0.12);
    color: var(--primary-dark);
}

.location-card.is-empty { opacity: 0.55; }

.loc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    flex-shrink: 0;
}

.location-card:hover .loc-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.loc-info { flex: 1; min-width: 0; }
.loc-name { font-weight: 700; font-size: var(--fs-base); color: var(--primary-dark); }
.loc-count { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }

.loc-arrow {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    transition: transform 0.25s ease, color 0.25s ease;
}

.location-card:hover .loc-arrow { color: var(--accent); transform: translateX(-4px); }
body[dir="ltr"] .loc-arrow { transform: scaleX(-1); }
body[dir="ltr"] .location-card:hover .loc-arrow { transform: scaleX(-1) translateX(-4px); }

/* ============================================================
   How it works
   ============================================================ */
.how-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.how-header .section-title { margin-bottom: 4px; }

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--fs-md);
    font-weight: 500;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.how-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin: 0 auto;
    gap: 26px;
}

@media (max-width: 720px) {
    .how-grid-2 { grid-template-columns: 1fr; }
}

.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px 30px;
    text-align: center;
    border: 1px solid var(--border-soft);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(26, 82, 118, 0.12);
}

.step-num {
    position: absolute;
    top: -18px;
    inset-inline-start: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    font-weight: 900;
    font-size: var(--fs-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-icon { transform: scale(1.08) rotate(-4deg); }

.step-card h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* ============================================================
   Partners strip
   ============================================================ */
.partners-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-logo:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(26, 82, 118, 0.1);
    transform: translateY(-3px);
}

.partner-logo:hover img { filter: grayscale(0); transform: scale(1.05); }
.partner-logo:hover span { color: var(--primary-dark); }

/* ============================================================
   Final CTA band
   ============================================================ */
.cta-band {
    margin: 70px 0 0;
    padding: 80px 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 90% 20%, rgba(230, 126, 34, 0.30), transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(41, 128, 185, 0.45), transparent 60%);
    pointer-events: none;
}

.cta-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-text { flex: 1; min-width: 280px; }

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 126, 34, 0.18);
    border: 1px solid rgba(230, 126, 34, 0.5);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-eyebrow i { font-size: var(--fs-sm); }

.cta-text h2 {
    color: white;
    font-size: var(--fs-3xl);
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-md);
    margin-bottom: 18px;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.cta-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-base);
    font-weight: 600;
}
.cta-benefits i {
    color: var(--success);
    background: white;
    border-radius: 50%;
    font-size: var(--fs-base);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 260px;
}

.cta-actions .btn-lg {
    padding: 18px 36px;
    font-size: var(--fs-md);
    font-weight: 800;
    border-radius: 14px;
}

.cta-actions .btn-accent {
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.45), 0 0 0 4px rgba(230, 126, 34, 0.18);
    animation: ctaPulse 2.4s ease-in-out infinite;
    position: relative;
}
.cta-actions .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(230, 126, 34, 0.55), 0 0 0 6px rgba(230, 126, 34, 0.25);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(230, 126, 34, 0.45), 0 0 0 4px rgba(230, 126, 34, 0.18); }
    50%      { box-shadow: 0 14px 38px rgba(230, 126, 34, 0.60), 0 0 0 10px rgba(230, 126, 34, 0.10); }
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .hero { padding: 40px 1rem 32px; }
    .hero p  { font-size: var(--fs-base); }

    .search-simple {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
    }
    body[dir="rtl"] .search-simple { padding: 12px; }
    .search-simple-icon { display: none; }
    .search-simple input { padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; }
    .btn-search { width: 100%; justify-content: center; }

    .hero-trust { gap: 12px; font-size: var(--fs-sm); }

    .cta-text h2 { font-size: var(--fs-xl); }
    .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cta-actions { justify-content: center; }
}

/* ── الشاشات القصيرة (لابتوبات 768px، نوافذ مصغّرة): اضغط الهيرو كي يظهر
   سلايدر الرئيسية كاملاً فوق الطيّة. لا يمسّ النوافذ الطويلة ولا الموبايل الطويل. ── */
@media (max-height: 720px) {
    .hero { padding: 18px 2rem 14px; }
    .hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 6px; }
    .hero p { font-size: 1rem; margin-bottom: 12px; }
    .ad-slider-section { margin: 16px 0; }
    .ad-slider-wrap { max-height: min(360px, 32vh); }
}
@media (max-height: 600px) {
    .hero { padding: 12px 2rem 10px; }
    .hero p { margin-bottom: 8px; }
    .ad-slider-wrap { max-height: min(360px, 30vh); }
}
