﻿/* ═══════════════════════════════════════════════════════════
   مستجاب — Legacy page layouts (migrated from inline CSS)
   Glass-premium treatment for regions, SEO, LP, hub, ICU, 404
   ═══════════════════════════════════════════════════════════ */

/* ── Shared trust badges row ── */
.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 130px;
}

.trust-badge-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--p-navy);
    line-height: 1.35;
    text-wrap: balance;
}

.trust-badge-item i {
    font-size: 1.6rem;
    color: var(--color-primary, var(--p-red));
}

.trust-badges-row {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 22px 0;
}

.trust-badges-row__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    text-align: center;
}

@media (max-width: 600px) {
    .trust-badge-item { min-width: 100px; }
    .trust-badge-item span { font-size: 0.75rem; }
}

/* ── 404 error page ── */
.error-page {
    min-height: min(100dvh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-navy, #0F172A) 0%, var(--color-ink, #060A12) 100%);
    color: #fff;
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 32px) 20px 48px;
}

.error-code {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(220, 38, 38, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.error-message h2 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 16px;
    color: #fff;
}

.error-message p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    max-width: 36rem;
    margin-inline: auto;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ── Region hub pages ── */
.page-region .region-hero {
    position: relative;
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 48px) 20px 64px;
    color: #fff;
    text-align: center;
    background: var(--color-ink, #060A12);
    overflow: hidden;
}

.page-region .region-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 30% 20%, var(--region-glow, rgba(220, 38, 38, 0.18)) 0%, transparent 55%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.4) 0%, var(--color-ink, #060A12) 100%);
    pointer-events: none;
}

.page-region .region-header {
    position: relative;
    z-index: 1;
}

.page-region .region-header h1 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    margin-bottom: 12px;
    text-wrap: balance;
}

.page-region .region-header p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 24px;
    max-width: 40rem;
    margin-inline: auto;
}

.page-region.region-east { --region-glow: rgba(220, 38, 38, 0.2); }
.page-region.region-west { --region-glow: rgba(212, 165, 116, 0.15); }
.page-region.region-south { --region-glow: rgba(5, 150, 101, 0.12); }
.page-region.region-new { --region-glow: rgba(220, 38, 38, 0.16); }

.page-region .coverage-map {
    padding: var(--section-y, 64px) 0;
    background: var(--color-surface, #F8FAFC);
}

.page-region .coverage-map h2 {
    text-align: center;
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    color: var(--text-main);
    margin-bottom: 8px;
}

.page-region .coverage-map > .container > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.page-region .areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.page-region .area-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-inline-start: 3px solid var(--color-primary, #DC2626);
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-region .area-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.page-region .area-card h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.page-region .area-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.page-region .service-highlight {
    padding: var(--section-y, 64px) 0;
    background: linear-gradient(180deg, #fff 0%, var(--color-surface, #F8FAFC) 100%);
}

.page-region .service-item {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
}

.page-region .service-icon {
    font-size: 1.75rem;
    color: var(--color-primary, #DC2626);
    min-width: 44px;
}

.page-region .service-info h3 {
    color: var(--text-main);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.page-region .service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Private ambulance SEO pages ── */
.page-seo-legacy .seo-hero {
    position: relative;
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 48px) 20px 56px;
    text-align: center;
    color: #fff;
    background: var(--color-ink, #060A12);
    overflow: hidden;
}

.page-seo-legacy .seo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 50% 30%, rgba(220, 38, 38, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.5) 0%, var(--color-ink, #060A12) 100%);
    pointer-events: none;
}

.page-seo-legacy .seo-hero > * {
    position: relative;
    z-index: 1;
}

.page-seo-legacy .seo-hero h1 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-wrap: balance;
}

.page-seo-legacy .hero-phone {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 8px 28px;
    border-radius: var(--radius-full);
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.35);
    font-variant-numeric: tabular-nums;
}

.page-seo-legacy .seo-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 42rem;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.75);
}

.page-seo-legacy .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary, #DC2626);
    color: #fff;
    padding: 14px 32px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.35);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.page-seo-legacy .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(220, 38, 38, 0.45);
    color: #fff;
}

.page-seo-legacy .cta-btn:active {
    transform: scale(0.98);
}

.page-seo-legacy .cta-container {
    text-align: center;
    margin: 32px 0;
}

.page-seo-legacy .seo-section {
    padding: var(--section-y, 64px) 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-seo-legacy .seo-section h2 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    color: var(--text-main);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    text-align: center;
    margin-bottom: 32px;
}

.page-seo-legacy .keyword-highlight {
    font-weight: 700;
    color: var(--color-primary, #DC2626);
    background: rgba(220, 38, 38, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.page-seo-legacy .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.page-seo-legacy .feature-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    text-align: center;
    transition: transform 0.3s var(--ease-out);
}

.page-seo-legacy .feature-card:hover {
    transform: translateY(-4px);
}

.page-seo-legacy .feature-card h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.page-seo-legacy .faq-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: 32px;
}

.page-seo-legacy .faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 20px;
}

.page-seo-legacy .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-seo-legacy .faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.page-seo-legacy .areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-seo-legacy .areas-list li {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.page-seo-legacy .floating-wa {
    position: fixed;
    bottom: calc(var(--mobile-bar-h, 76px) + 16px);
    left: 20px;
    background: rgba(5, 150, 101, 0.92);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 28px rgba(5, 150, 101, 0.35);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

@media (min-width: 768px) {
    .page-seo-legacy .floating-wa {
        bottom: 24px;
    }
}

.page-seo-legacy .floating-wa:hover {
    transform: scale(1.04);
    color: #fff;
}

/* ── Ambulance landing page (hero-lp) ── */
.page-lp .hero-lp {
    min-height: min(100dvh, 900px);
    background:
        linear-gradient(to left, rgba(6, 10, 18, 0.88), rgba(6, 10, 18, 0.55)),
        url('premium_ambulance_hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: right;
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 32px) 0 64px;
}

.page-lp .hero-lp h1 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-wrap: balance;
}

.page-lp .hero-lp p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
    max-width: 36rem;
    line-height: 1.7;
}

.page-lp .features-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-lp .feature-item-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.page-lp .feature-item-quick i {
    color: var(--color-success, #059669);
    font-size: 1.2rem;
}

.page-lp .cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-lp .btn-call {
    background: var(--color-primary, #DC2626);
    color: #fff;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
}

.page-lp .btn-book {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-lp .services-section {
    padding: var(--section-y, 80px) 0;
    background: var(--color-surface, #F8FAFC);
}

.page-lp .service-lp-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-lp .service-lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    border-color: rgba(220, 38, 38, 0.15);
}

.page-lp .service-lp-card i {
    font-size: 2.5rem;
    color: var(--color-primary, #DC2626);
    margin-bottom: 16px;
}

.page-lp .trust-section {
    background: var(--color-ink, #060A12);
    color: #fff;
    padding: var(--section-y, 64px) 0;
}

.page-lp .trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.page-lp .trust-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--home-amber, #ffb020);
}

.page-lp .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.12);
    color: var(--color-primary, #DC2626);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.page-lp .phone-display {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .page-lp .hero-lp {
        text-align: center;
        min-height: auto;
        padding-bottom: 48px;
    }

    .page-lp .hero-lp .features-quick {
        text-align: right;
    }

    .page-lp .cta-group {
        justify-content: center;
    }
}

/* ── Site hub (mostagab.com.site) ── */
.page-site-hub .site-hub {
    padding: var(--section-y, 64px) 0;
    background: var(--color-surface, #F8FAFC);
}

.page-site-hub .master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-site-hub .site-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s var(--ease-out);
    text-align: center;
}

.page-site-hub .site-card:hover {
    transform: translateY(-6px);
}

.page-site-hub .site-card-header {
    background: linear-gradient(135deg, var(--color-primary, #DC2626), #B91C1C);
    color: #fff;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.page-site-hub .site-card-body {
    padding: 24px;
}

.page-site-hub .site-card-body h4 {
    margin-top: 12px;
    color: var(--text-main);
}

.page-site-hub .site-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.page-site-hub .hub-hero {
    background:
        linear-gradient(rgba(6, 10, 18, 0.88), rgba(6, 10, 18, 0.92)),
        url('hero-premium.jpg') center/cover;
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 48px) 0 64px;
    text-align: center;
    color: #fff;
}

.page-site-hub .hub-hero h1 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.page-site-hub .hub-phone-display {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 10px 32px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.35);
    font-variant-numeric: tabular-nums;
}

.page-site-hub .hub-cta-row {
    text-align: center;
    margin: 24px 0;
}

/* ── ICU ambulance legacy layout ── */
.page-icu-legacy .service-hero {
    padding: calc(var(--strip-h, 38px) + var(--header-h, 76px) + 48px) 0 56px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(220, 38, 38, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, var(--color-surface, #F8FAFC) 0%, #fff 100%);
    text-align: center;
}

.page-icu-legacy .service-hero h1 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary, #DC2626);
    margin-bottom: 16px;
}

.page-icu-legacy .service-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.page-icu-legacy .equipment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.page-icu-legacy .equipment-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    border-inline-start: 3px solid var(--color-primary, #DC2626);
}

.page-icu-legacy .equipment-item i {
    color: var(--color-primary, #DC2626);
    font-size: 1.35rem;
}

.page-icu-legacy .booking-card {
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    color: #fff;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(6, 10, 18, 0.25);
    position: sticky;
    top: calc(var(--header-h, 76px) + 24px);
    text-align: center;
}

.page-icu-legacy .booking-card h3 {
    color: var(--color-primary, #DC2626);
    margin-bottom: 16px;
}

.page-icu-legacy .medical-review {
    background: rgba(5, 150, 101, 0.12);
    color: #047857;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(5, 150, 101, 0.2);
}

.page-icu-legacy .content-section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-icu-legacy .content-section h2 {
    font-family: var(--font-display, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-main);
    margin-bottom: 12px;
}

.page-icu-legacy .content-section p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .page-icu-legacy .service-content {
        grid-template-columns: 1fr;
    }

    .page-icu-legacy .equipment-list {
        grid-template-columns: 1fr;
    }

    .page-icu-legacy .booking-card {
        position: static;
    }
}
