/* HGX Media — Header & Navigation */
/* ── ELEMENTOR CONFLICT RESETS — scoped to HGX nav ── */
#navbar,
#navbar * {
    box-sizing: border-box !important;
}

#navbar ul,
#navbar ul li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
}

#navbar button {
    background: none !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    color: inherit;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#navbar button:focus,
#navbar button:focus-visible,
#navbar button:hover {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

#navbar a,
#navbar a:visited,
#navbar a:hover,
#navbar a:focus {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* ── GLOBAL RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --blue: #1B6CF2;
    --blue-hover: #1560d9;
    --blue-bg: rgba(27, 108, 242, 0.04);
    --white: #070b15;
    --off-white: #0d1526;
    --text-primary: #ffffff;
    --text-secondary: #94a0b8;
    --text-muted: #5a6478;
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Inter', -apple-system, sans-serif;
    --playfair: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-w: 1200px;
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 16px;
    --r-xl: 20px;
}

/* ── GRAIN OVERLAY ── */
.hgx-grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* ── CURSOR ── */
.hgx-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .3s cubic-bezier(.23, 1, .32, 1), height .3s cubic-bezier(.23, 1, .32, 1), background .2s, opacity .3s;
    opacity: 0;
    mix-blend-mode: exclusion
}

.hgx-cursor.hgx-visible {
    opacity: 1
}

.hgx-cursor.hgx-expand {
    width: 48px;
    height: 48px;
    background: rgba(27, 108, 242, 0.12)
}

/* ── NAV — Blue Pill with glow ── */
nav#navbar {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 1000;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
    border-radius: 100px;
    background: var(--blue) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(27, 108, 242, 0.3), 0 0 80px rgba(27, 108, 242, 0.08)
}

nav#navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: .6;
    mix-blend-mode: overlay
}

nav#navbar.hgx-scrolled {
    left: max(24px, calc(50% - 360px));
    right: max(24px, calc(50% - 360px));
    padding: 8px 8px 8px 20px;
    box-shadow: 0 4px 40px rgba(27, 108, 242, 0.35), 0 0 100px rgba(27, 108, 242, 0.1)
}

nav#navbar.hgx-scrolled .hgx-nav-center {
    gap: 0
}

nav#navbar.hgx-scrolled .hgx-nav-item>a,
nav#navbar.hgx-scrolled .hgx-nav-trigger {
    padding: 8px 12px;
    font-size: 12px
}

nav#navbar.hgx-scrolled .hgx-nav-logo img {
    height: 18px
}

nav#navbar.hgx-scrolled .hgx-nav-cta>.hgx-btn-ghost {
    display: none
}

nav#navbar.hgx-scrolled .hgx-nav-cta .hgx-nav-btn-book {
    padding: 8px 20px;
    font-size: 12px
}

.hgx-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.hgx-nav-logo img {
    height: 22px;
    width: auto;
    filter: brightness(10)
}

.hgx-nav-center {
    display: flex !important;
    gap: 0;
    align-items: center;
    list-style: none !important
}

.hgx-nav-item {
    position: relative
}

.hgx-nav-item>a,
.hgx-nav-trigger {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font) !important;
    cursor: pointer;
    transition: color .2s;
    border-radius: 0 !important;
    outline: none !important;
}

.hgx-nav-item>a:hover,
.hgx-nav-trigger:hover {
    color: var(--text-primary) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hgx-nav-trigger:focus,
.hgx-nav-trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.hgx-nav-trigger-arrow {
    font-size: 8px;
    opacity: .5;
    transition: transform .3s
}

.hgx-nav-cta {
    display: flex;
    gap: 8px;
    align-items: center
}

.hgx-nav-cta>.hgx-btn-ghost {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important
}

.hgx-nav-cta>.hgx-btn-ghost:hover {
    border-color: var(--blue) !important;
    color: var(--text-primary) !important;
    background: rgba(27, 108, 242, 0.1) !important;
    box-shadow: 0 0 16px rgba(27, 108, 242, 0.25) !important
}

.hgx-nav-cta>.hgx-btn-ghost svg {
    fill: rgba(255, 255, 255, 0.9)
}

.hgx-nav-btn-book {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0a0f1c !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    font-family: var(--font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 16px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.06) !important
}

.hgx-nav-btn-book:hover {
    background: var(--blue) !important;
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(27, 108, 242, 0.5), 0 0 60px rgba(27, 108, 242, 0.18) !important;
    transform: translateY(-1px)
}

/* ── MEGA MENU ── */
.hgx-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    width: 680px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s cubic-bezier(.23, 1, .32, 1), visibility .22s, transform .22s cubic-bezier(.23, 1, .32, 1);
    z-index: 1001
}

.hgx-nav-item:hover .hgx-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0)
}

.hgx-nav-item:hover .hgx-nav-trigger-arrow {
    transform: rotate(180deg)
}

.hgx-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0
}

.hgx-mega-grid-single {
    grid-template-columns: 1fr
}

.hgx-mega-menu:has(.hgx-mega-grid-single) {
    width: 380px;
}

.hgx-mega-col {
    padding: 0 16px
}

.hgx-mega-col:first-child {
    padding-left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.07)
}

.hgx-mega-grid-single .hgx-mega-col:first-child {
    border-right: none
}

.hgx-mega-col:last-child {
    padding-right: 0
}

.hgx-mega-col-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa3b2;
    margin-bottom: 14px;
    font-weight: 600
}

.hgx-mega-link {
    display: block;
    padding: 8px 6px;
    text-decoration: none !important;
    transition: padding-left .2s cubic-bezier(.23, 1, .32, 1), background .15s;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 -6px;
}

.hgx-mega-link:hover {
    background: rgba(27, 108, 242, 0.05) !important;
    padding-left: 10px
}

.hgx-mega-link-name {
    font-size: 13px;
    font-weight: 600;
    color: #0a0f1c !important;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px
}

.hgx-mega-link-desc {
    font-size: 11px;
    color: #6b7a99 !important;
    font-weight: 400;
    line-height: 1.5
}

.hgx-mega-badge {
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #9aa3b2;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03)
}

.hgx-mega-badge.apply {
    border-color: rgba(27, 108, 242, 0.35);
    color: var(--blue);
    background: rgba(27, 108, 242, 0.06)
}

.hgx-mega-cta-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--blue) !important;
    border-radius: var(--r);
    color: #fff;
    position: relative;
    overflow: hidden
}

.hgx-mega-cta-box.hgx-grain-overlay::after {
    opacity: .3
}

.hgx-mega-cta-box p {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85) !important
}

.hgx-mega-cta-box a {
    font-size: 12px;
    font-weight: 600;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s
}

.hgx-mega-cta-box a:hover {
    gap: 8px
}

/* ── BUTTONS ── */
.hgx-btn-primary {
    background: linear-gradient(135deg, #2979ff 0%, #1B6CF2 50%, #1254d4 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 108, 242, 0.45), 0 0 60px rgba(27, 108, 242, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.hgx-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: btnShimmer 3.5s ease infinite;
    pointer-events: none
}

@keyframes btnShimmer {
    0% {
        left: -100%
    }

    40% {
        left: 130%
    }

    100% {
        left: 130%
    }
}

.hgx-btn-primary.hgx-grain-overlay::after {
    opacity: .25;
    border-radius: 100px
}

.hgx-btn-primary:hover {
    background: linear-gradient(135deg, #4494ff 0%, #287cf8 50%, #1866e4 100%) !important;
    box-shadow: 0 8px 36px rgba(27, 108, 242, 0.65), 0 0 90px rgba(27, 108, 242, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: translateZ(0) translateY(-2px) scale(1.015)
}

.hgx-btn-primary:active {
    transform: translateY(0) scale(0.97) !important;
    box-shadow: 0 2px 10px rgba(27, 108, 242, 0.3) !important;
    transition-duration: .1s !important
}

.hgx-btn-ghost {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.hgx-btn-ghost:hover {
    border-color: rgba(27, 108, 242, 0.5) !important;
    color: var(--blue) !important;
    background: linear-gradient(135deg, rgba(27, 108, 242, 0.08) 0%, rgba(27, 108, 242, 0.02) 100%) !important;
    box-shadow: 0 4px 16px rgba(27, 108, 242, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateZ(0) translateY(-2px)
}

.hgx-btn-ghost:active {
    transform: scale(0.97) !important;
    transition-duration: .1s !important
}

.hgx-nav-btn-book:active {
    transform: scale(0.97) !important;
    transition-duration: .1s !important
}

/* ── HAMBURGER ── */
.hgx-hamburger {
    display: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 8px !important;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    outline: none !important;
}

.hgx-hamburger:focus,
.hgx-hamburger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.hgx-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.8);
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    transform-origin: center
}

.hgx-hamburger.hgx-active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px)
}

.hgx-hamburger.hgx-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.hgx-hamburger.hgx-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px)
}

/* ── OFF-CANVAS BACKDROP ── */
.hgx-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 998;
    pointer-events: none;
    transition: background .35s cubic-bezier(.23, 1, .32, 1)
}

.hgx-mobile-menu-backdrop.hgx-open {
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px)
}

/* ── OFF-CANVAS PANEL ── */
.hgx-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: #ffffff !important;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.18)
}

.hgx-mobile-menu.hgx-open {
    transform: translateX(0)
}

.hgx-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    flex-shrink: 0
}

.hgx-mobile-menu-header-logo img {
    height: 18px;
    filter: none
}

.hgx-mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #0a0f1c !important;
    transition: background .15s, border-color .15s;
    line-height: 1;
    outline: none !important;
}

.hgx-mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.18) !important
}

.hgx-mobile-menu-body {
    flex: 1;
    padding: 24px 24px 0;
    overflow-y: auto
}

.hgx-mobile-menu-section {
    margin-bottom: 28px
}

.hgx-mobile-menu-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa3b2;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07)
}

.hgx-mobile-menu-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    min-height: 52px;
    font-size: 15px;
    font-weight: 500;
    color: #0a0f1c !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color .15s, padding-left .2s cubic-bezier(.23, 1, .32, 1)
}

.hgx-mobile-menu-link:last-child {
    border-bottom: none
}

.hgx-mobile-menu-link:hover {
    color: var(--blue) !important;
    padding-left: 4px
}

.hgx-mobile-menu-sub {
    font-size: 11px;
    color: #9aa3b2 !important;
    font-weight: 400;
    margin-top: 2px
}

.hgx-mobile-menu-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: #ffffff !important
}

.hgx-mobile-menu-cta .hgx-btn-primary,
.hgx-mobile-menu-cta .hgx-btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px
}

.hgx-mobile-menu-cta .hgx-btn-ghost {
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0a0f1c !important;
    background: transparent !important
}

.hgx-mobile-menu-cta .hgx-btn-ghost:hover {
    border-color: var(--blue) !important;
    color: var(--blue) !important;
    background: rgba(27, 108, 242, 0.04) !important
}

.hgx-mobile-menu-cta .hgx-btn-ghost svg {
    fill: #0a0f1c
}

.hgx-mobile-menu-cta .hgx-btn-ghost:hover svg {
    fill: var(--blue)
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), rgba(100, 160, 255, 0.8));
    z-index: 9998;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(27, 108, 242, 0.5);
    transition: width .05s linear
}

/* ── RIPPLE ── */
.hgx-ripple-host {
    overflow: hidden;
    position: relative
}

.hgx-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0);
    animation: rippleAnim .55s ease-out forwards;
    pointer-events: none;
    z-index: 10
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── FOCUS ── */
#navbar :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* ── TABLET ── */
@media(max-width:1100px) {
    .hgx-mega-menu {
        width: 560px
    }

    nav#navbar.hgx-scrolled {
        left: calc(50% - 280px);
        right: calc(50% - 280px)
    }
}

/* ── MOBILE ── */
@media(max-width:900px) {
    .hgx-cursor {
        display: none !important
    }

    nav#navbar {
        top: 8px;
        left: 12px;
        right: 12px;
        padding: 10px 16px
    }

    nav#navbar.hgx-scrolled {
        left: 12px;
        right: 12px;
        padding: 10px 16px
    }

    .hgx-nav-center {
        display: none !important
    }

    .hgx-nav-cta>.hgx-btn-ghost {
        display: none
    }

    .hgx-nav-btn-book {
        font-size: 12px;
        padding: 8px 18px !important
    }

    .hgx-hamburger {
        display: flex !important
    }
}

@media(max-width:480px) {
    nav#navbar {
        left: 8px;
        right: 8px;
        top: 6px
    }
}
