/* Hot Commons — shared site footer
   Used on index/passes/motive/private. Depends on these CSS variables being
   defined on the page: --accent, --accent-dark, --accent-deep, --maxw
*/

/* status messages (used by contact + newsletter forms) */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}
.form-status.success { color: var(--accent-deep); }
.form-status.error { color: #c44; }
/* Empty status takes no space — keeps the form layout tight when idle. */
.form-status:empty { display: none; }

/* In the dark footer, the contact-form defaults are too loose and centered.
   Tighten and left-align for the footer-col context. */
.site-footer .form-status {
  margin-top: 0.5rem;
  text-align: left;
}

/* footer */
footer.site-footer {
  background: #4d4d4d;
  color: rgba(255,255,255,0.85);
  padding: 4.5rem 1.5rem 2rem;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
}
.footer-grid {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
.footer-col h4 {
  font-family: 'Henderson Sans', 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1.25rem;
}
.footer-col p {
  margin: 0 0 0.4rem;
  color: rgba(255,255,255,0.75);
}
.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }

.footer-mailing-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}
.footer-mailing-form input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 0.9rem;
}
.footer-mailing-form input::placeholder { color: rgba(255,255,255,0.45); }
.footer-mailing-form input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.footer-mailing-form button {
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: 'Henderson Sans', 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}
.footer-mailing-form button:hover { background: var(--accent-dark); color: #fff; }
.footer-mailing-form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* On the dark footer, --accent-deep (brown) has poor contrast against charcoal —
   switch success to the lighter brand orange in this context. */
.site-footer .form-status.success { color: var(--accent); }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 2rem;
}
.footer-socials a {
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.footer-socials a:hover { color: var(--accent); }
.footer-socials svg {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
