@import url("root.css");
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");

body,
html {
  padding: 0;
  margin: 0;
  color: var(--color-primary);
}

/* Impedir overflow horizontal */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Remove scroll horizontal */
}

/* Navbar */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 60%; /* Ajustar o gap para evitar layout quebrado */
  width: 100%; /* Usar porcentagem em vez de vw para respeitar margem */
  height: 48px;
  position: relative;
  top: 30px;
}

.navbar .navbar-brand {
  margin-left: 10%; /* Reduzir espaçamento excessivo */
}

/* Header */
header {
  width: 100%; /* Corrigir para evitar overflow */
  height: max-content;
  margin: 0;
  padding: 0;
  background-size: cover;
  padding-bottom: 20rem;
}

/* Botão Outline */
.btn-outline-white {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  min-width: 168px;
  height: 48px;
  border: 1px solid #ffffff;
  border-radius: 48px;
}

/* Conteúdo principal */
.content {
  width: 40% !important; /* Ajustar para telas menores */
  margin-top: 10rem;
  margin-left: 10%;
  padding: 0 15px; /* Evitar contato com as bordas */
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
}

p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
}

/* Container responsivo */
.container-fluid {
  width: 90%; /* Evitar largura fixa que cause overflow */
  max-width: 1200px; /* Limitar a largura em telas maiores */
  margin: 0 auto; /* Centralizar */
}

/* Botão secundário */
.btn-secondary {
  background-color: var(--color-primary) !important;
  border: none !important;
  color: #fff !important;
  padding: 15px 30px !important;
  border-radius: 25px !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: 0.3s ease !important;
  font-weight: 600 !important;
  text-decoration: none;
  text-align: center;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsivo */
  gap: 20px;
  padding: 20px;
}

.card-icon {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f7fcfc;
  border: 1px solid #dcecec;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 5rem;
}

.card-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Bloco dentro do card */
.block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 100%;
  background-color: #eaf7f7;
  border-radius: 12px 15px 40px 12px;
}

.content-text {
  width: auto;
  padding: 0 1rem;
  margin: 0;
}

svg {
  width: 24px;
  height: 24px;
  fill: var(--color-secondary);
}

svg path {
  fill: var(--color-primary) !important;
}

.content-text h5 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-secondary);
  margin: 0;
  padding: 0;
}

.content-text label {
  font-size: 14px;
  color: #6b6b6b;
  margin-top: 4px;
  padding: 0;
}

svg {
  width: 24px;
  height: 24px;
  fill: var(--color-secondary);
}

.content-text h5 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-secondary);
  margin: 0;
  padding: 0;
}

.content-text label {
  font-size: 14px;
  color: #6b6b6b;
  margin-top: 4px;
  padding: 0;
}

.simulation-container {
  background: var(--color-primary-dark)
    url("https://zappa-imagens-credito-imobiliario.s3.us-east-1.amazonaws.com/rest_framework/img/Ellipse.png")
    bottom center no-repeat;
  background-size: 100%;
  border-radius: 16px;
  padding: 40px;
  width: 98%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  text-align: center;
  margin-top: 5rem;
}

.simulation-container h2 {
  font-size: 2.3rem;
  line-height: 3rem;
  color: #fff !important;
  font-family: "Raleway" !important;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.simulation-options {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.option-card {
  display: flex; /* Ativa o Flexbox */
  flex-direction: column; /* Alinha itens em coluna */
  justify-content: center; /* Alinha verticalmente */
  align-items: center; /* Alinha horizontalmente */
  box-shadow: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: url("https://zappa-imagens-credito-imobiliario.s3.us-east-1.amazonaws.com/rest_framework/img/opt-card.png")
    top center no-repeat;
  background-size: 100%;
  width: 18rem;
  height: 20rem;
}

.option-card:hover {
  transform: translateY(-5px);
}

.option-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #d4f2f0;
}

.option-card a {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  gap: 10px;
  background: var(--color-secondary);
  border: 0.7px solid var(--color-secondary);
  border-radius: 64px;
  color: #fff;
  text-decoration: none;
  width: 80%;
  margin-top: 2rem;
  margin-left: 1rem;
}

footer {
  margin-top: 7rem;
}
footer .container {
  background: #f2f5f5 !important;
  min-width: 100% !important;
  padding: 4rem 15% 2rem 15% !important;
}

footer svg {
  width: 10rem;
}

footer p {
  color: #555;
}
footer a {
  text-decoration: none;
  color: var(--color-primary);
}

footer .footer-copy {
  background: #f2f5f5 !important;
  border-top: 1px solid #001b181a !important;
}

footer i {
  font-size: 1.3rem;
  margin-right: 10px;
}

.btn-simular-1 {
  display: inline-block;
  float: right;
}
.btn-simular-2 {
  display: none;
}

@media (max-width: 768px) {
  .simulation-options {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 0%;
    width: 100vw;
    height: 48px;
    top: 30px;
  }
  .container-fluid {
    width: 90vw !important;
  }

  .content {
    width: 80% !important;
    margin-top: 7rem;
    margin-left: 2rem;
  }

  h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
  }

  p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
  }

  .container-fluid h2 {
    font-weight: 600;
    color: var(--color-primary-dark) !important;
    font-family: "Raleway";
    font-size: 2.2rem;
  }

  .container-fluid h2 a {
    float: right;
    text-decoration: none;
  }

  .container-fluid h2 b {
    font-weight: 600;
    color: var(--color-primary) !important;
    font-family: "Raleway";
  }

  header {
    width: 100%;
    height: max-content;
    padding-bottom: 10rem;
    margin-top: 0;
    background-size: cover;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 3 colunas com tamanhos iguais */
    gap: 20px; /* Espaço entre os cartões */
    padding: 0px; /* Espaçamento interno do container */
  }

  .card-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f7fcfc;
    border: 1px solid #dcecec;
    border-radius: 12px;
    padding: 0px 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 5rem;
  }

  .simulation-container h2 {
    color: #fff !important;
    font-size: 2.4rem;
  }

  .btn-simular-1 {
    display: none;
  }
  .btn-simular-2 {
    display: block;
    width: 60%;
    margin: 2rem auto 2rem auto;
  }
}
