/* Shared corporate navigation for the public site and customer portal. */
.site-header.company-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  box-shadow: 0 5px 24px #00000012;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.company-header-inner { position: relative; display: flex; align-items: center; gap: 32px; min-height: 92px; width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.company-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--accent); text-decoration: none; }
.company-brand:hover { color: var(--ink); }
.company-brand-icon { display: block; flex: 0 0 42px; width: 42px; height: 42px; }
.company-brand-text { display: grid; gap: 5px; }
.company-brand-text strong { color: var(--accent); font-size: 24px; font-weight: 680; letter-spacing: .055em; line-height: 1; }
.company-brand-text > span { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .085em; line-height: 1.35; text-transform: uppercase; }
.header-desktop { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 30px; }
.header-primary { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto; }
.header-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.header-link:hover, .header-link[aria-current="page"], .header-link.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
.header-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-link svg { width: 14px; height: 14px; color: var(--muted); transition: transform .18s ease; }
.header-actions { display: flex; align-items: center; gap: 17px; flex: 0 0 auto; padding-left: 25px; border-left: 1px solid var(--line); }
.header-button, .header-client-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.header-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--surface); cursor: pointer; }
.header-button:hover { color: var(--ink); border-color: var(--line); background: var(--surface-alt); }
.header-button svg, .header-client-link svg { width: 16px; height: 16px; }
.header-button--primary { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.header-button--primary:hover { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.header-button--quiet { min-height: 38px; padding: 8px 13px; background: transparent; color: var(--muted); border-color: var(--line); }
.header-register-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-register-link:hover { color: var(--accent); }
.header-account-context { color: var(--muted); font-size: 11px; white-space: nowrap; }
.header-logout { display: inline-flex; margin: 0; }
.header-solutions { position: static; }
.header-solutions > summary { list-style: none; cursor: pointer; }
.header-solutions > summary::-webkit-details-marker { display: none; }
.header-solutions[open] > summary { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.header-solutions[open] > summary svg { transform: rotate(180deg); }
.header-solutions:not([open]) > .header-solutions-panel { display: none; }
.header-solutions-panel { position: absolute; top: calc(100% - 1px); left: 50%; width: min(730px, 100%); max-height: calc(100dvh - 106px); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--surface); box-shadow: 0 26px 60px #0008; }
.header-solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px 26px 22px; }
.header-solutions-group + .header-solutions-group { padding-left: 27px; border-left: 1px solid var(--line); }
.header-group-label { margin: 0 0 13px; padding-left: 10px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.header-solutions-group ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.header-service-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.header-service-link:hover, .header-service-link[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.header-service-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 34px; color: var(--accent); }
.header-service-icon svg { width: 19px; height: 19px; }
.header-service-link strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.4; }
.header-service-link small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.header-all-services { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 14px 36px; border-top: 1px solid var(--line); color: var(--accent); background: color-mix(in srgb, var(--ink) 2%, transparent); font-size: 12px; font-weight: 500; text-decoration: none; }
.header-all-services:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 3%, transparent); }
.header-all-services svg { width: 17px; height: 17px; }
.header-mobile { display: none; margin-left: auto; }
.header-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--surface); list-style: none; cursor: pointer; font-size: 12px; font-weight: 550; }
.header-mobile-toggle::-webkit-details-marker { display: none; }
.header-close-icon { display: none; }
.header-mobile[open] .header-open-icon { display: none; }
.header-mobile[open] .header-close-icon { display: block; }
.header-mobile:not([open]) > .header-mobile-panel { display: none; }
.header-mobile-panel { position: absolute; top: calc(100% - 1px); right: 0; left: 0; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 20px; border: 1px solid var(--line); border-radius: 0 0 13px 13px; background: var(--page); box-shadow: 0 25px 55px #0008; }
.header-mobile-nav { display: grid; gap: 5px; }
.header-mobile-nav > .header-link, .header-mobile-nav .header-solutions > summary { display: flex; justify-content: space-between; padding: 13px 12px; font-size: 15px; }
.header-mobile-nav .header-solutions-panel { position: static; width: 100%; max-width: none; max-height: none; overflow: visible; transform: none; border: 0; border-radius: 9px; box-shadow: none; background: var(--surface); }
.header-mobile-nav .header-solutions-grid { gap: 20px; padding: 18px 10px; }
.header-mobile-nav .header-solutions-group + .header-solutions-group { padding-left: 19px; }
.header-mobile-nav .header-service-link { min-height: 48px; }
.header-mobile-nav .header-all-services { min-height: 48px; padding: 14px 20px; }
.header-mobile-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 20px 12px 4px; border-top: 1px solid var(--line); }
.header-mobile-actions .header-button { min-height: 46px; }
.header-menu-open { overflow: hidden; }
.marketing-page .homepage section[id], #main-content { scroll-margin-top: 115px; }

@media (max-width: 1240px) {
  .company-header-inner { min-height: 80px; width: calc(100% - 40px); gap: 18px; }
  .header-desktop { display: none; }
  .header-mobile { display: block; }
  .company-brand-text strong { font-size: 23px; }
  .company-brand-text > span { font-size: 8px; }
}
@media (max-width: 620px) {
  .company-header-inner { min-height: 74px; width: calc(100% - 32px); }
  .company-brand-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .company-brand { gap: 9px; }
  .company-brand-text strong { font-size: 22px; }
  .company-brand-text > span { max-width: 168px; font-size: 8px; letter-spacing: .055em; }
  .header-mobile-toggle { padding: 10px; gap: 6px; }
  .header-mobile-panel { max-height: calc(100dvh - 88px); padding: 12px; }
  .header-mobile-nav .header-solutions-grid { grid-template-columns: 1fr; gap: 22px; }
  .header-mobile-nav .header-solutions-group + .header-solutions-group { padding-left: 0; border: 0; }
  .header-mobile-nav .header-service-link small { font-size: 11px; }
  .header-mobile-actions { padding-right: 7px; padding-left: 7px; }
  .marketing-page .homepage section[id], #main-content { scroll-margin-top: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  .company-header *, .company-header *::before, .company-header *::after { transition: none !important; }
}
