﻿/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  --footer-bg: #02070d;
  --footer-panel: rgba(255, 255, 255, 0.035);
  --footer-line: rgba(255, 255, 255, 0.11);
  --footer-line-strong: rgba(34, 184, 240, 0.34);
  --footer-accent: #22b8f0;
  --footer-text: #f6f9ff;
  --footer-muted: rgba(246, 249, 255, 0.68);
  color: var(--footer-text);
  background: var(--footer-bg);
  color-scheme: dark;
  overflow-x: clip;
}

.footer-top {
  position: relative;
  padding: clamp(42px, 5vw, 66px) 0 clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--footer-line);
  background:
    linear-gradient(180deg, #02070d 0%, #010409 100%);
}

.footer-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 184, 240, 0.56), transparent);
  pointer-events: none;
}

.footer-top__container {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  grid-template-areas:
    "brand columns";
  gap: clamp(30px, 4vw, 68px);
  align-items: start;
}

.footer-top__brand {
  grid-area: brand;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.footer-top__logo-link {
  width: fit-content;
}

.footer-top__logo {
  width: min(100%, 178px);
  height: auto;
}

.footer-top__tagline {
  max-width: 28ch;
  margin: 0;
  color: var(--footer-muted);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.5;
}

.footer-top__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-top__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base);
}

.footer-top__social a:hover,
.footer-top__social a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--footer-line-strong);
  color: var(--footer-accent);
  background: rgba(34, 184, 240, 0.08);
}

.footer-top__social img {
  width: 21px;
  height: 21px;
  display: block;
  opacity: 0.92;
  filter: brightness(0) invert(1);
  transition:
    opacity var(--transition-base),
    filter var(--transition-base);
}

.footer-top__social a:hover img,
.footer-top__social a:focus-visible img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(67%) sepia(97%) saturate(1722%) hue-rotate(163deg) brightness(99%) contrast(90%);
}

.footer-top__eyebrow,
.footer-top__contact h3,
.footer-top__nav h3,
.footer-top__services h3 {
  margin: 0;
  color: var(--footer-accent);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-top__columns {
  grid-area: columns;
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(140px, 0.65fr) minmax(230px, 1fr) minmax(92px, auto);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
  padding: 0;
  border-top: 0;
}

.footer-top__contact,
.footer-top__nav,
.footer-top__services {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.footer-top__phone {
  width: fit-content;
  max-width: 100%;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.footer-top__mail {
  width: fit-content;
  max-width: 100%;
  color: var(--footer-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.footer-top__address {
  margin: 2px 0 0;
  color: var(--footer-muted);
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.45;
}

.footer-top__nav ul,
.footer-top__services ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-top__nav a,
.footer-top__services a {
  color: rgba(246, 249, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-top__nav a::before,
.footer-top__services a::before {
  content: ">";
  margin-right: 8px;
  color: var(--footer-accent);
}

.footer-top__nav a:hover,
.footer-top__nav a:focus-visible,
.footer-top__services a:hover,
.footer-top__services a:focus-visible {
  color: #ffffff;
}

.footer-top__claim {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 96px;
  padding: 10px;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  background: var(--footer-panel);
  color: var(--footer-muted);
  text-align: center;
}

.footer-top__claim img {
  width: 58px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.footer-top__claim span {
  max-width: 11ch;
  font-size: 0.62rem;
  line-height: 1.2;
}

.footer {
  border-top: 1px solid var(--footer-line);
  background: #010409;
}

.footer__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 58px;
}

.footer p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.footer strong {
  color: #ffffff;
}

.footer p:nth-child(2) {
  justify-self: center;
  color: rgba(246, 249, 255, 0.82);
  text-align: center;
}

.footer a {
  justify-self: end;
  color: var(--footer-accent);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  .footer-top__container {
    grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr);
    grid-template-areas:
      "brand columns";
    gap: 30px;
  }

  .footer-top__brand {
    max-width: 320px;
  }

  .footer-top__tagline {
    max-width: 30ch;
  }

  .footer-top__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-top__claim {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .footer-top {
    padding: 34px 0 24px;
  }

  .footer-top__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "columns";
    gap: 24px;
  }

  .footer-top__brand {
    justify-items: start;
  }

  .footer-top__logo {
    width: 148px;
  }

  .footer-top__tagline {
    font-size: 0.84rem;
  }

  .footer-top__columns {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-line);
  }

  .footer-top__claim {
    justify-items: start;
    text-align: left;
  }

  .footer-top__claim span {
    max-width: none;
  }

  .footer__container {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    padding: 14px 0 82px;
  }

  .footer p:nth-child(2),
  .footer a {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .footer-top {
    padding-top: 30px;
  }

  .footer-top__social a {
    width: 38px;
    height: 38px;
  }

  .footer-top__social img {
    width: 19px;
    height: 19px;
  }

  .footer-top__phone {
    font-size: clamp(1.16rem, 7vw, 1.42rem);
  }

  .footer-top__mail,
  .footer-top__nav a,
  .footer-top__services a {
    font-size: 0.76rem;
  }
}
