/* ============================================================
   HEADER — Clariona v3b (Cobalt-Cyan)
   Double-decker: top-bar (fixed) + smart-sticky nav
   ============================================================ */

/* === TOP BAR === */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-bar-height);
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  z-index: 1100;
  display: flex;
  align-items: center;
}
.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.open  { background: var(--color-success); box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.status-dot.closed{ background: var(--color-steel); }

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-actions a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.top-bar-actions a:hover { color: var(--color-cyan); }
.top-bar-actions i { font-size: 0.75rem; }

.top-bar-region {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  display: flex; align-items: center; gap: 6px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lang-switcher a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 3px;
  transition: var(--transition);
}
.lang-switcher a.active,
.lang-switcher a:hover { color: var(--color-cyan); }
.lang-sep { color: rgba(255,255,255,0.25); }

/* === MAIN NAV === */
.site-header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.site-header.hidden   { transform: translateY(-100%); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* === LOGO === */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-rings {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.logo-wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* === NAV LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a,
.nav-links > li > .nav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: var(--font-main);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > .nav-trigger:hover {
  color: var(--color-cobalt);
  background: rgba(0,71,255,0.06);
}
.nav-chevron {
  font-size: 0.65rem;
  transition: transform var(--transition);
}
.nav-links > li:hover .nav-chevron { transform: rotate(180deg); }

/* === MEGA-MENU & DROPDOWNS === */
/* Bridge pseudo-element to close 14px gap between nav trigger and menu panel */
.nav-links > li::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0; right: 0;
  height: 14px;
}

.mega-menu, .dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  display: flex;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s 0.18s, transform 0.25s ease;
  min-width: 760px;
  z-index: 1001;
}

.mega-menu.mega-solutions {
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 28px;
}

.dropdown-panel { min-width: 220px; flex-direction: column; gap: 0; }

.nav-links > li:hover .mega-menu,
.nav-links > li:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s 0s, transform 0.25s ease;
  transform: translateX(-50%) translateY(0);
}

.mega-col { flex: 1; min-width: 200px; }
.mega-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-cobalt);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,71,255,0.15);
  display: flex; align-items: center; gap: 6px;
}
.mega-col ul, .dropdown-panel ul { list-style: none; }
.mega-col ul li a, .dropdown-panel ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.mega-col ul li a:hover, .dropdown-panel ul li a:hover {
  color: var(--color-cobalt);
  padding-left: 4px;
}

/* === CTA BUTTON IN NAV === */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--color-cobalt);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: none;
  flex-shrink: 0;
  overflow: hidden;          /* clips the shimmer inside the pill */
  position: relative;
}

/* Shimmer flash: diagonal white sweep, left → right, loops every 4s */
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.45) 50%,
    transparent 70%
  );
  animation: nav-cta-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nav-cta-shimmer {
  0%           { left: -75%; opacity: 1; }
  18%          { left: 125%; opacity: 1; }  /* ~1.1s sweep across button */
  18.01%, 100% { left: -75%; opacity: 0; } /* invisible for remaining ~4.9s */
}

.nav-cta:hover { background: var(--color-cobalt-hover); transform: translateY(-1px); }

/* === BODY OFFSET === */
body { padding-top: calc(var(--top-bar-height) + var(--header-height)); }

/* === MOBILE === */
.hamburger { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--color-navy); border-radius: 2px; transition: var(--transition); }
  .top-bar-actions .top-bar-email { display: none; }
  .top-bar-region { display: none; }
}
