/* ============================================================
   SITE HEADER  — sticky wrapper, utility bar, nav
   ============================================================ */

/* ── Sticky header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #5B2C6F;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* nav inherits header bg */
.site-header nav {
    background-color: transparent !important;
    padding: 10px 30px !important;
    position: relative !important;
    z-index: auto !important;
    box-shadow: none !important;
}

/* Hero needs no top compensation now the header is sticky above it */
.hero-lg-section { margin-top: 0 !important; }
.hero-content-left-wrap { padding-top: 80px !important; padding-bottom: 80px !important; }

/* ── Top utility bar ── */
.top-utility-bar {
    background-color: #3D1E4A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.top-utility-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.top-utility-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.top-utility-contact a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s;
}
.top-utility-contact a:hover { color: #FABB0E; }

.top-utility-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Social icons ── */
.social-links { display: flex; align-items: center; gap: 4px; }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.78rem;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.social-link:hover {
    background: #FABB0E;
    color: #5B2C6F !important;
    transform: translateY(-2px);
}

/* ── Theme toggle — nav bar pill ── */
.nav-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.nav-theme-toggle:hover {
    background: #FABB0E;
    border-color: #FABB0E;
    color: #3D1E4A;
    transform: rotate(20deg);
}
[data-theme="dark"] .nav-theme-toggle {
    background: rgba(250,187,14,0.15);
    border-color: #FABB0E;
    color: #FABB0E;
}

/* ── Right-side actions group (theme toggle + Book Now) ── */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Desktop nav links ── */
.site-header #desktop-nav .nav-item .nav-link {
    color: #fff !important;
}
.site-header #desktop-nav .nav-item .nav-link:hover {
    color: #FABB0E !important;
    text-decoration: underline 2px solid #FABB0E !important;
}

/* ── Desktop dropdown ── */
.site-header #desktop-nav .dropdown-menu {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.18);
    padding: 8px 0;
    min-width: 200px;
    margin-top: 8px;
}
.site-header #desktop-nav .dropdown-menu .dropdown-item {
    color: #5B2C6F;
    font-size: 0.95rem;
    padding: 9px 18px;
    font-weight: 500;
}
.site-header #desktop-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f5f0ff;
    color: #3D1E4A;
}

/* ── Book Now CTA ── */
.site-header .nav-link-button {
    background-color: #FABB0E !important;
    color: #3D1E4A !important;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.site-header .nav-link-button:hover {
    background-color: #e0a800 !important;
    transform: translateY(-1px);
}
.site-header .nav-btn-icon-round {
    background-color: #5B2C6F;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Site logo — PREVENT STRETCHING ── */
.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;           /* collapse extra line-height */
}

.site-logo {
    width: auto !important;   /* let SVG intrinsic width show */
    height: 42px !important;  /* fix the HEIGHT, let width scale naturally */
    max-width: 180px;         /* cap on very wide screens */
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.site-logo-dark  { display: none !important; }
.site-logo-light { display: block !important; }

[data-theme="dark"] .site-logo-light { display: none !important; }
[data-theme="dark"] .site-logo-dark  { display: block !important; }

/* ── Hamburger ── */
.navbar-toggler {
    background-color: #FABB0E !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 11px !important;
    line-height: 1;
    flex-shrink: 0;
}
.navbar-toggler i { color: #3D1E4A; font-size: 20px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(250,187,14,0.4) !important; }

/* ── Mobile nav collapsible ── */
@media (max-width: 991px) {
    #collapsibleNavbar {
        position: absolute !important;
        top: 100%;
        left: 0;
        width: 100% !important;
        height: auto !important;
        max-height: 80vh;
        overflow-y: auto;
        background: #5B2C6F !important;
        transform: none !important;
        transition: none !important;
        padding: 8px 0 16px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 999;
    }

    #collapsibleNavbar .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    #collapsibleNavbar .nav-item {
        padding: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    #collapsibleNavbar .nav-link {
        color: #fff !important;
        font-size: 1rem !important;
        padding: 14px 20px !important;
        display: block;
    }

    #collapsibleNavbar .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: #FABB0E !important;
    }

    /* Mobile theme toggle row */
    .mobile-theme-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 4px;
    }

    .top-utility-contact { display: none; }
    .top-utility-inner { justify-content: center; }

    .site-header nav { padding: 10px 16px !important; }
    .site-logo { height: 36px !important; }

    /* Hide desktop nav on mobile */
    #desktop-nav { display: none !important; }
    #mobile-nav  { display: flex !important; }
}

/* ── On desktop hide mobile nav ── */
@media (min-width: 992px) {
    #mobile-nav  { display: none !important; }
    #desktop-nav { display: flex !important; align-items: center; width: 100%; gap: 0; }

    #desktop-nav .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        flex: 1;
        gap: 0;
        margin: 0 auto;
    }
}

/* ── Dark mode header adjustments ── */
[data-theme="dark"] .site-header {
    background-color: #2a1a33;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
[data-theme="dark"] .top-utility-bar { background-color: #1a0f22; }

[data-theme="dark"] .site-header #desktop-nav .dropdown-menu {
    background-color: #2a1a33;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .site-header #desktop-nav .dropdown-menu .dropdown-item { color: #d4b3e3; }
[data-theme="dark"] .site-header #desktop-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.06);
    color: #FABB0E;
}
[data-theme="dark"] #collapsibleNavbar { background: #2a1a33 !important; }

/* ============================================================
   PRELOADER
   ============================================================ */
#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #3D1E4A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.preloader-braid {
    animation: preloaderPulse 1.2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 18px rgba(250, 187, 14, 0.5));
}

@keyframes preloaderPulse {
    from { transform: scale(0.92); filter: drop-shadow(0 0 10px rgba(250,187,14,0.3)); }
    to   { transform: scale(1.08); filter: drop-shadow(0 0 26px rgba(250,187,14,0.7)); }
}

.preloader-text {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FABB0E !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
}

.preloader-bar {
    width: 140px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: #FABB0E;
    border-radius: 100px;
    animation: preloaderBar 1.4s ease-in-out forwards;
}

@keyframes preloaderBar {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}
