/* ═══════════════════════════════════════
   REBHNI HOME PAGE — Section-specific styles
   Depends on: public/css/saas/design-system.css
   ═══════════════════════════════════════ */

/* ─── 1. HERO ──────────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 68px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,148,136,0.07) 0%, transparent 60%),
        var(--charcoal-deep);
    position: relative;
    overflow: hidden;
}
.hero .container { position: relative; z-index: var(--z-content); }

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    color: var(--gray-400);
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats [data-count] { color: var(--white); font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; }
.hero-stats-sep { color: var(--gray-500); font-size: 1.4rem; }

/* ─── 2. LOGO STRIP ────────────────────────────────────────────── */
.logo-strip { padding: 40px 0; overflow: hidden; }
.logo-strip-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}
.logo-strip:hover .logo-strip-track { animation-play-state: paused; }
.logo-strip-track img { height: 28px; width: auto; opacity: 0.4; transition: opacity 0.3s ease; flex-shrink: 0; }
.logo-strip-track img:hover { opacity: 0.8; }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── 3. COMPARISON ────────────────────────────────────────────── */
.comparison .grid-2 { gap: 32px; align-items: start; }
.comparison-without, .comparison-with { border-radius: 16px; padding: 32px; }
.comparison-without { background: rgba(239,68,68,0.06); border-top: 2px solid var(--red); }
.comparison-with { background: rgba(13,148,136,0.06); border-top: 2px solid var(--teal); }
.comparison-without h3, .comparison-with h3 { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.comparison-without h3 { color: var(--red); }
.comparison-with h3 { color: var(--teal-light); }
.comparison-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.comparison-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-400); font-size: 0.95rem; line-height: 1.6; }
.comparison-list .marker { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.comparison-list .marker-teal { color: var(--teal-light); }

/* ─── 4. HOW IT WORKS (Steps) ─────────────────────────────────── */
.how-it-works .steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}
.how-it-works .step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
}
.how-it-works .step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}
.how-it-works .step:last-child .step-number { text-shadow: 0 0 20px rgba(13,148,136,0.5); }
.how-it-works .step .h3 { font-size: 1rem; margin-bottom: 8px; color: var(--white); }
.how-it-works .step .body-text { font-size: 0.88rem; line-height: 1.65; }
.how-it-works .step-connector {
    position: absolute;
    top: 20px;
    left: 100%;
    width: 40px;
    border-top: 1px dashed rgba(255,255,255,0.12);
}
[dir="rtl"] .how-it-works .step-connector { left: auto; right: 100%; }
.how-it-works .step:last-child .step-connector { display: none; }

/* ─── 5A. FEATURE SHOWCASE ─────────────────────────────────────── */
.feature-showcase { margin-bottom: 80px; }
.feature-showcase:last-of-type { margin-bottom: 0; }
.feature-showcase-text .tag { margin-bottom: 16px; display: inline-flex; }
.feature-showcase-text .h2 { font-size: 1.8rem; }
.feature-showcase-text .body-text { line-height: 1.8; }
.feature-showcase-reversed { direction: ltr; }
[dir="rtl"] .feature-showcase-reversed { direction: rtl; }
[dir="rtl"] .feature-showcase-reversed .feature-showcase-img { order: -1; }

.feature-checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-400); font-size: 0.95rem; }
.feature-checks li::before { content: "✓"; color: var(--teal-light); flex-shrink: 0; font-weight: 700; margin-top: 1px; }

.feature-showcase-img {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(13,148,136,0.06) 0%, rgba(26,26,46,1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.feature-showcase-img img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: block;
}

/* ─── 5B. FEATURE GRID CARDS ──────────────────────────────────── */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13,148,136,0.15) 0%, rgba(13,148,136,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--teal-light);
    font-size: 1.2rem;
}
.card .h3 { margin-bottom: 8px; }

/* ─── 6. MARKETPLACE TEASER ───────────────────────────────────── */
.marketplace-teaser .tag { background: rgba(13,148,136,0.12); border-color: rgba(13,148,136,0.25); color: var(--teal); }
.section-light .marketplace-form .form-input {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--charcoal);
}

/* ─── 7. PRICING ───────────────────────────────────────────────── */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card .h3 { margin-bottom: 16px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.92rem; }
.pricing-price { margin-bottom: 8px; }
.pricing-amount { font-size: 2.4rem; font-weight: 900; color: var(--white); font-family: var(--font-heading); line-height: 1; }
.pricing-currency { color: var(--gray-400); font-size: 0.85rem; font-weight: 600; margin-inline-start: 6px; }
.pricing-features { list-style: none; text-align: start; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 8px; color: var(--gray-400); font-size: 0.9rem; }
.pricing-yes { color: var(--gray-300) !important; }
.pricing-no { opacity: 0.4; }
.pricing-featured { border-color: var(--teal) !important; transform: scale(1.02); }
.pricing-featured:hover { transform: scale(1.02) translateY(-4px); }
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
    font-family: var(--font-heading);
}

/* ─── 8. TESTIMONIALS ──────────────────────────────────────────── */
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { color: var(--amber); font-size: 0.85rem; display: flex; gap: 2px; }
.testimonial-card .body-text { flex: 1; font-style: italic; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--white); font-size: 0.92rem; }
.testimonial-author span { display: block; color: var(--gray-500); font-size: 0.8rem; }

/* ─── 9. BLOG CARDS (Home) ─────────────────────────────────────── */
.blog-card { display: flex; flex-direction: column; gap: 12px; }
.blog-card-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(26,26,46,1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card .tag-sm { font-size: 0.72rem; padding: 4px 12px; }
.blog-card .h3 { font-size: 1rem; line-height: 1.5; }
.blog-card .body-text { font-size: 0.88rem; line-height: 1.7; flex: 1; }
.blog-card-meta { color: var(--gray-500); font-size: 0.78rem; margin-top: auto; }

/* ─── 10. FAQ ───────────────────────────────────────────────────── */
.faq-section .container-narrow { max-width: 700px; }
.faq-list { margin-top: 48px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: start;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--teal-light); }
.faq-chevron { flex-shrink: 0; color: var(--gray-400); transition: transform 0.3s ease, color 0.2s ease; font-size: 1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--teal-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding-bottom: 20px; color: var(--gray-400); font-size: 0.95rem; line-height: 1.8; }

/* ─── 11. FOR YOU IF ─────────────────────────────────────────────── */
.for-you-list { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }

/* ─── 12. CTA SECTION ─────────────────────────────────────────── */
.faq-cta, .final-cta { text-align: center; padding-top: 80px; }
.faq-cta p, .final-cta p { color: var(--gray-400); margin-bottom: 24px; font-size: 1rem; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .hero { padding-top: 88px; padding-bottom: 60px; }
    .hero-stats { gap: 12px; }
    .hero-stats-sep { display: none; }
    .logo-strip-track img { height: 22px; }
    .comparison .grid-2 { grid-template-columns: 1fr; }

    /* Steps: vertical */
    .how-it-works .steps { flex-direction: column; align-items: center; gap: 0; }
    .how-it-works .step { width: 100%; max-width: 320px; padding: 16px 0; }
    .how-it-works .step-connector {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 1px;
        height: 32px;
        border-top: none;
        border-left: 1px dashed rgba(255,255,255,0.12);
        margin: 0 auto;
    }
    [dir="rtl"] .how-it-works .step-connector { right: auto; left: 0; margin: 0 auto; }

    /* Feature showcase: stack */
    .feature-showcase, .feature-showcase-reversed { gap: 32px !important; }
    .feature-showcase .feature-showcase-img { order: 1; }
    .feature-showcase-text .h2 { font-size: 1.4rem; }

    /* Pricing: horizontal scroll */
    .pricing-card { min-width: 280px; }

    /* Marketplace form */
    .marketplace-form { max-width: 100% !important; }
}

@media (max-width: 480px) {
    .pricing-amount { font-size: 2rem; }
    .feature-showcase-text .h2 { font-size: 1.3rem; }
}
