/* Site footer — Figma 89:1381 (light advisory footer) */
:root {
  --footer-max: 1216px;
  --footer-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --footer-bg: var(--bg-elev);
  --footer-border: var(--border);
  --footer-heading: var(--text);
  --footer-muted: var(--text-dim);
  --footer-input-bg: var(--bg-card);
  --footer-btn-text: var(--btn-on-accent);
}

html[data-theme="light"] {
  --footer-bg: #ffffff;
  --footer-border: #e5e5e8;
  --footer-heading: #1a1a1e;
  --footer-muted: #5a5a5f;
  --footer-input-bg: #f8f8f8;
  --footer-btn-text: #ffffff;
}

footer.site-footer,
footer:not(.contact-footer) {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

footer.site-footer .footer-inner,
footer:not(.contact-footer) .footer-inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  padding-left: var(--footer-gutter);
  padding-right: var(--footer-gutter);
}

/* Stay up to date */
footer.site-footer .footer-top,
footer:not(.contact-footer) .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 41px;
  border-bottom: 1px solid var(--footer-border);
  gap: 2rem;
  flex-wrap: wrap;
}

footer.site-footer .footer-top h3,
footer:not(.contact-footer) .footer-top h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0;
  color: var(--footer-heading);
  margin: 0;
}

footer.site-footer .newsletter-form,
footer:not(.contact-footer) .newsletter-form {
  display: flex;
  align-items: stretch;
  width: 376px;
  max-width: 100%;
  flex-shrink: 0;
}

footer.site-footer .newsletter-form input,
footer:not(.contact-footer) .newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: var(--footer-input-bg);
  border: 1px solid var(--footer-border);
  color: var(--footer-heading);
  padding: 11px 17px;
  border-radius: 4px 0 0 4px;
  border-right: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
}

footer.site-footer .newsletter-form input::placeholder,
footer:not(.contact-footer) .newsletter-form input::placeholder {
  color: var(--footer-heading);
  opacity: 0.5;
}

footer.site-footer .newsletter-form input:focus,
footer:not(.contact-footer) .newsletter-form input:focus {
  outline: none;
  border-color: var(--gold, var(--accent, #e8b14a));
}

footer.site-footer .newsletter-form button,
footer:not(.contact-footer) .newsletter-form button {
  height: 42px;
  background: var(--gold, var(--accent, #e8b14a));
  color: var(--footer-btn-text);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

/* Link grid */
footer.site-footer .footer-main,
footer:not(.contact-footer) .footer-main {
  padding-top: 56px;
  padding-bottom: 57px;
  border-bottom: 1px solid var(--footer-border);
}

footer.site-footer .footer-grid,
footer:not(.contact-footer) .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

footer.site-footer .footer-brand .wordmark,
footer:not(.contact-footer) .footer-brand .wordmark {
  margin-bottom: 20px;
}

footer.site-footer .footer-brand p,
footer:not(.contact-footer) .footer-brand p {
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 19.5px;
  max-width: 268px;
  margin-bottom: 20px;
}

footer.site-footer .socials,
footer:not(.contact-footer) .socials {
  display: flex;
  gap: 12px;
}

footer.site-footer .socials a,
footer:not(.contact-footer) .socials a {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-muted);
  transition: color 0.2s, border-color 0.2s;
}

footer.site-footer .socials a:hover,
footer:not(.contact-footer) .socials a:hover {
  color: var(--gold, var(--accent, #e8b14a));
  border-color: var(--gold, var(--accent, #e8b14a));
}

footer.site-footer .footer-col h4,
footer.site-footer .footer-col h5,
footer:not(.contact-footer) .footer-col h4,
footer:not(.contact-footer) .footer-col h5 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.44px;
  line-height: 16px;
  text-transform: none;
  color: var(--footer-muted);
  margin: 0 0 0;
}

footer.site-footer .footer-col ul,
footer:not(.contact-footer) .footer-col ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer.site-footer .footer-col p,
footer:not(.contact-footer) .footer-col p {
  color: var(--footer-muted);
  font-size: 14px;
  margin: 0;
}

footer.site-footer .footer-col .footer-address,
footer:not(.contact-footer) .footer-col .footer-address {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

footer.site-footer .footer-col .footer-address p,
footer:not(.contact-footer) .footer-col .footer-address p {
  line-height: 22.75px;
}

footer.site-footer .footer-col .footer-address .footer-phone,
footer:not(.contact-footer) .footer-col .footer-address .footer-phone {
  margin-top: 12px;
  line-height: 20px;
}

footer.site-footer .footer-col a,
footer:not(.contact-footer) .footer-col a {
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

footer.site-footer .footer-col a:hover,
footer:not(.contact-footer) .footer-col a:hover {
  color: var(--footer-heading);
}

/* Bottom bar */
footer.site-footer .footer-bottom,
footer:not(.contact-footer) .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--footer-muted);
}

footer.site-footer .footer-bottom .links,
footer:not(.contact-footer) .footer-bottom .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer.site-footer .footer-bottom .links a,
footer:not(.contact-footer) .footer-bottom .links a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer.site-footer .footer-bottom .links a:hover,
footer:not(.contact-footer) .footer-bottom .links a:hover {
  color: var(--footer-heading);
}

@media (max-width: 900px) {
  footer.site-footer .footer-grid,
  footer:not(.contact-footer) .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  footer.site-footer .footer-top,
  footer:not(.contact-footer) .footer-top {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  footer.site-footer .footer-grid,
  footer:not(.contact-footer) .footer-grid {
    grid-template-columns: 1fr;
  }

  footer.site-footer .newsletter-form,
  footer:not(.contact-footer) .newsletter-form {
    width: 100%;
  }
}
