@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

.top-banner {
  position: relative;
  width: 100%;
  height: 350px;
  background: url('../imag/seguranca.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
}

/* Camada de sobreposição */
.banner-overlay {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 3, 99, 0.95), rgba(12, 12, 29, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* Texto do banner */
.banner-content {
  max-width: 900px;
}

.banner-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.banner-subtitle {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .top-banner {
    margin-top: 100px;
      height: 250px;
  }
  .banner-title {
      font-size: 1.8rem;
  }
  .banner-subtitle {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .top-banner {
      height: 200px;
  }
  .banner-title {
      font-size: 1.5rem;
  }
  .banner-subtitle {
      font-size: 0.9rem;
  }
}

.servicos {
  padding: 50px 20px;
  position: relative;
}
.container,
.servicos-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.servicos-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.servicos-texto {
  flex: 1 1 400px;
}

.servicos-texto .subtitulo {
  color: #025d2c;
  font-weight: bold;
  margin-bottom: 10px;
}

.servicos-texto h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
}

.servicos-texto ul {
  list-style: none;
  padding: 0;
}

.servicos-texto ul li {
  margin-bottom: 15px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.servicos-texto ul li::before {
  content: "•";
  color: #000;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.servicos-imagem {
  flex: 1 1 350px;
  position: relative;
  height: 320px;
  overflow: hidden;   /* impede invasão lateral */
  max-width: 100%;
}

/* Fundo diagonal para a esquerda */
.servicos-imagem .fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0E417D;
  transform: skew(-20deg);
  z-index: 1;
}

/* Imagem inclinada para a direita */
.servicos-imagem .imagem {
  position: absolute;
  top: -15px; /* sobe a imagem */
  left: 15px; /* desloca para direita */
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: skew(20deg);
  z-index: 2;
}

/* Corrige distorção da foto */
.servicos-imagem .imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skew(-20deg);
}

.contato {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #025d2c;
  font-weight: bold;
  z-index: 3;
}

.contato i {
  font-size: 20px;
}

.contato p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.contato span {
  font-size: 1rem;
  color: #025d2c;
}

.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 200px;          /* altura fixa */
  object-fit: fill;      /* mantém proporção e corta excesso */
  transition: transform 0.5s ease;
  border-radius: 12px;    /* opcional, arredonda cantos */
}

.service-card .btn {
  border-radius: 30px;
  padding: 8px 20px;
}

.btn-botao {
  display: inline-block;
  background: linear-gradient(to right, #d47406, #025d2c) !important;  /* verde sombrio */
  color: #fff !important;           /* texto branco */
  border-radius: 30px !important;   /* bem arredondado */
  padding: 10px 28px !important;    /* mais espaço interno */
  font-weight: 600 !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.subcards {
  max-height: 0;          /* encolhido por padrão */
  overflow: hidden;       /* esconde conteúdo quando fechado */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  margin-top: 0;          /* sem espaço extra quando fechado */

  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.subcards.active {
  max-height: 2000px;   /* altura suficiente para caber os itens */
  opacity: 1;
  transform: translateY(0);
  margin-top: 40px;     /* espaço só quando aberto */
}

.subcard {
  flex: 1 1 calc(25% - 20px); /* <<< 4 cards por linha */
  max-width: 260px;           /* controla largura máxima */
  background: linear-gradient(145deg, #ffffff, #f1f1f1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 0.6s forwards;
}

.subcard img {
  width: 100%;
  height: 200px;        /* altura fixa */
  object-fit: fill;    /* cobre sem distorcer */
  margin-bottom: 15px;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.btn-whatsapp {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #25D366; /* cor oficial do WhatsApp */
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content {
  border-radius: 20px;
  overflow: hidden;
}
.modal-header {
  border-bottom: none;
}
.btn-success {
  font-weight: 600;
  padding: 10px;
  font-size: 16px;
}

.modal-header {
  background: #198754; /* verde sombrio */
  color: #fff;
  border-bottom: none;
}
.modal-title {
  font-weight: 600;
}
.btn-close-white {
  filter: invert(1); /* deixa o X visível sobre fundo escuro */
}

/* Tablet: 2 cards por linha */
@media (max-width: 991px) {
  .subcard {
    flex: 1 1 calc(50% - 20px);
    max-width: 100%;
  }
}

/* Telemóvel: 1 card por linha */
@media (max-width: 576px) {
  .subcard {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ====== LAYOUT GERAL ====== */
.section-testemunhos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 50px 10%;
  gap: 40px;
}

.texto-area {
  flex: 1 1 350px;
}

.texto-area h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-area p {
  max-width: 400px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.texto-area .linha {
  width: 40px;
  height: 3px;
  background: #025d2c;
  margin-bottom: 20px;
}

/* ====== SLIDER / CARDS ====== */
.testemunhos-slider {
  display: flex;
  overflow: hidden;       /* mantém o slide no desktop */
  flex: 1 1 500px;
  position: relative;
}

.slide-container {
  display: flex;          /* linha no desktop */
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.testemunho-card {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
  min-width: calc(50% - 10px); /* 2 por “página” no desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testemunho-card p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.autor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.autor img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.autor-info {
  text-align: left;
}

.autor-info strong {
  color: #025d2c;
  font-size: 0.95rem;
}

.autor-info span {
  display: block;
  font-size: 0.85rem;
  color: #777;
}

/* ====== IMAGEM LATERAL ====== */
.imagem-area {
  flex: 1 1 300px;
  text-align: center;
}

.imagem-area img {
  max-width: 100%;
  height: 440px;
}

/* ====== MOBILE (≤768px): empilhar cards ====== */
@media (max-width: 768px) {

  .servicos-texto h2{
    font-size: 1.5rem;
  }
  .section-testemunhos {
    flex-direction: column;
    padding: 20px;
  }

  .testemunhos-slider {
    width: 100%;
    overflow: visible;           /* permite altura total */
  }

  .slide-container {
    flex-direction: column;      /* EMPILHA os cards */
    gap: 16px;
    transform: none !important;  /* cancela qualquer translate do slider */
  }

  .testemunho-card {
    min-width: 100%;             /* ocupa toda a largura */
    align-items: flex-start;
    text-align: left;
  }

  .autor {
    justify-content: flex-start;
  }

  .imagem-area {
    order: -1;                   /* imagem sobe no mobile (opcional) */
  }
}
