/* Footer — mega footer (all inner pages + home) */
.site-footer.site-footer--modern {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  color: #334155;
  padding: 0;
  border-top: 1px solid #e2e8f0;
  overflow: hidden;
}

[data-theme="dark"] .site-footer.site-footer--modern {
  background: #0f172a;
  color: #cbd5e1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.site-footer--modern a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer--modern a:hover {
  color: #16a34a;
}

[data-theme="dark"] .site-footer--modern a {
  color: #94a3b8;
}

[data-theme="dark"] .site-footer--modern a:hover {
  color: #4ade80;
}

.site-footer--modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--modern .container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.footer-mega__main {
  padding: 2.25rem 0 1.5rem;
}

/* Brand row */
.footer-mega__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .footer-mega__brand {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-mega__logo-link {
  display: inline-block;
  flex-shrink: 0;
  background: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  line-height: 0;
}

[data-theme="dark"] .footer-mega__logo-link {
  background: #1e293b;
  border-color: #334155;
}

.footer-mega__logo {
  width: auto;
  max-width: min(200px, 42vw);
  height: 52px;
  object-fit: contain;
  display: block;
}

.footer-mega__brand-text {
  flex: 1;
  min-width: min(100%, 260px);
}

.footer-mega__subtag {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #16a34a;
}

.footer-mega__about {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 52ch;
}

[data-theme="dark"] .footer-mega__about {
  color: #94a3b8;
}

/* Link columns */
.footer-mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.footer-mega__col {
  min-width: 0;
}

.footer-mega__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.3;
}

[data-theme="dark"] .footer-mega__title {
  color: #f1f5f9;
}

.footer-mega__links li {
  margin-bottom: 0.4rem;
}

.footer-mega__links a {
  display: inline-block;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

.footer-mega__col--know .footer-mega__links {
  margin-bottom: 1rem;
}

.footer-mega__stay {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

[data-theme="dark"] .footer-mega__stay {
  color: #f1f5f9;
}

/* Trust badges */
.footer-mega__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1.75rem;
  padding: 1.15rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .footer-mega__trust {
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
}

.footer-trust-badge span {
  white-space: normal;
}

[data-theme="dark"] .footer-trust-badge {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.footer-trust-icon,
.footer-trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #16a34a;
}

/* Promo row */
.footer-mega__promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 1.15rem;
  padding-top: 0.25rem;
}

.footer-mega__promo-block {
  min-width: 0;
}

.footer-mega__promo-block p {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

[data-theme="dark"] .footer-mega__promo-block p {
  color: #f1f5f9;
}

.footer-mega__wa-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-mega__wa-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.footer-mega__wa-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

.footer-mega__ig-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #16a34a !important;
}

.footer-mega__ig-link:hover {
  color: #15803d !important;
}

/* Social — override global .social-link header styles */
.footer-mega-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.site-footer--modern .footer-mega-social .social-link {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.site-footer--modern .footer-mega-social .social-link:hover {
  background: #ecfdf5;
  border-color: #86efac;
  color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.site-footer--modern .footer-mega-social .social-link svg {
  width: 17px !important;
  height: 17px !important;
}

[data-theme="dark"] .site-footer--modern .footer-mega-social .social-link {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

/* Bottom bar */
.footer-mega__bottom {
  background: #f8fafc;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .footer-mega__bottom {
  background: #0b1220;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-mega__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-align: center;
}

.footer-mega__bottom-row:last-of-type {
  margin-bottom: 0.65rem;
}

.footer-mega__bottom-row a {
  color: #64748b;
  font-weight: 500;
}

.footer-mega__sep {
  color: #cbd5e1;
  user-select: none;
}

.footer-mega__copy {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.55;
  padding: 0 0.5rem;
}

.footer-mega__bar {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .footer-mega__bar {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-back-top {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-back-top:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  transform: translateY(-2px);
}

.footer-back-top svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

[data-theme="dark"] .footer-back-top {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .footer-mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-mega__main {
    padding: 1.75rem 0 1.25rem;
  }

  .footer-mega__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .footer-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .footer-mega__trust {
    justify-content: flex-start;
  }

  .footer-trust-badge {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .footer-mega__grid {
    grid-template-columns: 1fr;
  }

  .footer-mega__bottom-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-mega__sep {
    display: none;
  }

  .footer-back-top__label {
    display: none;
  }
}
