/* =========================================
   1. GLOBAL VARIABLES & FONTS - site.css file 
   ========================================= */
:root {
    --primary: #C49A6C; /* Gold */
    --primary-dark: #9E744F;
    --primary-light: #F9F3EB;
    --secondary: #0F172A; /* Dark Slate (Navbar/Footer) */
    --text-main: #334155;
    --bg-light: #F8FAFC;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
.navbar-logo {
    max-height: 12vh;
    width: auto;
}


main {
    flex: 1; /* يضمن بقاء الفوتر في الأسفل */
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* =========================================
   2. TOPBAR PREMIUM (Re-Designed)
   ========================================= */
.topbar-premium {
    background-color: var(--secondary);
    border-bottom: 1px solid rgba(196, 154, 108, 0.2);
    padding: 10px 0;
    font-size: 0.8rem;
}

.topbar-info-item {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    margin-left: 25px; /* مسافة بين العناصر */
}

    .topbar-info-item i {
        color: var(--primary);
        margin-left: 8px;
    }

.topbar-social a {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 15px;
    font-size: 0.9rem;
}

    .topbar-social a:hover {
        color: var(--primary);
        transform: translateY(-2px);
        display: inline-block;
    }

.dir-ltr {
    direction: ltr;
    display: inline-block;
}

/* =========================================
   3. NAVBAR PREMIUM - ENHANCED
   ========================================= */
.navbar-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    border-bottom: 1px solid rgba(196, 154, 108, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* حالة الـ Navbar عند السكرول */
    .navbar-premium.scrolled {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(196, 154, 108, 0.15);
    }

/* =========================================
   NAVBAR LINKS - MODERN & SMOOTH
   ========================================= */
.nav-link-custom {
    color: var(--text-main) !important;
    font-weight: 600;
    margin: 0 15px;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    /* خط الـ Hover السفلي - يظهر من اليمين لليسار */
    .nav-link-custom::before {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-light), var(--primary));
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .nav-link-custom:hover {
        color: var(--primary) !important;
    }

        .nav-link-custom:hover::before {
            width: 100%;
        }

/* ===== ACTIVE LINK - PREMIUM STYLE ===== */
.active-link {
    color: var(--primary) !important;
    font-weight: 700;
    position: relative;
}

    /* خلفية ناعمة للـ Active Link */
    .active-link::after {
        content: "";
        position: absolute;
        bottom: -2px;
        right: 50%;
        transform: translateX(50%);
        width: 60%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(196, 154, 108, 0.4);
        animation: activeLinkPulse 2s ease-in-out infinite;
    }

@keyframes activeLinkPulse {
    0%, 100% {
        opacity: 1;
        width: 60%;
    }

    50% {
        opacity: 0.7;
        width: 70%;
    }
}

/* تأثير إضافي: توهج خفيف للـ Active Link */
.active-link::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.08) 0%, transparent 70%);
    border-radius: 8px;
    z-index: -1;
    transition: all 0.3s ease;
}

.active-link:hover::before {
    background: radial-gradient(circle, rgba(196, 154, 108, 0.12) 0%, transparent 70%);
}

.brand-dot-down {
    color: #fff;
}

.brand-text-down {
    color: var(--primary) !important;
}

/* =========================================
   HX BRAND LOGO STYLE - ENHANCED
   ========================================= */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--secondary) !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    align-items: center;
}

.brand-text {
    transition: all 0.3s ease;
    display: inline-block;
}

/* النقطة الذهبية وتأثيرها */
.brand-dot {
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 0;
    margin-right: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

/* حركة عند تمرير الماوس (Hover Effect) */
.navbar-brand:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

    .navbar-brand:hover .brand-dot {
        transform: scale(1.3) rotate(360deg);
        color: var(--secondary);
    }

    .navbar-brand:hover .brand-text {
        letter-spacing: 0px;
    }

/* إضافة خط سفلي "Premium" يظهر عند الهوفر فقط */
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* =========================================
   BOOKING BUTTON - ENHANCED
   ========================================= */
.btn-gold {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .btn-gold::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-gold:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-gold:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(196, 154, 108, 0.5);
    }

    .btn-gold i {
        transition: transform 0.3s ease;
    }

    .btn-gold:hover i {
        transform: translateX(-5px);
    }

/* =========================================
   MOBILE NAVBAR IMPROVEMENTS
   ========================================= */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-link-custom {
        margin: 8px 0;
        padding: 12px 15px !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .nav-link-custom:hover {
            background: var(--primary-light);
            transform: translateX(-5px);
        }

    .active-link {
        background: linear-gradient(90deg, var(--primary-light), transparent);
        border-right: 3px solid var(--primary);
    }

        .active-link::after {
            display: none;
        }

    .btn-gold {
        width: 100%;
        margin-top: 15px;
    }
}

/* =========================================
   4. FOOTER PREMIUM
   ========================================= */
.footer-premium {
    background-color: var(--secondary);
    color: #cbd5e1;
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

    .footer-title::after {
        content: "";
        display: block;
        width: 35px;
        height: 3px;
        background: var(--primary);
        margin-top: 10px;
    }

.footer-links a {
    color: #94a3b8;
    display: block;
    margin-bottom: 12px;
}

.brand-dot {
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

/* =========================================
   5. SHARED UTILITIES
   ========================================= */
.footer-text-muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.6;
}

.newsletter-wrapper {
    max-width: 300px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
}

    .newsletter-form:focus-within {
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 0 15px rgba(196, 154, 108, 0.15);
    }

.newsletter-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.85rem;
    width: 100%;
    outline: none !important;
}

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

.newsletter-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

    .newsletter-btn:hover {
        background-color: #fff;
        color: var(--secondary);
        transform: translateX(-3px);
    }

    .newsletter-btn i {
        font-size: 0.75rem;
    }

/* ===== RIPPLE EFFECT STYLE ===== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 154, 108, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== CUSTOM NOTIFICATION ===== */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 14px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

    .custom-notification.show {
        transform: translateX(0);
    }

    .custom-notification.error {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

/* ===== PAGE TRANSITION ===== */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== IMPROVE MOBILE MENU ANIMATION ===== */
@media (max-width: 991px) {
    #mainNav {
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

        #mainNav.collapsing {
            transition: height 0.35s ease;
        }
}

/* ===== SMOOTH HOVER FOR ALL LINKS ===== */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADING SPINNER (Optional) ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

    .page-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(196, 154, 108, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RIPPLE EFFECT STYLE ===== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 154, 108, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== NAVBAR SCROLLED STATE ===== */
.navbar-premium.scrolled {
    padding: 8px 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(196, 154, 108, 0.15) !important;
}

/* ===== CUSTOM NOTIFICATION ===== */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 14px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

    .custom-notification.show {
        transform: translateX(0);
    }

    .custom-notification.error {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }