/*
 * ============================================================
 * مستشفى الأطفال التخصصي بالبحيرة
 * Home Page — CSS
 * ============================================================
 * ملف: pd-homepage.css
 * المتطلبات: pd-header-footer.css + pd-cards.css
 * الاتجاه: RTL (عربي)
 * ============================================================
 */

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

.hp-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    font-family: var(--hf-font);
    direction: rtl;
    padding-top: var(--hf-topbar-h, 40px); /* حساب ارتفاع الـ topbar */
}

/* طبقات الخلفية */
.hp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        145deg,
        #f0f8f2 0%,
        #e6f3eb 35%,
        #fdf8f0 65%,
        #f5f0e8 100%
    );
}

/* دائرة زخرفية كبيرة في الخلفية */
.hp-hero__circle-1 {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(74, 140, 92, 0.10) 0%,
        rgba(74, 140, 92, 0.03) 60%,
        transparent 100%
    );
    top: -120px;
    left: -200px;
    z-index: 0;
    pointer-events: none;
}

.hp-hero__circle-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(200, 169, 110, 0.10) 0%,
        transparent 70%
    );
    bottom: -80px;
    right: -80px;
    z-index: 0;
    pointer-events: none;
}

/* نقاط زخرفية */
.hp-hero__dots {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle, rgba(74,140,92,0.06) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    z-index: 0;
    pointer-events: none;
}

/* المحتوى الداخلي — HERO GRID & CONTAINER FIX */
.hp-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--hf-container-max, 1280px);
    margin-inline: auto;
    padding: 80px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

/* الجانب النصي (يمين) — TEXT WRAPPER & BADGE FIX */
.hp-hero__text {
    max-width: 600px;
    text-align: right;
    width: 100%;
}

.hp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 18px;
    background: var(--hf-primary-soft);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hf-primary);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-align: right;
}

.hp-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: var(--hf-dark-green);
    line-height: 1.22;
    margin-bottom: 20px;
}

.hp-hero__title mark {
    background: none;
    color: var(--hf-primary);
}

.hp-hero__desc {
    font-size: 16px;
    color: var(--hf-text-muted);
    line-height: 1.85;
    max-width: 520px;
    margin-bottom: 36px;
}

/* أزرار الـ Hero */
.hp-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hp-btn-book {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-light) 100%);
    color: #fff;
    font-family: var(--hf-font);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--hf-radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(74, 140, 92, 0.38);
    transition: var(--hf-transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hp-btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(74, 140, 92, 0.50);
    color: #fff;
}

.hp-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    background: transparent;
    color: var(--hf-primary);
    font-family: var(--hf-font);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--hf-radius-pill);
    border: 2px solid var(--hf-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--hf-transition);
    white-space: nowrap;
}

.hp-btn-contact:hover {
    background: var(--hf-primary);
    color: #fff;
    box-shadow: 0 8px 28px rgba(74, 140, 92, 0.32);
}

/* شريط الإحصائيات */
.hp-hero__stats {
    display: flex;
    gap: 0;
    background: var(--hf-bg-white);
    border-radius: 16px;
    border: 1px solid rgba(74, 140, 92, 0.12);
    box-shadow: var(--hf-shadow-sm);
    overflow: hidden;
}

.hp-stat {
    flex: 1;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.hp-stat + .hp-stat::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    height: 60%;
    width: 1px;
    background: rgba(74, 140, 92, 0.12);
}

.hp-stat__num {
    font-size: 22px;
    font-weight: 900;
    color: var(--hf-primary);
    line-height: 1;
    direction: ltr;
    unicode-bidi: embed;
}

.hp-stat__label {
    font-size: 11.5px;
    color: var(--hf-text-muted);
    font-weight: 500;
    text-align: center;
}

/* الجانب المرئي (يسار) — بطاقة تعريفية عائمة */
.hp-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 480px;
}

/* الصورة الرئيسية */
.hp-hero__img-wrap {
    position: relative;
    width: 100% !important;
    max-width: 480px !important;
    height: 480px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 72px rgba(30, 59, 47, 0.18) !important;
}

.hp-hero__img-wrap img,
.hp-hero__img-ph {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.hp-hero__img-ph {
    background: linear-gradient(145deg, var(--hf-primary-soft), rgba(106,173,122,.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--hf-primary);
}

.hp-hero__img-ph i { font-size: 70px; opacity: .4; }

/* بطاقة عائمة — "متوفر الآن" */
.hp-float-badge {
    position: absolute;
    bottom: 28px;
    left: -28px;
    background: var(--hf-bg-white);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(30, 59, 47, 0.16);
    direction: rtl;
    min-width: 180px;
    animation: hp-float 3.5s ease-in-out infinite;
}

.hp-float-badge__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.20);
}

.hp-float-badge__text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--hf-dark-green);
}

.hp-float-badge__text span {
    font-size: 11px;
    color: var(--hf-text-muted);
}

/* بطاقة عائمة — عدد المرضى */
.hp-float-counter {
    position: absolute;
    top: 28px;
    left: -20px;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-light) 100%);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 12px 36px rgba(74, 140, 92, 0.38);
    animation: hp-float 4s 0.8s ease-in-out infinite;
}

.hp-float-counter__num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
}

.hp-float-counter__label {
    font-size: 10.5px;
    opacity: 0.85;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes hp-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* ============================================================
   SECTION 2 — SERVICES / DEPARTMENTS
   ============================================================ */
.hp-services {
    padding: 80px 0;
    background: var(--hf-bg);
    direction: rtl;
    font-family: var(--hf-font);
}

.hp-services__inner {
    width: 100%;
    max-width: var(--hf-container-max, 1280px);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   SECTION 3 — TOP DOCTORS
   ============================================================ */
.hp-doctors {
    padding: 80px 0;
    background: var(--hf-bg-white);
    direction: rtl;
    font-family: var(--hf-font);
}

.hp-doctors__inner {
    width: 100%;
    max-width: var(--hf-container-max, 1280px);
    margin-inline: auto;
    padding-inline: 24px;
}

.hp-doctors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.hp-doctors__cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hp-btn-all-doctors {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: transparent;
    color: var(--hf-primary);
    font-family: var(--hf-font);
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--hf-radius-pill);
    border: 2px solid var(--hf-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--hf-transition);
    letter-spacing: 0.02em;
}

.hp-btn-all-doctors:hover {
    background: var(--hf-primary);
    color: #fff;
    box-shadow: 0 8px 26px rgba(74, 140, 92, 0.32);
    transform: translateY(-2px);
}

/* ============================================================
   SECTION 4 — WHY CHOOSE US
   ============================================================ */
.hp-why {
    padding: 80px 0;
    background: var(--hf-dark-green);
    direction: rtl;
    font-family: var(--hf-font);
    position: relative;
    overflow: hidden;
}

/* زخارف دائرية خلفية */
.hp-why::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -160px; left: -140px;
    pointer-events: none;
}

.hp-why::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -100px; right: -80px;
    pointer-events: none;
}

.hp-why__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--hf-container-max, 1280px);
    margin-inline: auto;
    padding-inline: 24px;
}

.hp-why__head {
    text-align: center;
    margin-bottom: 56px;
}

.hp-why__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--hf-radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--hf-accent);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hp-why__title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hp-why__title span { color: var(--hf-accent); }

.hp-why__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.60);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.8;
}

/* شبكة المميزات */
.hp-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.hp-feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.3s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease;
}

.hp-feature-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(200, 169, 110, 0.35);
    transform: translateY(-5px);
}

.hp-feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(200, 169, 110, 0.15);
    color: var(--hf-accent);
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.hp-feature-card:hover .hp-feature-card__icon {
    background: rgba(200, 169, 110, 0.28);
}

.hp-feature-card__title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}

.hp-feature-card__desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    flex: 1;
}

/* ============================================================
   SECTION 5 — LATEST BLOG
   ============================================================ */
.hp-blog {
    padding: 80px 0;
    background: var(--hf-bg);
    direction: rtl;
    font-family: var(--hf-font);
}

.hp-blog__inner {
    width: 100%;
    max-width: var(--hf-container-max, 1280px);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   SHARED — Section Head (مشترك بين الأقسام)
   ============================================================ */
.hp-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.hp-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    background: var(--hf-primary-soft);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--hf-primary);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.hp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    color: var(--hf-dark-green);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hp-section-title span { color: var(--hf-primary); }

.hp-section-desc {
    font-size: 15px;
    color: var(--hf-text-muted);
    max-width: 580px;
    margin-inline: auto;
    line-height: 1.8;
}

/* ============================================================
   PLACEHOLDERS
   ============================================================ */
.hp-avatar-ph {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hf-primary-soft), rgba(106,173,122,.25));
    display: flex; align-items: center; justify-content: center;
    border: 4px solid var(--hf-bg-white);
    box-shadow: 0 4px 20px rgba(30,59,47,.18);
}

.hp-avatar-ph i { font-size: 38px; color: var(--hf-primary); opacity: .65; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ≤ 1100px — الشاشات الوسطى */
@media (max-width: 1100px) {
    .hp-hero__inner {
        grid-template-columns: 1fr 380px;
        gap: 36px;
    }
}

/* ≤ 900px — تابلت */
@media (max-width: 900px) {
    .hp-hero {
        min-height: auto;
    }

    .hp-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hp-hero__desc { max-width: 100%; }
    .hp-hero__actions { justify-content: center; }
    .hp-hero__stats { max-width: 480px; margin-inline: auto; }

    .hp-hero__visual { order: -1; }
    .hp-hero__img-wrap { max-width: 320px; margin-inline: auto; }

    .hp-float-badge { left: -10px; }
    .hp-float-counter { left: -10px; }

    .hp-services,
    .hp-doctors,
    .hp-why,
    .hp-blog { padding: 56px 0; }
}

/* ≤ 600px — موبايل */
@media (max-width: 600px) {
    .hp-hero__inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hp-hero__title { font-size: 1.75rem; }

    .hp-hero__actions { flex-direction: column; }
    .hp-btn-book, .hp-btn-contact { width: 100%; justify-content: center; }

    .hp-hero__stats {
        flex-wrap: wrap;
        gap: 0;
    }

    .hp-stat { min-width: 50%; }
    .hp-stat + .hp-stat::before { display: none; }

    .hp-float-badge, .hp-float-counter { display: none; }
}

/* ============================================================
   HERO MAIN IMAGE — UNIFIED LUXURY HIGH-RES FULL COVER STYLES
   ============================================================ */
.hp-hero__visual,
.pd-hero-image-v2 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 500px !important;
    min-height: 500px !important;
    margin: 0 auto !important;
}

.hp-hero__img-wrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 72px rgba(30, 59, 47, 0.22) !important;
    background: #ffffff !important;
}

.hp-hero__img-wrap img,
.hp-hero__img,
.pd-hero-img-main {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 28px !important;
}
