/* Footer styles */

.site-footer {
  background-color: #fff; /* White background */
  color: #333;
  margin-top: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer a {
  color: #411A50; /* WildApricot purple */
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ff7f00; /* WildApricot orange */
  text-decoration: none;
}

/* Footer logo */
.site-footer .footer-logo img {
  max-width: 220px;
  height: auto;
}

/* Badge items */
.site-footer .footer-badges {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100% !important;
}

.site-footer .badge-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .badge-item img {
  max-height: 60px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Social media links */
.site-footer .social-links {
  display: flex;
  align-items: center;
}

.site-footer .social-links .social-link {
  color: #411A50;
  transition: color 0.3s ease;
  margin-right: 1.5rem;
}

.site-footer .social-links .social-link:hover,
.site-footer .social-links .social-link:focus {
  color: #ff7f00;
}

/* Newsletter subscription box */
.site-footer .newsletter-box {
  background-color: #fff6ed; /* Light orange background */
  /* border-radius: 30px; */
  /* padding: 2rem; */
  /* position: relative; */
  overflow: visible;
  max-width: 450px;
}

.site-footer .newsletter-title {
  color: #411A50;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  padding-top: 50px;
}

.form-control {
  border: 2px dashed #411A50;
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  width: 100%;
}

.site-footer .newsletter-form .btn-cta {
  background-color: #411A50;
  border-color: #411A50;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  width: 100%;
  margin-top: 0.5rem;
}

.site-footer .newsletter-form .btn-cta:hover,
.site-footer .newsletter-form .btn-cta:focus {
  background-color: #341540;
  border-color: #341540;
}

.site-footer .newsletter-mascot {
  position: absolute;
  top: -23%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.site-footer .newsletter-mascot img {
  max-width: 120px;
  height: auto;
}

/* Footer headings */
.site-footer .footer-heading {
  color: #411A50;
  font-family: 'Georama', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 105%;
  letter-spacing: -0.03em;
}

/* Footer links */
.site-footer ul.list-unstyled li {
  margin-bottom: 0;
}

.site-footer ul.list-unstyled li a {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #411A50;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

.site-footer ul.list-unstyled li a:hover,
.site-footer ul.list-unstyled li a:focus {
  color: #ff7f00;
}

/* Footer bottom section */
.footer-bottom-wrapper {
  background-color: #F6EAF5;
  width: 100%;
}

.footer-bottom-wrapper .copyright {
  font-size: 0.85rem;
  color: #411A50;
}

.footer-bottom-wrapper .copyright a {
  color: #411A50;
}

.footer-bottom-wrapper .copyright a:hover,
.footer-bottom-wrapper .copyright a:focus {
  color: #000;
}

@media (max-width: 991.98px) {
  .site-footer .footer-heading {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 22px;
  }
  
  .site-footer .newsletter-box {
    margin-top: 2rem;
    max-width: 100%;
  }
}

/* Masonry layout for footer menu - only on mobile */
@media (min-width: 992px) {
  .footer-menu-column {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .footer-menu-column {
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }
  
  .footer-menu-masonry {
    column-count: 2 !important;
    column-gap: 1.5rem !important;
    display: block !important;
  }
  
  .footer-menu-column {
    display: inline-block !important;
    width: 100% !important;
    padding: 0 0.5rem;
    float: none !important;
  }
}

@media (max-width: 767.98px) {
  
  .site-footer .footer-menu-masonry {
    column-count: 2;
    column-gap: 1.5rem;
  }
  
  .site-footer .footer-menu-column {
    display: inline-block;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .site-footer .footer-heading {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .site-footer .badge-item img {
    max-height: 50px;
  }
  
  .site-footer .newsletter-box {
    padding: 1.5rem;
  }
  
  .site-footer .newsletter-title {
    font-size: 1.1rem;
    padding-right: 0;
  }

  
  .footer-bottom-wrapper .copyright {
    text-align: center;
    font-size: 0.8rem;
  }
  
  .site-footer ul.list-unstyled li a {
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .site-footer .footer-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-footer .badge-item {
    margin-bottom: 1rem;
  }
  
  .site-footer .social-links {
    justify-content: center;
  }
  
  /* Ensure masonry layout stays at 2 columns even on smallest screens */
  .site-footer .footer-menu-masonry {
    column-count: 2;
    column-gap: 1rem;
  }
  
  .site-footer .footer-menu-column {
    padding: 0 0.25rem;
  }
}
