/* ==========================================================================
   Footer / contact
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--bone-dim);
  font-size: 14px;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-col a,
.footer-contact-line {
  font-size: 14px;
  color: var(--bone);
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--flare);
}

.footer-col svg {
  width: 15px;
  height: 15px;
  color: var(--bone-dim);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bone-dim);
  letter-spacing: 0.03em;
}

.footer-bottom__credit-link {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease);
}

.footer-bottom__credit-link:hover,
.footer-bottom__credit-link:focus-visible {
  color: var(--flare);
}

/* Thank-you / confirmation banner shown after successful submission */
.confirmation-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 300;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--flare);
  padding: 20px 22px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.3s var(--ease);
}

.confirmation-banner__eyebrow {
  margin-bottom: 8px;
}

.confirmation-banner p {
  font-size: 14px;
  color: var(--bone-dim);
  line-height: 1.5;
}

.confirmation-banner strong {
  color: var(--bone);
}

/* Full thank-you page (non-JS fallback / direct redirect target) */
.thankyou-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.thankyou-wrap .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}

.thankyou-wrap h1 {
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 18px;
}

.thankyou-wrap p {
  color: var(--bone-dim);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 32px;
}

.thankyou-wrap__contact {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--bone);
  margin-bottom: 32px;
}

.thankyou-wrap__contact a {
  color: var(--flare);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thankyou-wrap__contact a:hover,
.thankyou-wrap__contact a:focus-visible {
  color: var(--bone);
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .confirmation-banner {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
