/* Shared footer: independent from the landing page utility CSS. */
.site-footer {
  width: 100%;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
  background: #2a3236;
  color: #fff;
  font-family: "DanaRegular", sans-serif;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible {
  color: #e9b276;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-logo { display: inline-block; margin-bottom: 36px; }
.footer-logo img { width: 116px; height: auto; }

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 48px;
  align-items: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links h3, .footer-newsletter h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "DanaBold", sans-serif;
  font-size: 1rem;
}

.footer-links ul, .footer-social, .footer-legal-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
}

.footer-newsletter p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
  line-height: 2;
}

.footer-email-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .8); }
.footer-email-row input {
  width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0;
  background: transparent; color: #fff; font: inherit;
}
.footer-email-row input::placeholder { color: rgba(255, 255, 255, .72); }
.footer-email-row button { padding: 8px 12px; color: #fff; font-size: 1.25rem; }
.footer-privacy-link { display: inline-block; margin-top: 12px; font-size: .78rem; color: rgba(255, 255, 255, .82); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; align-items: center; font-size: .82rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .8);
  font-size: .78rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Existing footer markup is utility-class based; these selectors make it work
   on templates that do not load the landing page's utility stylesheet. */
footer[class~="relative"] {
  width: 100%;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
  background: #2a3236;
  color: #fff;
  font-family: "DanaRegular", sans-serif;
}
footer[class~="relative"] a { color: inherit; text-decoration: none; }
footer[class~="relative"] a:hover, footer[class~="relative"] a:focus-visible { color: #e9b276; text-decoration: underline; text-underline-offset: 4px; }
footer[class~="relative"] > .logo { display: inline-block; margin-bottom: 36px; }
footer[class~="relative"] > .logo img { width: 116px; height: auto; }
footer[class~="relative"] > div:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 48px;
  align-items: start;
}
footer[class~="relative"] > div:first-of-type > ul:first-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer[class~="relative"] > div:first-of-type h3 { margin: 0 0 16px; color: #fff; font-size: 1rem; }
footer[class~="relative"] > div:first-of-type ul { margin: 0; padding: 0; list-style: none; }
footer[class~="relative"] > div:first-of-type > ul:first-child ul li { margin-bottom: 10px; font-size: .875rem; }
footer[class~="relative"] > div:first-of-type > div:last-child > form { border-bottom: 1px solid rgba(255, 255, 255, .8); }
footer[class~="relative"] > div:first-of-type > div:last-child > form p { margin: 0 0 14px; color: rgba(255, 255, 255, .82); font-size: .875rem; line-height: 2; }
footer[class~="relative"] > div:first-of-type > div:last-child > form > div { display: flex; align-items: center; }
footer[class~="relative"] > div:first-of-type > div:last-child input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; }
footer[class~="relative"] > div:first-of-type > div:last-child input::placeholder { color: rgba(255, 255, 255, .72); }
footer[class~="relative"] > div:first-of-type > div:last-child button { padding: 8px 12px; color: #fff; }
footer[class~="relative"] > div:first-of-type > div:last-child > ul { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
footer[class~="relative"] > div:last-of-type { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .8); font-size: .78rem; }
footer[class~="relative"] > div:last-of-type ul { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 800px) {
  .footer-content { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer[class~="relative"] > div:first-of-type { grid-template-columns: 1fr; gap: 36px; }
  footer[class~="relative"] > div:first-of-type > ul:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .site-footer { padding: 40px 20px 24px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  footer[class~="relative"] > div:first-of-type > ul:first-child { grid-template-columns: 1fr; }
  footer[class~="relative"] > div:last-of-type { flex-direction: column; gap: 16px; }
}
