/**
 * Footer — desktop: brand (left) · newsletter (center) · links (right)
 * Mobile (≤1024px): newsletter · brand (logo) · links
 */

.site-footer {
  padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 1.8rem);
}

.site-footer .footer-inner {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* —— Desktop —— */
@media (min-width: 1025px) {
  .site-footer .footer-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, 1fr);
    grid-template-areas: "brand newsletter aside";
    align-items: center;
  }

  .site-footer .footer-col--brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-self: start;
    align-self: center;
    max-width: 18rem;
  }

  .site-footer .footer-col--newsletter {
    grid-area: newsletter;
    width: 100%;
    max-width: 28rem;
    justify-self: center;
    align-self: center;
    line-height: 0;
  }

  .site-footer .footer-col--aside {
    grid-area: aside;
    display: flex;
    justify-content: flex-end;
    align-self: center;
    gap: clamp(2.75rem, 5vw, 4rem);
    justify-self: end;
  }
}

/* —— Mobile / tablet —— */
@media (max-width: 1024px) {
  .site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "newsletter"
      "brand"
      "aside";
    align-items: start;
    text-align: left;
  }

  .site-footer .footer-col--newsletter {
    grid-area: newsletter;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    line-height: 0;
  }

  .site-footer .footer-col--brand {
    grid-area: brand;
    max-width: none;
    justify-self: stretch;
    align-self: start;
  }

  .site-footer .footer-col--aside {
    grid-area: aside;
    flex-direction: column;
    align-items: flex-start;
    justify-self: stretch;
    gap: 0;
  }

  .site-footer .footer-connect {
    margin-top: 2.5rem;
  }

  .site-footer .footer-quick-links,
  .site-footer .footer-connect {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer .footer-nav {
    align-items: flex-start;
  }
}

.site-footer .footer-logo {
  height: 48px;
  width: auto;
  display: block;
}

.site-footer .footer-copyright {
  margin: 0;
}

.site-footer .footer-col--newsletter iframe {
  width: 100%;
  display: block;
  border: none;
  border-radius: 20px;
  background: transparent;
  vertical-align: top;
}

.site-footer .footer-quick-links,
.site-footer .footer-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  text-align: right;
}

.site-footer .footer-col-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(176, 179, 214, 0.9);
}

.site-footer .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: rgba(249, 249, 249, 0.55);
}

.site-footer .footer-nav a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  color: #dfe2ff;
}

@media (max-width: 1024px) {
  .site-footer .footer-quick-links,
  .site-footer .footer-connect,
  .site-footer .footer-nav {
    align-items: flex-start;
    text-align: left;
  }
}
