/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  padding-top: 12vh;
  color: #333;
}






/*******************************
  ********** 
  *** WHATSAPP FIXO 
*/
.whatsapp-fixo {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  animation: flutuar 2s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-fixo img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.whatsapp-fixo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes flutuar {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}










/*******************************
  ********** 
  *** HEADER
*/
.menu {
  width: 100%;
  height: 12vh;
  background-color: #fff;
  position: fixed;
  top: 0;
  z-index: 10000;
}

.navbar {
  height: 12vh;
}

.navbar .container {
  max-width: 1520px;
}
.navbar-brand img { width: 120px; max-height: 60px; }
.nav-link { color: #170F99 !important; font-weight: 500; transition: 0.3s; }

.btn-menu {
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  background-color: #170F99;
  color: #fff;
  border: 1px solid #fff;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
  animation: mover-lateral 3s ease-in-out infinite;
}

@keyframes mover-lateral {
  0%,50%,100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
}




/* Esconde o texto por padrão e diminui visibilidade do ícone */
.pagamento-oculto i {
    opacity: 0.3; /* ícone discreto */
    transition: opacity 0.3s ease;
}
.pagamento-oculto .texto-pagamento {
    display: none; /* texto escondido */
}

/* Quando o usuário passa o mouse sobre o item do menu */
.nav-item:hover .pagamento-oculto i {
    opacity: 1; /* ícone fica mais visível */
}
.nav-item:hover .pagamento-oculto .texto-pagamento {
    display: inline; /* mostra o texto ao passar o mouse */
    margin-left: 5px;
    font-size: 16px;
}









/*******************************
  ********** 
  *** HERO
*/
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(57, 49, 204, 0.85), rgba(68, 64, 133, 0.75));
  z-index: 1;
  pointer-events: none;
}

/* ================= HERO CARD MEIO ================= */
.hero .hero-card-meio {
  width: 100%;
  max-width: 1520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  padding: 0 15px;
}

/* ================= HERO CONTENT ================= */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-bottom: 20px;
  color: #fff;

  opacity: 0;
  transform: translateY(40px);

  animation: heroFadeUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 10px;
  line-height: 1.5;
}

/* ================= HERO BUTTON ================= */
.btn-hero {
  display: inline-block;
  width: 60%;
  max-width: 300px;
  padding: 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #fff;
  background-color: #fff;
  color: #170F99;
  cursor: pointer;
  z-index: 2;

  opacity: 0;
  transform: translateY(40px);

  animation:
    heroFadeUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    mover-lateral 2.5s ease-in-out infinite;

  animation-delay: 0.7s, 2.4s;

  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}



.btn-hero:hover,
.btn-hero:focus {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(23, 15, 153, 0.4);
  animation-play-state: paused;
  background: linear-gradient(rgba(57, 49, 204, 0.85), rgba(68, 64, 133, 0.75));
  color: #fff;
}

/* ================= HERO CARDS ================= */
.hero-cards-container {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;

  opacity: 0;
  transform: translateY(40px);

  animation: heroFadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.1s;
}


.hero-cards {
  display: flex;
  gap: 20px;
  transition: transform 0.1s linear;
}

.hero-card {
  flex: 0 0 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
  color: #170F99;
  font-weight: 500;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 1rem;
  line-height: 1.4;
}

/* ================= ANIMAÇÕES ================= */

/* Entrada dos elementos */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação lateral do botão */
@keyframes mover-lateral {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ================= ACESSIBILIDADE ================= */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .btn-hero,
  .hero-cards-container {
    animation: none;
    opacity: 1;
    transform: none;
  }
}




/*******************************
  ********** 
  *** Serviços 
*/

.servicos-tabs {
  padding: 160px 20px 80px 20px;
  background-color: #f7f8fc;
}

.servicos-tabs .container-servicos {
  max-width: 1520px;
  margin: 0 auto;
}

/* Cabeçalho */
.servicos-header {
  text-align: center;
  margin-bottom: 60px;
}

.servicos-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #170F99;
}

.servicos-header p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
}

/* Container das abas */
.servicos-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Cada aba */
.servico-tab {
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  min-height: 400px;
}

/* ================= ANIMAÇÃO AO ROLAR ================= */
.servico-tab.active {
  opacity: 1;
  transform: translateY(0);
}

/* Alternar lado da imagem */
.servico-tab:nth-child(even) {
  flex-direction: row-reverse;
}


/* Alternar lado da imagem para cada aba */
.servico-tab:nth-child(even) {
  flex-direction: row-reverse;
}

/* Delay sequencial da animação para cada aba */
.servico-tab:nth-child(1) { animation-delay: 0.2s; }
.servico-tab:nth-child(2) { animation-delay: 0.4s; }
.servico-tab:nth-child(3) { animation-delay: 0.6s; }
.servico-tab:nth-child(4) { animation-delay: 0.8s; }


/* Informações do serviço */
.servico-info {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.servico-info h3 {
  font-size: 1.8rem;
  color: #170F99;
  margin-bottom: 15px;
}

.servico-info p {
  text-align: justify;
  text-indent: 30px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Vídeo/Imagem do serviço */
.servico-video {
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.servico-video video,
.servico-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.servico-video video:hover,
.servico-video img:hover {
  transform: scale(1.05);
}



/* ================= ANIMAÇÃO ================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= BOTÃO CONHECER PRODUTOS ================= */

.servicos-btn-produtos {
  width: 100%;
  margin-top: 80px;
}

.btn-produtos {
  display: block;
  width: 100%;
  padding: 22px 20px;
  text-align: center;
  background-color: #170F99;
  color: #ffffff;
  border: 1px solid #170F99;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-produtos:hover {
  background-color: green;
  color: #fff;
  border: 1px solid green;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 14, 182, 0.45);
}

#typing-text::after {
  content: "|";
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}













/*******************************
  ********** 
  *** Contratos 
*/

#contratos {
  scroll-margin-top: -30px;
  text-align: justify;
}

.container-servicos-contratos {
  padding: 150px 20px 80px 20px;
}


.card-body p,
.card-body li {
  margin-left: 0; /* remove indentação */
  padding-left: 0; /* remove padding extra */
}








/*******************************
  ********** 
  *** Segmentos 
*/

#segmentos {
  scroll-margin-top: 250px;
}

.segmento-wrapper {
  display: flex;
  gap: 1.5rem;
  animation: floatCards 6s ease-in-out infinite alternate;
  overflow-x: hidden;
}

.segmento-wrapper:hover {
  animation-play-state: paused;
}

.segmento-card {
  flex: 0 0 30%; /* Cada card ocupa 30% do container, mantendo 3 na linha */
  min-width: 250px; /* Garante que não fique muito pequeno */
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover levanta o card */
.segmento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.segmento-card .card {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Animação de leve deslocamento horizontal */
@keyframes floatCards {
  0% { transform: translateX(0); }
  25% { transform: translateX(30px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}











/*******************************
  ********** 
  *** Diferenciais 
*/
#diferenciais {
  scroll-margin-top: 200px;
}
.diferencial-card {
  border-radius: 1rem;
  background-color: #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: floatCard 4s ease-in-out infinite;
}

/* Animação leve de flutuação */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hover levanta o card */
.diferencial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Ícones */
.diferencial-card .icon svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}
.diferencial-card:hover .icon svg {
  transform: rotate(15deg) scale(1.2);
  fill: #0d6efd;
}

/* Títulos e textos */
.diferencial-card h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.diferencial-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Responsividade */
@media (max-width: 768px) {
  .diferencial-card {
    padding: 2rem 1.5rem;
  }
}










/*******************************
  ********** 
  *** Sobre 
*/

#sobre {
  scroll-margin-top: 200px;
}

.sobre-card {
  border-radius: 1rem;
  background-color: #f8f9fa; /* Leve cinza para destacar do branco do fundo */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: floatCard 6s ease-in-out infinite;
  padding-top: 3rem;
}

/* Flutuação suave */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hover: eleva e destaca */
.sobre-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Título e texto */
.sobre-card h5 {
  font-size: 1.3rem;
  margin-top: 1rem;
}
.sobre-card p,
.sobre-card ul {
  font-size: 0.95rem;
  color: #555;
}

/* Ícone central */
.sobre-card .icon div {
  transition: transform 0.3s ease;
}
.sobre-card:hover .icon div {
  transform: rotate(10deg) scale(1.1);
}











/*******************************
  ********** 
  *** Footer 
*/

/* Ícones sociais circulares */
.social-icon {
  display: inline-flex;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: white;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon img {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Hover nos links do footer */
footer a:hover {
  color: #FFC107; /* amarelo suave */
  text-decoration: underline;
}

/* Estilo credibilidade */
footer .credibilidade p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile: centraliza colunas */
@media (max-width:768px) {
  footer .row {
    text-align: center;
  }
  .social-icon {
    margin: 0 auto;
  }
}

/* Botão flutuante WhatsApp */
.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.btn-whatsapp:hover {
  transform: scale(1.1);
}











/*******************************
  ********** Contato **********
********************************/

.contact-section {
  background: linear-gradient(135deg, #f5f6ff, #ffffff);
  padding: 80px 0 130px 0;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.contact-visual {
  background: linear-gradient(135deg, #170F99, #2b25c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.visual-content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.visual-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.custom-input {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.custom-input:focus {
  border-color: #170F99;
  box-shadow: 0 0 0 0.15rem rgba(23,15,153,.25);
}

.btn-submit {
  background-color: #170F99;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #0f0f99;
  color: #fff;
  transform: translateY(-2px);
}

#formFeedback {
  font-weight: 600;
  min-height: 1.5em;
  margin-top: 0.5rem;
}

.is-valid {
  border-color: #198754 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* ======= Segmento e Plano de Interesse lado a lado ======= */
.contact-form-row {
  display: flex;
  gap: 20px; /* espaço entre os campos */
  flex-wrap: wrap; /* quebra em telas pequenas */
  margin-bottom: 1rem;
}

.contact-form-row .form-group {
  flex: 1; /* cada campo ocupa metade do espaço */
  min-width: 200px; /* evita campos muito estreitos */
}

/* Ajusta selects dentro da row para ter 100% da largura da coluna */
.contact-form-row select.custom-input {
  width: 100%;
}

/* ======= Ajustes responsivos ======= */
@media (max-width: 768px) {
  .contact-form-row {
    flex-direction: column;
  }
}
