/* Shared site footer: a short sign-up form, page links, and the copyright line.
   Used by the home, what-well-deliver, pricing, about, privacy and 404 pages; the form is handled by footer.js.
   Colors are written out (not page variables) so it looks the same on every page. */
.site-footer {
  background: #243746;
  border-top: 1px solid #F8F7F3;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-footer a {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: #FFFFFF; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 0 48px;
}

/* ----- sign-up ----- */
.footer-signup { flex: 1; max-width: 520px; }
.footer-signup h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.footer-signup > p { margin: 0 0 18px; }
.footer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.footer-form input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #1F2A33;
  background: #FFFFFF;
  border: 1px solid #D9DED8;
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.footer-form input::placeholder { color: #7A848A; }
.footer-form input:focus {
  outline: none;
  border-color: #EBD09C;
  box-shadow: 0 0 0 3px rgba(235, 208, 156, 0.35);
}
.footer-form input[aria-invalid="true"] { border-color: #E08674; }
.footer-form button {
  font: inherit;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  background: #F8F7F3;
  color: #243746;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.footer-form button:hover { background: #FFFFFF; transform: translateY(-1px); }
.footer-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.footer-message {
  margin: 14px 0 0;
  font-size: 15px;
  color: #FFFFFF;
  background: rgba(224, 134, 116, 0.18);
  border-left: 3px solid #E08674;
  border-radius: 4px;
  padding: 10px 12px;
}
.footer-message a { font-weight: 600; color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.footer-done { margin: 0; font-size: 17px; color: #FFFFFF; }
.footer-done:focus { outline: none; }
.footer-form[hidden] { display: none; }  /* the form is a grid, which would override hidden */

/* labels are read by screen readers; the placeholders show them on screen */
.footer-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----- links ----- */
.footer-nav {
  display: flex;
  gap: 64px;
}
.footer-nav h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a[aria-current="page"] {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: #EBD09C;
  text-underline-offset: 4px;
}

/* ----- bottom line ----- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(248, 247, 243, 0.14);
  font-size: 14px;
}

@media (max-width: 760px) {
  .footer-inner { padding: 0 16px; }
  .footer-top { flex-direction: column; gap: 40px; padding: 40px 0 36px; }
  .footer-signup { max-width: none; }
  .footer-form { grid-template-columns: 1fr; }
  .footer-nav { gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
