/* === BITERS PRODUCTION POLISH · responsive / accessibility / performance === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 20000;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--navy, #08294e);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.skip-link:focus {
  transform: translateY(0);
}
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(210, 184, 122, 0.95) !important;
  outline-offset: 3px !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  touch-action: manipulation;
}
.btn,
.hamb {
  min-height: 44px;
}
.hamb {
  min-width: 44px;
}
main {
  outline: none;
}
section[id],
[id].focusPanel {
  scroll-margin-top: 100px;
}
.mobileMenuBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 18, 38, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 90;
}
.mobileMenuBackdrop.show {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}
.nav .menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav .menu a[aria-current='page'] {
  color: var(--navy, #08294e);
  font-weight: 800;
}
.nav .menu a[aria-current='page']:after {
  width: 100%;
}
footer a[href^='mailto:'],
footer a[href^='tel:'] {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: inherit;
  text-decoration: none;
}
footer a[href^='mailto:']:hover,
footer a[href^='tel:']:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img {
  height: auto;
}
.footBrand img {
  object-fit: contain;
}
@media (max-width: 1050px) {
  .nav .menu {
    display: none !important;
  }
  .hamb {
    display: block !important;
  }
  .navright .langs,
  .navright > .btn {
    display: none !important;
  }
  .nav.menu-open .menu {
    display: flex !important;
    position: fixed !important;
    left: 18px !important;
    right: 18px !important;
    top: 78px !important;
    z-index: 110 !important;
    max-height: calc(100dvh - 96px);
    overflow: auto;
    overscroll-behavior: contain;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(8, 41, 78, 0.1) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 70px rgba(4, 24, 47, 0.22) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }
  .nav.menu-open .menu a {
    padding: 10px 14px !important;
    border-radius: 12px;
    font-size: 15px !important;
    color: #263c55;
  }
  .nav.menu-open .menu a:hover,
  .nav.menu-open .menu a[aria-current='page'] {
    background: #f5f7f9;
  }
  .nav.menu-open .menu a:after {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1240px) !important;
  }
  .navin {
    height: 72px !important;
  }
  .brand {
    width: 128px !important;
    max-width: 38vw;
  }
  .nav.menu-open .menu {
    left: 14px !important;
    right: 14px !important;
    top: 76px !important;
  }
  .hero h1 {
    font-size: clamp(42px, 13vw, 54px) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.05em !important;
  }
  .lead {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .heroActions,
  .briefActions {
    gap: 10px !important;
  }
  .heroActions .btn,
  .briefActions .btn {
    width: 100%;
    justify-content: center;
  }
  .heroMeta {
    gap: 12px 18px !important;
  }
  .heroMeta span {
    font-size: 11px;
  }
  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .head h2 {
    font-size: clamp(38px, 11vw, 48px) !important;
  }
  .footGrid {
    grid-template-columns: 1fr !important;
  }
  .footBottom {
    display: block !important;
    line-height: 1.8;
  }
  .footBottom span {
    display: block !important;
    margin-top: 8px;
  }
  .payoffShell {
    padding: 28px 24px !important;
    border-radius: 24px !important;
  }
}
@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1240px) !important;
  }
  .hero h1 {
    font-size: 42px !important;
  }
  .kicker {
    letter-spacing: 0.2em !important;
  }
  .btn {
    padding-left: 17px !important;
    padding-right: 17px !important;
  }
}
@media (hover: none) {
  .magnetic {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobileMenuBackdrop {
    transition: none !important;
  }
}

.page-hidden * {
  animation-play-state: paused !important;
}

/* Tall portrait screens (rotated monitors, 480x2048): a viewport-tall hero
leaves a big empty band under the content, so let the content set the height. */
@media (orientation: portrait) and (min-height: 1100px) {
  body .hero,
  body .contactHero {
    min-height: 0;
  }
}
