/* Deliberate NSI mechanical navigation and footer composition. */

.site-header .nav {
  grid-template-columns: 126px 230px minmax(0, 1fr) auto;
  min-height: 82px;
  gap: 20px;
}

.site-header .brand {
  min-width: 0;
}

.site-header .brand--image img {
  width: 118px;
  max-height: 62px;
}

.site-header .nav__links {
  width: 100%;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .nav__links > a,
.site-header .nav-dropdown > .nav-dropdown__label {
  border-right: 1px solid #e1e7df;
  border-radius: 0;
}

.site-header .nav__links > a:first-child {
  border-left: 1px solid #e1e7df;
}

.site-header .nav__links a {
  padding: 14px 11px;
}

.site-header .nav__links > a:hover,
.site-header .nav__links > a:focus-visible,
.site-header .nav-dropdown:hover > .nav-dropdown__label,
.site-header .nav-dropdown:focus-within > .nav-dropdown__label {
  color: #2c4c1e;
  background: #edf6e6;
  box-shadow: inset 0 -3px 0 #62ad05;
}

.nav-gearline {
  align-self: center;
  width: 230px;
  min-width: 230px;
  height: 54px;
  overflow: visible;
}

.nav-gearline::before,
.nav-gearline::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8d1ca 14%, #c8d1ca 86%, transparent);
}

.nav-gearline::before { top: 16px; }
.nav-gearline::after { bottom: 15px; }

.nav-gearline__track {
  top: 50%;
  right: 0;
  left: 0;
  height: 8px;
  border-top: 1px solid rgba(98, 173, 5, 0.22);
  border-bottom: 1px solid rgba(98, 173, 5, 0.22);
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(98, 173, 5, 0.13) 12px 14px);
}

.nav-gearline__gear {
  top: 50%;
  z-index: 1;
  margin-top: 0;
  transform-origin: center;
}

.nav-gearline__gear--one {
  left: 10px;
  margin-top: -15px;
  font-size: 30px;
  color: #62ad05;
}

.nav-gearline__gear--two {
  left: 48px;
  margin-top: -7px;
  font-size: 18px;
  color: #8d9992;
}

.nav-gearline__gear--three {
  right: 76px;
  margin-top: -18px;
  font-size: 36px;
  color: #36770a;
}

.nav-gearline__gear--four {
  right: 39px;
  margin-top: 1px;
  font-size: 21px;
  color: #9da7a1;
  animation: nsi-gear-spin 10s linear infinite reverse;
}

.nav-gearline__gear--five {
  right: 3px;
  margin-top: -13px;
  font-size: 27px;
  color: #62ad05;
  animation: nsi-gear-spin 14s linear infinite;
}

.site-footer::after {
  display: none;
}

.footer-gears {
  position: absolute;
  right: max(22px, calc((100vw - 1540px) / 2));
  bottom: 34px;
  z-index: 0;
  width: 330px;
  height: 230px;
  overflow: hidden;
  pointer-events: none;
}

.footer-gears::before,
.footer-gears::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 270px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 76, 30, 0.18));
}

.footer-gears::before { top: 58px; }
.footer-gears::after { bottom: 48px; }

.footer-gears__gear {
  position: absolute;
  color: rgba(78, 155, 17, 0.22);
  filter: drop-shadow(0 8px 10px rgba(38, 61, 29, 0.08));
  animation: nsi-gear-spin 24s linear infinite;
}

.footer-gears__gear--one {
  right: 12px;
  bottom: -30px;
  font-size: 148px;
}

.footer-gears__gear--two {
  right: 136px;
  bottom: 76px;
  font-size: 92px;
  color: rgba(43, 60, 49, 0.14);
  animation-direction: reverse;
  animation-duration: 18s;
}

.footer-gears__gear--three {
  right: 228px;
  bottom: 38px;
  font-size: 67px;
  animation-duration: 15s;
}

.footer-gears__gear--four {
  right: 68px;
  bottom: 137px;
  font-size: 56px;
  color: rgba(43, 60, 49, 0.13);
  animation-direction: reverse;
  animation-duration: 13s;
}

.footer-gears__gear--five {
  right: 177px;
  bottom: -5px;
  font-size: 47px;
  animation-direction: reverse;
  animation-duration: 12s;
}

.footer-gears__gear--six {
  right: 266px;
  bottom: 112px;
  font-size: 34px;
  color: rgba(43, 60, 49, 0.16);
  animation-duration: 10s;
}

.site-footer .footer-grid,
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

.site-footer .footer-social a {
  color: #fff !important;
  background: #56b500;
}

.site-footer .footer-social a i {
  color: #fff !important;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  color: #fff !important;
  background: #2f7609;
  text-decoration: none;
}

@media (max-width: 1500px) {
  .site-header .nav {
    grid-template-columns: 118px 150px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .nav-gearline {
    width: 150px;
    min-width: 150px;
  }

  .nav-gearline__gear--two,
  .nav-gearline__gear--four { display: none; }
  .nav-gearline__gear--three { right: 44px; }
  .nav-gearline__gear--five { right: 2px; }
}

@media (max-width: 1320px) {
  .site-header .nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-header .brand { grid-column: 1; }
  .site-header .nav__links { grid-column: 2; justify-content: center; }
  .site-header .language-switch { grid-column: 3; }
}

@media (max-width: 900px) {
  .site-header .nav {
    grid-template-columns: minmax(100px, 1fr) auto auto;
  }

  .site-header .brand { grid-column: 1; }
  .site-header .nav__toggle { grid-column: 2; }
  .site-header .language-switch { grid-column: 3; }
  .site-header .nav__links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    border-top: 1px solid #e1e7df;
  }

  .site-header .nav__links > a,
  .site-header .nav-dropdown > .nav-dropdown__label {
    border-right: 0;
    border-left: 0;
  }

  .footer-gears {
    right: -34px;
    bottom: 26px;
    opacity: 0.78;
  }
}

@media (max-width: 640px) {
  .footer-gears {
    right: -88px;
    bottom: 30px;
    width: 260px;
    height: 210px;
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-gearline__gear,
  .footer-gears__gear {
    animation: none;
  }
}
