:root {
  --reher-footer-surface: var(--card, oklch(98.6% 0.002 67.8));
  --reher-footer-foreground: var(--card-foreground, oklch(14.7% 0.004 49.3));
  --reher-footer-muted: var(--muted-foreground, oklch(44.4% 0.011 73.6));
  --reher-footer-border: var(--border, oklch(14.7% 0.004 49.3 / 10%));
  --reher-footer-primary: var(--primary, oklch(14.7% 0.004 49.3));
  --reher-footer-primary-foreground: var(--primary-foreground, oklch(1 0 0));
  --reher-footer-focus: var(--ring, oklch(54.7% 0.021 43.1));
  --reher-footer-control-radius: 0.625rem;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer {
  width: 100%;
  color: var(--reher-footer-foreground);
  background: var(--reher-footer-surface);
  font-family: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: 2rem 1rem;
}

.site-footer__brand-column,
.site-footer__content-grid {
  grid-column: 1 / -1;
  min-width: 0;
}

.site-footer__brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer__brand-monogram,
.site-footer__brand-wordmark {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-footer__brand-monogram {
  height: 1.875rem;
}

.site-footer__brand-wordmark {
  height: 1.125rem;
}

.dark .site-footer__brand-monogram,
.dark .site-footer__brand-wordmark,
.dark .site-footer__whatsapp img {
  filter: invert(1);
}

.site-footer__description {
  max-width: 23rem;
  margin: 0;
  color: var(--reher-footer-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer__separator {
  height: 1px;
  background: var(--reher-footer-border);
}

.site-footer__menu,
.site-footer__cta-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer__menu-column,
.site-footer__utility {
  min-width: 0;
}

.site-footer__menu-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__heading {
  margin: 0;
  color: var(--reher-footer-foreground);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--reher-footer-muted);
}

.site-footer__menu a,
.site-footer__contact a {
  color: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 300ms ease;
}

.site-footer__menu a:hover,
.site-footer__contact a:hover,
.site-footer__menu .current-menu-item > a,
.site-footer__menu .current_page_item > a {
  color: var(--reher-footer-foreground);
}

.site-footer__utility {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 1.25rem;
}

.site-footer__contact {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  margin: 0;
  color: var(--reher-footer-muted);
  line-height: 1.5;
}

.site-footer__contact dd {
  min-width: 0;
  margin: 0;
}

.site-footer__actions {
  min-height: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__cta {
  min-width: 0;
}

.site-footer__cta-menu {
  display: flex;
  flex-wrap: wrap;
}

.site-footer__cta-menu > li:not(:first-child) {
  display: none;
}

.site-footer__whatsapp img {
  display: block;
}

.site-footer a:not(.reher-button):focus-visible {
  outline: 3px solid var(--reher-footer-focus);
  outline-offset: 3px;
}

.site-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--reher-footer-border);
}

.site-footer__copyright p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.site-footer__credit a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 40rem) {
  .site-footer__main {
    gap: 2rem;
    padding: 4rem 1.5rem;
  }

  .site-footer__content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .site-footer__utility {
    grid-column: span 2 / span 2;
  }

  .site-footer__copyright {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 48rem) {
  .site-footer__main {
    padding-block: 6rem;
  }
}

@media (min-width: 64rem) {
  .site-footer__brand-column {
    grid-column: span 2 / span 2;
  }

  .site-footer__content-grid {
    grid-column: span 4 / span 4;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__menu a,
  .site-footer__contact a,
  .site-footer__cta-menu a,
  .site-footer__whatsapp {
    transition: none;
  }
}
