/**
 * Enterprise shell — light brand header (logo blues), mega menus, search, i18n-ready.
 * Loaded after styles.css; complements existing components.
 */

/* Shell colors align with site tokens / logo: #0B6BFF, #56B6F9, #094bb8 (see styles.css :root) */
:root {
  color-scheme: light only;
  --shell-bg: #f6f9ff;
  --shell-bg-elevated: #eef4fc;
  --shell-border: rgba(9, 75, 184, 0.18);
  --shell-text: #0f172a;
  --shell-muted: #475569;
  --shell-accent: #0b6bff;
  --shell-accent-deep: #094bb8;
  --shell-accent-navy: #0a2540;
  --shell-accent-light: #56b6f9;
  --shell-accent-glow: rgba(9, 75, 184, 0.28);
  --shell-header-h: 64px;
  --shell-font: "Inter", system-ui, sans-serif;
  --shell-display: "DM Sans", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
    --shell-bg: #f6f9ff;
    --shell-bg-elevated: #eef4fc;
    --shell-border: rgba(9, 75, 184, 0.18);
    --shell-text: #0f172a;
    --shell-muted: #475569;
    --shell-accent: #0b6bff;
    --shell-accent-deep: #094bb8;
    --shell-accent-navy: #0a2540;
    --shell-accent-light: #56b6f9;
    --shell-accent-glow: rgba(9, 75, 184, 0.28);
  }
}

/* ------------- Fixed header — always visible while scrolling ------------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10050;
  font-family: var(--shell-font);
  background: linear-gradient(180deg, #ffffff 0%, #e8f1fc 55%, #dce9f8 100%);
  border-bottom: 1px solid var(--shell-border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
  overflow: visible;
}

.site-header.site-header--scrolled {
  box-shadow: 0 10px 32px rgba(9, 75, 184, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(28px, 5vw, 56px);
  padding-right: clamp(18px, 3.5vw, 36px);
  height: var(--shell-header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  overflow: visible;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--shell-text);
  flex-shrink: 0;
  margin-right: 0.35rem;
}

.site-header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.site-header__wordmark {
  font-family: var(--shell-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--shell-accent-navy);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 0.2rem 0.35rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.site-header__nav--primary {
  margin-right: 0.25rem;
}

@media (min-width: 1100px) {
  .site-header__nav {
    display: flex;
  }
}

/* Inline search — single control (no duplicate icon beside language) */
.site-header__search-slot {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.site-header__search-inline {
  position: relative;
  width: 100%;
  max-width: min(520px, 42vw);
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-header__search-inline:focus-within {
  border-color: rgba(11, 107, 255, 0.45);
  box-shadow: 0 0 0 3px var(--shell-accent-glow);
}

.site-header__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--shell-text);
  outline: none;
  border-radius: 999px 0 0 999px;
}

.site-header__search-input::placeholder {
  color: var(--shell-muted);
}

.site-header__search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  border: none;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, rgba(11, 107, 255, 0.12), rgba(9, 75, 184, 0.08));
  color: var(--shell-accent-deep);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header__search-submit:hover {
  background: linear-gradient(135deg, rgba(11, 107, 255, 0.22), rgba(9, 75, 184, 0.14));
  color: var(--shell-accent);
}

.site-header__search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--shell-bg-elevated);
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  max-height: min(340px, 52vh);
  overflow-y: auto;
  z-index: 10080;
}

.site-header__search-dropdown:not([hidden]) {
  display: block !important;
}

.site-header__search-dropdown li a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--shell-text);
  font-size: 0.88rem;
  transition: background 0.12s ease;
}

.site-header__search-dropdown li a:hover,
.site-header__search-dropdown li a:focus-visible {
  background: rgba(11, 107, 255, 0.08);
  outline: none;
}

.site-header__search-dropdown li a strong {
  font-weight: 600;
  color: var(--shell-accent-navy);
}

.site-header__search-dropdown li a span {
  font-size: 0.72rem;
  color: var(--shell-muted);
  word-break: break-all;
}

.site-header__search-dropdown .site-search__empty {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--shell-muted);
}

.site-header__search-dropdown .site-search__group-label {
  padding: 0.5rem 1rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-muted);
  pointer-events: none;
}

.site-header__search-dropdown .site-search__group-label:first-child {
  padding-top: 0.35rem;
}

@media (max-width: 767px) {
  .site-header__search-slot {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header__search-inline {
    max-width: none;
    width: 100%;
  }

  /* 16px+ avoids iOS zoom-on-focus, which shrinks the layout and feels like a “narrow” search */
  .site-header__search-input {
    font-size: 16px;
    padding-left: 0.75rem;
    padding-right: 0.4rem;
  }

  .site-header__search-submit {
    width: 38px;
    min-width: 38px;
  }

  /* Wider results card than the pill — centered on the control, not capped to input width */
  .site-header__search-dropdown {
    left: 50%;
    right: auto;
    width: min(calc(100vw - 20px), 34rem);
    transform: translateX(-50%);
    box-sizing: border-box;
    border-radius: 14px;
  }
}

html[dir="rtl"] .site-header__search-input {
  border-radius: 0 999px 999px 0;
  padding: 0.45rem 1rem 0.45rem 0.65rem;
}

html[dir="rtl"] .site-header__search-submit {
  border-radius: 999px 0 0 999px;
}

html[dir="rtl"] .site-header__lang-menu {
  right: auto;
  left: 0;
}

/* Mega menus */
.mega {
  position: static;
}

.mega__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--shell-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.mega__trigger:hover,
.mega__trigger:focus-visible,
.mega.is-open .mega__trigger {
  color: var(--shell-accent-deep);
  background: rgba(11, 107, 255, 0.08);
  outline: none;
}

.mega__chev {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s;
}

.mega.is-open .mega__chev {
  transform: rotate(180deg);
}

.mega__panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--shell-header-h);
  background: var(--shell-bg);
  border-bottom: 1px solid var(--shell-border);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  padding: 2rem 0 2.25rem;
  z-index: 10040;
}

.mega__panel[hidden] {
  display: none !important;
}

.mega.is-open .mega__panel:not([hidden]) {
  display: block !important;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .mega__grid {
    grid-template-columns: 1fr;
  }
}

.mega__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell-muted);
  margin-bottom: 0.75rem;
}

.mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega__list a {
  display: block;
  padding: 0.45rem 0;
  color: var(--shell-text);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: color 0.15s, transform 0.15s;
}

.mega__list a:hover {
  color: var(--shell-accent);
  transform: translateX(2px);
}

.mega__col--cta {
  border-left: 1px solid var(--shell-border);
  padding-left: 2rem;
}

@media (max-width: 900px) {
  .mega__col--cta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--shell-border);
    padding-top: 1.5rem;
  }
}

.mega__teaser {
  font-size: 0.95rem;
  color: var(--shell-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--shell-accent-light);
  text-decoration: none;
}

.mega__cta:hover {
  text-decoration: underline;
}

.mega__cta--inline {
  margin-left: auto;
}

/* Products mega — rich cards (title + summary + description) */
.mega__panel-inner--products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 28px);
}

.mega__products-intro {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--shell-muted);
  max-width: 72ch;
  line-height: 1.5;
}

.mega__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 0.85rem 1rem;
}

@media (min-width: 1200px) {
  .mega__product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mega__product-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 107, 255, 0.12);
  background: rgba(11, 107, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  min-height: 7.5rem;
}

.mega__product-card:hover {
  border-color: rgba(11, 107, 255, 0.45);
  background: rgba(11, 107, 255, 0.08);
  transform: translateY(-1px);
}

.mega__product-title {
  font-family: var(--shell-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--shell-text);
  line-height: 1.25;
}

.mega__product-summary {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shell-accent-light);
  line-height: 1.3;
}

.mega__product-desc {
  font-size: 0.8rem;
  color: var(--shell-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.mega__products-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--shell-border);
}

.mega__products-footer-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--shell-accent);
  text-decoration: none;
}

.mega__products-footer-link:hover {
  text-decoration: underline;
}

/* Services page — product catalog anchors (linked from mega menu) */
.product-catalog {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(180deg, rgba(7, 20, 38, 0.06) 0%, rgba(9, 75, 184, 0.07) 42%, rgba(248, 250, 252, 0.5) 100%);
}

.solution-catalog {
  background: linear-gradient(180deg, rgba(9, 75, 184, 0.09) 0%, rgba(10, 37, 64, 0.05) 40%, transparent 78%);
}

@media (min-width: 1200px) {
  .mega__product-grid--solutions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.product-catalog-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border, rgba(9, 75, 184, 0.14));
  background: var(--card-bg, #fff);
  box-shadow: var(--shadow-sm, 0 6px 22px rgba(9, 75, 184, 0.09));
  scroll-margin-top: calc(var(--shell-header-h, 64px) + 1rem);
}

.product-catalog-card--has-thumb {
  padding: 0;
  overflow: hidden;
}

.product-catalog-card__thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  background: linear-gradient(135deg, #e8f1fc 0%, #dce9f8 100%);
  overflow: hidden;
}

.product-catalog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

a.product-catalog-card--link:hover .product-catalog-card__thumb img {
  transform: scale(1.04);
}

.product-catalog-card__body {
  padding: 1.25rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

a.product-catalog-card--link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

a.product-catalog-card--link:hover {
  border-color: rgba(9, 75, 184, 0.35);
  box-shadow: 0 14px 36px rgba(9, 75, 184, 0.14);
  transform: translateY(-2px);
}

.product-catalog-card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--shell-accent-deep);
}

.product-catalog-card--has-thumb .product-catalog-card__more {
  padding-top: 0.85rem;
}

.product-catalog-card__more i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.product-catalog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text, #0f172a);
}

a.product-catalog-card--link h3 {
  color: var(--shell-accent-navy);
}

.product-catalog-card h3 i {
  color: var(--primary, #0b6bff);
  opacity: 0.95;
}

.product-catalog-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #0b6bff);
  margin: 0 0 0.65rem;
}

.product-catalog-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #64748b);
}

.product-catalog-cta {
  margin-top: 2rem;
  text-align: center;
}

.site-header__simple-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--shell-muted);
  text-decoration: none;
  border-radius: 6px;
}

.site-header__simple-link:hover,
.site-header__simple-link.current {
  color: var(--shell-accent-deep);
  background: rgba(11, 107, 255, 0.08);
}

.site-header__signin.site-header__simple-link.current {
  border-color: rgba(11, 107, 255, 0.35);
}

/* Actions — pinned right; search slot grows in the middle */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--shell-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-header__icon-btn:hover,
.site-header__icon-btn:focus-visible {
  background: rgba(11, 107, 255, 0.1);
  color: var(--shell-accent-deep);
  outline: none;
}

.site-header__lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 0.15rem;
}

.site-header__lang {
  position: relative;
  z-index: 10052;
}

.site-header__lang-trigger {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.site-header__lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--shell-bg-elevated);
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 10060;
}

.site-header__lang-menu[hidden] {
  display: none !important;
}

.site-header__lang-menu li {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--shell-text);
  cursor: pointer;
  transition: background 0.12s;
}

.site-header__lang-menu li:hover,
.site-header__lang-menu li:focus {
  background: rgba(11, 107, 255, 0.08);
}

.site-header__lang-menu li.is-active {
  color: var(--shell-accent-light);
}

.site-header__text-link {
  display: none;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--shell-muted);
  text-decoration: none;
}

.site-header__text-link--support {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border-radius: 8px;
}

.site-header__text-link--support i {
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .site-header__text-link--support {
    display: inline-flex;
  }
}

.site-header__text-link:hover {
  color: var(--shell-accent-deep);
}

.site-header__signin {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--shell-text);
  text-decoration: none;
  border: 1px solid var(--shell-border);
  border-radius: 999px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-header__signin-icon {
  font-size: 1rem;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .site-header__signin {
    display: inline-flex;
  }
}

.site-header__signin:hover {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 3px var(--shell-accent-glow);
}

/* Closed: icon only. Open drawer (body.site-drawer-open): bCom + tagline beside icon */
.site-header__burger {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--shell-border);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, max-width 0.2s ease;
  flex-shrink: 0;
}

body.site-drawer-open .site-header__burger {
  justify-content: flex-start;
  gap: 0.45rem;
  width: auto;
  min-width: 0;
  max-width: min(100%, 13.75rem);
  height: auto;
  min-height: 38px;
  padding: 0.2rem 0.45rem;
  flex-shrink: 1;
}

.site-header__burger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.site-header__burger-text {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.06rem;
  min-width: 0;
  text-align: left;
  line-height: 1.12;
}

body.site-drawer-open .site-header__burger-text {
  display: flex;
}

.site-header__burger-brand {
  font-family: var(--shell-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--shell-accent-navy);
}

.site-header__burger-tagline {
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--shell-muted);
  max-width: 11rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[dir="rtl"] .site-header__burger {
  flex-direction: row-reverse;
}

html[dir="rtl"] .site-header__burger-text {
  align-items: flex-end;
  text-align: right;
}

.site-header__burger:hover,
.site-header__burger:focus-visible {
  border-color: rgba(11, 107, 255, 0.4);
  background: rgba(11, 107, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(11, 107, 255, 0.12);
  outline: none;
}

body.site-drawer-open .site-header__burger {
  border-color: rgba(11, 107, 255, 0.45);
  background: rgba(11, 107, 255, 0.08);
}

@media (min-width: 1100px) {
  .site-header__burger {
    display: none;
  }
}

.site-header__burger-icon span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0;
  background: var(--shell-text);
  border-radius: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.site-drawer-open .site-header__burger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.site-drawer-open .site-header__burger-icon span:nth-child(2) {
  opacity: 0;
}
body.site-drawer-open .site-header__burger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search overlay */
.site-search {
  position: fixed;
  inset: 0;
  z-index: 10070;
}

.site-search[hidden] {
  display: none !important;
}

.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.site-search__dialog {
  position: relative;
  max-width: 720px;
  margin: 12vh auto 0;
  padding: 0 1.25rem;
  z-index: 1;
}

.site-search__label {
  display: block;
  font-family: var(--shell-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.site-search__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--shell-bg-elevated);
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
}

.site-search__icon {
  color: var(--shell-muted);
}

.site-search__input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--shell-text);
  font-size: 1.05rem;
  outline: none;
}

.site-search__input::placeholder {
  color: rgba(71, 85, 105, 0.65);
}

.site-search__close {
  border: none;
  background: transparent;
  color: var(--shell-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.site-search__close:hover {
  color: var(--shell-accent);
}

.site-search__results {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

.site-search__results li a {
  display: block;
  padding: 0.65rem 0.85rem;
  margin-bottom: 4px;
  border-radius: 8px;
  color: var(--shell-text);
  text-decoration: none;
  background: rgba(11, 107, 255, 0.06);
  border: 1px solid transparent;
}

.site-search__results li a:hover {
  border-color: rgba(11, 107, 255, 0.2);
  background: rgba(11, 107, 255, 0.1);
}

.site-search__results li span {
  display: block;
  font-size: 0.75rem;
  color: var(--shell-muted);
}

.site-search__empty {
  padding: 1rem;
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.site-search__results .site-search__group-label {
  padding: 0.65rem 0.85rem 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-muted);
  pointer-events: none;
}

.site-search__results .site-search__group-label:first-child {
  margin-top: 0;
  padding-top: 0.25rem;
}

@media (max-width: 767px) {
  .site-search__dialog {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .site-search__input {
    font-size: 16px;
  }

  /* Bleed past dialog padding so the list reads as a wider card than the search row */
  .site-search__results {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    width: calc(100% + 1.7rem);
    padding: 0.5rem 0.65rem;
    box-sizing: border-box;
    border-radius: 14px;
    background: var(--shell-bg-elevated);
    border: 1px solid var(--shell-border);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  }

  .site-search__results li a {
    margin-bottom: 6px;
  }
}

/* Mobile drawer — classic vertical list; Products/Solutions expand on tap to show subs */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 10060;
}

.site-drawer[hidden] {
  display: none !important;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 36, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 380px);
  height: auto;
  max-height: min(100dvh, 100vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--shell-bg);
  border-left: 1px solid var(--shell-border);
  border-radius: 16px 0 0 16px;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  animation: drawerIn 0.28s ease-out both;
}

@keyframes drawerIn {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--shell-border);
}

.site-drawer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
  padding-right: 0.75rem;
}

.site-drawer__brand-name {
  font-family: var(--shell-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--shell-accent-navy);
  line-height: 1.15;
}

.site-drawer__brand-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--shell-muted);
  max-width: 17rem;
}

html[dir="rtl"] .site-drawer__brand {
  align-items: flex-end;
  text-align: right;
  padding-right: 0;
  padding-left: 0.75rem;
}

.site-drawer__close {
  border: none;
  background: transparent;
  color: var(--shell-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.35rem;
}

.site-drawer__close:hover {
  color: var(--shell-accent-deep);
}

.site-drawer__nav {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 3.75rem);
  padding: 1rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-drawer__nav-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-drawer__nav > a,
.site-drawer__details .site-drawer__summary {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  color: var(--shell-text);
  text-decoration: none;
  font-weight: 500;
}

.site-drawer__nav > a:hover {
  background: rgba(11, 107, 255, 0.08);
}

.site-drawer__details .site-drawer__summary.site-drawer__nav-row {
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.site-drawer__details .site-drawer__summary::-webkit-details-marker {
  display: none;
}

.site-drawer__details .site-drawer__summary:hover {
  background: rgba(11, 107, 255, 0.06);
}

.site-drawer__summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.site-drawer__nav-icon {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  color: var(--shell-accent-deep);
  opacity: 0.92;
}

.site-drawer__expand-icon {
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.45;
  transition: transform 0.2s ease;
}

.site-drawer__details[open] > .site-drawer__summary .site-drawer__expand-icon {
  transform: rotate(180deg);
}

.site-drawer__details {
  border-bottom: 1px solid var(--shell-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.site-drawer__details a {
  display: block;
  padding: 0.5rem 0.85rem 0.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--shell-muted);
  text-decoration: none;
  border-radius: 6px;
}

.site-drawer__details a:hover {
  color: var(--shell-accent);
  background: rgba(11, 107, 255, 0.06);
}

.site-drawer__signin {
  margin-top: 0.65rem;
  justify-content: center;
  padding: 0.75rem !important;
  border: 1px solid var(--shell-border);
  border-radius: 999px !important;
  background: transparent;
  font-weight: 600;
}

.site-drawer__signin:hover {
  background: rgba(11, 107, 255, 0.08);
  border-color: rgba(11, 107, 255, 0.28);
}

.site-drawer__group-label {
  margin: 0 0 0.35rem;
  padding: 0.5rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell-muted);
}

/* Legacy navbar coexistence: hide old bar when present */
.navbar {
  display: none !important;
}

/* Offset content under fixed header */
body.has-enterprise-shell {
  padding-top: var(--shell-header-h);
}

html {
  color-scheme: light only;
  scroll-padding-top: calc(var(--shell-header-h, 64px) + 12px);
}

/* Inner banners already assumed a tall header; body padding handles clearance now */
body.has-enterprise-shell .page-hero {
  padding-top: 3rem;
}

body.has-enterprise-shell .page-hero.support-hero {
  padding-top: 3.5rem;
}

/* ------------- Homepage hero — light landing (brand blues, no dark panel) ------------- */
.hero.hero--home {
  position: relative;
  min-height: min(78vh, 820px);
  display: flex;
  align-items: center;
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(ellipse 100% 85% at 92% 8%, rgba(86, 182, 249, 0.22), transparent 52%),
    radial-gradient(ellipse 65% 45% at 8% 85%, rgba(11, 107, 255, 0.09), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 42%, #e8f2fc 100%);
  color: var(--shell-text, #0f172a);
  overflow: visible;
  border-bottom: 1px solid rgba(9, 75, 184, 0.12);
}

body.has-enterprise-shell .hero.hero--home {
  padding-top: clamp(1.25rem, 5vw, 3.25rem);
}

.hero.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 107, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 107, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 42%, black 18%, transparent 72%);
  pointer-events: none;
  opacity: 0.85;
}

.hero.hero--home .hero-container {
  position: relative;
  z-index: 1;
}

.hero.hero--home .hero-title {
  font-family: var(--shell-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 18ch;
  background: linear-gradient(135deg, #0a2540 0%, var(--shell-accent-deep) 42%, var(--shell-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero.hero--home .hero-description {
  color: var(--shell-muted, #475569);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 52ch;
  line-height: 1.65;
}

.hero.hero--home .btn-primary {
  background: linear-gradient(135deg, var(--shell-accent) 0%, var(--shell-accent-deep) 55%, #063885 100%);
  border: 1px solid rgba(6, 56, 133, 0.35);
  box-shadow: 0 8px 28px rgba(9, 75, 184, 0.28);
}

.hero.hero--home .btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--shell-accent-deep);
  border: 2px solid rgba(9, 75, 184, 0.28);
}

.hero.hero--home .btn-secondary:hover {
  background: rgba(11, 107, 255, 0.08);
}

.hero.hero--home .floating-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 75, 184, 0.14);
  box-shadow: 0 12px 36px rgba(9, 75, 184, 0.12);
  color: var(--shell-accent-navy);
  backdrop-filter: blur(10px);
}

.hero.hero--home .floating-card i {
  color: var(--shell-accent);
}

.hero.hero--home .floating-card span {
  color: var(--shell-accent-navy);
}

.hero.hero--home .floating-card.card-3 span {
  font-size: 0.8rem;
  max-width: 10.5rem;
  text-align: center;
  line-height: 1.25;
}

.hero.hero--home .hero-graphic {
  overflow: visible;
  min-height: min(520px, 52vh);
}

/* RTL */
html[dir="rtl"] .mega__col--cta {
  border-left: none;
  border-right: 1px solid var(--shell-border);
  padding-left: 0;
  padding-right: 2rem;
}

@keyframes drawerInRtl {
  from {
    transform: translate3d(-100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

html[dir="rtl"] .site-drawer__panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--shell-border);
  border-radius: 0 16px 16px 0;
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
  animation-name: drawerInRtl;
}
