/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.top-bar {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 9px 20px;
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.top-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.top-bar i { color: var(--secondary-color); font-size: 13px; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* backdrop-filter intentionally NOT applied directly on .header — filter/
       backdrop-filter on an ancestor creates a new containing block for any
       position:fixed descendant, which was trapping .nav-menu inside this
       76px bar instead of fixing it to the full viewport. Applied via ::before
       instead so the frosted-glass look is preserved without that side effect. */
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.12);
    transition: box-shadow 0.3s ease;
}
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar { padding: 0; }

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 2rem;
}

/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ══════════════════════════════════════
   NAV MENU
══════════════════════════════════════ */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 38px;
    margin: 0;
    padding: 0;
}
.nav-menu > li { position: relative; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--primary-color); }
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after { width: 100%; }

/* ══════════════════════════════════════
   DROPDOWN TRIGGER
══════════════════════════════════════ */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.25s ease;
    white-space: nowrap;
    user-select: none;
}
.nav-dropdown-trigger .drop-arrow {
    font-size: 15px;
    transition: transform 0.3s ease;
    line-height: 1;
}
.nav-menu > li.has-dropdown:hover .nav-dropdown-trigger,
.nav-menu > li.has-dropdown.open .nav-dropdown-trigger { color: var(--primary-color); }
.nav-menu > li.has-dropdown:hover .drop-arrow,
.nav-menu > li.has-dropdown.open .drop-arrow { transform: rotate(180deg); }

/* ══════════════════════════════════════
   DROPDOWN MENU
══════════════════════════════════════ */
.dropdown {
    list-style: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}
.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 11px; height: 11px;
    background: var(--white);
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.15);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.15);
}
.nav-menu > li.has-dropdown:hover .dropdown,
.nav-menu > li.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown li { list-style: none; }
.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.07);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown a i { font-size: 16px; color: var(--primary-color); flex-shrink: 0; }
.dropdown a:hover { background: rgba(var(--primary-color-rgb), 0.06); color: var(--primary-color); padding-left: 26px; }
.dropdown a::after { display: none !important; }

/* ══════════════════════════════════════
   CLOSE BUTTON — hidden on desktop
══════════════════════════════════════ */
.nav-close-item { display: none; }

.nav-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 0 1rem 0;
    transition: color 0.2s;
}
.nav-close-btn:hover { color: var(--primary-color); }

/* ══════════════════════════════════════
   CTA BUTTON
══════════════════════════════════════ */
.nav-cta {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
}
@media (max-width: 968px) {
    .nav-cta { display: none !important; }
}

.btn-enquire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    padding: 10px 22px;
    background-color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(var(--primary-color-rgb), 0.25);
}
.btn-enquire i { font-size: 14px; }
.btn-enquire:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ══════════════════════════════════════
   HAMBURGER
══════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 1px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.35s ease;
}
.hamburger span:nth-child(1) { width: 26px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 22px; }

/* ══════════════════════════════════════
   OVERLAY
══════════════════════════════════════ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.4);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════
   MOBILE ≤ 968px
══════════════════════════════════════ */
@media (max-width: 968px) {
    .hamburger       { display: flex; }
    .nav-cta         { display: none; }
    .nav-close-item  { display: block; width: 100%; border-bottom: none !important; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 1.5rem 2rem 2.5rem;
        z-index: 999;
        transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .nav-menu.open { right: 0; }
    .nav-menu li { width: 100%; }

    .nav-menu > li > a,
    .nav-dropdown-trigger {
        display: flex;
        align-items: center;
        padding: 18px 0;
        font-size: 15px;
        letter-spacing: 2.5px;
        color: var(--text-dark);
        border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.08);
    }
    .nav-menu > li > a::after { display: none; }
    .nav-menu > li > a:hover,
    .nav-dropdown-trigger:hover { color: var(--primary-color); }

    /* Mobile dropdown — accordion */
    .dropdown {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(var(--primary-color-rgb), 0.04);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .dropdown::before { display: none; }
    .nav-menu > li.has-dropdown.open .dropdown { max-height: 300px; }

    .dropdown a {
        padding: 11px 12px 11px 20px;
        font-size: 10.5px;
        border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.06);
    }
    .dropdown a:hover { padding-left: 28px; }

    .nav-menu li.mobile-cta {
        margin-top: 2rem;
        border-bottom: none;
    }
    .nav-menu li.mobile-cta .btn-enquire {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }
}

@media (max-width: 480px) {
    .navbar .container { height: 64px; }
    .nav-logo img { height: 42px; }
}