/* ============================================================
   FOOTER — UPortugal
   Prefixo "up-footer-"
   ============================================================ */

.up-footer {
  background-color: #111111;
  color: #ffffff;
  padding: 0;
  margin-top: auto;
  font-family: inherit;
}

/* ---------- Linha principal ---------- */
.up-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  flex-wrap: wrap;
}

/* ---------- Logo ---------- */
.up-footer-logo a {
  display: inline-flex;
  text-decoration: none;
}

.up-footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  /* Se o logo for escuro, inverte para branco */
  filter: brightness(0) invert(1);
}

.up-footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Menu de navegação ---------- */
.up-footer-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.up-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.up-footer-menu li {
  margin: 0;
}

.up-footer-menu li a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cccccc;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.up-footer-menu li a:hover,
.up-footer-menu li.current-menu-item a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Ícones sociais ---------- */
.up-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.up-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.up-footer-social-link:hover {
  background: #fff;
  transform: translateY(-2px);
}

.up-footer-social-link svg {
  display: block;
  flex-shrink: 0;
}

/* ---------- Barra de copyright ---------- */
.up-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  padding: 14px 24px;
}

.up-footer-copy p {
  margin: 0;
  font-size: 0.78rem;
  color: #888888;
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .up-footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 28px 20px;
  }

  .up-footer-nav {
    width: 100%;
  }

  .up-footer-menu {
    gap: 4px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .up-footer-logo-img {
    height: 44px;
  }

  .up-footer-menu li a {
    font-size: 0.72rem;
    padding: 5px 7px;
  }

  .up-footer-social {
    gap: 8px;
  }

  .up-footer-social-link {
    width: 32px;
    height: 32px;
  }
}
