﻿.site-footer {
  position: relative;
  overflow: hidden;
  color: rgb(255 255 255 / 72%);
  background: var(--color-navy);
}

.site-footer::before {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 540px;
  height: 540px;
  content: "";
  border: 1px solid rgb(20 184 166 / 13%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-accent {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-teal),
    var(--color-emerald),
    var(--color-gold),
    var(--color-primary)
  );
  background-size: 220% 100%;
  animation: footer-accent-flow 9s ease-in-out infinite;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
  padding: clamp(62px, 8vw, 96px) 0 24px;
}

.footer-primary {
  display: grid;
  padding-bottom: 54px;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(150px, 0.65fr));
  gap: clamp(38px, 5vw, 72px);
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer-brand__link strong {
  color: var(--color-teal);
}

.footer-brand__mark {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 0 24px rgb(20 184 166 / 14%);
}

.footer-brand__mark img {
  position: absolute;
  top: -8px;
  left: -18px;
  width: 88px;
  max-width: none;
  height: 88px;
}

.footer-brand > p {
  max-width: 390px;
  margin: 24px 0 26px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-whatsapp {
  display: inline-flex;
  min-height: 47px;
  padding: 0 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(20 184 166 / 45%);
  border-radius: 8px;
  color: var(--color-white);
  background: rgb(20 184 166 / 10%);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.footer-whatsapp img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.footer-whatsapp:hover,
.footer-whatsapp:focus-visible {
  background: rgb(20 184 166 / 18%);
  box-shadow: 0 10px 26px rgb(20 184 166 / 10%);
  transform: translateY(-3px);
}

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 13px;
}

.footer-column h2 {
  margin: 4px 0 13px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column > span {
  color: rgb(255 255 255 / 67%);
  font-size: 0.79rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--color-teal);
  transform: translateX(3px);
}

.footer-contact a {
  display: grid;
  gap: 3px;
}

.footer-contact a span {
  color: var(--color-teal);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-pending {
  display: flex;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.footer-pending span {
  padding: 6px 9px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 5px;
  color: rgb(255 255 255 / 44%);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.footer-bottom {
  display: flex;
  padding-top: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.68rem;
}

.footer-bottom p {
  max-width: 540px;
  margin: 0;
  line-height: 1.6;
}

@keyframes footer-accent-flow {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

@media (max-width: 980px) {
  .footer-primary {
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(150px, 0.7fr));
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  .footer-shell {
    width: min(calc(100% - 28px), var(--content-width));
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .footer-primary {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-accent {
    animation: none;
  }

  .footer-whatsapp,
  .footer-column a {
    transition: none;
  }
}
