/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 30px 25px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #1e88e5;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Carrossel Testemunhal ===== */
.kasa-testimonials-section {
  padding: 60px 20px;
  background: #f7f7f7;
  text-align: center;
}

.kasa-testimonials-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 35px;
  color: #222;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.testimonial.active {
  display: block;
  animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.testimonial-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;       /* permite vários cards em linha e quebra para mobile */
  padding: 20px;
  gap: 20px;             /* espaço entre os cards */
  background: #f5f5f5;
}

.testimonial-card {
  position: relative;
  width: 100%;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Sobreposição escura para melhorar contraste */
  background-blend-mode: darken;
  background-color: rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #e66e18;
}

.testimonial-card .quote {
  font-style: italic;
  color: #fff;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

.testimonial-card .author {
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}

/* Controles */
.controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.controls button {
  background: #e66e18;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.testimonial-content {
  padding: 20px;
}

/* Barra de progresso única */
.progress-container {
  width: 100%;
  max-width: 500px;
  height: 6px;
  background: #bab8b8;
  border-radius: 5px;
  margin: 25px auto 0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: #e66e18;
}

/* ======= Pilares ======= */
/* ======= Container ======= */
.pilares-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  justify-content: center;
}

/* ======= Estilo base do pilar ======= */
.pilar {
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  color: #fff; /* texto branco para contraste */
}

/* ======= Cores individuais ======= */
.pilar.missao {
  background: #FF6F61; /* vermelho alaranjado */
}

.pilar.visao {
  background: #4CAF50; /* verde */
}

.pilar.valores {
  background: #2196F3; /* azul */
}

.pilar.proposito {
  background: #FF9800; /* laranja */
}

/* ======= Ícones ======= */
.pilar i {
  font-size: 40px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.9); /* leve transparência no ícone */
}

/* ======= Títulos ======= */
.pilar h3 {
  font-size: 1.2rem;
  color: #fff; /* título branco para contraste */
}

/* ======= Hover ======= */
.pilar:hover {
  transform: translateY(-10px);
  filter: brightness(1.1);
}

/* ======= Responsivo ======= */
@media (max-width: 768px) {
  .pilar {
    width: 45%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .pilar {
    width: 100%;
    height: 150px;
  }
}


/* ======= Modal ======= */
.modal {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff6600;
}

#modalText {
  font-size: 1rem;
  color: #555;
}

/* ======= Responsivo ======= */
@media (max-width: 768px) {
  .pilares-container {
    gap: 15px;
  }

  .pilar {
    width: 45%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .pilar {
    width: 100%;
    height: 150px;
  }
}
