/* Corporate navigation component styles, isolated from legacy page layout rules. */
/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 42px; width: auto; }
.header-logo .logo-text { color: var(--light); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; }

/* Desktop nav */
.header-nav { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.header-nav a {
  color: rgba(255,255,255,0.78); font-size: 14px; padding: 8px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.header-nav a:hover, .header-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.1); }
.header-nav a.active { color: #fff; }

/* Language switcher */
.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.lang-switcher a {
  color: rgba(255,255,255,0.6); padding: 5px 9px; border-radius: 5px;
  font-weight: 500; transition: all 0.2s;
}
.lang-switcher a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switcher a.active { color: #fff; background: rgba(255,255,255,0.15); font-weight: 700; }
.lang-switcher .sep { color: rgba(255,255,255,0.25); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-cta-header {
  background: var(--medium); color: #fff !important; padding: 8px 16px;
  border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s;
}
.btn-cta-header:hover { background: #1a7a8e !important; color: #fff !important; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: #fff; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 600px) { .nav-right .lang-switcher { display: none; } }

/* Mobile nav panel */
.site-header + .mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--ink); z-index: 300;
  flex-direction: column; padding: 20px 24px; overflow-y: auto;
}
.site-header + .mobile-nav.open { display: flex; }
.site-header + .mobile-nav .mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.site-header + .mobile-nav .mobile-nav-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.site-header + .mobile-nav .mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.site-header + .mobile-nav .mobile-nav-links a {
  color: rgba(255,255,255,0.85); font-size: 17px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s;
}
.site-header + .mobile-nav .mobile-nav-links a:hover { color: var(--light); }
.site-header + .mobile-nav .mobile-nav-links .section-label { color: var(--light); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 20px 0 8px; }
.site-header + .mobile-nav .mobile-nav-cta { margin-top: 24px; }
.mobile-lang { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-lang a { color: rgba(255,255,255,0.6); font-size: 15px; font-weight: 600; }
.mobile-lang a.active { color: #fff; }

/* ── Mega menu ────────────────────────────────────────────────── */
.has-mega { position: relative; }
.has-mega > a, .has-mega > button {
  background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.78); font-size: 14px; padding: 8px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap; font-family: inherit;
}
.has-mega > button:hover, .has-mega:hover > button { color: #fff; background: rgba(255,255,255,0.1); }
.has-mega .chevron { width: 14px; height: 14px; transition: transform 0.2s; }
.has-mega:hover .chevron { transform: rotate(180deg); }
.mega-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); width: 720px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(10,47,57,0.18);
  padding: 28px 28px 20px; z-index: 400;
  border: 1px solid var(--line);
}
.has-mega:hover .mega-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mega-cat-label {
  font-size: 11px; font-weight: 700; color: var(--warm); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-links a {
  color: var(--ink); font-size: 14px; padding: 7px 10px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mega-links a:hover { background: var(--palest); color: var(--primary); }
.mega-all-link {
  grid-column: 1 / -1; display: block; text-align: center; padding: 12px;
  border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px;
  font-weight: 600; color: var(--primary);
}
.mega-all-link:hover { color: var(--medium); }


/* EN landing-page header parity with the /en/ homepage master. */
.site-header .header-inner,
.main-nav .nav-inner {
  box-sizing: border-box !important;
  min-height: 63px !important;
  height: 63px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-header {
  box-sizing: border-box !important;
  min-height: 63px !important;
  height: 63px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-header .header-logo img,
.main-nav .logo-img {
  width: auto !important;
  height: 42px !important;
}

@media (min-width: 481px) and (max-width: 1080px) {
  .site-header,
  .site-header .header-inner,
  .main-nav,
  .main-nav .nav-inner {
    min-height: 69px !important;
    height: 69px !important;
  }
  .site-header .header-logo img,
  .main-nav .logo-img { height: 48px !important; }
}

@media (min-width: 1081px) {
  .site-header,
  .site-header .header-inner,
  .main-nav,
  .main-nav .nav-inner {
    min-height: 101px !important;
    height: 101px !important;
  }
  .site-header .header-logo img,
  .main-nav .logo-img { height: 68px !important; }
}

/* Keep the existing light locale labels legible on light and dark headers. */
.site-header .lang-switcher {
  background: #0A2F39;
  border-radius: 5px;
}
.site-header .lang-switcher a { color: #DDE8EB; }
.site-header .lang-switcher a.active,
.site-header .lang-switcher a:hover,
.site-header .lang-switcher a:focus-visible { color: #fff; }

.site-header:has(.mobile-menu-btn) .header-logo img { max-width: 160px; object-fit: contain; }
.has-mega:focus-within .mega-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.has-mega::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 14px; }
@media (max-width: 900px) {
  .site-header:has(.mobile-menu-btn) .header-nav { display: none !important; }
  .site-header:has(.mobile-menu-btn) .mobile-menu-btn { display: flex; flex-shrink: 0; }
}
@media (max-width: 600px) {
  .site-header:has(.mobile-menu-btn) .nav-right .lang-switcher { display: none; }
  .site-header:has(.mobile-menu-btn) .header-logo { min-width: 0; }
}

/* Small nav dropdown for Knowledge Center */
.header-nav-dropdown { position: relative; }
.header-nav-dropdown > summary {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.78); font-size: 14px; padding: 8px 12px; border-radius: 6px;
  list-style: none; cursor: pointer;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.header-nav-dropdown > summary::-webkit-details-marker { display: none; }
.header-nav-dropdown > summary::after { content: "▾"; margin-left: 5px; font-size: 10px; }
.header-nav-dropdown > summary:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header-nav-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 32px rgba(10,47,57,0.18); border: 1px solid #dde8eb;
  padding: 8px; z-index: 400; flex-direction: column;
}
.header-nav-dropdown[open] .header-nav-dropdown-panel { display: flex; }
.header-nav-dropdown-panel a {
  color: #0d5468; font-size: 14px; padding: 9px 14px; border-radius: 6px;
  transition: background 0.15s;
}
.header-nav-dropdown-panel a:hover { background: #eef7f8; color: #0a2f39; }
