/* Explain: Styling for main page layout, hero banner, and responsive adjustments. */
.page-main {
    min-height: 60vh;
    padding-bottom: 1rem;
}

.container-main {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 768px) {
    .container-main { padding-inline: 1.5rem; }
}

.section {
    padding-block: 3.5rem;
}

@media (min-width: 768px) {
    .section { padding-block: 4.5rem; }
}

/* Ambient accents */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    background:
        radial-gradient(900px 380px at 92% -12%, rgba(212, 175, 55, 0.14), transparent 62%),
        radial-gradient(760px 420px at 4% 112%, rgba(36, 54, 94, 0.35), transparent 62%);
}

.band-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), #101a2e 45%, rgba(36, 54, 94, 0.35));
    border: 1px solid var(--border-soft);
}

.divider-soft {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--border-soft), transparent);
}

/* ---------- Banner (hero) ---------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding-block: 3.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1);
    opacity: 0.92;
    pointer-events: none;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(11, 18, 32, 0.2) 0%, rgba(11, 18, 32, 0.55) 58%, rgba(11, 18, 32, 0.9) 100%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.3), rgba(11, 18, 32, 0.85));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    max-width: 720px;
}

.hero-title {
    margin: 0;
    font-weight: 900;
    line-height: 1.25;
    font-size: clamp(1.85rem, 6vw, 3.4rem);
}

.hero-title-line {
    display: block;
    margin-top: 0.6rem;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.4;
    font-size: clamp(1.1rem, 3.4vw, 1.7rem);
}

.hero-sub {
    margin: 0;
    max-width: 620px;
    font-size: 1.02rem;
    line-height: 1.95;
    color: var(--text-muted);
}

.hero-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.hero-stats {
    width: 100%;
    max-width: 560px;
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.95rem 0.6rem;
    border-radius: var(--radius-md);
    background: rgba(16, 26, 46, 0.66);
    border: 1px solid var(--border-soft);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-stat:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(22, 33, 62, 0.72);
}

.hero-stat i {
    color: var(--primary-color);
    font-size: 1rem;
}

.hero-stars {
    display: inline-flex;
    gap: 0.12rem;
}

.hero-stars i {
    font-size: 0.78rem;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .hero-banner { min-height: 86vh; padding-block: 5rem; }
}

@media (max-width: 767px) {
    .hero-inner { gap: 1rem; }

    /* تعتيم أقوى خلف النص على الجوال لتحسين قراءة العناوين */
    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.74) 45%, rgba(11, 18, 32, 0.94) 100%);
    }

    /* تصغير تدريجي لطيف للعنوان الرئيسي على الشاشات الصغيرة */
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
        line-height: 1.35;
    }

    .hero-title-line {
        margin-top: 0.5rem;
        font-size: clamp(1rem, 4.8vw, 1.35rem);
        line-height: 1.45;
    }

    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    /* أزرار الطلب والتصفح بعرض كامل لسهولة اللمس */
    .hero-actions {
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 0.15rem;
    }

    .hero-actions .btn-order,
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    /* بطاقات الإحصائيات أصغر وأكثر راحة للقراءة */
    .hero-stats {
        gap: 0.5rem;
        margin-top: 0.4rem;
    }

    .hero-stat {
        padding: 0.7rem 0.4rem;
        gap: 0.2rem;
    }

    .hero-stat i { font-size: 0.85rem; }
    .hero-stat-value { font-size: 0.92rem; }
    .hero-stat-label { font-size: 0.66rem; }
}