/* Shared Footer - Description + Small map + Links */

.site-footer {
  width: 100%;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
}

/* Full-bleed footer (main site stays capped via --max-width) */
.footer-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 2rem var(--page-gutter) 1.5rem;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-survey {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.footer-survey-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.15rem 0;
}

.footer-survey-desc {
  font-size: 0.75rem;
  opacity: 0.85;
  margin: 0;
  text-align: center;
}

.footer-survey .survey-qr__box {
  background: rgba(255, 255, 255, 0.95);
  border: none;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: none;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.footer-contact {
  margin-bottom: 1rem;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.footer-contact__item:last-child {
  margin-bottom: 0;
}

.footer-contact__item a {
  color: inherit;
}

.footer-contact__email:hover,
.footer-contact__phone:hover {
  color: white;
  text-decoration: underline;
}

.footer-contact__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-row .whatsapp-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: white;
}

.footer-map-wrap {
  min-width: 0;
}

.footer-map-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  height: 160px;
  min-height: 160px;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-map-hint {
  font-size: 0.6875rem;
  opacity: 0.6;
  margin-top: 0.35rem;
}

.footer-bottom {
  padding-top: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.75;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-survey {
    order: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }

  .footer-survey-desc {
    text-align: left;
  }

  .footer-map-wrap {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    padding-bottom: 1.25rem;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-map-wrap {
    order: 1;
  }

  .footer-map {
    height: 140px;
    min-height: 140px;
  }

  .footer-map iframe {
    height: 140px;
  }
}
