/* Menu Home Page */

/* Hero Section */
.menuHeroSection {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.menuHeroOverlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.menuHeroContent {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.menuHeroTitle {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 35px;
    line-height: 1.2;
    animation: gentleScale 2.5s ease-in-out 1s infinite;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.menuHeroTitle:hover {
    color: var(--orange);
    transform: translateY(-3px);
}

.menuHeroSubtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
}

/* Social Icons at Bottom */
.menuHeroSocial {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(30px + env(safe-area-inset-bottom));
    display: flex;
    gap: 20px;
}
/* دعم قديم */
.menuHeroSocial {
    bottom: calc(12px + constant(safe-area-inset-bottom));
}

.socialIcon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.socialIcon:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-5px);
}

/* Navbar adjustments for menu-home */
.menuHomeNav {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
}

.menuHomeNav .nav-soft {
    color: #fff !important;
}

.menuHomeNav .nav-soft:hover {
    color: var(--orange) !important;
}

/* ============================= */
/* App Promo Modal (New Design)  */
/* ============================= */

.appPromoModal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

/* layout */
.appPromoInner {
    padding: 16px 12px;
}

.appPromoStores {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.storeBtn img {
    width: 140px;
    height: auto;
    object-fit: contain;
}

.appPromoSkip {
    margin-top: 20px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 14px;
}

/* ============================= */
/* Responsive                    */
/* ============================= */

.appPromoPhone {
    padding: 8px 8px 0;
}

.appPromoContent {
    padding: 6px 6px 20px;
}

.appPromoTitle {
    font-size: 32px;
}

.appPromoText {
    font-size: 16px;
    margin-bottom: 20px;
}

.storeBtn img {
    height: 44px;
}

.appPromoSkip {
    right: 18px;
    bottom: 14px;
    font-size: 18px;
}

@media (max-width: 575.98px) {
    .appPromoTitle {
        font-size: 26px;
    }

    .appPromoText {
        font-size: 16px;
        line-height: 1.8;
    }

    .appPromoStores {
        gap: 14px;
    }

    .storeBtn img {
        height: 44px;
    }
}

.modal.fade .modal-dialog {
    transform: translate(0, 0px) !important;
}

/* Mobile: يبقى Bottom Sheet عادي */
.menuOffcanvas {
    --bs-offcanvas-height: 60vh;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Desktop/Tablet: يصير Box في منتصف الشاشة مثل الصورة */
@media (min-width: 768px) {
    .menuOffcanvas.offcanvas-bottom {
        --bs-offcanvas-height: auto;
        /* نلغي ارتفاع البوتوم شيت */
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: calc(60% - 48px);
        height: auto;
        max-height: min(520px, calc(100vh - 120px));
        transform: translate(-50%, -50%);
        border-radius: 16px;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
        overflow: hidden;
    }

    /* Bootstrap يضيف transform خاص بالـ offcanvas أثناء الفتح */
    .menuOffcanvas.offcanvas-bottom.show,
    .menuOffcanvas.offcanvas-bottom.showing {
        transform: translate(-50%, -50%) !important;
    }

    /* Body سكرول داخل الصندوق */
    .menuOffcanvas .offcanvas-body {
        overflow: auto;
        max-height: calc(min(520px, 70vh) - 64px);
    }

    /* Backdrop أغمق شوي مثل مودال */
    .offcanvas-backdrop.show {
        opacity: 0.45;
    }
}

/* Bottom sheet */
.menuOffcanvas.offcanvas-bottom {
    height: auto;
    /* حسب المحتوى */
    max-height: 75vh;
    /* سقف أعلى */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
}

/* body قابل للتمرير إذا المحتوى طويل */
.menuOffcanvas .offcanvas-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 18px;
}

/* handle للسحب */
.sheetHandle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d8d8d8;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

.menuOffcanvas .offcanvas-header {
    position: relative;
    padding-top: 24px;
    /* مساحة للـ handle */
}
