/* ============================================
   NEXAVALLEY - Footer Component CSS
   Shared styles for the global footer template.
   Author: Jherson Martelo Medina
   ============================================ */

/* --- FOOTER SHELL --- */
body.nexavalley-site .site-footer {
  --nv-footer-container-width: 1152px;

  position: relative;
  width: 100vw !important;
  max-width: none !important;
  min-height: 331.36px;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  background: #04060f !important;
}

body.nexavalley-site .footer-wave,
body.nexavalley-site .endoso-isa {
  display: none !important;
}

body.nexavalley-site .site-footer > .container {
  max-width: var(--nv-footer-container-width, 1152px);
  min-height: 331.36px;
  padding-right: 16px;
  padding-left: 16px;
}

/* --- FOOTER LAYOUT --- */
body.nexavalley-site .footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  min-height: 258.36px;
  padding: 42px 0;
  width: 100%;
}

body.nexavalley-site .footer-brand {
  min-height: 226px;
}

/* --- FOOTER BRAND --- */
body.nexavalley-site .footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
  margin: 0 0 20px;
}

body.nexavalley-site .footer-logo {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

body.nexavalley-site .footer-logo--internexa {
  width: 80.359px;
  height: 70px;
}

body.nexavalley-site .footer-logo-divider {
  display: block;
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.36);
}

body.nexavalley-site .footer-logo--nexavalley {
  width: 128.75px;
  height: 34px;
  border-radius: 6px;
}

body.nexavalley-site .footer-desc {
  max-width: 400px;
  margin: 0;
  color: rgba(245, 248, 255, 0.55);
  font-size: 14px;
  line-height: 24.5px;
}

body.nexavalley-site .btn-plataforma--footer {
  display: none;
}

/* --- FOOTER LINKS --- */
body.nexavalley-site .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(var(--nv-footer-column-count, 2), minmax(0, 1fr));
  gap: 24px;
  width: min(100%, calc((var(--nv-footer-column-count, 2) * 179.1795px) + ((var(--nv-footer-column-count, 2) - 1) * 24px)));
  justify-self: flex-end;
}

body.nexavalley-site .footer-col {
  min-height: 226.359px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

body.nexavalley-site .footer-col h4 {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 20.8px;
  text-transform: uppercase;
}

body.nexavalley-site .footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(245, 248, 255, 0.55);
  font-size: 14px;
  line-height: 22.4px;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

body.nexavalley-site .footer-col a:hover,
body.nexavalley-site .footer-col a:focus-visible {
  color: var(--white) !important;
  transform: translateX(4px);
}

body.nexavalley-site .footer-col a.footer-link--disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

/* --- FOOTER BOTTOM --- */
body.nexavalley-site .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 73px;
  min-height: 73px;
  padding: 25px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.nexavalley-site .footer-bottom p {
  margin: 0;
  color: rgba(245, 248, 255, 0.42);
  font-size: 13px;
  line-height: 20.8px;
}

body.nexavalley-site .footer-endoso {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 248, 255, 0.48);
  font-family: var(--font-brand);
  font-size: 12px;
}

body.nexavalley-site .footer-endoso strong {
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
}

/* --- TABLET FOOTER --- */
@media (max-width: 1024px) {
  body.nexavalley-site .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 42px 0;
    justify-self: flex-end;
    width: 100%;
  }

  body.nexavalley-site .footer-links-grid {
    grid-template-columns: repeat(var(--nv-footer-column-count, 2), minmax(0, 1fr));
    width: 100%;
  }

  body.nexavalley-site .footer-col {
    min-height: 226px;
  }
}

/* --- MOBILE FOOTER --- */
@media (max-width: 767px) {
  body.nexavalley-site .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 42px 0 34px;
    width: 100%;
  }

  body.nexavalley-site .footer-brand {
    min-height: 0;
  }

  body.nexavalley-site .site-footer,
  body.nexavalley-site .site-footer > .container {
    min-height: 0;
  }

  body.nexavalley-site .footer-logos {
    height: 58px;
  }

  body.nexavalley-site .footer-logo--internexa {
    width: 66.6px;
    height: 58px;
  }

  body.nexavalley-site .footer-logo--nexavalley {
    width: 112px;
    height: 30px;
  }

  body.nexavalley-site .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  body.nexavalley-site .footer-col {
    min-height: 0;
    padding: 18px 22px;
  }

  body.nexavalley-site .footer-col h4 {
    margin-bottom: 16px;
  }

  body.nexavalley-site .footer-col a {
    padding: 5px 0;
  }

  body.nexavalley-site .footer-bottom {
    flex-direction: column;
    gap: 12px;
    height: auto;
    text-align: center;
  }
}
