/* Cores principais - mantidas como variáveis personalizadas */
:root {
  --primary-color: #1c3247;
  --secondary-color: #62c4bf;
  --highlight-color: #3e80b1;
  --blue-light: #5195e0;
  --text-color: #f2f6f9;
  --text-dark: #2c4e6f;
}

/* Declarações de fonte */
@font-face {
  font-family: 'Outfit';
  src: url('./fonts/Outfit/static/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('./fonts/Outfit/static/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  overflow-x: hidden; /* Prevenir scroll horizontal */
}

h1, h2, h3, h4, h5, h6, .navbar-nav .nav-link, .btn-contato {
  font-family: 'Outfit', sans-serif;
}

/* Navbar customizada  */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem; /* Padding consistente */
}

.navbar-brand img {
  height: 40px; /* Ligeiramente menor para mobile */
}

.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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  position: relative;
  padding: 0.5rem 0.75rem; /* Mais espaço para touchscreens */
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

/* Efeito de sublinhado para os links ativos com tamanho máximo */
.nav-link:not(.btn-contato)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  max-width: 80px; /* Tamanho máximo para a barra */
  background-color: var(--secondary-color);
  transition: width 0.3s;
}

.nav-link:not(.btn-contato):hover::after,
.nav-link:not(.btn-contato).active::after {
  width: 100%;
}

/* Botão de contato com tamanho máximo */
.btn-contato {
  background: linear-gradient(135deg, #5195e0, #62c4bf);
  color: white !important;
  max-width: 120px; /* Tamanho máximo para o botão */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transição suave */
}

.btn-contato:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Home section - Mais otimizado para todos os dispositivos */
#home {
  padding: 3rem 0; /* Padding consistente ao invés de min-vh-100 */
  display: flex;
  align-items: center;
  min-height: 85vh; /* Altura menor para melhor visualização */
}

#home h1 {
  color: white;
  font-weight: 700;
  font-size: calc(1.5rem + 1.5vw); /* Tamanho responsivo baseado na largura da viewport */
}

#home h1 span {
  color: var(--highlight-color);
  position: relative;
  display: inline-block;
}

#home h1 span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(97, 196, 191, 0), rgba(97, 196, 191, 0.8), rgba(97, 196, 191, 0));
  bottom: -5px;
  left: 0;
  border-radius: 3px;
}

/* Ilustração principal com controle de tamanho mais flexível */
.hero-image {
  margin-top: 3rem;
  transition: transform 0.5s ease; /* Transição suave para hover */
}

.hero-image img{
  max-width: 50%; /* Tamanho máximo para melhor visualização */
}

/* Serviços section - background customizado */
#services {
  background: linear-gradient(to bottom, var(--primary-color) 15%, var(--text-color) 15%);;
  color: var(--text-dark);
  position: relative;
  padding: 5rem 0 3rem; /* Espaçamento vertical consistente */
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background-color: var(--primary-color);
  z-index: -1;
}

.section-title {
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-size: calc(1.5rem + 1vw); /* Tamanho responsivo */
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--secondary-color));
  bottom: -10px;
  left: 0;
  border-radius: 3px;
}

/* Cards de serviços mais adaptáveis */
.service-card {
  background: linear-gradient(135deg, #5195e0, #62c4bf);
  color: white;
  overflow: hidden;
  position: relative;
  border-top-right-radius: 50px !important;
  height: 100%; /* Garantir mesma altura */
  transition: transform 0.3s ease; /* Animação suave */
}

.service-card:hover {
  transform: translateY(-5px); /* Movimento sutil no hover */
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.5s;
}

.service-card:hover::before {
  transform: scale(2.5);
}

.service-card p {
  line-height: 1.5;
  font-size: 0.95rem;
}

.service-icon {
  color: white;
  opacity: 0.8;
}

/* Diferencial sections com melhor padding para mobile */
.differential-title {
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-size: calc(1.3rem + 0.8vw); /* Tamanho responsivo */
}

.differential-title::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--secondary-color));
  bottom: -10px;
  left: 0;
  border-radius: 3px;
}

.differential-text {
  color: #667380; 
  font-size: 1.05rem; 
  line-height: 1.6; 
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 80px; 
  z-index: 996;
  background: linear-gradient(135deg, #5195e0, #62c4bf);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Estilo para a seção de contato */
#contact {
  background-color: #dde8f3; /* Tom de azul claro para o fundo */
  position: relative;
  padding: 5rem 0 3rem;
}

/* Estilização do título em dois tons */
#contact .section-title {
  color: var(--primary-color); /* Parte "Entre em" em azul escuro */
  position: relative;
  display: inline-block;
}

#contact .section-title span {
  color: var(--highlight-color); /* Parte "Contato" em azul médio */
}

/* Linha decorativa abaixo do título */
#contact .section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--secondary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Estilo para o iframe do formulário */
#contact .freshwidget-embedded-form {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  padding: 30px;
}

/* Estilos para o Footer */
.footer {
  background-color: var(--text-color);  
  color: var(--text-dark);  
  position: relative;
  padding: 3rem 0 2rem;  
}

/* Logo no footer */
.footer-logo img {
  height: 35px;  
}

/* Textos do footer */
.footer-text {
  color: var(--text-dark);  
  font-size: 0.85rem;  
  margin-top: 0.75rem;  
  line-height: 1.5;
}

/* Títulos das seções do footer */
.footer-heading {
  color: var(--highlight-color); 
  font-weight: 600;
  margin-bottom: 1rem;  
  font-size: 1rem;  
  position: relative;
}

.footer-heading:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--secondary-color));
  bottom: -6px;  
  left: 0;
  border-radius: 2px;
}

/* Links do footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;  
}

.footer-links a {
  color: var(--text-dark);  
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.85rem;  
}

.footer-links a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Informações de contato */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 0.5rem;  
  display: flex;
  align-items: flex-start;
  font-size: 0.85rem;  
  color: var(--text-dark);  
}

.footer-contact li i {
  color: var(--secondary-color);
  margin-top: 4px;
}

/* Ícones sociais */
.social-icons {
  display: flex;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;  
  height: 32px;  
  border-radius: 50%;
  background: rgba(28, 50, 71, 0.1);  
  color: var(--highlight-color);
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--secondary-color);
  color: var(--text-color);
  transform: translateY(-3px);
}

/* Divisor de footer */
.footer-divider {
  border-color: rgba(28, 50, 71, 0.1);  
  margin: 1.5rem 0;  
}

/* Copyright e políticas */
.copyright {
  color: var(--text-dark);  
  font-size: 0.8rem;  
}

.footer-policy {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.footer-policy li {
  margin-left: 1.25rem; 
}

.footer-policy a {
  color: var(--text-dark);  
  font-size: 0.8rem; 
  text-decoration: none;
  transition: color 0.3s;
}

.footer-policy a:hover {
  color: var(--secondary-color);
}

/* Ajustes responsivos aprimorados */
@media (max-width: 1200px) {
  #home {
    min-height: 75vh;
  }
  
  .hero-image img {
    max-width: 85%;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
  }

  .btn-contato {
    display: inline-flex;
    margin: 0.5rem auto;
    width: auto;
  }
  
  #home {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  
  .hero-image img {
    max-width: 90%;
  }
  
  #services {
    padding-top: 4rem;
  }
  
  .differential-title {
    margin-top: 1rem;
  }

  #services {
    background:  var(--text-color);
  }

  .section-title {
    color: var(--text-dark);
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 35px;
  }
  
  #home h1 {
    font-size: calc(1.3rem + 1.5vw);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .hero-image img {
    max-width: 100%;
  }
  
  .row.align-items-center {
    margin: 2rem 0;
  }
  
  .differential-title {
    text-align: center;
    margin: 0.5rem auto 2rem;
    display: block;
  }
  
  .differential-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .differential-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  #services {
    background:  var(--text-color);
  }

  .section-title {
    color: var(--text-dark);
  }

  #contact {
    padding: 4rem 0 2rem;
  }
  
  #contact .section-title {
    font-size: calc(1.3rem + 0.8vw);
  }

  .footer {
    padding: 2.5rem 0 1.5rem;  
  }
  
  .footer-heading {
    margin-top: 1.5rem;  
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem;
  }
  
  #home {
    padding: 4rem 0 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .differential-title {
    font-size: 1.5rem;
  }

  #services {
    background:  var(--text-color);
  }

  .section-title {
    color: var(--text-dark);
  }
  
  
}