/* ==========================================
   Shaadi Shenanigans - Custom Header Styles
   ========================================== */

:root {
    --ss-header-height-desktop: 105px;
    --ss-header-height-mobile: 85px;
    --ss-color-primary: #332920;
    --ss-color-gold: #c5a059;
    --ss-color-light: #efede7;
    --ss-nav-text-dark: #222222;
    --ss-nav-text-light: #ffffff;
}

/* Force Header Space & Wrappers to not block transparency */
#header-space {
    display: none !important;
    height: 0 !important;
}

/* Header Container - 100% Static Absolute Top Header (Completely Non-Sticky) */
body #header-outer,
body #header-outer.ss-header-outer,
body #header-outer.scrolled,
body #header-outer.detached,
body #header-outer.fixed,
body #header-outer.invisible {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    transform: none !important;
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transition: none !important;
}

body #header-outer #top {
    background: transparent !important;
    background-color: transparent !important;
    position: relative !important;
    width: 100% !important;
}

/* Scrolled State - Remains 100% Static, Transparent & Non-sticky */
body #header-outer.ss-header-outer.scrolled,
body #header-outer.ss-header-outer.detached,
body #header-outer.ss-header-outer.fixed {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
    position: absolute !important;
    top: 0 !important;
    transform: none !important;
}

/* Hide Video Sound Button Completely */
.video-sound-toggle,
#video-sound-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Inner Container Symmetrical Centering & Equal Spacing */
body #header-outer .ss-header-container,
.ss-header-container {
    position: relative !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: var(--ss-header-height-desktop) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Desktop Navigation & Actions Layout */
@media only screen and (min-width: 1000px) {
    .ss-header-logo-wrap {
        flex: 1 1 0% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 100% !important;
        z-index: 2 !important;
    }

    .ss-header-nav-wrap {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .ss-header-actions {
        flex: 1 1 0% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 20px !important;
        z-index: 2 !important;
    }

    .ss-header-enquire-btn {
        display: inline-block !important;
    }

    .ss-hamburger-btn {
        display: none !important;
    }
}

/* Desktop Only - Black Header Text for Contact & Media Pages */
@media only screen and (min-width: 1000px) {
    body #header-outer.ss-header-dark .ss-nav-link {
        color: #111111 !important;
        text-shadow: none !important;
    }

    body #header-outer.ss-header-dark .ss-nav-link::after {
        background: #111111 !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25) !important;
    }

    body #header-outer.ss-header-dark .ss-header-enquire-btn {
        color: #111111 !important;
        border-color: rgba(0, 0, 0, 0.45) !important;
    }

    body #header-outer.ss-header-dark .ss-header-enquire-btn:hover {
        background: #111111 !important;
        color: #ffffff !important;
        border-color: #111111 !important;
    }
}

/* Top Spacing (~100px clear gap below header) for Contact & Media Pages */
body.contact-page #ajax-content-wrap,
body.media-page #ajax-content-wrap,
body #header-outer.ss-header-dark+#ajax-content-wrap {
    padding-top: 190px !important;
}

@media only screen and (max-width: 999px) {

    body.contact-page #ajax-content-wrap,
    body.media-page #ajax-content-wrap,
    body #header-outer.ss-header-dark+#ajax-content-wrap {
        padding-top: 140px !important;
    }
}

.ss-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ss-header-logo:hover {
    opacity: 0.9;
}

.ss-header-logo img {
    height: 88px !important;
    max-height: 88px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

.ss-header-outer.scrolled .ss-header-logo img {
    height: 75px !important;
}

.ss-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ss-nav-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.ss-nav-link {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 8px 13px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ss-nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

/* Active State Underline Indicator - Pure White Expanding Center Bar */
.ss-nav-item.active .ss-nav-link {
    color: #ffffff;
    font-weight: 700;
    font-family: "meno-banner", serif !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.ss-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff !important;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, box-shadow 0.35s ease;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

.ss-nav-link:hover::after,
.ss-nav-item.active .ss-nav-link::after {
    width: 100%;
    opacity: 1;
}

.ss-nav-item:not(.active) .ss-nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

.ss-nav-item:not(.active) .ss-nav-link::after {
    width: 0;
    opacity: 0;
}

/* Header Actions / CTA Button */
.ss-header-enquire-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ss-header-enquire-btn:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* Mobile Hamburger Button Structure */
.ss-hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    outline: none;
    z-index: 1000001;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.ss-hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ss-hamburger-icon {
    width: 24px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ss-hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, background-color 0.3s ease;
}

/* Active Hamburger Icon Cross State & Z-index Fix */
.ss-mobile-menu-active body #header-outer.ss-header-outer {
    z-index: 10000005 !important;
}

.ss-mobile-menu-active .ss-hamburger-btn {
    z-index: 10000006 !important;
    position: relative !important;
}

.ss-mobile-menu-active .ss-hamburger-line {
    background-color: #ffffff !important;
}

/* Hero Section Overflow & Clip-path Fix */
@media only screen and (min-width: 691px) {
    #hero .mobile-video-image {
        display: none !important;
    }
}

.ss-mobile-menu-active .ss-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ss-mobile-menu-active .ss-hamburger-line:nth-child(2) {
    opacity: 0;
}

.ss-mobile-menu-active .ss-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Full-Screen Overlay Navigation */
.ss-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 15, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.ss-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dedicated Mobile Overlay Close Button (✕) */
.ss-mobile-menu-close-btn {
    position: absolute;
    top: 22px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000005;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ss-mobile-menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: rotate(90deg);
}

.ss-mobile-menu-nav {
    text-align: center;
    margin-bottom: 40px;
}

/* Bullet Points Removal on Mobile List */
.ss-mobile-nav-list,
.ss-mobile-nav-list li,
.ss-mobile-nav-item {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ss-mobile-nav-list li::before,
.ss-mobile-nav-list li::after,
.ss-mobile-nav-item::before,
.ss-mobile-nav-item::after {
    display: none !important;
    content: none !important;
}

.ss-mobile-nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.ss-mobile-nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.ss-mobile-menu-overlay.active .ss-mobile-nav-item:nth-child(6) {
    transition-delay: 0.35s;
}

.ss-mobile-nav-link {
    font-family: 'meno-banner', serif;
    font-size: 36px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block;
}

.ss-mobile-nav-link:hover,
.ss-mobile-nav-item.active .ss-mobile-nav-link {
    color: #ffffff;
    letter-spacing: 1px;
}

.ss-mobile-menu-footer {
    position: absolute;
    bottom: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ==========================================
   Responsive Breakpoints & Mobile Header Alignment
   ========================================== */

@media only screen and (max-width: 999px) {
    body #header-outer.ss-header-outer {
        padding: 6px 0 !important;
    }

    body #header-outer .ss-header-container,
    .ss-header-container {
        height: var(--ss-header-height-mobile) !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Left Logo Alignment */
    .ss-header-logo-wrap {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ss-header-logo img {
        height: 68px !important;
        max-height: 68px !important;
        width: auto !important;
    }

    /* Completely hide desktop navigation links & enquire button on mobile viewports */
    .ss-header-nav-wrap {
        display: none !important;
    }

    .ss-header-enquire-btn {
        display: none !important;
    }

    /* Right Hamburger Button Alignment */
    .ss-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ss-hamburger-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
        width: 44px !important;
        height: 44px !important;
    }
}

@media only screen and (max-width: 480px) {
    .ss-header-container {
        padding: 0 16px;
    }

    .ss-header-logo img {
        height: 58px !important;
        max-height: 58px !important;
    }

    .ss-mobile-nav-link {
        font-size: 30px;
    }
}

/* Media Page Heading Responsive Clamp */
.ss-media-heading-wrap {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ss-media-heading-wrap h1 {
    font-family: 'meno-banner', serif !important;
    font-size: clamp(28px, 5vw, 52px) !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    text-wrap: balance !important;
    overflow-wrap: break-word !important;
}

.ss-media-heading-wrap p {
    font-family: 'Manrope', sans-serif !important;
    font-size: clamp(12px, 2vw, 15px) !important;
    color: #666666 !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}