.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--vg-green-deep);
  color: var(--vg-offwhite);
  border-top: 1px solid rgba(198, 169, 104, .34);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), rgba(251, 251, 247, .035) 50%, transparent calc(50% + .5px)),
    linear-gradient(180deg, rgba(251, 251, 247, .025), transparent 34%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding: clamp(54px, 6vw, 82px) 0 28px;
}

.footer-label {
  margin: 0;
  font-size: .67rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vg-earth);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) .75fr 1.05fr .65fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.footer-about > p:last-child {
  max-width: 500px;
  margin: 18px 0 0;
  font-size: .94rem;
  line-height: 1.78;
  color: rgba(251, 251, 247, .7);
}

.footer-nav,
.footer-capabilities,
.footer-location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav .footer-label,
.footer-capabilities .footer-label,
.footer-location .footer-label {
  margin-bottom: 18px;
}

.footer-nav a,
.footer-capabilities span,
.footer-location strong,
.footer-location > span {
  font-size: .82rem;
  line-height: 1.55;
}

.footer-nav a {
  position: relative;
  padding: 5px 0;
  color: rgba(251, 251, 247, .78);
  transition: color .2s ease, transform .2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--vg-earth);
  transition: right .22s ease;
}

.footer-nav a:hover {
  color: var(--vg-offwhite);
  transform: translateX(3px);
}

.footer-nav a:hover::after {
  right: 0;
}

.footer-capabilities {
  gap: 7px;
}

.footer-capabilities span {
  color: rgba(251, 251, 247, .65);
}

.footer-location strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--vg-offwhite);
}

.footer-location > span {
  margin-top: 4px;
  color: rgba(251, 251, 247, .58);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid rgba(251, 251, 247, .13);
  font-size: .64rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .095em;
  text-transform: uppercase;
  color: rgba(251, 251, 247, .46);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(251, 251, 247, .72);
  transition: color .2s ease, transform .2s ease;
}

.footer-back-top:hover {
  color: var(--vg-offwhite);
  transform: translateY(-2px);
}

.footer-back-top span {
  color: var(--vg-earth);
  font-size: .82rem;
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.4fr .7fr 1fr;
  }

  .footer-location {
    grid-column: 1 / -1;
    padding-top: 26px;
    border-top: 1px solid rgba(251, 251, 247, .1);
  }
}

@media (max-width: 760px) {
  .footer-shell {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-location {
    grid-column: auto;
    padding-top: 0;
    border-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-about,
  .footer-location {
    grid-column: auto;
  }

  .footer-nav,
  .footer-capabilities,
  .footer-location {
    padding-top: 26px;
    border-top: 1px solid rgba(251, 251, 247, .1);
  }

  .footer-bottom-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (min-width: 761px) {
  .footer-back-top {
    position: fixed !important;
    right: 18px;
    bottom: 18px;
    z-index: 74;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(243, 226, 192, .72);
    border-radius: 50%;
    background: rgba(1, 61, 46, .92);
    color: #FBFBF7;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(.94);
    box-shadow: 0 7px 18px rgba(1, 43, 33, .22);
    transition:
      opacity .2s ease,
      visibility 0s linear .2s,
      transform .24s ease,
      background-color .2s ease;
  }

  .footer-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .footer-back-top:hover {
    color: #FBFBF7;
    background: #065B42;
    transform: translateY(-2px) scale(1);
  }

  .footer-back-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 11px;
    height: 11px;
    margin: 0;
    transform: translate(-50%, -56%);
    transform-origin: center;
    background: currentColor;
    color: #FBFBF7;
    font-size: 0;
    line-height: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2019V5M6.5%2010.5%2012%205l5.5%205.5'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2019V5M6.5%2010.5%2012%205l5.5%205.5'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }
}

@media (max-width: 640px) {
  .footer-back-top {
    position: fixed !important;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 74;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(243, 226, 192, .72);
    border-radius: 50%;
    background: rgba(1, 61, 46, .92);
    color: #FBFBF7;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(.94);
    box-shadow: 0 7px 18px rgba(1, 43, 33, .22);
    transition:
      opacity .2s ease,
      visibility 0s linear .2s,
      transform .24s ease,
      background-color .2s ease;
  }

  .footer-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .footer-back-top:hover {
    color: #FBFBF7;
    transform: translateY(0) scale(1);
  }

  .footer-back-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 11px;
    height: 11px;
    margin: 0;
    transform: translate(-50%, -56%);
    transform-origin: center;
    background: currentColor;
    color: #FBFBF7;
    font-size: 0;
    line-height: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2019V5M6.5%2010.5%2012%205l5.5%205.5'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2019V5M6.5%2010.5%2012%205l5.5%205.5'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav a,
  .footer-nav a::after,
  .footer-back-top {
    transition: none !important;
  }
}
