﻿/* مستجاب — service & area detail pages (.page-service) */

.page-service {
    --home-ink: var(--color-ink, #060a12);
    --home-beacon: var(--color-primary, #DC2626);
    --home-beacon-soft: rgba(220, 38, 38, 0.14);
    --home-amber: #ffb020;
    --home-vital: var(--color-success, #059669);
    --home-glass: rgba(8, 14, 28, 0.72);
    --home-display: var(--font-display, 'IBM Plex Sans Arabic', 'Tajawal', sans-serif);
    --home-nav-h: var(--header-h, 76px);
}

html:has(.page-service) {
    scroll-behavior: smooth;
}

.page-service body,
body.page-service {
    font-family: var(--home-display);
}

/* ── Dispatch-style service hero ── */
.page-service .service-header {
    position: relative;
    min-height: min(68dvh, 580px);
    padding: calc(38px + var(--home-nav-h) + 40px) 0 56px;
    margin-top: 0;
    background: var(--home-ink);
    color: #fff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.page-service .service-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 59, 59, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 230, 118, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.3) 0%, var(--home-ink) 100%);
    pointer-events: none;
}

.page-service .service-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
    opacity: 0.5;
}

.page-service .service-header .container {
    position: relative;
    z-index: 2;
}

.page-service .sh-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: var(--home-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-service .service-header .sh-badge i {
    color: var(--home-beacon);
}

.page-service .service-header h1 {
    font-family: var(--home-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-wrap: balance;
    max-width: 18ch;
    margin-inline: auto;
}

.page-service .service-header .sh-desc {
    color: rgba(255, 255, 255, 0.72);
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.85;
    text-wrap: pretty;
}

.page-service .service-header .sh-desc strong {
    color: #fff;
    font-weight: 600;
}

.page-service .service-header .sh-cta .btn-primary {
    background: var(--home-beacon);
    border: none;
    font-family: var(--home-display);
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(255, 59, 59, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.page-service .service-header .sh-cta .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 59, 59, 0.45);
}

.page-service .service-header .sh-cta .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.page-service .service-header .sh-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--home-display);
    font-weight: 600;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
}

.page-service .service-header .sh-badges span i {
    color: var(--home-vital);
}

/* ECG accent line */
.page-service .service-ecg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.page-service .service-ecg svg {
    width: 100%;
    height: 100%;
}

.page-service .service-ecg .ecg-stroke {
    fill: none;
    stroke: var(--home-vital);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    animation: serviceEcgDraw 4s linear infinite;
}

@keyframes serviceEcgDraw {
    0% { stroke-dashoffset: 1200; }
    100% { stroke-dashoffset: 0; }
}

/* ── Section typography ── */
.page-service .section-title h2 {
    font-family: var(--home-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.page-service .section-title p {
    color: var(--text-muted);
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.75;
}

.page-service .section-title .divider {
    background: linear-gradient(90deg, transparent, var(--home-beacon), transparent);
    height: 2px;
    opacity: 0.6;
}

.page-service .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--home-beacon);
    margin-bottom: 12px;
    font-family: var(--home-display);
}

.page-service .section-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--home-beacon);
    border-radius: 2px;
}

/* ── Content sections ── */
.page-service .section {
    position: relative;
}

.page-service .section.bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.page-service .feature-list-card li {
    font-family: var(--home-display);
    font-weight: 500;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.page-service .feature-list-card li:hover {
    transform: translateX(-4px);
    border-color: rgba(255, 59, 59, 0.15);
    box-shadow: 0 8px 24px rgba(6, 10, 18, 0.06);
}

.page-service .img-frame-glow {
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 64px rgba(6, 10, 18, 0.12),
        0 0 0 1px rgba(255, 59, 59, 0.08);
}

.page-service .img-frame-glow img {
    border-radius: var(--radius-xl);
}

/* Step cards */
.page-service .step-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}

.page-service .step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(6, 10, 18, 0.1);
}

.page-service .step-num {
    background: var(--home-beacon);
    font-family: var(--home-display);
    font-weight: 800;
}

/* Service cards grid */
.page-service .service-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.page-service .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 59, 59, 0.12);
    box-shadow: 0 20px 48px rgba(6, 10, 18, 0.1);
}

.page-service .service-card .card-icon {
    background: var(--home-beacon-soft);
    color: var(--home-beacon);
}

/* Stats & trust (area pages) */
.page-service .stats-row .stat-num {
    font-family: var(--home-display);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--home-beacon);
    direction: ltr;
    unicode-bidi: bidi-override;
    display: block;
}

.page-service .trust-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s, background 0.25s;
}

.page-service .trust-card:hover {
    border-color: rgba(255, 59, 59, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.page-service .section.bg-navy {
    background: var(--home-ink);
}

/* FAQ */
.page-service .faq-item {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.page-service .faq-item:hover {
    border-color: rgba(255, 59, 59, 0.15);
    box-shadow: 0 8px 24px rgba(6, 10, 18, 0.05);
}

.page-service .faq-item h3 {
    font-family: var(--home-display);
    font-weight: 700;
    font-size: 1rem;
}

/* CTA banner */
.page-service .cta-banner {
    background: linear-gradient(135deg, var(--home-ink) 0%, #1a1028 50%, var(--home-ink) 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-service .cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 59, 59, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.page-service .cta-banner .container {
    position: relative;
    z-index: 1;
}

.page-service .cta-banner h2 {
    font-family: var(--home-display);
    font-weight: 800;
    text-wrap: balance;
}

.page-service .cta-banner .btn-primary {
    background: var(--home-beacon) !important;
    font-weight: 700;
}

/* Related cards */
.page-service .related-card {
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-service .related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 10, 18, 0.08);
}

/* Keyword highlights */
.page-service .keyword-highlight {
    background: var(--home-beacon-soft);
    color: var(--home-beacon);
    font-weight: 600;
}

/* Booking & contact panels */
.page-service .service-card,
.page-service .feature-card,
.page-service .related-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 32px rgba(6, 10, 18, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-xl);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.page-service .service-card:hover,
.page-service .feature-card:hover,
.page-service .related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.15);
    box-shadow: 0 16px 48px rgba(6, 10, 18, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.page-service .booking-panel,
.page-service .contact-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 16px 48px rgba(6, 10, 18, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-service .booking-panel .form-group label {
    font-family: var(--home-display);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    display: block;
}

.page-service .booking-panel .form-control {
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-service .booking-panel .form-control:focus {
    border-color: rgba(255, 59, 59, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
    outline: none;
}

.page-service .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.page-service .contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 59, 59, 0.15);
    box-shadow: 0 16px 40px rgba(6, 10, 18, 0.08);
}

.page-service .contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--home-beacon-soft);
    color: var(--home-beacon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.page-service .legal-prose {
    max-width: 46rem;
    margin-inline: auto;
    line-height: 1.85;
    color: var(--text-muted);
}

.page-service .legal-prose h2 {
    font-family: var(--home-display);
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.page-service .legal-prose p,
.page-service .legal-prose li {
    font-size: 1.02rem;
}

.page-service .price-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-service .price-card.featured {
    border-color: rgba(255, 59, 59, 0.35);
    box-shadow: 0 20px 56px rgba(255, 59, 59, 0.12);
}

.page-service .blog-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 28px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-service .blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 59, 59, 0.12);
    box-shadow: 0 16px 40px rgba(6, 10, 18, 0.08);
}

.page-service .blog-card h3 a {
    font-family: var(--home-display);
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s;
}

.page-service .blog-card h3 a:hover {
    color: var(--home-beacon);
}

.page-service .img-frame-glow img,
.page-service .content-image {
    border-radius: var(--radius-xl);
}

.page-service .trust-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%) !important;
}

.page-service .breadcrumb-nav a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.page-service .breadcrumb-nav a:hover {
    color: var(--home-beacon);
}

/* Mobile */
@media (max-width: 768px) {
    .page-service .service-header {
        min-height: auto;
        padding: 20px 0 36px;
    }

    .page-service .service-header h1 {
        max-width: none;
        font-size: clamp(1.65rem, 6vw, 2.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-service .service-ecg .ecg-stroke {
        animation: none;
        stroke-dashoffset: 0;
    }
}
