/* =========================================
   HEADER — TGI ONE  (v3 clean)
========================================= */

/* ---- Reset & Base ---- */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3,10,28,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s, border-color 0.3s;
}

#site-header.scrolled {
  background: rgba(3,10,28,0.97);
  border-bottom-color: rgba(21,114,255,0.2);
}

/* ---- Layout ---- */
.header-inner {
  height: var(--header-h, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* ---- Brand ---- */
.brand {
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1;
}

.logo span { color: #1572ff; }

.tag {
  font-size: 7px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 5px;
  color: #6a8ab0;
  text-transform: uppercase;
}

/* ---- Desktop Nav ---- */
.desktop-nav {
  display: flex;
  align-items: stretch;
  height: 76px;
  gap: 0;
  margin: 0 24px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: #fff;
  border-bottom-color: #1572ff;
}

.nav-arrow {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

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

/* ---- Dropdown ---- */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 280px;
  background: #04101e;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid #1572ff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 500;
  padding: 8px 0;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 20px;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-link:hover {
  background: rgba(21,114,255,0.1);
}

.dd-icon {
  color: #1572ff;
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.dropdown-link strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.dropdown-link em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #7a9bc2;
  margin-top: 2px;
}

/* ---- CTA Button ---- */
.btn-contact {
  flex-shrink: 0;
  height: 40px;
  padding: 0 22px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #1572ff;
  border-color: #1572ff;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.26s ease;
  transform-origin: center;
}

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

/* =========================================
   MOBILE NAV PANEL
========================================= */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100vh;
  background: #030c1e;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mobile-nav-close:hover { opacity: 1; }

.mobile-nav-body {
  flex: 1;
  padding: 8px 0;
}

/* Accordion */
.mob-accordion {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mob-acc-btn {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.mob-acc-btn:hover { color: #5aadff; }

.mob-acc-btn svg {
  transition: transform 0.24s ease;
  flex-shrink: 0;
}

.mob-accordion.is-open .mob-acc-btn svg {
  transform: rotate(180deg);
}

.mob-acc-panel {
  display: none;
  background: rgba(255,255,255,0.02);
  padding: 4px 0 10px;
}

.mob-accordion.is-open .mob-acc-panel { display: block; }

.mob-acc-panel a {
  display: block;
  padding: 10px 36px;
  font-size: 13px;
  color: #7faad6;
  text-decoration: none;
  transition: color 0.18s, padding-left 0.18s;
}

.mob-acc-panel a:hover {
  color: #fff;
  padding-left: 44px;
}

.mob-single-link {
  display: block;
  padding: 17px 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.mob-single-link:hover { color: #5aadff; }

.mob-cta-wrap {
  padding: 22px;
}

.mob-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: #1572ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
}

.mob-cta:hover { background: #0a52cc; }

/* Backdrop */
.mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}

.mob-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {
  .desktop-nav { margin: 0 12px; }
  .nav-link { padding: 0 11px; font-size: 10.5px; }
  .btn-contact { padding: 0 16px; font-size: 10px; }
}

@media (max-width: 900px) {
  .header-inner { height: var(--header-h-md, 66px); }
  .desktop-nav { display: none; }
  .btn-contact { display: none; }
  .hamburger { display: flex; }
}
