@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.about-page {
  background-color: #ffffff;
  color: #333;
}

/* --- Hero Section (Estilo Padrão/Genérico) --- */
.about-hero {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  color: #2c3e50;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Personalização Específica para a Página "Quem Somos" --- */
.pagina-quem-somos .about-hero {
  position: relative;
  overflow: hidden;
  background-image: url("../images/27105.webp"); /* Fundo com imagem */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Efeito Parallax */
  padding-bottom: 150px; /* RE-ADICIONADO: Espaço para o corte diagonal */
  clip-path: polygon(
    0 0,
    100% 0,
    100% 85%,
    0 100%
  ); /* RE-ADICIONADO: Corte diagonal */
}

/* Overlay para a imagem de fundo */
.pagina-quem-somos .about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Garante que o texto fique por cima do overlay */
.pagina-quem-somos .about-hero .container {
  position: relative;
  z-index: 2;
}

/* Muda a cor do texto para branco na página "Quem Somos" */
.pagina-quem-somos .about-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pagina-quem-somos .about-hero .about-subtitle {
  color: #e0e0e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Seção "Our Story" (Nossa História) --- */
.our-story {
  padding: 80px 0;
}

.story-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* --- AJUSTES FINOS NA SEÇÃO "NOSSA HISTÓRIA" --- */
.story-text {
  flex: 2;
  max-width: 70ch;
  margin: 0 auto;
}

.story-text h2 {
  font-size: 2.8rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.story-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.story-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.story-image img:first-of-type {
  max-width: 150px;
}

.story-image img:last-of-type {
  max-width: 300px;
}

.story-image img {
  max-width: 250px;
  opacity: 0.8;
}

/* --- Seção "Our Values" (Nossos Valores) --- */
.our-values {
  padding: 80px 0;
  background-color: #f7f9f7;
}

.our-values h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 4rem;
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: #ffffff;
  padding: 2.5rem;
  text-align: center;
  border-radius: 20px;
  border-top: 4px solid #25d366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.value-card:nth-child(1) {
  animation-delay: 0.2s;
}
.value-card:nth-child(2) {
  animation-delay: 0.4s;
}
.value-card:nth-child(3) {
  animation-delay: 0.6s;
}
.value-card:nth-child(4) {
  animation-delay: 0.8s;
}
.value-icon {
  font-size: 2.5rem;
  color: #25d366;
  margin-bottom: 1.5rem;
}
.value-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}
.value-card p {
  color: #666;
}

/* --- Seção CTA (Call to Action) --- */
.about-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #f5fdf5;
}

.about-cta h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-cta p {
  color: #0a1e15;
  margin-bottom: 2rem;
}

/* --- Animação dos Cards --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media query para tablets e telas menores */
@media (max-width: 1024px) {
  .values-grid {
    /* Em telas de tablet, o grid terá 2 colunas */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Media query para celulares */
@media (max-width: 900px) {
  /* --- Ajuste na seção "Nossa História" --- */
  .story-content {
    /* Muda a direção do flex para coluna, empilhando os itens */
    flex-direction: column;
    text-align: left; /* Centraliza o texto para melhor visualização */
  }

  /* --- Ajuste no grid de "Nossos Valores" --- */
  .values-grid {
    /* Em telas de celular, o grid terá apenas 1 coluna */
    grid-template-columns: 1fr;
  }
}
