/* =============================================================
   Header Styles — header.css
   Premium Floating Glass Header Implementation
   ============================================================= */

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---- Floating Wrapper (Positioning Container) ---- */
.main-header-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1800px;
    z-index: 1100;
    pointer-events: none;
    /* Allow clicks to pass through gaps if any */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-header-wrapper>* {
    pointer-events: auto;
    /* Re-enable clicks for the bars themselves */
}

/* ---- Top Bar (Solid Pillar) ---- */
.site-topbar {
    width: 100%;
    background: rgb(52 74 154);
    padding: 0;
    border-radius: 12px;
    margin-bottom: 12px;
    /* Spacing between the two pillars */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-box-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar-inner {
    /* background-color: transparent !important; */
    /* background: rgba(255, 255, 255, 0.04); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Social icons */
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ccd6f6;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.topbar-socials a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.topbar-socials svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Phone */
.topbar-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ccd6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar-phone:hover {
    color: #ffffff;
}

.topbar-phone svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ---- Main Nav Bar (Glass Pillar) ---- */
.site-header {
    /* display: none; */
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.site-header.scrolled {
    color: #000000;
}
.header-box-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 54px;
    width: auto;
    display: block;
}

/* Nav */
.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list>li {
    position: relative;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-list>li>a:hover,
.nav-list>li.current-menu-item>a {
    color: #0CAF49;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

/* Dropdown arrow */
.nav-list>li>a .nav-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform 0.2s;
}

.nav-list>li:hover>a .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #1e1e3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 2000;
}

.nav-list>li:hover>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #ccd6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown li a:hover {
    color: #0CAF49;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

/* CTA Button */
.header-cta {
    margin-left: auto;
    flex-shrink: 0;
}

.btn-enquire {
    display: inline-block;
    padding: 12px 28px;
    background: #1cb85a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(28, 184, 90, 0.3);
}

.btn-enquire:hover {
    background: #17a34f;
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* ---- Mobile Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 4px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10000;
    flex-direction: column;
    padding: 80px 24px 24px;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(8px);
}

.mobile-nav.is-open {
    display: flex;
}

/* Prevent layout shift when mobile nav is open */
body {
    scrollbar-gutter: stable;
    padding-top: 0;
}

body.no-scroll {
    overflow: hidden;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.mobile-nav-list a {
    display: block;
    padding: 14px 0;
    color: #ccd6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s;
}

.mobile-nav-list a:hover {
    color: #0CAF49;
    text-decoration: none;
}

.mobile-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ccd6f6;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .header-inner {
        gap: 20px;
    }

    .nav-list>li>a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {

    .site-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 8px 0;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .topbar-socials {
        gap: 10px;
    }

    .header-inner {
        min-height: 68px;
    }

    .site-logo img {
        height: 46px;
    }

    .mobile-nav {
        padding: 72px 20px 20px;
    }
}

@media (max-width: 540px) {
    .topbar-box-wrap {
        padding: 0 14px;
    }

    .topbar-inner {
        padding: 8px 0;
        flex-direction: row;
        gap: 0;
    }

    .topbar-socials {
        gap: 8px;
    }

    .topbar-socials svg {
        width: 13px;
        height: 13px;
    }

    .topbar-phone span {
        display: none;
    }

    .topbar-phone svg {
        width: 13px;
        height: 13px;
    }

    .header-box-wrap {
        padding: 0 14px;
    }

    .header-inner {
        min-height: 60px;
    }

    .site-logo img {
        height: 40px;
    }

    .hamburger span {
        width: 22px;
    }

    .mobile-nav {
        padding: 68px 16px 16px;
    }

    .mobile-nav-list a {
        padding: 12px 0;
        font-size: 0.98rem;
    }
}

/* ---- Responsive Glass Header ---- */
@media (max-width: 1200px) {
    .main-header-wrapper {
        width: 92%;
    }
}

@media (max-width: 900px) {
    .main-header-wrapper {
        width: 95%;
        top: 10px;
        border-radius: 12px;
    }
}

@media (max-width: 540px) {
    body {
        padding-top: 0 !important;
    }

    .main-header-wrapper {
        width: 100%;
        top: 0;
        border-radius: 0;
        /* position: relative; */
        transform: none;
        left: 0;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        /* background: #1a1a2e; */
        /* Solid background for mobile flow */
    }

    .site-topbar,
    .site-header {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}