/* --- SEÇÃO SOBRE NÓS (Desktop Amplo / Mobile Compacto) --- */

/* Base (Mobile First) - A altura aqui já é 'auto' por padrão */
#sobre {
  background-color: #ffffff;
  padding: 40px 0 60px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 70px; 
  height: auto;
}

.sobre-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.sobre-imagem {
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.sobre-imagem img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(24, 32, 71, 0.07);
  display: block;
}

.sobre-texto {
  width: 100%;
}

.sobre-texto h3 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #182047;
  margin-bottom: 10px;
}

.sobre-texto .sobre-subtitulo {
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  color: #3b4bbf;
  margin-bottom: 15px;
}

.sobre-texto p {
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

/* --- ONDA SVG --- */
.sobre-onda-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.sobre-onda {
  width: 100%;
  height: auto;
}

/* ======================================================= */
/* --- RESPONSIVIDADE (Aumentando para Telas Maiores) ---    */
/* ======================================================= */

/* Tablet (Telas maiores que 768px) */
@media (min-width: 768px) {
  #sobre {
    padding: 80px 0 120px 0;
    height: 100vh;
  }
  .sobre-container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 50px;
    padding: 0 40px;
  }
  .sobre-imagem {
    flex: 1;
    max-width: 45%;
  }
  .sobre-texto {
    flex: 1.2;
  }
  .sobre-texto h3 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
  }
  .sobre-texto .sobre-subtitulo {
    font-size: 1.2rem;
  }
  .sobre-texto p {
    font-size: 1.1rem;
  }
}

/* Desktop (Telas maiores que 1024px) */
@media (min-width: 1024px) {
  #sobre {
    padding: 120px 0 160px 0;
    height: 100vh;
  }
  .sobre-container {
    gap: 80px;
  }
}

/* Celular Deitado (Landscape) */
@media (max-height: 500px) and (orientation: landscape) {
  #sobre {
    padding: 25px 0;
    height: auto;
  }
  .sobre-container {
    flex-direction: row;
    gap: 20px;
    align-items: center;
    text-align: left;
  }
  .sobre-texto h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .sobre-texto .sobre-subtitulo,
  .sobre-texto p {
    font-size: 0.7rem;
    margin-bottom: 5px;
    line-height: 1.4;
  }
  .sobre-onda-container {
    display: none;
  }
}