html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main,
body > .content,
body > .page-content {
  flex: 1 0 auto;
}

.ftr {
  flex-shrink: 0;
}

:root {
  --ftr-bg: var(--hdr-green-tint, #eaf4ee);
  --ftr-border: var(--hdr-border, #e6ede8);
  --ftr-text: var(--hdr-text, #46524A);
  --ftr-text-muted: var(--hdr-text-muted, #5b6b61);
  --ftr-green: var(--green-400, #5fa87c);
}

.ftr {
  background: var(--ftr-bg);
  padding: 26px 40px;
}

.ftr-inner {
  margin: 0 auto;
}

/* Top row: brand / nav / social --------------------------------------- */

.ftr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ftr-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ftr-logo-image {
  flex-shrink: 0;
  display: block;
  width: 2.5rem; 
  height: auto; 
  margin-right: 0.5rem;
}

.ftr-logo-mark {
  font-family: var(--font-logo-text);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--hdr-text);
  text-decoration:none
}

.ftr-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--hdr-text);
  border-radius: 8px;
}

.ftr-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.ftr-nav-link {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ftr-text);
  text-decoration: none;
  border-radius: 4px;
}

.ftr-nav-link:hover {
  color: var(--ftr-green);
}

.ftr-nav-link:focus-visible {
  outline: 2px solid var(--ftr-green);
  outline-offset: 3px;
}

.ftr-social-and-phone-number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ftr-social {
  display: flex;
  gap: 8px;
}

.ftr-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ftr-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--ftr-text-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ftr-social-link:hover {
  background: var(--ftr-green);
  border-color: var(--ftr-green);
  color: #ffffff;
}

.ftr-social-link:focus-visible {
  outline: 2px solid var(--ftr-green);
  outline-offset: 2px;
}

/* Bottom row: copyright / legal ---------------------------------------- */

.ftr-bottom {
  border-top: 1px solid var(--ftr-border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 12.5px;
  color: var(--ftr-text-muted);
}

.ftr-legal {
  display: flex;
  gap: 18px;
}

.ftr-legal-link {
  color: var(--ftr-text-muted);
  text-decoration: underline;
}

.ftr-legal-link:hover {
  color: var(--ftr-green);
}

.ftr-legal-link:focus-visible {
  outline: 2px solid var(--ftr-green);
  outline-offset: 2px;
}

.ftr-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.ftr-brand-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftr-brand-tagline {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 12.5px;
  color: var(--ftr-text-muted);
  margin: 4px 0 0;
  max-width: 260px;
}

.ftr-social-link svg {
  width: 15px;
  height: 15px;
}

.ftr-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ftr-text);
  text-decoration: none;
  margin-top: 6px;
}

.ftr-contact svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ftr-green);
}

.ftr-contact:hover {
  color: var(--ftr-green);
}

.ftr-contact:focus-visible {
  outline: 2px solid var(--ftr-green);
  outline-offset: 3px;
}

.ftr-copy-address-wrapper {
  display: flex;
  flex-direction: column;
}

@media (max-width: 850px) {
  .ftr-brand {
    align-items: center;
  }

  .ftr-brand-tagline {
    text-align: center;
  }

  .ftr-top, .ftr-bottom {
    flex-direction: column;
    justify-content: center;
  }
}