:root {
  --xfin-green: #48E1B4;
  --xfin-purple: #191335;
  --xfin-green-2: rgba(72, 225, 180,0.2);
  --xfin-green-4: rgba(72, 225, 180,0.4);
  --xfin-purple-4: rgba(25, 19, 53,0.4);
  --xfin-purple-8: rgba(25, 19, 53,0.8);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.175);
}

#cred_habitacao, #cred_pessoal, #cred_auto, #cred_transf, #imt_selo, #mais_valias {
    scroll-margin-top: 250px; /* ajusta à altura do header */
}

.page-footer.dark .footer-copyright{
  --bs-bg-opacity: 1 !important;
  background-color: #000 !important;
  border-color: #000 !important;
}

.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  left: 0;
  border: 0;
  background: var(--xfin-green);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown-menu{
  background-color: var(--xfin-purple-8);
  border: 0 !important;
}
.dropdown-item:hover, .dropdown-item:focus{
  background-color: transparent !important;
  color:#35B48C !important;
}

.icon-container:hover h4 {
  color: var(--xfin-purple);
}

.icon-container:hover .icon i, .icon-container:hover .icon svg {
  color: var(--xfin-purple);
}

.icon-container:hover .icon {
  background: #FFF;
}

.icon-container .icon i, .icon-container .icon svg {
  color: #ffffff;
}

.feature-box {
  padding-left: 100px;
}

.icon-container .icon {
  background: var(--xfin-green);
  border-radius: 10px 0 10px 0;
  margin: 0 auto;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.icon-container .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: var(--xfin-green-2);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.icon-container .icon::after {
  position: absolute;
  content: "";
  left: 8px;
  top: 8px;
  height: 100%;
  width: 100%;
  background: var(--xfin-green-4);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.icon-container:hover .icon::before {
  background: var(--xfin-purple-4);
}

.icon-container:hover .icon::after {
  background: var(--xfin-purple-8);
}

.bg-xfin {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--xfin-purple);
  --bs-btn-border-color: var(--xfin-purple);
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
}

/* ===== Botão principal XFIN (.btn-xfin) ===== */

.btn-xfin {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--xfin-green);
  --bs-btn-border-color: var(--xfin-green);
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border: 1px solid var(--bs-btn-border-color);
  border-radius: 6px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  box-shadow: none;
}

/* Hover */

.btn-xfin:hover, .btn-xfin:focus:hover {
  background-color: #3AC29A;
  border-color: #3AC29A;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Focus (a11y ring) */

.btn-xfin:focus {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(72, 225, 180, 0.2);
}

/* Active / pressed */

.btn-xfin:active, .btn-xfin.active {
  background-color: #35B48C;
  border-color: #35B48C;
  transform: translateY(0);
  box-shadow: none;
}

/* Disabled */

.btn-xfin:disabled, .btn-xfin.disabled {
  background-color: #A6F1D8;
  border-color: #A6F1D8;
  color: rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0.95;
}

/* ===== Outline variant (.btn-xfin-outline) ===== */

.btn-xfin-outline {
  color: var(--xfin-purple-8);
  background-color: transparent;
  border: 1px solid var(--xfin-green);
  border-radius: 6px;
  font-weight: 600;
  padding: 0.45rem 1rem;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

/* Hover: preenchido com cor principal e texto escuro */

.btn-xfin-outline:hover, .btn-xfin-outline:focus:hover {
  background-color: var(--xfin-green);
  color: #000;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(72,225,180,0.12);
}

/* Focus ring */

.btn-xfin-outline:focus {
  outline: none;
  box-shadow: 0 0 0 0.35rem rgba(72, 225, 180, 0.18);
}

/* Active */

.btn-xfin-outline:active, .btn-xfin-outline.active {
  background-color: #35B48C;
  border-color: #35B48C;
  color: #000;
}

/* Disabled */

.btn-xfin-outline:disabled, .btn-xfin-outline.disabled {
  color: rgba(72,225,180,0.45);
  border-color: rgba(72,225,180,0.25);
  pointer-events: none;
  opacity: 0.9;
}

/* ===== Texto XFIN ===== */

.text-xfin {
  color: var(--xfin-green) !important;
}

/* Hover (ex: em links ou spans interativos) */

.text-xfin:hover {
  color: #35B48C !important;
}

/* Para fundos escuros, se precisares de contraste */

.text-xfin-light {
  color: #A6F1D8 !important;
}

/* Versão mais discreta (para subtítulos ou ícones suaves) */

.text-xfin-muted {
  color: rgba(72, 225, 180, 0.6) !important;
}

/* Exemplo de sublinhado com a cor */

.text-xfin-underline {
  position: relative;
}

.text-xfin-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--xfin-green);
  transition: background-color 0.2s ease;
}

.text-xfin-underline:hover::after {
  background-color: #35B48C;
}

.navbar-collapse {
  padding: 15px;
}

.navbar-collapse {
  background: var(--xfin-purple-8);
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .navbar-brand img {
    display: none;
  }
}

.navbar-toggler {
  border: 1px solid #FFF;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.page-footer ul li:before, .page-footer ul li:after {
  background-color: var(--xfin-green);
}

