﻿/* ═══════════════════════════════════════════════════════════
   مستجاب — Homepage Glass Extensions
   Homepage-only sections · load after glass-global.css
   Shared chrome (header, buttons, titles) → glass-global.css
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   HERO — light premium banner
   ═══════════════════════════════════════════ */
.page-home .hero {
    min-height: min(100dvh, 920px);
    background: url('herobanner.webp') center left / cover no-repeat !important;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.page-home .hero::before,
.page-home .hero-bg,
.page-home .hero-overlay,
.page-home .hero-grain {
    display: none !important;
}

.page-home .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(32px, 5vw, 56px) 0 72px;
    max-width: 1200px;
    width: 100%;
}

.page-home .hero-text {
    position: relative;
    z-index: 3;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.page-home .hero-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.page-home .hero-top-badge i {
    color: #2563eb;
    font-size: 0.9rem;
}

.page-home .h1-main {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
    filter: none !important;
    animation: none !important;
    text-shadow: none;
    font-size: clamp(1.6rem, 3.6vw, 2.3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    line-height: 1.1 !important;
    display: block;
    margin-bottom: 4px !important;
}

.page-home .title-accent {
    color: var(--p-red) !important;
    -webkit-text-fill-color: var(--p-red) !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
    line-height: 1.1 !important;
    display: block;
}

.page-home .hero-title {
    margin-bottom: 28px !important;
}

.page-home .hero-tagline,
.page-home .hero-text p {
    color: #475569 !important;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 52ch;
    margin-bottom: 38px !important;
}

.page-home .hero-trust-badges span {
    display: none !important;
}

.page-home .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-home .hero-buttons .btn-call,
.page-home .hero-buttons .btn-call:hover,
.page-home .hero-buttons .btn-call:active {
    color: #fff !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.page-home .hero-buttons .btn-call::before,
.page-home .hero-btn::before {
    display: none;
}

.page-home .hero-buttons .btn-whatsapp,
.page-home .hero-buttons .btn-whatsapp:hover,
.page-home .hero-buttons .btn-whatsapp:active {
    color: #059669 !important;
    background: #ffffff !important;
    border-radius: 50px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.page-home .hero-buttons .btn-whatsapp:hover {
    background: #f8fafc !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
}

.page-home .hero-btn {
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
}

/* Coverage marquee */
.page-home .coverage-marquee {
    display: flex !important;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-line);
    border-bottom: 1px solid var(--glass-line);
}

.page-home .coverage-marquee-label {
    display: flex !important;
    position: relative;
    padding: 0 24px;
    background: transparent;
    color: var(--glass-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.page-home .coverage-track span {
    color: #475569;
    font-weight: 600;
}

.page-home .coverage-track span i {
    color: var(--glass-accent);
}

/* Trust badges row — 5 col grid on home */
.page-home .trust-badges-row__inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Services bento grid */
.page-home #services-grid {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(220, 38, 38, 0.04) 0%, transparent 60%),
        var(--glass-canvas-soft);
    padding: clamp(72px, 10vw, 120px) 0;
}

.page-home .bento-grid {
    gap: 22px;
}

.page-home .bento-grid .service-card {
    border-radius: var(--glass-radius);
    overflow: hidden;
    transition: transform 0.4s var(--glass-ease), box-shadow 0.4s var(--glass-ease), border-color 0.4s var(--glass-ease);
}

.page-home .bento-grid .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: var(--glass-shadow-lg), var(--glass-inset);
}

.page-home .bento-grid .service-card .card-image {
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s var(--glass-ease);
}

.page-home .bento-grid .service-card:hover .card-image {
    transform: scale(1.04);
}

.page-home .bento-grid .service-card .card-icon {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: var(--glass-accent) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), var(--glass-inset) !important;
    z-index: 3;
}

.page-home .bento-grid .service-card .card-content h3 {
    color: var(--glass-ink);
    font-size: 1.12rem;
}

.page-home .bento-grid .service-card .card-content p {
    color: var(--glass-muted);
}

.page-home .bento-grid .service-card .card-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.page-home .bento-grid .service-card .card-ctas .btn {
    border-radius: 10px;
    font-size: 0.8rem;
    min-height: 44px;
}

/* Commitment */
.page-home .commitment-section {
    background: #fff;
    padding: clamp(72px, 10vw, 110px) 0;
}

.page-home .commit-heading {
    color: var(--glass-ink) !important;
}

.page-home .commit-desc {
    color: var(--glass-muted);
    max-width: 62ch;
    margin-inline: auto;
    line-height: 1.8;
}

/* Trust section — dark glass */
.page-home .trust-section {
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
    padding: clamp(72px, 10vw, 110px) 0;
    position: relative;
}

.page-home .trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.page-home .trust-title,
.page-home .trust-section .section-title h2 {
    color: #000 !important;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.page-home .trust-lead,
.page-home .trust-section .section-title p {
    color: #333 !important;
    font-weight: 500;
}

.page-home .trust-gem {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--glass-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-home .trust-gem-title {
    color: #000 !important;
}

.page-home .trust-gem-text {
    color: #333 !important;
}

.page-home .trust-fresco-fig {
    border-radius: var(--glass-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Emergency band */
.page-home .emergency-band {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: clamp(64px, 8vw, 96px) 0;
    position: relative;
    overflow: hidden;
}

.page-home .emergency-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.page-home .emergency-band h2,
.page-home .emergency-band .section-title h2 {
    color: #fff !important;
}

.page-home .emergency-band p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-home .emergency-band .section-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.page-home .emergency-band-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-home .emergency-band .btn-whatsapp,
.page-home .emergency-band .btn-whatsapp:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Process, testimonials, locations */
.page-home .section-process {
    background: var(--glass-canvas-soft);
    padding: clamp(72px, 10vw, 110px) 0;
}

.page-home .section-process .grid.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.page-home .section-process .grid.grid-3::before {
    display: none;
}

.page-home .section-process .grid.grid-3 .card {
    border-radius: var(--glass-radius);
    text-align: right;
    padding: 32px 28px !important;
}

.page-home .section-process .grid.grid-3 .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 520px;
    margin-inline-start: auto;
}

.page-home .section-process .card > div[style*="border-radius: 50%"] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    margin: 0 0 16px 0 !important;
    background: var(--glass-accent) !important;
}

.page-home .section-process .card h3 {
    color: var(--glass-ink);
}

.page-home .section-process .card p {
    color: var(--glass-muted) !important;
}

.page-home #testimonials {
    background: #fff;
    padding: clamp(72px, 10vw, 110px) 0;
}

.page-home #locations-grid {
    background: var(--glass-canvas);
    padding: clamp(64px, 8vw, 96px) 0;
}

.page-home .faq-section {
    background: #fff;
}

@media (max-width: 1023px) {
    .page-home .hero {
        background: url('herobanner_mobile.webp') center bottom / cover no-repeat !important;
        min-height: 85vh;
        display: flex;
        align-items: flex-start;
        padding-top: 40px !important;
    }

    .page-home .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 0 !important;
        padding-bottom: 240px;
    }

    .page-home .hero-text {
        text-align: center !important;
        padding: 32px 24px !important;
        background: rgba(255, 255, 255, 0.65) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 24px !important;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
        margin-inline: 16px !important;
    }

    .page-home .hero-top-badge {
        margin-inline: auto;
    }

    .page-home .hero-tagline {
        margin-inline: auto;
    }

    .page-home .hero-buttons {
        justify-content: center;
    }

    .page-home .trust-badges-row__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .section-process .grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .page-home .section-process .grid.grid-3 .card:nth-child(3) {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .page-home .hero {
        min-height: 90dvh;
        padding-top: 15px !important;
    }

    .page-home .hero-inner {
        padding-top: 0 !important;
        padding-bottom: 280px;
    }

    .page-home .hero-text {
        padding: 24px 16px !important;
        margin-inline: 8px !important;
    }

    .page-home .trust-badges-row__inner {
        grid-template-columns: 1fr;
    }

    .page-home .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .page-home .hero-buttons .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .page-home .bento-grid .service-card .card-ctas {
        grid-template-columns: 1fr;
    }

    .page-home .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .page-home .bento-grid > * {
        grid-column: 1 / -1 !important;
    }

    .page-home .marquee-track {
        animation-duration: 28s;
    }

    .page-home .section-title {
        margin-bottom: 28px;
    }

    .page-home #emergency-banner .container,
    .page-home .emergency-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .page-home .stats-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
