@charset "UTF-8";

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(to right, #fce4ec, #ffffff);
  padding: 20px;
}

.conteudo-servicos {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-subtitle {
  font-size: 30px;
  color: var(--cor-primaria-texto);
  font-family: 'Pacifico', cursive;
  margin: 0 0 40px 0;
  text-align: center;
  width: 90%;
}

.servicos-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.servico-card {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1950px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
}

.servico-imagem-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.servico-imagem-wrapper img {
  width: 550px;
  height: 550px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: none;
}

.servico-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
  text-align: center;
}

.servico-info h3 {
  color: var(--cor-primaria-texto);
  font-size: 2.4em;
  font-family: 'Pacifico', cursive;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.servico-info p {
  color: var(--cor-texto-secundario);
  font-size: 1.1em;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

.botao-agendar {
  font-family: 'Segoe UI', sans-serif;
  display: block;
  font-size: 16px;
  font-weight: bold;
  width: 40%;
  max-width: 300px;
  height: 60px;
  background-color: var(--cor-botao);
  color: var(--cor-texto-principal);
  border: none;
  border-radius: 35px;
  padding: 10px 20px;
  margin: 20px auto 0 auto;
  transition: transform 0.3s ease, box-shadow 0.4s ease; 
}

.botao-agendar:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.349));
  background-color: var(--cor-primaria-texto);
  color: var(--cor-branco);
  cursor: pointer;
}

.servico-card.left {
  flex-direction: row;
  transform: translateX(-9%);
}

.servico-card.right {
  flex-direction: row-reverse;
  text-align: right;
  transform: translateX(9%);
}

.servico-card.right .servico-info {
  align-items: center;
  text-align: center;
}

@media (max-width: 1200px) {
  .servico-card.left,
  .servico-card.right {
    transform: translateX(0);
  }
}

@media (max-width: 992px) {
  .servico-card {
    max-width: 700px;
    gap: 20px;
  }

  .servico-imagem-wrapper,
  .servico-imagem-wrapper img {
    width: 300px;
    height: 300px;
  }

  .servico-info h3 {
    font-size: 1.8em
  }

  .servico-info p {
    font-size: 1em;
  }

  .botao-agendar {
    width: 70%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .servicos-grid {
    gap: 40px; /* Reduz o espaço entre os cards */
  }

  .servico-card,
  .servico-card.left,
  .servico-card.right {
    flex-direction: column;
    width: 90%;
    max-width: 450px; /* Garante que o card não fique excessivamente largo */
    padding: 25px;
    margin: 0 auto; /* Centraliza o card */
    transform: none; /* Reseta transformações de desktop */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
  }

  .servico-info {
    margin-top: 0; /* Reseta a margem negativa */
    gap: 15px; /* Adiciona espaço entre os elementos internos */
  }

  .servico-card.right .servico-info {
    align-items: center;
  }

  .servico-imagem-wrapper {
    margin-bottom: 0; /* O gap do flex-container pai cuidará do espaçamento */
  }

  .servico-imagem-wrapper,
  .servico-imagem-wrapper img {
    width: 100%; /* Imagem ocupa toda a largura do wrapper */
    max-width: 280px; /* Limita o tamanho máximo da imagem */
    height: auto; /* Altura automática para manter a proporção */
    aspect-ratio: 1 / 1; /* Garante que a imagem seja quadrada */
  }

  .servico-info h3 {
    font-size: 1.9rem;
  }

  .servico-info p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .botao-agendar {
    width: 90%;
    max-width: 280px; /* Consistente com a imagem */
    height: 50px;
    font-size: 1rem;
    margin-top: 10px;
  }

  .section-subtitle {
    font-size: 1.5rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .servico-info h3 {
    font-size: 1.6rem;
  }

  .servico-info p {
    font-size: 0.95rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
  }

  .botao-agendar {
    height: 45px;
    font-size: 0.9rem;
  }
}
