/* Scoped adaptation of the approved header. Original retained in reference/. */
/* ================================================================
   Clouds Systems — bilingual header, navigation, and demo surface
   ================================================================ */

.cs-header-root {
  --header-height: 80px;
  --container-max: 1440px;
  --bg: #080a0f;
  --bg-elevated: #0d1017;
  --bg-soft: #11151e;
  --surface: #121722;
  --surface-hover: #171d29;
  --text: #f5f7fa;
  --muted: #a9b0bc;
  --subtle: #7e8795;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #7894ff;
  --accent-strong: #91a7ff;
  --cta-text: #0a0d14;
  --cta-hover-bg: #a7b7ff;
  --accent-soft: rgba(120, 148, 255, 0.12);
  --shadow-menu: 0 24px 70px rgba(0, 0, 0, 0.48);
  --font-ltr: "IBM Plex Sans", system-ui, sans-serif;
  --font-rtl: "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] .cs-header-root {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f6;
  --surface: #ffffff;
  --surface-hover: #f4f6fb;
  --text: #111722;
  --muted: #5b6573;
  --subtle: #707b89;
  --line: rgba(17, 23, 34, 0.11);
  --line-strong: rgba(17, 23, 34, 0.2);
  --accent: #4c69dd;
  --accent-strong: #3854c5;
  --cta-text: #ffffff;
  --cta-hover-bg: #2e46aa;
  --accent-soft: rgba(76, 105, 221, 0.1);
  --shadow-menu: 0 24px 70px rgba(22, 31, 49, 0.2);
  color-scheme: light;
}

.cs-header-root *,
.cs-header-root *::before,
.cs-header-root *::after {
  box-sizing: border-box;
}

.cs-header-root {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

.cs-header-root {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ltr);
  text-align: start;
  transition: background-color 220ms ease, color 220ms ease;
}

html[dir="rtl"] .cs-header-root {
  font-family: var(--font-rtl);
}

.cs-header-root a {
  color: inherit;
  text-decoration: none;
}

.cs-header-root button,
.cs-header-root input {
  font: inherit;
}

.cs-header-root button {
  color: inherit;
}

.cs-header-root svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-header-root .icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cs-header-root .container {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: clamp(20px, 3vw, 40px);
}

.cs-header-root :focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.cs-header-root .skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 12px;
  z-index: 2000;
  padding: 11px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.cs-header-root .skip-link:focus {
  transform: translateY(0);
}

/* Header shell --------------------------------------------------- */

.cs-header-root .site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1040;
  height: var(--header-height);
  background: rgba(8, 10, 15, 0.97);
  border-block-end: 1px solid rgba(255, 255, 255, 0.075);
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

html[data-theme="light"] .cs-header-root .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-block-end-color: var(--line);
}

.cs-header-root .site-header.is-scrolled,
.cs-header-root .site-header.has-surface-open {
  background: rgba(8, 10, 15, 0.94);
  border-block-end-color: var(--line-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .cs-header-root .site-header.is-scrolled,
html[data-theme="light"] .cs-header-root .site-header.has-surface-open {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(22, 31, 49, 0.11);
}

.cs-header-root .site-header .navbar {
  height: 100%;
  padding: 0;
}

.cs-header-root .header-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 100%;
}

.cs-header-root .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
}

.cs-header-root .brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 116px;
  height: auto;
}

.cs-header-root .brand-logo--light {
  display: none;
}

html[data-theme="light"] .cs-header-root .brand-logo--dark {
  display: none;
}

html[data-theme="light"] .cs-header-root .brand-logo--light {
  display: block;
}

.cs-header-root .brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 39px;
  height: 30px;
}

.cs-header-root .brand-mark > span {
  position: absolute;
  display: block;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-header-root .brand-mark > span:nth-child(1) {
  inset-block-start: 9px;
  inset-inline-start: 1px;
  width: 23px;
  height: 18px;
  border-radius: 14px 11px 6px 12px;
}

.cs-header-root .brand-mark > span:nth-child(2) {
  inset-block-start: 2px;
  inset-inline-start: 11px;
  width: 22px;
  height: 24px;
  border-radius: 15px 16px 7px 8px;
}

.cs-header-root .brand-mark > span:nth-child(3) {
  inset-block-start: 12px;
  inset-inline-end: 0;
  width: 20px;
  height: 15px;
  border-radius: 8px 13px 9px 6px;
}

.cs-header-root .brand-copy {
  display: grid;
  line-height: 1;
}

.cs-header-root .brand-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cs-header-root .brand-copy small {
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cs-header-root .desktop-nav {
  flex: 0 1 auto;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  margin: 0;
  margin-inline-start: clamp(28px, 3vw, 48px);
  gap: clamp(5px, 0.55vw, 12px);
  padding: 0;
  list-style: none;
}

.cs-header-root .desktop-nav .nav-item {
  position: static;
  display: flex;
  align-items: stretch;
}

.cs-header-root .nav-trigger,
.cs-header-root .nav-link-direct {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 clamp(6px, 0.55vw, 11px);
  color: color-mix(in srgb, var(--text) 83%, var(--muted));
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.cs-header-root .nav-trigger::after,
.cs-header-root .nav-link-direct::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cs-header-root .nav-trigger:hover,
.cs-header-root .nav-link-direct:hover,
.cs-header-root .has-mega.is-open > .nav-trigger {
  color: var(--text);
}

.cs-header-root .nav-trigger:hover::after,
.cs-header-root .nav-link-direct:hover::after,
.cs-header-root .has-mega.is-open > .nav-trigger::after {
  opacity: 1;
  transform: scaleX(1);
}

.cs-header-root .chevron {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: transform 190ms ease, color 190ms ease;
}

.cs-header-root .nav-trigger:hover .chevron {
  color: var(--text);
  transform: translateY(1px);
}

.cs-header-root .has-mega.is-open > .nav-trigger .chevron {
  color: var(--accent-strong);
  transform: rotate(180deg);
}

.cs-header-root .desktop-actions {
  flex: 0 0 auto;
  align-items: center;
  margin-inline-start: auto;
  gap: clamp(4px, 0.45vw, 9px);
}

.cs-header-root .icon-button,
.cs-header-root .menu-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cs-header-root .icon-button:hover,
.cs-header-root .menu-button:hover {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--accent-strong);
}

.cs-header-root .icon-button svg,
.cs-header-root .menu-button svg {
  width: 21px;
  height: 21px;
}

.cs-header-root .language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.cs-header-root .cs-language-flag {
  display: block;
  width: 30px;
  height: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgb(128 128 128 / 25%);
}

.cs-header-root .language-toggle:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--line);
}

.cs-header-root .theme-toggle {
  position: relative;
}

.cs-header-root .theme-icon--moon,
html[data-theme="light"] .cs-header-root .theme-icon--sun {
  display: none;
}

html[data-theme="light"] .cs-header-root .theme-icon--moon {
  display: block;
}

.cs-header-root .portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease;
}

.cs-header-root .portal-link:hover {
  color: var(--text);
}

.cs-header-root .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding-inline: clamp(14px, 1.2vw, 20px);
  color: var(--cta-text);
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.cs-header-root .primary-cta:hover {
  color: var(--cta-text);
  background: var(--cta-hover-bg);
  border-color: var(--cta-hover-bg);
  box-shadow: 0 0 24px rgba(120, 148, 255, 0.18);
}

.cs-header-root .primary-cta svg,
.cs-header-root .text-arrow svg,
.cs-header-root .secondary-cta svg,
.cs-header-root .mini-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.cs-header-root .primary-cta:hover svg,
.cs-header-root .text-arrow:hover svg,
.cs-header-root .secondary-cta:hover svg,
.cs-header-root .mini-cta:hover svg {
  transform: translateX(4px);
}

html[dir="rtl"] .cs-header-root .primary-cta svg,
html[dir="rtl"] .cs-header-root .text-arrow svg,
html[dir="rtl"] .cs-header-root .secondary-cta svg,
html[dir="rtl"] .cs-header-root .mini-cta svg,
html[dir="rtl"] .cs-header-root .menu-row > svg,
html[dir="rtl"] .cs-header-root .secondary-links svg,
html[dir="rtl"] .cs-header-root .industry-grid > a > svg,
html[dir="rtl"] .cs-header-root .mobile-nav-link > svg {
  transform: rotate(180deg);
}

html[dir="rtl"] .cs-header-root .primary-cta:hover svg,
html[dir="rtl"] .cs-header-root .text-arrow:hover svg,
html[dir="rtl"] .cs-header-root .secondary-cta:hover svg,
html[dir="rtl"] .cs-header-root .mini-cta:hover svg {
  transform: rotate(180deg) translateX(4px);
}

.cs-header-root .mobile-actions {
  align-items: center;
  margin-inline-start: auto;
  gap: 4px;
}

/* Mega menus ----------------------------------------------------- */

.cs-header-root .mega-menu {
  position: fixed;
  inset-block-start: var(--header-height);
  inset-inline: max(16px, calc((100vw - 1400px) / 2));
  z-index: 1042;
  max-height: calc(100vh - var(--header-height) - 16px);
  overflow-y: auto;
  visibility: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-block-start-color: var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-menu);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 190ms ease, transform 210ms ease, visibility 0s linear 210ms;
}

.cs-header-root .has-mega.is-open > .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.cs-header-root .mega-layout {
  display: grid;
  min-height: 390px;
  padding: 34px;
}

.cs-header-root .mega-layout--standard {
  grid-template-columns: minmax(230px, 0.8fr) minmax(620px, 2.6fr);
  gap: 34px;
}

.cs-header-root .mega-layout--with-card {
  grid-template-columns: minmax(210px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(230px, 0.8fr);
  gap: 22px;
}

.cs-header-root .mega-layout--industries {
  grid-template-columns: minmax(230px, 0.78fr) minmax(620px, 2.5fr);
  gap: 38px;
  min-height: 360px;
}

.cs-header-root .mega-layout--resources {
  grid-template-columns: minmax(230px, 0.82fr) minmax(450px, 1.55fr) minmax(250px, 0.8fr);
  gap: 30px;
}

.cs-header-root .mega-layout--company {
  grid-template-columns: minmax(240px, 0.92fr) minmax(380px, 1.55fr) minmax(260px, 0.85fr);
  gap: 38px;
  min-height: 360px;
}

.cs-header-root .mega-intro {
  padding: 6px 28px 6px 6px;
  border-inline-end: 1px solid var(--line);
}

html[dir="rtl"] .cs-header-root .mega-intro {
  padding: 6px 6px 6px 28px;
}

.cs-header-root .eyebrow,
.cs-header-root .column-label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[dir="rtl"] .cs-header-root .eyebrow,
html[dir="rtl"] .cs-header-root .column-label {
  letter-spacing: 0;
}

.cs-header-root .mega-intro h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(26px, 2.1vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

html[dir="rtl"] .cs-header-root .mega-intro h2 {
  letter-spacing: 0;
}

.cs-header-root .mega-intro > p:not(.eyebrow) {
  max-width: 32ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.cs-header-root .text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.cs-header-root .text-arrow:hover {
  color: var(--accent-strong);
}

.cs-header-root .mega-content,
.cs-header-root .simple-column,
.cs-header-root .resource-links,
.cs-header-root .company-links,
.cs-header-root .company-values {
  min-width: 0;
}

.cs-header-root .feature-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cs-header-root .feature-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 98px;
  padding: 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background-color 170ms ease, border-color 170ms ease;
}

.cs-header-root .feature-link:hover,
.cs-header-root .menu-row:hover,
.cs-header-root .industry-grid a:hover {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--text);
}

.cs-header-root .item-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color 170ms ease, border-color 170ms ease;
}

.cs-header-root .item-icon svg {
  width: 20px;
  height: 20px;
}

.cs-header-root .feature-link:hover .item-icon,
.cs-header-root .industry-grid a:hover .item-icon {
  color: var(--accent-strong);
  border-color: rgba(120, 148, 255, 0.3);
}

.cs-header-root .feature-link strong,
.cs-header-root .menu-row strong {
  display: block;
  margin-block-end: 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-header-root .feature-link small,
.cs-header-root .menu-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cs-header-root .secondary-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block-start: 15px;
  padding-block-start: 15px;
  border-block-start: 1px solid var(--line);
}

.cs-header-root .secondary-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  border-radius: 5px;
  transition: color 170ms ease, background-color 170ms ease;
}

.cs-header-root .secondary-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.cs-header-root .secondary-links svg,
.cs-header-root .menu-row > svg,
.cs-header-root .industry-grid > a > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--subtle);
  transition: transform 170ms ease, color 170ms ease;
}

.cs-header-root .secondary-links a:hover svg,
.cs-header-root .menu-row:hover > svg,
.cs-header-root .industry-grid a:hover > svg {
  color: var(--accent-strong);
  transform: translateX(4px);
}

html[dir="rtl"] .cs-header-root .secondary-links a:hover svg,
html[dir="rtl"] .cs-header-root .menu-row:hover > svg,
html[dir="rtl"] .cs-header-root .industry-grid a:hover > svg {
  transform: rotate(180deg) translateX(4px);
}

.cs-header-root .simple-column,
.cs-header-root .resource-links {
  display: flex;
  flex-direction: column;
}

.cs-header-root .menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 67px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 170ms ease, border-color 170ms ease;
}

.cs-header-root .feature-card {
  position: relative;
  align-self: stretch;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cs-header-root .feature-card h3 {
  position: relative;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.cs-header-root .feature-card > p:not(.eyebrow) {
  position: relative;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.cs-header-root .feature-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: 34px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(120, 148, 255, 0.25);
  border-radius: 7px;
}

.cs-header-root .feature-card-icon svg {
  width: 23px;
  height: 23px;
}

.cs-header-root .feature-card--ai::before {
  content: "";
  position: absolute;
  inset-block-start: -72px;
  inset-inline-end: -68px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(120, 148, 255, 0.22), transparent 67%);
}

.cs-header-root .mini-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.cs-header-root .industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 11px;
}

.cs-header-root .industry-grid a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  min-height: 75px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: background-color 170ms ease, border-color 170ms ease;
}

.cs-header-root .industry-grid strong {
  font-size: 13px;
  font-weight: 600;
}

.cs-header-root .article-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  height: 104px;
  margin: -4px -4px 22px;
  padding: 20px;
  background-color: var(--bg-soft);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cs-header-root .article-visual span {
  display: block;
  background: var(--accent);
  opacity: 0.8;
}

.cs-header-root .article-visual span:nth-child(1) { height: 35%; }
.cs-header-root .article-visual span:nth-child(2) { height: 78%; }
.cs-header-root .article-visual span:nth-child(3) { height: 52%; }

.cs-header-root .company-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 9px;
}

.cs-header-root .company-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 15px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 550;
  transition: background-color 170ms ease, border-color 170ms ease;
}

.cs-header-root .company-links a:hover {
  background: var(--surface-hover);
  border-color: rgba(120, 148, 255, 0.34);
}

.cs-header-root .company-values {
  align-self: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.cs-header-root .company-values ul {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-header-root .company-values li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.cs-header-root .company-values li > span:first-child {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Search + overlay ------------------------------------------------ */

.cs-header-root .search-panel {
  position: fixed;
  inset-block-start: var(--header-height);
  inset-inline: 0;
  z-index: 1043;
  visibility: hidden;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--bg-elevated);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.cs-header-root .search-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.cs-header-root .search-panel-inner {
  padding-block: 32px 36px;
}

.cs-header-root .search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 23px;
}

.cs-header-root .search-heading .eyebrow {
  margin-block-end: 7px;
}

.cs-header-root .search-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

html[dir="rtl"] .cs-header-root .search-heading h2 {
  letter-spacing: 0;
}

.cs-header-root .search-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding-inline: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cs-header-root .search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cs-header-root .search-field > svg {
  width: 25px;
  height: 25px;
  color: var(--muted);
}

.cs-header-root .search-field input {
  width: 100%;
  height: 64px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(16px, 1.6vw, 21px);
  text-align: start;
}

.cs-header-root .search-field input::placeholder {
  color: var(--subtle);
  opacity: 1;
}

.cs-header-root .search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-block-start: 20px;
}

.cs-header-root .search-suggestions > span {
  margin-inline-end: 5px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.cs-header-root .search-suggestions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.cs-header-root .search-suggestions a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(120, 148, 255, 0.34);
}

.cs-header-root .search-empty {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cs-header-root .page-overlay {
  position: fixed;
  inset-block-start: var(--header-height);
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 1030;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.53);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.cs-header-root .page-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Mobile offcanvas ----------------------------------------------- */

.cs-header-root .mobile-nav {
  --bs-offcanvas-width: min(92vw, 440px);
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--line) !important;
}

.cs-header-root .mobile-nav .offcanvas-header {
  min-height: var(--header-height);
  padding: 13px clamp(18px, 5vw, 28px);
  border-block-end: 1px solid var(--line);
}

.cs-header-root .mobile-nav .offcanvas-header .menu-button {
  margin-inline-start: auto;
}

.cs-header-root .mobile-nav .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.cs-header-root .mobile-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px clamp(18px, 5vw, 28px) 28px;
  overflow-y: auto;
}

.cs-header-root .mobile-section {
  border-block-end: 1px solid var(--line);
}

.cs-header-root .mobile-nav-trigger,
.cs-header-root .mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 0 2px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: start;
}

.cs-header-root .mobile-nav-link {
  border-block-end: 1px solid var(--line);
}

.cs-header-root .mobile-nav-trigger > svg,
.cs-header-root .mobile-nav-link > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.cs-header-root .mobile-nav-trigger:not(.collapsed) > svg {
  color: var(--accent-strong);
  transform: rotate(180deg);
}

.cs-header-root .mobile-submenu-inner {
  display: grid;
  gap: 2px;
  padding: 0 0 16px;
}

.cs-header-root .mobile-submenu-inner a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 15px;
  color: var(--muted);
  background: transparent;
  border-inline-start: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

.cs-header-root .mobile-submenu-inner a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-inline-start-color: var(--accent);
}

.cs-header-root .mobile-nav-footer {
  flex: 0 0 auto;
  padding: 18px clamp(18px, 5vw, 28px) max(18px, env(safe-area-inset-bottom));
  background: var(--bg-elevated);
  border-block-start: 1px solid var(--line);
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.15);
}

.cs-header-root .mobile-utilities {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 12px;
}

.cs-header-root .mobile-utilities > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.cs-header-root .theme-toggle--text {
  gap: 7px;
}

.cs-header-root .theme-toggle--text svg {
  width: 17px;
  height: 17px;
}

.cs-header-root .primary-cta--mobile {
  width: 100%;
}

/* Responsive refinements ---------------------------------------- */

@media (max-width: 1399.98px) and (min-width: 1200px) {
  .cs-header-root .header-container { padding-inline: 22px; }
  .cs-header-root .desktop-nav { margin-inline-start: 22px; gap: 2px; }
  .cs-header-root .nav-trigger, .cs-header-root .nav-link-direct { padding-inline: 6px; font-size: 13px; }
  .cs-header-root .desktop-actions { gap: 2px; }
  .cs-header-root .portal-link { font-size: 12px; padding-inline: 4px; }
  .cs-header-root .primary-cta { padding-inline: 12px; font-size: 12px; }
  .cs-header-root .mega-layout { padding: 28px; }
  .cs-header-root .mega-layout--with-card { gap: 14px; }
}

@media (max-width: 1199.98px) {
}

@media (max-width: 991.98px) {
}

@media (max-width: 767.98px) {
  .cs-header-root { --header-height: 72px; }
  .cs-header-root .header-container { padding-inline: 17px; }
  .cs-header-root .brand-logo { width: 108px; }
  .cs-header-root .brand-mark { width: 35px; height: 28px; }
  .cs-header-root .brand-copy strong { font-size: 16px; }
  .cs-header-root .language-toggle--mobile { padding-inline: 7px; font-size: 12px; }
  .cs-header-root .search-panel-inner { padding-block: 25px 28px; }
  .cs-header-root .search-field input { height: 58px; }
}

@media (max-width: 479.98px) {
  .cs-header-root .brand-copy { display: none; }
  .cs-header-root .mobile-nav .brand-copy { display: grid; }
  .cs-header-root .search-heading h2 { font-size: 20px; }
  .cs-header-root .search-field { grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding-inline: 13px; }
  .cs-header-root .search-field > svg { width: 20px; height: 20px; }
  .cs-header-root .search-field input { font-size: 14px; }
  .cs-header-root .mobile-utilities { flex-wrap: wrap; }
}

@media (max-width: 359.98px) {
  .cs-header-root .language-toggle--mobile { max-width: 67px; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-header-root { scroll-behavior: auto; }
  .cs-header-root *, .cs-header-root *::before, .cs-header-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.cs-header-root{display:contents}.cs-header-root a.language-toggle{text-decoration:none}.cs-header-root .site-header{font-family:var(--font-ltr)}html[dir="rtl"] .cs-header-root .site-header{font-family:var(--font-rtl)}

/* Nine service families within the approved mega-menu structure. */
.cs-header-root .cs-nav-service-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.cs-header-root .cs-nav-service-grid .feature-link {grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px 8px;min-height:108px;}
.cs-header-root .cs-nav-service-grid .item-icon {width:30px;height:30px;}
