/* Shared final layout and interaction refinements. */
:root { --header-height: 78px; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
h1, h2, h3, .kicker { overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #1f5fa8; outline-offset: 4px; }
.btn--primary { color: var(--navy); }
.btn--primary:hover { color: var(--navy); }
.nav-toggle { color: var(--navy); }
.wrap > *, .footer__grid > *, .need__list li > *, .appx__list > * { min-width: 0; }
.footer__contact a, .endpoint__path { overflow-wrap: anywhere; }
.nav__sub { visibility: hidden; }
.nav__item--sub:hover .nav__sub, .nav__item--sub.is-open .nav__sub,
.nav__item--sub:focus-within .nav__sub { visibility: visible; }
.nav__item--sub::before { content: ''; position: absolute; inset: 100% 0 auto; height: 10px; }
.lang__list { max-height: min(520px, 65dvh); }
.hero__shade { background: linear-gradient(90deg, rgba(5,8,30,.78), rgba(5,8,30,.44) 43%, rgba(5,8,30,.08) 76%), linear-gradient(0deg, rgba(5,8,30,.6), transparent 35%); }
.hero--scene { min-height: min(820px, calc(100svh - 78px)); }
.hero__inner { padding-block: 72px 160px; }
.hero--scene .hero__sub { max-width: 540px; line-height: 1.75; }
.hero__stats { gap: 20px 32px; }
.hero__stats span { margin-top: 7px; }
.hero__caps { max-width: min(470px, 42%); }
.hero__weather { max-width: 44%; }
.hero__weather-btn, .hero__weather-out { white-space: normal; text-align: left; }
.appx__item { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.appx__item:focus-visible { outline-color: var(--sun); }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
/* The mobile menu must use the same breakpoint as the shared header. */
@media (max-width: 1100px) {
  :root { --header-height: 70px; }
  .site-header__row { justify-content: space-between; gap: 12px; }
  .site-header__tools { margin-left: auto; }
  .site-header__cta { display: none; }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav { position: fixed; inset: var(--header-height) 0 0; height: calc(100dvh - var(--header-height)); background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 20px max(16px, calc((100vw - 720px)/2)); margin: 0; z-index: 40; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__item > a, .nav__btn { width: 100%; justify-content: space-between; padding: 15px 12px; font-size: 1rem; white-space: normal; }
  .nav__sub { position: static; min-width: 0; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto; margin: 4px 0 12px; box-shadow: none; background: var(--cream); }
  .nav__item--sub:not(.is-open):hover .nav__sub { display: none; }
  .nav .nav__item--sub.is-open .nav__sub { display: block; }
  .nav__item--sub::before { display: none; }
  .nav__item--mobile { display: block; }
}
@media (max-width: 700px) {
  .hero--scene { min-height: 0; }
  .hero__inner { padding-block: 48px 220px; }
  .hero__shade { background: linear-gradient(180deg, rgba(5,8,30,.76), rgba(5,8,30,.48) 65%, rgba(5,8,30,.7)); }
  .hero__caps { left: 16px; right: 16px; bottom: 78px; max-width: none; }
  .hero__weather { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .hero__cap { font-size: .85rem; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero--scene .hero__sub { font-size: 1rem; }
  .hero__stats { gap: 18px; }
  .hero__stats span { font-size: .78rem; }
  .section { padding-block: 56px; }
  .field__row { grid-template-columns: 1fr; }
  .pg-more__grid { grid-template-columns: 1fr; }
  .apply__form { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
  .site-header__tools { gap: 5px; }
  .lang__btn { padding: 9px; }
  .hero__stats { gap: 14px; }
  .hero__stats strong { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .need__list li { opacity: 1; transform: none; }
  .appx__bar { animation: none !important; }
}
