/* REV20: cohesive four-column industrial footer. */

footer {
  position: relative;
  padding-top: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 196, 0, .035), transparent 28%),
    linear-gradient(145deg, #070b0e 0%, #040709 58%, #080d10 100%);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

footer .footer-masthead {
  display: none;
}

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

footer .footer-grid {
  grid-template-columns: minmax(220px, 1.18fr) minmax(150px, .82fr) minmax(170px, .92fr) minmax(270px, 1.2fr);
  gap: clamp(34px, 4.2vw, 68px);
  align-items: start;
  padding-top: 54px;
  padding-bottom: 42px;
}

footer .footer-grid > div,
footer .footer-grid > nav {
  min-width: 0;
}

footer .footer-grid h2 {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 12px;
  color: #f3f5f5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
}

footer .footer-grid h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--yellow);
}

footer .footer-company .brand-mark__viewport {
  width: min(230px, 100%);
}

footer .footer-company h2 {
  margin-top: 22px;
  margin-bottom: 18px;
  padding-bottom: 0;
  color: var(--yellow);
  font-size: 13px;
}

footer .footer-company h2::after {
  display: none;
}

footer .footer-company address {
  margin-bottom: 12px;
  color: #c8ced0;
  font-size: 12px;
  line-height: 1.65;
}

footer .footer-company p {
  color: #8e989c;
  font-size: 10.5px;
}

footer .footer-grid > nav > a {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 6px 0 6px 14px;
  color: #b5bdc0;
  font-size: 11.5px;
  transition: color 180ms ease, transform 180ms ease;
}

footer .footer-grid > nav > a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 15px;
  line-height: 1;
}

footer .footer-grid > nav > a:hover,
footer .footer-grid > nav > a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

footer .footer-contact {
  padding-left: 4px;
}

.footer-phone-block,
.footer-email-block {
  position: relative;
  width: 100%;
  padding-left: 48px;
}

.footer-phone-block {
  min-height: 42px;
  margin-bottom: 17px;
}

.footer-phone-block::before,
.footer-email-block::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #4b5559;
  border-radius: 50%;
  color: var(--yellow);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
}

.footer-phone-block::before {
  content: "\260E\FE0E";
}

.footer-email-block {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 17px;
  padding-right: 4px;
  border-top: 1px solid #353d41;
  border-bottom: 1px solid #353d41;
  border-left: 0;
  background: transparent;
}

.footer-email-block::before {
  content: "\2709\FE0E";
  top: 16px;
  right: auto;
  opacity: 1;
}

.footer-phone-label,
.footer-email-label {
  display: block;
  margin: 0 0 5px;
  color: #8e989c;
  font: 800 9px/1.2 var(--font-mono), monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

footer .footer-grid > .footer-contact > .footer-phone-block > a {
  display: inline-block;
  margin: 0;
  color: #f5f6f6;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 820;
  line-height: 1.2;
  transition: color 180ms ease;
}

footer .footer-grid > .footer-contact > .footer-phone-block > a:hover,
footer .footer-grid > .footer-contact > .footer-phone-block > a:focus-visible {
  color: var(--yellow);
}

footer .footer-grid > .footer-contact > .footer-email-block > a.footer-email-address {
  display: inline-block;
  margin: 0;
  color: var(--yellow);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 880;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

footer .footer-grid > .footer-contact > .footer-email-block > a.footer-email-address:hover,
footer .footer-grid > .footer-contact > .footer-email-block > a.footer-email-address:focus-visible {
  color: #fff;
  text-decoration-color: var(--yellow);
}

.footer-email-support {
  display: block;
  max-width: 260px;
  margin-top: 7px;
  color: #a8b0b3;
  font-size: 11px;
  line-height: 1.45;
}

footer .footer-contact .footer-quote {
  justify-content: space-between;
  min-width: 225px;
  margin-top: 18px;
  padding: 14px 17px;
  transition: transform 180ms ease, filter 180ms ease;
}

footer .footer-contact .footer-quote:hover,
footer .footer-contact .footer-quote:focus-visible {
  color: var(--ink);
  filter: brightness(1.04);
  transform: translateY(-2px);
}

footer .footer-bottom {
  min-height: 56px;
  color: #7f888c;
  border-top-color: #30373b;
  font-size: 10px;
}

@media (max-width: 980px) {
  footer .footer-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 42px 64px;
  }
}

@media (max-width: 620px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 32px;
  }

  footer .footer-contact {
    order: -1;
    padding-left: 0;
  }

  footer .footer-grid h2 {
    margin-bottom: 22px;
  }

  .footer-phone-block,
  .footer-email-block {
    max-width: 100%;
  }

  footer .footer-grid > .footer-contact > .footer-email-block > a.footer-email-address {
    overflow-wrap: anywhere;
    font-size: clamp(21px, 7vw, 25px);
  }

  footer .footer-contact .footer-quote {
    width: 100%;
    min-height: 48px;
  }

  footer .footer-company .brand-mark__viewport {
    width: 200px;
  }

  footer .footer-bottom {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer a {
    transition: none !important;
  }
}
