/* Modern Fixed Layout (Desktop: Fixed / Mobile: Scroll) */

/* 1. الحاوية الرئيسية */
.hero-main-gradient {
    height: 100vh;
    /* للديسك توب ثابت */
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* إصلاح النافبار: ابدأ من الأعلى */
    overflow: hidden;
    /* للدي يسكتوب */
    position: relative;
}

/* 2. النافبار (أول عنصر) سيأخذ مكانه الطبيعي في الأعلى */

/* 3. الهيرو سكشن (يأخذ باقي المساحة) */
.hero-section {
    flex: 1;
    /* تمدد لملء الفراغ بين النافبار والفوتر/التموج */
    display: flex;
    align-items: center;
    /* توسيط المحتوى رأسياً للديسك توب */
    width: 100%;
    /* z-index: 5; <-- تم الحذف للسماح بترتيب الطبقات الداخلية */
    position: relative;
    /* ضروري عشان الصورة */
}

/* ترتيب الطبقات: النص > التموج > الصورة */

.hero-content {
    position: relative;
    z-index: 10;
    /* النص في المقدمة */
}

/* ⚠️ تحديد حجم الصورة للديسك توب عشان متخرجش برا */
.hero-image {
    position: relative;
    z-index: 1;
    /* الصورة في الخلفية */
}

.hero-image img {
    max-height: 65vh !important;
    /* لا تتجاوز 65% من الشاشة */
    width: auto;
    object-fit: contain;
    position: relative;
}

/* 4. التموج */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 22vh;
    /* تموج كبير للديسك توب */
    z-index: 5;
    /* التموج فوق الصورة (5 > 1) */
    pointer-events: none;
    /* عشان ميعطلش الكليك */
}

.hero-wave svg {
    height: 100%;
    width: 100%;
}

/* --- إصلاح الموبايل (Mobile Reset) --- */
@media (max-width: 992px) {
    .hero-main-gradient {
        height: auto !important;
        /* إلغاء الارتفاع الثابت */
        min-height: 100vh;
        /* ضمان تغطية الشاشة */
        overflow: visible !important;
        /* السماح بالسكرول */
        max-height: none !important;
        padding-bottom: 0;
    }

    .hero-section {
        flex: 0 0 auto;
        /* إلغاء التمدد الإجباري */
        padding-top: 2rem;
        padding-bottom: 120px;
        /* مسافة كبيرة للصورة والتموج */
        display: block;
        /* ترتيب البلوكات عادي */
    }

    /* إصلاح: استهداف كونتينر الهيرو فقط وليس النافبار */
    .hero-section .container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        margin-bottom: 2rem;
        z-index: 10;
        position: relative;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        /* الصورة هي آخر حاجة */
        position: relative;
        z-index: 2;
    }

    .hero-image img {
        max-height: 45vh !important;
        /* ارتفاع آمن للموبايل */
        width: auto;
        max-width: 90%;
        /* عشان متبقاش عريضة اوي */
    }

    .hero-wave {
        height: 60px !important;
        /* تموج صغير للموبايل */
        bottom: -1px;
    }
}