/* Footer */

.site-footer {
  background-color: var(--color-beige-600, #e5dfca);
  background-image: url("../assets/images/footer-background.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  margin: 0 12px 12px 12px;
  border-radius:  0 0 16px 16px;
  padding-top: 80px;
}

.site-footer .site-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1488px;
  margin: 0 auto;
  padding: 0 80px 40px 80px;
}

/* Call To Action (top section) */
.footer-cta__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 0 60px;
}

.footer-cta {
  max-width: 60%;
  text-align: center;
}

/* Eyebrow text (first paragraph inside CTA) */
.footer-cta > p:first-child {
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  line-height: 1.875rem; /* 30px */
  margin: 0 0 8px;
}


.footer-cta__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-cta .kfb-button {
  margin-top: 8px;
}

/* Main footer columns */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 50/50 layout wrapper */
.footer-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* Left side: Columns (50%) */
.footer-columns-wrapper {
  width: 100%;
}

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

/* Right side: Social Media + Legal Links (50%) */
.footer-right-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer-social,
.footer-social-widget {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a,
.footer-social-widget a,
.footer-social img,
.footer-social-widget img,
.footer-social .wp-block-image img,
.footer-social-widget .wp-block-image img {
  width: 32px;
  height: 32px;
  display: block;
}

.footer-social img,
.footer-social-widget img,
.footer-social .wp-block-image img,
.footer-social-widget .wp-block-image img {
  object-fit: contain;
}

.footer-social .wp-block-image,
.footer-social-widget .wp-block-image {
  margin: 0;
  width: 32px;
  height: 32px;
}

.footer-legal,
.footer-legal-widget {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-legal a,
.footer-legal-widget a,
.footer-legal .wp-block-navigation a,
.footer-legal-widget .wp-block-navigation a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.6rem; /* ~26px */
}

.footer-legal a:hover,
.footer-legal-widget a:hover,
.footer-legal .wp-block-navigation a:hover,
.footer-legal-widget .wp-block-navigation a:hover {
  text-decoration: underline;
}

.footer-legal .wp-block-navigation,
.footer-legal-widget .wp-block-navigation {
  margin: 0;
}

.footer-legal .wp-block-navigation ul,
.footer-legal-widget .wp-block-navigation ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-column .widget-title {
  margin: 0 0 12px;
}

.footer-column p {
  margin: 0 0 8px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin: 0 0 6px;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* Bottom row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}

.footer-navigation #footer-menu {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-navigation #footer-menu > li > a {
  text-decoration: none;
  color: var(--color-primary, #111111);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    margin: 0 8px 8px 8px;
  }

  .site-footer .site-container {
    padding: 40px 24px;
  }

  .footer-cta__wrapper {
    padding: 40px 0;
  }

  .footer-cta {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    
  }

  .footer-cta__content {
    max-width: 100%;
  }

  .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-right-wrapper {
    align-items: center;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Change order on mobile: legal links first, then copyright */
  .footer-bottom .footer-legal {
    order: 1;
  }

  .footer-bottom .site-info {
    order: 2;
  }
}


