/* ============ FONTS (must stay the first line, same as home.css) ============ */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600&family=DM+Sans:wght@400;500;700&display=swap");

/* =====================================================
   BASE.CSS - shared footer for every page that extends base.html.
   The top navigation lives in site-nav.css.
   All classes start with "site-" so they never clash with page CSS.
   ===================================================== */

:root {
  --hf-forest: #24483f;
  --hf-cream: #faf7f0;
  --hf-sage: #dce6da;
  --hf-button: #374d47;
  --hf-middle: #263f38;
  --hf-footer: #1b332d;
  --hf-terracotta: #c8795a;
  --hf-text: #292d2a;
  --hf-grey: #4f5651;
}

/* Sizes include padding + border, only inside the footer. */
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

/* ============ FOOTER ============ */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1328px;
  margin: 48px max(48px, calc((100% - 1328px) / 2)) 36px; /* same side space as the navbar, so both line up */
  padding: 48px 40px 28px;
  border-radius: 36px;
  background: var(--hf-footer);
  color: var(--hf-cream);
  font-family: "DM Sans", system-ui, sans-serif;
}

.site-footer-brand {
  max-width: 380px;
}

.site-footer .site-brand {
  margin-bottom: 14px;
  color: var(--hf-cream);
}

.site-footer .site-brand-icon {
  background: var(--hf-cream);
  color: var(--hf-footer);
}

.site-footer-text {
  margin: 0;
  color: var(--hf-sage);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer-title {
  margin: 2px 0 12px;
  color: var(--hf-cream);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
}

.site-footer-links a {
  display: flex;
  min-height: 36px;
  align-items: center;
  color: var(--hf-sage);
  font-size: 14px;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-bottom {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 247, 240, 0.22);
  color: var(--hf-sage);
  font-size: 13px;
  text-align: center;
}

/* ============ TABLET ============ */

@media (max-width: 1024px) {
  .site-footer {
    gap: 24px;
    margin: 40px 48px 24px; /* navbar keeps 48px on tablets */
    padding: 40px 30px 24px;
  }
}

/* ============ MOBILE ============ */

@media (max-width: 600px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 14px;
    margin: 32px 22px 12px; /* navbar uses 22px on phones */
    padding: 30px 20px 20px;
    border-radius: 22px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-title {
    font-size: 13px;
  }

  .site-footer-links a {
    min-height: 32px;
    font-size: 12px;
  }

  .site-footer-bottom {
    padding-top: 18px;
    font-size: 11px;
  }
}

.site-message {
  max-width: 1328px;
  margin: 16px auto;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.site-message-success {
  background: #dce6da;
  border: 1.5px solid #24483f;
  color: #24483f;
}
.site-message-error {
  background: #faf7f0;
  border: 1.5px solid #c8795a;
  color: #292d2a;
}

/* Flash messages: keep them inside the page width and make them smaller */
.site-messages {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 16px auto 0;
}
.site-message {
  margin: 0 0 8px;
  padding: 10px 18px;
  border-width: 1px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
