/* ================================================================
   GOLDAPP GLOBAL SITE HEADER & VIEWPORT STABILIZATION SYSTEM
   v20261009 - 100% Pro Rock-Solid Desktop & Mobile Navigation
================================================================ */

/* 1. Viewport & Scrollbar Stabilization (Zero Horizontal Layout Shift across pages) */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0 !important;
  padding: 0;
}

/* 2. Global Header Design Tokens */
:root {
  --ga-h-bg: #FFFFFF;
  --ga-h-text: #0B0F19;
  --ga-h-text-hover: #FE6F61;
  --ga-h-accent: #F43F5E;
  --ga-h-accent-hover: #00B2D2;
}

/* 3. Universal Box-Sizing Isolation for Header */
.ga-site-header,
.ga-site-header *,
.ga-site-header *::before,
.ga-site-header *::after {
  box-sizing: border-box !important;
}

/* 4. Rock-Solid Sticky Header (Zero Jitter, Zero Shift) */
.ga-site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 65px !important;
  z-index: 9999 !important;
  background-color: var(--ga-h-bg) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
  font-family: 'Manrope', 'Inter', system-ui, sans-serif !important;
}

/* 5. Fixed-Width Centered Header Container */
.ga-header-container {
  max-width: 1320px !important;
  width: 100% !important;
  height: 64px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

/* 6. Logo Branding */
.ga-header-logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.ga-header-logo img {
  height: 34px !important;
  width: auto !important;
  display: block !important;
}

/* 7. Desktop Navigation & Links */
.ga-desktop-nav {
  display: flex !important;
  align-items: center !important;
}

.ga-nav-list {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ga-nav-link {
  text-decoration: none !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ga-h-text) !important;
  letter-spacing: -0.01em !important;
  transition: color 0.2s ease, transform 0.15s ease !important;
  padding: 6px 2px !important;
  position: relative !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.ga-nav-link:hover {
  color: var(--ga-h-text-hover) !important;
}

/* Zero-Reflow Active Link: keeps exact font-weight 600 to prevent text reflow & horizontal jitter */
.ga-nav-link.ga-active {
  color: var(--ga-h-text-hover) !important;
  font-weight: 600 !important;
  text-shadow: 0 0 0.35px var(--ga-h-text-hover) !important;
}

.ga-nav-link.ga-active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: var(--ga-h-text-hover) !important;
  border-radius: 2px !important;
}

/* 8. Header CTA Button & Actions */
.ga-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-shrink: 0 !important;
}

.ga-header-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 18px !important;
  background-color: var(--ga-h-accent) !important;
  color: #FFFFFF !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  height: 38px !important;
}

.ga-header-cta:hover {
  background-color: var(--ga-h-accent-hover) !important;
  box-shadow: 0 6px 18px rgba(0, 178, 210, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* 8b. Language Switcher (Pill Segmented Control) */
.ga-lang-switch {
  display: inline-flex !important;
  align-items: center !important;
  background: #F1F5F9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 999px !important;
  padding: 3px !important;
  gap: 2px !important;
  box-sizing: border-box !important;
  height: 36px !important;
  user-select: none !important;
  transition: all 0.2s ease !important;
}

.ga-lang-switch:hover {
  border-color: rgba(15, 23, 42, 0.16) !important;
  background: #E2E8F0 !important;
}

.ga-lang-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  background: transparent !important;
  color: #64748B !important;
  font-family: 'Manrope', 'Inter', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  padding: 0 11px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  white-space: nowrap !important;
}

.ga-lang-btn:hover:not(.is-active) {
  color: #0F172A !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.ga-lang-btn.is-active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.ga-lang-btn:active {
  transform: scale(0.96) !important;
}

/* 9. Hamburger Toggle (Mobile / Tablet) */
.ga-hamburger {
  display: none;
  flex-direction: column !important;
  justify-content: space-around !important;
  width: 32px !important;
  height: 28px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 10001 !important;
}

.ga-hamburger span {
  width: 100% !important;
  height: 3px !important;
  background: var(--ga-h-text) !important;
  border-radius: 3px !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.ga-hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg) !important;
}
.ga-hamburger.is-open span:nth-child(2) {
  opacity: 0 !important;
}
.ga-hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg) !important;
}

/* 10. Mobile Menu Drawer */
.ga-mobile-menu {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
  padding: 20px 24px 28px !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12) !important;
  flex-direction: column !important;
  gap: 16px !important;
  z-index: 10000 !important;
  animation: gaFadeDown 0.25s ease-out !important;
}

@keyframes gaFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ga-mobile-menu.is-open {
  display: flex !important;
}

.ga-mobile-nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.ga-mobile-nav-list .ga-nav-link {
  font-size: 15.5px !important;
  padding: 8px 0 !important;
  display: block !important;
}

.ga-mobile-cta-wrap {
  margin-top: 10px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.ga-mobile-cta {
  display: block !important;
  text-align: center !important;
  padding: 12px 20px !important;
  background: var(--ga-h-accent) !important;
  color: #fff !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
}

/* 11. Unified Breakpoint at 1080px */
@media (max-width: 1080px) {
  .ga-desktop-nav { display: none !important; }
  .ga-header-cta { display: none !important; }
  .ga-hamburger { display: flex !important; }
  .ga-header-actions { gap: 12px !important; }
  .ga-lang-switch { height: 32px !important; padding: 2px !important; }
  .ga-lang-btn { height: 26px !important; padding: 0 9px !important; font-size: 11px !important; }
}
