/* Google Fonts removed - using self-hosted Changa fonts from theme */

.hm-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 40px 3%;
  font-family: 'Changa', sans-serif;
}

/* Remove WordPress constrained layout margins */
.hm-footer * {
  margin-block-start: 0 !important;
}

.hm-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 30px;
}

.hm-footer__section {
  display: flex;
  flex-direction: column;
}

.hm-footer__heading {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Changa', sans-serif;
}

/* Logo */
.hm-footer__logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.hm-footer__logo img {
  display: block;
  max-height: 80px;
  max-width: 280px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.hm-footer__brand {
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Changa', sans-serif;
}

/* Address */
.hm-footer__address {
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Changa', sans-serif;
  font-weight: 300;
}

/* Social Media */
.hm-footer__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hm-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.hm-footer__social-icon:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.hm-footer__social-icon svg {
  width: 24px;
  height: 24px;
}

/* Legal Links */
.hm-footer__legal {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Changa', sans-serif;
  font-weight: 400;
}

.hm-footer__legal a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.hm-footer__legal a:hover {
  opacity: 0.7;
}

.hm-footer__copyright {
  font-weight: 300;
}

/* Force full-width for the footer block */
.wp-block-hostmap-footer,
[data-type="hostmap/footer"] {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}

/* Make footer stretch full width when inside any container */
.entry-content .hm-footer,
.wp-block-group .hm-footer,
main .hm-footer,
article .hm-footer {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Remove any parent constraints that limit footer width */
body .wp-block-hostmap-footer,
body [data-type="hostmap/footer"],
body .hm-footer {
  max-width: none !important;
  overflow-x: visible !important;
}

/* Ensure parent containers don't add padding */
.has-global-padding > .wp-block-hostmap-footer,
.has-global-padding > [data-type="hostmap/footer"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Dark background adjustments */
.hm-footer[style*="background-color"] .hm-footer__legal {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hm-footer {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 30px 5%;
  }

  .hm-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-left: 0;
    margin-right: 0;
  }

  .hm-footer__logo {
    padding-left: 15px;
  }

  .hm-footer__logo img {
    max-height: 112px;
    max-width: 410px;
  }

  .hm-footer__legal {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
