
/* === FINAL POLISH UPGRADES === */

:root {
  --glow-cyan: rgba(0, 210, 255, .62);
  --glow-cyan-strong: rgba(0, 210, 255, .82);
  --glow-blue: rgba(0, 130, 255, .36);
  --glow-radius: 16px;
}

/* 2. very subtle breathing glow on logo */
.site-header .logo-brand {
  animation: logoGlowBreath 5.5s ease-in-out infinite !important;
  will-change: box-shadow;
}

@keyframes logoGlowBreath {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(185,245,255,.22) inset,
      0 0 12px var(--glow-cyan),
      0 0 30px var(--glow-blue),
      0 18px 36px rgba(0,0,0,.42) !important;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(185,245,255,.28) inset,
      0 0 16px var(--glow-cyan-strong),
      0 0 38px rgba(0,130,255,.44),
      0 18px 36px rgba(0,0,0,.42) !important;
  }
}

/* 3. active page glow: text only, no box/underline */
.site-header .site-nav a.is-current-page {
  color: #9feaff !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow:
    0 0 6px rgba(0,210,255,.72),
    0 0 14px rgba(0,130,255,.40) !important;
}

/* Keep home plain unless it is current page */
.site-header .site-nav a[href*="index"]:not(.is-current-page) {
  color: inherit !important;
  text-shadow: none !important;
}

/* Hover: animated text glow only, consistent intensity */
.site-header .site-nav a {
  transition:
    color .28s ease,
    text-shadow .28s ease,
    transform .28s ease,
    background-color .28s ease !important;
}

.site-header .site-nav a:hover {
  transform: translateY(-2px);
  text-shadow:
    0 0 7px rgba(0,210,255,.58),
    0 0 15px rgba(0,130,255,.34);
}

/* 4. scroll header effect */
.site-header {
  transition: background-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease !important;
}

.site-header.scrolled {
  background: rgba(5, 10, 20, .90) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.28), 0 0 20px rgba(0,210,255,.08) !important;
}

/* 5. consistent language switch glow */
.lang-switch,
.lang-switch button {
  border-radius: var(--glow-radius) !important;
}

.lang-switch {
  box-shadow: 0 0 12px rgba(0,210,255,.12) !important;
}

.lang-switch button.active {
  color: #9feaff !important;
  text-shadow: 0 0 6px rgba(0,210,255,.65) !important;
}

/* 6. mobile UX: slide + fade menu */
@media (max-width: 980px) {
  .site-header .site-nav {
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(.985) !important;
    pointer-events: none !important;
    transition:
      opacity .24s ease,
      transform .24s ease,
      visibility .24s ease !important;
  }

  .site-header.nav-open .site-nav,
  .site-header .site-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }
}

/* 8. subtle scanline / tech sheen in header */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background:
    linear-gradient(90deg, transparent, rgba(0,210,255,.18), transparent),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 5px
    );
  background-size: 220% 100%, auto;
  animation: headerSheen 9s linear infinite;
  mix-blend-mode: screen;
}

@keyframes headerSheen {
  from { background-position: -120% 0, 0 0; }
  to { background-position: 120% 0, 0 0; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-header .logo-brand,
  .site-header::after {
    animation: none !important;
  }

  .site-header .site-nav,
  .site-header .site-nav a {
    transition: none !important;
  }
}

/* Document pictogram for documents.html */
.doc-pictogram-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(110,231,247,0.07), rgba(167,139,250,0.07));
  border: 1px solid rgba(110,231,247,0.18);
}
.doc-pictogram {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(110,231,247,0.25));
}

/* Pictogram label */
.doc-pictogram-label {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7a8aab);
}

/* Desktop menu glides left as the viewport narrows, without adding a scrollbar. */
@media (min-width: 981px) {
  .site-header .site-nav {
    margin-left: clamp(300px, calc(42vw - 220px), 620px) !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: clamp(2px, .45vw, 6px) !important;
    padding-right: clamp(8px, 1.5vw, 24px) !important;
  }

  .site-header .site-nav a {
    padding-left: clamp(7px, .72vw, 13px) !important;
    padding-right: clamp(7px, .72vw, 13px) !important;
    font-size: clamp(12px, .96vw, 15px) !important;
    white-space: nowrap !important;
  }

  .site-header .lang-switch {
    flex: 0 0 auto !important;
    margin-left: clamp(3px, .4vw, 8px) !important;
    white-space: nowrap !important;
  }

  .site-header .lang-switch button {
    padding-left: clamp(6px, .6vw, 10px) !important;
    padding-right: clamp(6px, .6vw, 10px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .site-header .site-nav {
    margin-left: clamp(240px, 25vw, 320px) !important;
    gap: 2px !important;
  }
}

@media (min-width: 981px) and (max-width: 1060px) {
  .site-header .site-nav {
    margin-left: 230px !important;
  }

  .site-header .site-nav a {
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: 12px !important;
  }

  .site-header .lang-switch {
    padding: 3px !important;
  }

  .site-header .lang-switch button {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

.equipment-list img.product-white-image,
.modal-slideshow img.product-white-slide {
  object-fit: contain !important;
  background: #fff !important;
}

/* Safari rendering fixes */
body::before {
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%) !important;
  mask-image: linear-gradient(to bottom, black, transparent 82%) !important;
}

.site-header {
  -webkit-backdrop-filter: blur(18px) !important;
  min-width: 0 !important;
}

.site-header.scrolled {
  -webkit-backdrop-filter: blur(14px) !important;
}

.site-header .logo-brand,
.site-header .site-nav {
  min-width: 0 !important;
}

.slide-controls button,
.modal,
.ba-divider span,
.ba-label,
.recon-label,
.site-header .site-nav {
  -webkit-backdrop-filter: blur(12px) !important;
}

@media (max-width: 980px) {
  .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    transform: translateZ(0);
  }

  .site-header .site-nav {
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(100vh - 110px) !important;
    max-height: calc(100svh - 110px) !important;
  }
}

@supports (-webkit-touch-callout: none) {
  html,
  body {
    min-height: -webkit-fill-available;
  }

  .site-header::after {
    mix-blend-mode: normal !important;
    opacity: .08 !important;
  }

  .site-header .site-nav a:hover {
    transform: none !important;
  }
}
