/* Prevent horizontal page scroll from full-bleed sections */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

#site-navbar {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#site-navbar nav {
  min-width: 0;
}

.nav-shell {
  min-height: 56px;
  width: 100%;
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 640px) {
  .nav-shell {
    min-height: 64px;
  }
}

.nav-shell-brand,
.nav-shell-actions {
  min-width: 0;
}

.nav-desktop-links {
  overflow: hidden;
}

.nav-desktop-links li {
  flex-shrink: 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background-color: #35355a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-shell-products .nav-link::after {
  background-color: #ffffff;
}

.nav-shell-products #mobile-menu-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.scroll-target {
  scroll-margin-top: 96px;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(53, 53, 90, 0.14), rgba(53, 53, 90, 0));
  pointer-events: none;
}

.hero-bg-panel {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: saturate(120%);
}

/* Inside max-width main: full width only (no viewport breakout). */
.hero-bleed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
  box-sizing: border-box;
}

/* Map/footer outside main: edge-to-edge without shifting content left. */
body > .hero-bleed {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-fade-up {
  animation: heroFadeUp 500ms ease-out both;
}

.hero-fade-up.delay-2 {
  animation-delay: 140ms;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
