/*-----------------------------------------------------------------------------------
    Liquid Glass Header — Apple-inspired frosted / iridescent glassmorphism
    File:   assets/css/liquid-glass-header.css
-----------------------------------------------------------------------------------*/

:root {
  --lg-blur: 5px;
  --lg-blur-strong: 5px;
  --lg-bg: rgba(15, 15, 30, 0.29);
  --lg-border: rgba(255, 255, 255, 0.30);
  --lg-shimmer-1: rgba(255, 255, 255, 0.40);
  --lg-shimmer-2: rgba(180, 160, 255, 0.15);
  --lg-shimmer-3: rgba(130, 220, 255, 0.10);
  --lg-nav-color: rgba(255, 255, 255, 0.92);
  --lg-sticky-bg: rgba(15, 15, 30, 0.29);
  --lg-sticky-border: rgba(255, 255, 255, 0.18);
  --lg-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* HEADER ELEMENT — fixed full-width glass bar */
header.header.sticky-active,
header.header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── BLINK PREVENTION ───────────────────────────────────────────────────────
   .header-no-transition: added to <html> by inline script on page load,
   removed after first two rAF frames. Prevents any CSS transition from
   firing during initial render (the most common cause of header blink).
   ─────────────────────────────────────────────────────────────────────── */
.header-no-transition header.header .primary-header,
.header-no-transition header.header .primary-header *,
.header-no-transition header.header {
  transition: none !important;
  animation-play-state: paused !important;
}

html.header-scrolled-init header.header .primary-header {
  background: var(--lg-sticky-bg) !important;
  backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%) brightness(0.88) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%) brightness(0.88) !important;
  border-bottom-color: var(--lg-sticky-border) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.36), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}


/* PRIMARY-HEADER — frosted glass capsule */
header.header .primary-header {
  display: flex;
  align-items: center;
  background: var(--lg-bg) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.05) !important;
  border-bottom: 1px solid var(--lg-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(0, 0, 0, 0.06) inset !important;
  position: relative;
  /* overflow: hidden removed — it was clipping dropdown submenus */
  overflow: visible;
  /* Transition only scroll-related properties — NOT 'all' (prevents blink on first paint) */
  transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* GPU compositing — prevents repaint blink */
  will-change: backdrop-filter, background-color;
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 90px;
}

/* Iridescent top-edge highlight */
header.header .primary-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--lg-shimmer-1) 20%, var(--lg-shimmer-2) 50%, var(--lg-shimmer-3) 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}





/* PRIMARY-HEADER-INNER — transparent override */
header.header .primary-header .primary-header-inner {
  background-color: transparent !important;
  position: relative;
  z-index: 2;
}

/* ============================================================
   DESKTOP NAV LAYOUT (lg and up)
   ============================================================ */
@media (min-width: 992px) {

  /* Flex row for top-level nav */
  header.header .primary-header-inner .header-menu-wrap .mobile-menu-items {
    display: flex !important;
    align-items: center;
  }

  header.header .primary-header-inner .header-menu-wrap .mobile-menu-items>ul {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
  }

  /* Each top-level item */
  header.header .primary-header-inner .header-menu-wrap ul>li {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  /* Hide submenu by default */
  header.header .primary-header-inner .header-menu-wrap ul>li>ul {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease !important;
  }

  /* Show submenu on hover */
  header.header .primary-header-inner .header-menu-wrap ul>li:hover>ul {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0) !important;
  }

  /* Top-level link padding */
  header.header .primary-header-inner .header-menu-wrap ul>li>a {
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
  }

  header.header .primary-header-inner .header-menu-wrap ul>li>a:hover {
    background: rgba(243, 172, 40, 0.603);
  }

}

/* NAV LINKS */
header.header .primary-header-inner .header-menu-wrap ul li>a {
  color: var(--lg-nav-color) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  transition: var(--lg-transition);
}

header.header .primary-header-inner .header-menu-wrap ul li>a:hover,
header.header .primary-header-inner .header-menu-wrap ul li.active>a {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55), 0 1px 4px rgba(0, 0, 0, 0.2);
}

header.header .primary-header-inner .header-menu-wrap ul li a::before {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

/* DROPDOWN SUBMENU — dark glass panel */
header.header .primary-header-inner .header-menu-wrap ul li ul {
  background: rgba(51, 51, 51, 0.84) !important;
  backdrop-filter: blur(var(--lg-blur-strong)) saturate(180%) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur-strong)) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  overflow: hidden;
  padding: 6px 0 !important;
  /* Ensure dropdown appears above everything */
  position: absolute !important;
  z-index: 9999 !important;
  width: auto;
  top: 100% !important;
  left: 0 !important;
}

header.header .primary-header-inner .header-menu-wrap ul li ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

header.header .primary-header-inner .header-menu-wrap ul li ul li:last-child {
  border-bottom: none !important;
}

header.header .primary-header-inner .header-menu-wrap ul li ul li a {
  color: rgba(230, 230, 255, 0.90) !important;
  font-weight: 500 !important;
  transition: var(--lg-transition);
  white-space: nowrap !important;
  display: block !important;
  padding: 10px 20px !important;
}

header.header .primary-header-inner .header-menu-wrap ul li ul li:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

header.header .primary-header-inner .header-menu-wrap ul li ul li a:hover {
  color: #ffffff !important;
  padding-left: 22px !important;
}

/* LOGO */
header.header .primary-header-inner .header-logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.32));
  transition: filter 0.35s ease;
}

header.header .primary-header-inner .header-logo img:hover {
  filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.28));
}

/* HAMBURGER (mobile toggle) */
header.header .primary-header-inner .header-right .mobile-side-menu-toggle {
  color: rgba(255, 255, 255, 0.90) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* CTA BUTTON — glass pill */
header.header .primary-header-inner .header-right .pb-primary-btn.header-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20), 0 1px 0 rgba(255, 255, 255, 0.48) inset !important;
  border-radius: 50px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: var(--lg-transition);
  position: relative;
  overflow: hidden;
}

header.header .primary-header-inner .header-right .pb-primary-btn.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}

header.header .primary-header-inner .header-right .pb-primary-btn.header-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.60) inset !important;
  transform: translateY(-1px);
}

/* SCROLL / STICKY STATE — deeper frosted glass */
header.header.scrolled .primary-header,
header.header .primary-header.fixed {
  background: var(--lg-sticky-bg) !important;
  backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%) brightness(0.88) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%) brightness(0.88) !important;
  border-bottom-color: var(--lg-sticky-border) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.36), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

/* RESPONSIVE */
@media only screen and (max-width: 991px) {

  header.header,
  header.header.sticky-active {
    position: fixed !important;
  }

  header.header .primary-header {
    background: var(--lg-bg) !important;
    backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
}

@media only screen and (max-width: 767px) {
  header.header .primary-header-inner .header-right .pb-primary-btn.header-btn {
    display: none !important;
  }
}

/* ============================================================
   MOBILE SIDE MENU — glass drawer
   ============================================================ */
.mobile-side-menu {
  position: fixed;
  top: 0;
  width: 350px;
  height: 100vh;
  z-index: 99999;
  transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-side-menu.is-open {
  right: 0;
}

.mobile-side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-side-menu-overlay.is-open {
  opacity: 0.55;
  visibility: visible;
}

.mobile-side-menu .side-menu-content {
  height: auto;
  padding: 20px;
}

.mobile-side-menu .side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 20px;
}

.mobile-side-menu .side-menu-head img {
  max-width: 170px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.mobile-side-menu .mobile-side-menu-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.mobile-side-menu .mobile-side-menu-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mobile-side-menu .contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.mobile-side-menu .contact-list li {
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-side-menu .contact-list li a {
  color: rgba(253, 253, 253, 0.9);
  text-decoration: none;
}

.mobile-side-menu .contact-list li a:hover {
  color: #ffffff;
}

/* ============================================================
   MEANMENU — mobile accordion nav styles
   ============================================================ */
.mean-container .mean-bar {
  display: none;
  /* We use our own toggle button */
}

.mean-container a.meanmenu-reveal {
  display: none !important;
}

.mean-nav {
  background: transparent;
}

.mean-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mean-nav ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.mean-nav ul li a:hover {
  color: #ffffff !important;
}

.mean-nav ul li li a {
  padding: 10px 0 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(200, 190, 255, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mean-nav ul li li a:hover {
  color: #ffffff !important;
}

/* Expand/collapse caret button */
.mean-nav ul li a.mean-expand {
  width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 !important;
  position: absolute;
  right: 0;
  top: 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.80) !important;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.mean-nav ul li a.mean-expand:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.mean-nav ul li {
  position: relative;
  display: block;
  float: left;
  width: 100%;
}

.mean-nav ul li ul {
  display: none;
  padding: 0 0 0 10px;
}

.mean-nav ul li ul.mean-sub-open {
  display: block;
}

.side-menu-wrap {
  padding-top: 10px;
}

/* ============================================================
   MOBILE-ONLY EXTRA NAV
   Sits below meanmenu content; desktop nav is NOT affected.
   ============================================================ */
.mobile-extra-nav {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-extra-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-extra-nav-list li {
  display: block;
  position: relative;
}

.mobile-extra-nav-list li a {
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.2s ease;
}

.mobile-extra-nav-list li a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}

.mobile-extra-nav-list li a:hover i {
  color: #ffffff;
}

.mobile-extra-nav-list li.active>a {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.mobile-extra-nav-list li.active>a i {
  color: #b4a0ff;
}

.mobile-extra-nav-list li:last-child>a {
  border-bottom: none;
}

/* --- Submenu parent row --- */
.mobile-extra-nav-list li.men-has-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-extra-nav-list li.men-has-sub>a {
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Toggle caret button --- */
.men-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  align-self: center;
}

.men-sub-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.men-sub-toggle i {
  transition: transform 0.3s ease;
  pointer-events: none;
}

.men-sub-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* --- Submenu list (accordion slide) --- */
.men-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.men-submenu.is-open {
  max-height: 300px;
}

.men-submenu li a {
  display: block;
  padding: 10px 0 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.2s ease;
}

.men-submenu li a:hover {
  color: #ffffff !important;
  padding-left: 22px !important;
}

.men-submenu li:last-child a {
  border-bottom: none !important;
}

/* POPUP SEARCH */
#popup-search-box {
  background: rgba(8, 8, 24, 0.78) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
}

#popup-search-box #popup-search {
  background: transparent !important;
  color: #ffffff !important;
}

#popup-search-box #popup-search::placeholder {
  color: rgba(255, 255, 255, 0.50);
}

/* MOBILE SIDE MENU — dark glass drawer (glass bg inherited from section above) */
.mobile-side-menu .side-menu-content {
  background-color: var(--lg-bg);
  backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Global: prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}