﻿/* ============================================================
   AUGESTO - FOOTER
   Revex-inspired newsletter and multi-column footer.
   ============================================================ */

.site-footer {
  background: #fff;
  color: var(--clr-theme);
  border-top: 1px solid #e5e7e5;
}

.footer__newsletter {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.footer__newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 455px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.footer__newsletter h2 {
  margin: 0;
  color: var(--clr-theme);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer__newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 8px;
  border-radius: 999px;
  background: var(--clr-gray);
}

.footer__newsletter-form input {
  min-width: 0;
  height: 100%;
  padding: 0 1.1rem;
  border: 0;
  background: transparent;
  color: var(--clr-theme);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  outline: 0;
}

.footer__newsletter-form input::placeholder {
  color: var(--clr-body);
}

.footer__newsletter-form button {
  min-height: 64px;
  padding: 0 1.7rem;
  border-radius: 999px;
  background: var(--clr-theme);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.footer__newsletter-form button:hover {
  background: #07130c;
  transform: translateY(-1px);
}

.footer__main {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer__main-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(3rem, 8vw, 8.5rem);
  align-items: start;
}

.footer__logo {
  margin-bottom: 1.75rem;
}

.footer__logo img {
  width: auto;
  height: 34px;
}

.footer__wordmark {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

.footer__email {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--clr-theme);
  color: var(--clr-theme);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.footer__socials {
  display: flex;
  gap: 0.78rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--clr-gray);
  color: var(--clr-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.footer__socials a:hover {
  background: var(--clr-theme);
  color: #fff;
  transform: translateY(-1px);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer__column h3 {
  margin: 0 0 1.7rem;
  color: var(--clr-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: 0;
}

.footer__column ul {
  display: grid;
  gap: 0.85rem;
}

.footer__column a {
  color: var(--clr-theme);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  letter-spacing: 0;
  transition: color var(--dur-base) var(--ease-out);
}

.footer__column a:hover {
  color: var(--clr-accent);
}

.footer__legal {
  border-top: 1px solid #e5e7e5;
  padding: 2.7rem 0 3.3rem;
}

.footer__legal-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.footer__legal a,
.footer__legal p {
  margin: 0;
  max-width: none;
  color: var(--clr-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.footer__legal p {
  text-align: center;
}

.footer__legal a:last-child {
  justify-self: end;
}

@media (max-width: 980px) {
  .footer__newsletter-inner,
  .footer__main-inner,
  .footer__legal-inner {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__legal p,
  .footer__legal a:last-child {
    text-align: left;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .footer__newsletter-form {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .footer__newsletter-form input,
  .footer__newsletter-form button {
    min-height: 52px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
  }

  .footer__column h3,
  .footer__column a,
  .footer__legal a,
  .footer__legal p {
    font-size: var(--fs-base);
  }
}

