/* =========================================
   SITE FOOTER — premium, flush with brand
========================================= */

.footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--section-spacing);
  padding: 88px 0 32px;
  background: #0F766E;
  color: #ffffff;
}

.footer::before {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* Match header brand scale */
.footer-brand-link {
  margin-bottom: 22px;
}

.footer .brand-area img {
  width: 56px;
  height: 56px;
}

.footer .brand-text {
  color: #ffffff;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-brand > p {
  margin: 0 0 28px;
  max-width: 38ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 14px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: #ffffff;
}

/* Tablet */
@media (max-width: 980px) {
  .footer {
    padding: 72px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 560px;
  }

  .footer .brand-area img {
    width: 52px;
    height: 52px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .footer {
    padding: 64px 0 28px;
    margin-top: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
  }

  .footer .brand-area img {
    width: 48px;
    height: 48px;
  }

  .footer .brand-text {
    font-size: 20px;
  }

  .footer-links,
  .footer-contact {
    padding-top: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 56px 0 24px;
  }

  .footer-brand > p {
    font-size: 15px;
  }

  .footer-links a,
  .footer-contact a,
  .footer-contact span {
    font-size: 15px;
  }

  .footer-socials a {
    width: 42px;
    height: 42px;
  }
}
