/* =====================================================================================
   1) FONTES & RESET GLOBAL
   ===================================================================================== */

/* === FONTES LOCAIS MONTSERRAT === */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Corpo da página */
body {
  font-family: 'Montserrat', sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* Container padrão */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 5%;
  margin: 0 auto;
}

/* Telas grandes */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}


/* =====================================================================================
   2) BARRA TOPO + HEADER / MENU
   ===================================================================================== */

/* Barra superior fixa com telefone/horário */
.barra-topo {
  background-color: #111;
  color: white;
  font-size: 0.9em;
  padding: 6px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1100;
}

.barra-topo .info-topo {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.barra-topo i {
  color: #2D5D9F;
  margin-right: 5px;
}

/* Header fixo abaixo da barra-topo */
header {
  background: rgba(34, 34, 34, 0.9);
  color: white;
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  height: 85px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden !important;
}

/* Layout interno do header */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Logo */
header .logo img {
  height: 75px;
  max-height: 75px;
  width: auto;
}

/* Menu desktop */
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #2D5D9F;
}

/* Botão menu hamburguer (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 10001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Menu mobile */
.mobile-nav {
  display: none;
  background: #222;
  padding: 20px;
  position: fixed;
  top: 70px;
  width: 100%;
  left: 0;
  z-index: 10000;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  text-align: center;
}


/* =====================================================================================
   3) HERO (BANNER PRINCIPAL + CARROSSEL)
   ===================================================================================== */

/* Container geral do hero */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  transition: background-image 1s ease-in-out;
}

/* Overlay mais escuro por cima das imagens */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.70),
    rgba(0, 0, 0, 0.50),
    rgba(0, 0, 0, 0.30)
  );
  z-index: 1;
}

/* Conteúdo central do hero – caixinha atrás do texto */
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  top: 80px;
  padding: 32px 40px;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Títulos e textos do hero */
.hero h1,
.hero p {
  color: #ffffff;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.6),
    0 0 3px rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.05rem;
  margin: 0 auto 24px;
  max-width: 750px;
  line-height: 1.6;
}

/* Slides do carrossel de fundo */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 0;
}


/* =====================================================================================
   4) BOTÕES GERAIS
   ===================================================================================== */

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #2D5D9F;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:active {
  background-color: #003366;
}

/* Botão do formulário desabilitado (reCAPTCHA) */
#btnEnviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ccc;
  color: #666;
}


/* =====================================================================================
   5) SEÇÃO SOBRE NÓS
   ===================================================================================== */

.sobre {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.sobre h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

/* Layout texto + imagem */
.sobre-flex {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.sobre-imagem {
  flex: 1 1 45%;
  display: flex;
}

.sobre-imagem img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Texto Sobre Nós – alinhado à esquerda no desktop */
.sobre-texto {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.sobre-texto p {
  text-align: left;
  margin-bottom: 0.8rem;
}

/* Cards de missão / visão / valores */
.sobre-info {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
  z-index: 1;
}

/* Fundo decorativo atrás dos cards */
.sobre-info::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  background: url('../img/shape-tm-20.png') center/cover no-repeat;
  opacity: 0.25;
  z-index: -1;
}

.sobre-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.sobre-card i {
  font-size: 40px;
  color: #2D5D9F;
  margin-bottom: 20px;
}

.sobre-card h3 {
  font-size: 1.5em;
  color: #2D5D9F;
  margin-bottom: 10px;
}

.sobre-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}


/* =====================================================================================
   6) SEÇÃO SERVIÇOS
   ===================================================================================== */

.servicos {
  position: relative;
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.servicos .container {
  position: relative;
  z-index: 2;
}

.servicos h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

/* Grid responsivo de serviços */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Card de serviço – com animação ao entrar na tela */
.servico-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;

  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

/* Quando o card aparece na tela (classe adicionada via JS) */
.servico-item.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Hover dos cards */
.servico-item:hover {
  transform: translateY(-10px);
}

.servico-item img {
  max-width: 100%;
  height: auto;
  width: 80px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.servico-item h3 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.servico-item p {
  font-size: 1em;
  color: #666;
}


/* =====================================================================================
   7) SEÇÃO EXAMES (ACORDEÃO)
   ===================================================================================== */

.exames {
  padding: 80px 20px 40px 20px !important;
  background: #fff;
  text-align: center;
  margin-bottom: 0 !important;
}

.exames h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.exames p {
  color: #666;
  margin-bottom: 30px;
}

.exames-lista {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* Item do acordeão */
.exame-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
  overflow: hidden;
}

/* Cabeçalho do exame */
.exame-item h3 {
  position: relative;
  margin: 0;
  padding: 15px 40px 15px 48px !important;
  font-size: 1.2em;
  color: #003366;
  background: #a9ddf8;
  cursor: pointer;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Setinha lateral do acordeão */
.exame-item h3::before {
  content: "\25B6";
  position: absolute;
  left: 18px !important;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  color: #003366;
  transition: transform 0.3s ease;
}

.exame-item.active h3::before {
  transform: translateY(-50%) rotate(90deg);
}

/* Descrição recolhível */
.exame-desc {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #fff;
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.exame-item.active .exame-desc {
  max-height: 200px;
  padding: 15px 20px;
}


/* =====================================================================================
   8) SEÇÃO TREINAMENTOS
   ===================================================================================== */

.treinamentos {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.treinamentos h2 {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 10px;
}

.treinamentos p {
  color: #666;
  font-size: 1em;
  margin-bottom: 40px;
}

/* Bloco individual de NR */
.treinamento-faixa {
  background: #a9ddf8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.treinamento-faixa h3 {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 10px;
}

.treinamento-faixa ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.treinamento-faixa li {
  margin-bottom: 5px;
  color: #000;
  font-size: 1em;
}

/* NOVO: ícone + título das NRs */
.treinamento-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.treinamento-header i {
  font-size: 1.6em;
  color: #003366;
}


/* =====================================================================================
   9) SEÇÃO NÚMEROS / CONTADOR
   ===================================================================================== */

.numeros {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.numeros .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

/* Texto à esquerda */
.numeros-texto {
  flex: 1 1 40%;
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.numeros-texto h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 15px;
}

.numeros-texto p {
  color: #666;
  font-size: 1em;
  line-height: 1.6;
}

/* Blocos de números à direita */
.numeros-grid {
  flex: 1 1 50%;
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
}

.numero-item {
  flex: 1 1 120px;
  min-width: 120px;
}

.numero-item i {
  font-size: 40px;
  color: #2D5D9F;
  margin-bottom: 10px;
}

.numero-item .contador {
  display: block;
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
}

.numero-item p {
  margin-top: 5px;
  color: #555;
}


/* =====================================================================================
   10) SEÇÃO CLIENTES (SLIDER)
   ===================================================================================== */

.titulo-clientes {
  text-align: center;
  font-size: 2em;
  margin: 40px 0 10px 0;
  color: #333;
}

.clientes {
  background: #f4f4f4;
  padding: 30px 0;
  overflow: hidden;
  margin-bottom: 80px;
}

.slider {
  height: 100px;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.slide-track {
  display: flex;
  width: calc(250px * 20);
  animation: scroll 40s linear infinite;
}

.slide {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.slide img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
  opacity: 0.8;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* =====================================================================================
   11) SEÇÃO CONTATO (FORM + CARD)
   ===================================================================================== */

.contato {
  padding: 80px 20px;
  padding-bottom: 60px !important;
}

/* Título "Envie um e-mail" */
.contato h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
  text-align: left;
  margin-left: 140px;
}

/* Grid principal: formulário à esquerda, card à direita */
.contato .contato-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: flex-start !important;
  text-align: left;
}

/* Estrutura do formulário */
.contato form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.contato .form-row {
  display: flex;
  gap: 12px;
}

/* Inputs padrão */
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

textarea {
  height: 150px;
}

/* Inputs específicos do contato */
.contato .contato-form input,
.contato .contato-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.contato .contato-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Linha com reCAPTCHA + botão */
.contato .recaptcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Caixa do reCAPTCHA */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Card de informações à direita */
.contato .contato-info {
  display: block !important;
  background: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  text-align: left !important;
  margin-top: 25px !important;
}

.contato .contato-info h3 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contato .contato-info h3 i {
  color: #2D5D9F;
}

.contato .contato-info p {
  margin: 0 0 16px;
  color: #555;
}

.contato .contato-info a {
  color: #2563eb;
  text-decoration: none;
}

.contato .contato-info a:hover {
  text-decoration: underline;
}


/* =====================================================================================
   12) RODAPÉ (FOOTER)
   ===================================================================================== */

.footer {
  background-color: #0b1520;
  color: #fff;
  padding: 50px 20px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  margin-top: 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-column h3 {
  color: #fff !important;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column p {
  margin: 8px 0;
  line-height: 1.6;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #1da1f2;
}

.footer a.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer a.footer-link:hover {
  color: #1da1f2;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  color: #ccc;
}

.footer-bottom .social-icons {
  display: flex;
  gap: 15px;
}

.footer-bottom .social-icons a {
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-bottom .social-icons a:hover {
  color: #fff;
}


/* =====================================================================================
   13) ÍCONE FIXO DO WHATSAPP
   ===================================================================================== */

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-icon img {
  width: 90px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


/* =====================================================================================
   14) AJUSTES RESPONSIVOS
   ===================================================================================== */

/* Até 1024px */
@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contato h2 {
    margin-left: 100px;
  }
}

/* Até 900px */
@media (max-width: 900px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .sobre-flex {
    flex-direction: column;
    text-align: center;
  }

  .sobre-texto {
    text-align: center;
  }

  .sobre-texto p {
    text-align: center;
  }

  .numeros .container {
    flex-direction: column;
    text-align: center;
  }

  .contato .contato-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-icon {
    display: block;
  }
}

/* Até 768px */
@media (max-width: 768px) {
  .barra-topo {
    display: none;
  }

  header {
    top: 0 !important;
  }

  .logo img {
    height: 64px;
    max-height: 64px;
  }

  nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: none;
    background: #222;
    position: fixed;
    top: 70px;
    width: 100%;
    left: 0;
    z-index: 10000;
  }

  .mobile-nav.active {
    display: block;
  }

  .hero .container {
    top: 30px;
    padding: 24px 18px;
    background: rgba(0, 0, 0, 0.5);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .contato h2 {
    margin-left: 40px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Até 600px */
@media (max-width: 600px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }
}

/* Até 480px */
@media (max-width: 480px) {
  .contato h2 {
    margin-left: 5px;
    text-align: center;
  }
}
