/* ==========================================================================
   A/B Test — Variant B Styles (service detail pages)
   All rules scoped under .variant-b so they only apply to group B users.
   ========================================================================== */

/* ── 1. Hero: Stacked layout with full-width background feel ── */
.variant-b .sd-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #1a2a6c 0%, #2d5daa 50%, #21a0a0 100%);
}
.variant-b .sd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero-pattern.svg') center / cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.variant-b .sd-hero .container {
    position: relative;
    z-index: 1;
}
.variant-b .sd-hero h1 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1.25rem;
}
.variant-b .sd-hero-summary {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.variant-b .sd-hero-actions {
    justify-content: center;
}
.variant-b .sd-hero-tags {
    justify-content: center;
}
.variant-b .sd-breadcrumb {
    text-align: left;
}

/* ── 2. Floating Sticky CTA Bar ── */
.variant-b .sd-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.variant-b .sd-sticky-cta.visible {
    transform: translateY(0);
}
.variant-b .sd-sticky-cta .sticky-cta-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.variant-b .sd-sticky-cta .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Hide sticky CTA for variant A (default hidden) */
.sd-sticky-cta {
    display: none;
}

/* ── 3. Feature Cards: Alternating left-right sections ── */
.variant-b .sd-feature-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
}
.variant-b .sd-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-left: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.variant-b .sd-feature-card:nth-child(even) {
    direction: rtl;
}
.variant-b .sd-feature-card:nth-child(even) > * {
    direction: ltr;
}
.variant-b .sd-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.variant-b .sd-feature-card h3::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}
.variant-b .sd-feature-card .sd-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.15;
}

/* ── 4. Trust Indicators Bar ── */
.variant-b .sd-trust-bar {
    display: flex;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
    padding: 2rem 0;
    border-top: 1px solid #e0e7f1;
    border-bottom: 1px solid #e0e7f1;
}
.variant-b .sd-trust-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.variant-b .sd-trust-item {
    text-align: center;
}
.variant-b .sd-trust-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}
.variant-b .sd-trust-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Hide trust bar for variant A */
.sd-trust-bar {
    display: none;
}

/* ── 5. Mid-page CTA Section ── */
.variant-b .sd-mid-cta {
    display: block;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 2rem;
}
.variant-b .sd-mid-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.variant-b .sd-mid-cta p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.variant-b .sd-mid-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.variant-b .sd-mid-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Hide mid CTA for variant A */
.sd-mid-cta {
    display: none;
}

/* ── Responsive overrides for Variant B ── */
@media (max-width: 768px) {
    .variant-b .sd-hero {
        padding: 7rem 0 3rem;
    }
    .variant-b .sd-hero h1 {
        font-size: 2rem;
    }
    .variant-b .sd-hero-summary {
        font-size: 1rem;
    }
    .variant-b .sd-feature-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .variant-b .sd-feature-card:nth-child(even) {
        direction: ltr;
    }
    .variant-b .sd-feature-card .sd-feature-icon {
        display: none;
    }
    .variant-b .sd-trust-bar .container {
        gap: 1.5rem;
    }
    .variant-b .sd-trust-value {
        font-size: 1.35rem;
    }
    .variant-b .sd-sticky-cta .sticky-cta-text {
        display: none;
    }
    .variant-b .sd-mid-cta {
        padding: 2.5rem 1.5rem;
    }
    .variant-b .sd-mid-cta h2 {
        font-size: 1.4rem;
    }
}
