/* ============================================
   SERVICE PAGE – Additional Styles
   Extends the main styles.css
   ============================================ */

/* ==========================================
   SERVICE PAGE HERO
   ========================================== */
.sp-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 140px 24px 100px;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.sp-back-link:hover {
    color: var(--accent-blue-light);
}

[dir="rtl"] .sp-back-link {
    flex-direction: row-reverse;
}

/* ==========================================
   SERVICE OVERVIEW SECTION
   ========================================== */
.service-detail-section {
    padding: var(--section-padding);
    position: relative;
}

.service-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.sp-overview-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: start;
}

.sp-overview-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: rgba(var(--accent, 59 130 246), 0.08);
    border: 1px solid rgba(var(--accent, 59 130 246), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: oklch(from var(--accent, #3b82f6) l c h);
    /* Fallback color approach */
    color: var(--accent, #3b82f6);
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent-blue), transparent 92%);
    border: 1px solid color-mix(in srgb, var(--accent-blue), transparent 80%);
}

/* Simpler approach using CSS custom property */
.sp-overview-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.sp-overview-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sp-overview-icon svg {
    position: relative;
    z-index: 1;
    color: var(--accent-blue-light);
    width: 48px;
    height: 48px;
}

.sp-overview-text .section-header {
    margin-bottom: 24px;
}

.about-text+.about-text {
    margin-top: 16px;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-secondary);
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.sp-cta-section {
    padding: var(--section-padding);
    position: relative;
}

.sp-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.sp-cta-box {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.sp-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
}

.sp-cta-box .section-tag {
    margin-bottom: 20px;
}

.sp-cta-box .section-title {
    margin-bottom: 16px;
}

.sp-cta-box .section-desc {
    margin-bottom: 36px;
}

.sp-cta-box .btn {
    position: relative;
    z-index: 1;
}

/* Glow radial behind CTA box */
.sp-cta-box::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .sp-overview-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-overview-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .sp-overview-icon svg {
        width: 36px;
        height: 36px;
    }

    .sp-cta-box {
        padding: 48px 24px;
    }

    .sp-hero {
        min-height: 70vh;
        padding: 120px 24px 80px;
    }
}

/* ==========================================
   LANG TOGGLE (already in styles.css but
   repeated here for service pages consistency)
   ========================================== */
.lang-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-blue-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.lang-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: white;
}

/* RTL adjustments */
[dir="rtl"] .section-header {
    direction: rtl;
}

[dir="rtl"] .sp-overview-text .section-header {
    text-align: right;
}

[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', var(--font-body);
}