/* --------------------- */
/* RESET + CONFIG GLOBAL */
/* --------------------- */

@import url("https://fonts.googleapis.com/css2?family=Cactus+Classical+Serif&family=Pontano+Sans:wght@300..700&display=swap");

:root {
  /* Fontes */
  --font-primary: "Cactus Classical Serif", serif;
  --font-secondary: "Pontano Sans", sans-serif;

  /* Paleta de Cores (Baseada no seu código) */
  --cor-destaque: #d4967d;
  --cor-destaque-escuro: #c98b6b;
  --cor-fundo-verde: #495a58;
  --cor-fundo-verde-claro: #4f615d;
  --cor-fundo-cinza: #f5f5f5;
  --cor-fundo-bege: #dcd9d0;
  --cor-texto-escuro: #2b2b2b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--font-secondary);
}

/* --------------------- */
/* CLASSES UTILITÁRIAS   */
/* --------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------- */
/* HEADER --- CABEÇALHO  */
/* --------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-header {
  position: relative; /* Permite header não fixo em páginas específicas */
}

.cabeçalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
  height: 100%;
}

.cabeçalho h2 a {
  text-decoration: none;
  color: white;
  font-family: var(--font-primary);
}

.cabeçalho ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.cabeçalho ul li a {
  text-decoration: none;
  color: white;
  font-family: var(--font-secondary);
  transition: 0.3s ease;
}

.cabeçalho ul li a.active {
  border-bottom: 1px solid white;
}

.contact-header .cabeçalho ul li a.active {
  border-bottom: 1px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
}

/* --------------------- */
/* -- PLANO DE FUNDO --  */
/* --------------------- */

.background {
  min-height: 100vh;
  padding: 80px 0;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-home {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 5vw;
}

/* --------------------- */
/* BACKGROUNDS DAS PAGS  */
/* --------------------- */

.bg-home {
  background-image: url("../img/fundo-inicio.jpg");
  background-size: cover;
  background-position: center;
}

.bg-sobre {
  background-image: url("../img/fundo-sobre.jpg");
  background-size: cover;
  background-position: center;
}

.bg-service {
  background-image: url("../img/fundo-service.jpg");
  background-size: cover;
  background-position: center;
}

.bg-psi {
  background-image: url("../img/fundo-psi.jpg");
  background-size: cover;
  background-position: center;
}

/* --------------------- */
/* TEXTO DE APRESENTAÇÃO */
/* --------------------- */

.texto-inicio {
  color: white;
  font-family: var(--font-primary);
}

.texto-padrao h2 {
  text-align: center;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 20vh;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.texto-padrao p {
  font-size: 20px;
}

.texto-home {
  max-width: 700px;
  color: white;
}

.texto-home h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
}

.texto-home p {
  margin-top: 20px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
}

.texto-inicio-comece {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.texto-inicio-comece h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-primary);
  margin: 30px 0 20px 0;
  font-weight: 300;
}

.texto-inicio-comece p {
  font-size: 1.5rem;
  max-width: 800px;
  font-family: var(--font-secondary);
}

/* --------------------- */
/* ------ BOTÃO  ------- */
/* --------------------- */

.button {
  display: inline-block;
  padding: 20px 40px;
  background-color: var(--cor-destaque);
  border: none;
  cursor: pointer;
  font-family: var(--font-secondary);
  transition: 0.3s;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
}

.button:hover {
  opacity: 0.8;
}

/* --------------------- */
/* - CONTEUDO EM BLOCO - */
/* --------------------- */

.content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  padding: 80px 5vw;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-text,
.content-image {
  flex: 1 1 400px;
}

.content-text {
  text-align: left;
}

.content-text h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.content-text p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

.content-map {
  filter: grayscale(100%) contrast(100%) brightness(110%);
}

/* --------------------- */
/* - MAPA DE LOCALIZAÇÃO - */
/* --------------------- */

.content-map {
  position: relative; /* Necessário para o iframe absolute se guiar por aqui */
  width: 100%;
  height: 450px; /* Define a altura que o mapa terá na tela */
  filter: grayscale(100%) contrast(100%) brightness(110%);
  overflow: hidden;
  border-radius: 8px;
}

.content-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------- */
/* - BIO DA PSICÓLOGA - */
/* --------------------- */

.bio-section {
  background-color: var(
    --cor-fundo-bege
  ); /* Fundo suave para destacar a pele/cabelo na foto */
  padding: 120px 10%;
  border-radius: 0 100px 0 100px; /* Detalhe moderno nos cantos da seção */
  margin: 40px 5vw;
}

.bio-text .subtitle {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--cor-destaque-escuro);
  font-weight: 600;
  margin-bottom: 10px;
}

.bio-text h2 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 15px;
  color: var(--cor-texto-escuro);
}

.bio-text .divider {
  width: 60px;
  height: 3px;
  background-color: var(--cor-destaque);
  margin-bottom: 30px;
}

.bio-text p {
  font-size: 1.15rem;
  color: #444;
  max-width: 550px;
  text-align: justify;
}

.bio-image img {
  border-radius: 8px;
  box-shadow: 20px 20px 0px var(--cor-fundo-verde); /* Moldura "vazada" que está na moda */
  transition: transform 0.4s ease;
}

.bio-image img:hover {
  transform: scale(1.02);
}

/* Ajuste Mobile para a Bio */
@media (max-width: 900px) {
  .bio-section {
    margin: 20px 0;
    border-radius: 0;
    padding: 60px 5%;
  }

  .bio-image img {
    box-shadow: 10px 10px 0px var(--cor-fundo-verde);
    margin-top: 40px;
  }
}

/* ---------------------- */
/* - SERVIÇOS / PREÇOS  - */
/* ---------------------- */

.valores {
  padding: 100px 20px;
  background: var(--cor-fundo-cinza);
}

.titulo-secao {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 80px;
  font-family: var(--font-primary);
}

.valor-item {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.valor-item h3 {
  font-size: 2rem;
  font-family: var(--font-primary);
}

.valor-item p {
  font-size: 1rem;
  line-height: 1.6;
}

.valor-item a {
  color: var(--cor-destaque-escuro);
  text-decoration: none;
  font-weight: 600;
}

/* --------------------- */
/* CONTATO / FORMULÁRIO  */
/* --------------------- */

.contato {
  background: var(--cor-fundo-verde-claro);
  padding: 120px 20px;
  color: white;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contato-texto h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 30px;
  font-family: var(--font-primary);
}

.contato-texto p {
  line-height: 1.6;
  max-width: 500px;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 14px;
  border: none;
  background: #e5e5e5;
  font-family: inherit;
  outline: none;
}

.formulario textarea {
  resize: vertical;
  min-height: 120px;
}

.formulario button {
  width: 160px;
  padding: 14px;
  background: var(--cor-destaque-escuro);
  border: none;
  color: white;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: 0.3s;
}

.formulario button:hover {
  opacity: 0.8;
}

/* ============================= */
/* PAGE - CONTATO ESPECÍFICO     */
/* ============================= */

.container-contato {
  width: 100%;
  min-height: 80vh;
  padding: 80px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-section {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-primary);
}

.contact-text p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-form {
  flex: 2;
  width: 100%;
}

.form-linha {
  display: flex;
  gap: 20px;
}

.form-campo {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-campo label {
  margin-bottom: 6px;
  font-weight: 500;
}

.form-campo input,
.form-campo textarea {
  padding: 12px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

/* --------------------- */
/* TEXTO SOBRE ABORDAGEM */
/* --------------------- */

.approach-preview {
  min-height: 100vh;
  padding: 80px 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.approach-preview h2 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  margin-bottom: 40px;
}

.approach-preview p {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 130px;
  max-width: 800px;
}

/* --------------------- */
/* SERVIÇOS / RESUMO    */
/* --------------------- */

.services-summary {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 100px 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: var(--cor-fundo-verde);
  color: white;
}

.container-service .services-summary {
  background-color: white;
  color: black;
}

.services-summary h3 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
}

.container-service .services-summary h3 {
  color: black;
  margin-top: 20px;
}

.services-summary h4 {
  font-family: var(--font-primary);
  margin-bottom: 50px;
  color: inherit;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
}

.service-card {
  background: transparent;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

/* Visual alternativo para cards dentro de container branco */
.container-service .service-card {
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.service-card p {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
}

.container-home .service-card:hover {
  transform: translateY(-10px);
}

.services-summary .button {
  margin-top: 60px;
}

/* --------------------- */
/* - SOBRE A TERAPEUTA - */
/* --------------------- */

.about-preview {
  padding: 120px 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
}

.about-preview-text {
  flex: 1;
}

.about-preview-text h3 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.about-preview-text p {
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 500px;
}

.about-preview-image {
  flex: 1;
  position: relative;
  width: 100%;
}

.about-preview-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-preview-image span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* --------------------- */
/* ------ COMENTÁRIO --- */
/* --------------------- */

.testimonials {
  padding: 120px 20px;
  background-color: var(--cor-fundo-bege);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonials h4 {
  max-width: 900px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-primary);
}

.testimonials p {
  max-width: 900px;
}

/* Ajuste do layout de depoimento para evitar sobreposição quebrada */
.container-service .testimonials {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 60px 20px;
}

.testimonials-image {
  flex: 1 1 400px;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.testimonials-image img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonials-text {
  flex: 1 1 400px;
  max-width: 600px;
  background-color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  /* Cria o efeito de sobreposição seguro */
  margin-left: -50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonials-text h4 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 15px;
}

.testimonials-text p {
  text-align: left;
}

/* --------------------- */
/* -- CHAMADO PARA AÇÃO -*/
/* --------------------- */

.cta-footer {
  min-height: 55vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--cor-fundo-verde);
  color: white;

}

.container-sobre .cta-footer {
  background-color: var(--cor-fundo-bege);
  color: black;

}
.cta-footer h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 800px;
  width: 100%;
  text-wrap: balance; /* ← distribui as quebras de forma equilibrada */

}

.cta-footer h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  font-weight: 400;
  width: 100%;
  max-width: 1000px; /* Aumentado para dar mais espaço */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

/* Garante que o container interno não limite o h2 */
.cta-footer .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------- */
/* -- RODAPÉ / FOOTER -- */
/* --------------------- */

.rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 60px 5vw;
  background-color: white;
}

.rodape > * {
  flex: 1 1 250px;
}

.info-rodape h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 300;
  font-family: var(--font-primary);
}

.info-rodape p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.contato-rodape h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 300;
  font-family: var(--font-primary);
}

.contato-rodape a {
  display: block;
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: none;
  color: var(--cor-destaque);
  margin-bottom: 15px;
}

.nav-rodape {
  display: flex;
  flex-direction: column;
}

.nav-rodape li {
  list-style: none;
  margin-bottom: 10px;
}

.nav-rodape li a {
  text-decoration: none;
  color: var(--cor-destaque);
  font-size: 1.1rem;
}

/* --------------------- */
/* -- AGENDA / COMECE -- */
/* --------------------- */

.agendar {
  width: 100%;
  max-width: 700px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 6px;
}

.agendar-titulo {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: bold;
}

.agendar-card,
.agendar-card2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}

.agendar-card {
  box-shadow: 0px 23px 0px -22px #818181;
}

.card:first-of-type {
  border-top: none;
}

.info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.info .tempo {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #000;
}

.info p {
  font-size: 0.9rem;
  color: #555;
}

.agendar button {
  background: var(--cor-texto-escuro);
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-primary);
  transition: 0.3s;
}

.agendar button:hover {
  opacity: 0.8;
}

/* --------------------- */
/* -- MEDIA QUERIES   -- */
/* --------------------- */

@media (max-width: 900px) {
  .contato-grid,
  .contact-section,
  .about-preview-wrapper {
    flex-direction: column;
  }

  .form-row,
  .form-linha {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .about-preview-image img {
    height: 400px;
  }

  .valor-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  /* Corrige a sobreposição no mobile */
  .testimonials-text {
    margin-left: 0;
    margin-top: -30px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .cabeçalho ul {
    display: none;
  }

  .content-block,
  .content-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .content-text h2,
  .texto-home {
    text-align: center;
  }

  .agendar-card,
  .agendar-card2 {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
