/* =========================================================
   Tratamento para TOC — Iasmim Bossa
   ========================================================= */

:root {
  /* Cores (aproximadas a partir do layout do Figma) */
  --roxo:        #22054a;   /* títulos, botões */
  --roxo-texto:  #2b0b57;
  --lima:        #dbe464;   /* cards e rodapé */
  --lilas:       #bbb7ff;   /* cards alternados */
  --lilas-claro: #f1ecfc;   /* fundo depoimentos */
  --fundo:       #fafafa;
  --branco:      #ffffff;
  --texto:       #111111;
  --linha:       #e2dfee;

  --grad: linear-gradient(90deg, #ecf0b6 0%, #e9e9de 50%, #e5e1ff 100%);

  /* Tipografia — confira no Figma (painel "Texto") e troque se for diferente */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-alt:     "Montserrat Alternates", "Montserrat", sans-serif;
  --font-body:    "Questrial", system-ui, sans-serif;

  --raio: 12px;
  --sombra: 0 4px 10px rgba(34, 5, 74, .12);
  --header-h: 60px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(900px, 100%); margin-inline: auto; }
.container--faq { width: min(640px, 100% - 32px); }
.center { display: flex; justify-content: center; }
.section { padding: 72px 0; }
.bg-gradient { background: var(--grad); }

/* ---------- Títulos ---------- */
.title-xl,
.title-lg {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--roxo);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.title-xl { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 40px; }
.title-lg { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 32px; }

.title-stack { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; color: var(--roxo); }
.title-stack--left { align-items: flex-start; }
.title-stack__small { font-family: var(--font-alt); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.title-stack__big { font-family: var(--font-alt); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; }

/* ---------- Botão ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--roxo);
  color: var(--lima);
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn--plain { text-decoration: none; }

/* ---------- Placeholder de imagem (some quando a imagem carrega) ---------- */
.img-placeholder { position: relative; background: linear-gradient(135deg, #efeaff, #f4f6d4); border-radius: var(--raio); overflow: hidden; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grad);
  height: var(--header-h);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo { font-family: var(--font-alt); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--texto); }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav a { font-family: var(--font-alt); font-weight: 600; font-size: .9rem; color: var(--texto); text-underline-offset: 3px; }
.header__nav a:hover { color: var(--roxo); }
.header__cta { text-decoration: none; color: var(--roxo) !important; font-weight: 700 !important; }

.header__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.header__toggle span { display: block; width: 22px; height: 2px; background: var(--roxo); margin: 5px 0; transition: .2s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 72px 0 140px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--roxo);
  max-width: 1000px;
}
.hero__title strong { font-weight: 800; }
.hero__subtitle {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  color: var(--roxo);
  max-width: 1000px;
  margin-bottom: 8px;
}

/* =========================================================
   SOA FAMILIAR
   ========================================================= */
.familiar { padding-top: 32px; }
.familiar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.familiar__media { aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; background: transparent; }
.familiar__media img { object-fit: contain; }
.familiar__list li {
  padding: 16px 0;
  border-top: 1px solid var(--linha);
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 460px;
}
.familiar__list li:last-child { border-bottom: 1px solid var(--linha); }
.familiar__cta-text {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  color: var(--roxo);
  text-align: center;
  margin: 56px 0 32px;
}

/* =========================================================
   CICLO DO TOC
   ========================================================= */
.ciclo .container--narrow { width: min(760px, 100% - 32px); }
.ciclo__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.ciclo__card {
  position: relative;
  padding: 16px 24px 18px;
  border-radius: 8px;
  text-align: center;
}
.ciclo__card--lime  { background: var(--lima); }
.ciclo__card--lilac { background: var(--lilas); }
.ciclo__num { position: absolute; left: 28px; top: 16px; font-family: var(--font-alt); font-weight: 700; font-size: 1.2rem; }
.ciclo__card h3 { font-family: var(--font-alt); font-weight: 600; font-size: 1.3rem; margin-bottom: 6px; }
.ciclo__card p { font-size: .9rem; }
.ciclo__text {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
  color: var(--roxo-texto);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
}

/* =========================================================
   TRATAMENTO
   ========================================================= */
.tratamento .container--narrow { width: min(900px, 100% - 32px); }
.steps { margin-bottom: 36px; }
.steps__item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.steps__item:first-child { border-top: 1px solid var(--linha); }
.steps__icon {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 6px;
  fill: none; stroke: var(--roxo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.steps__item h3 { font-family: var(--font-alt); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.steps__item p { font-size: .95rem; }

/* =========================================================
   SOBRE
   ========================================================= */
.sobre { padding-top: 24px; }
.sobre__grid { display: grid; grid-template-columns: 5fr 11fr; gap: 16px; align-items: stretch; }
.sobre__photo { min-height: 380px; }
.sobre__photo img { position: absolute; inset: 0; object-position: center 25%; }
.sobre__text {
  background: var(--lima);
  border-radius: var(--raio);
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  font-size: 1rem;
}

.formacao { margin-top: 72px; text-align: center; }
.formacao__title { font-family: var(--font-alt); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--roxo); margin-bottom: 16px; }
.formacao__list { margin-bottom: 24px; }
.formacao__list li { padding: 12px 8px; border-bottom: 1px solid var(--linha); font-size: 1rem; }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.depoimentos { background: var(--lilas-claro); padding: 110px 0; }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10%;
  padding: 0 10% 8px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 min(800px, 82%);
  scroll-snap-align: center;
  background: var(--fundo);
  border-radius: 14px;
  padding: 44px 40px 36px;
  display: flex; flex-direction: column; gap: 32px;
}
.testimonial h3 { font-family: var(--font-alt); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; }
.testimonial p { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; }
.testimonial__author { font-size: .8rem; color: #8a7fb0; margin-top: -24px; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--roxo); color: var(--lima);
  font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--sombra);
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq .title-xl { width: min(1000px, 100vw - 32px); position: relative; left: 50%; transform: translateX(-50%); }
.faq__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.faq__item { background: var(--fundo); border-radius: var(--raio); box-shadow: var(--sombra); padding: 0 32px; }
.faq__item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-alt); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem);
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 26px; height: 26px;
  border: 1.6px solid var(--roxo); border-radius: 50%;
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 7l5-5 5 5' fill='none' stroke='%2322054a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(180deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(0); }
.faq__answer { padding: 0 0 22px; display: flex; flex-direction: column; gap: 16px; font-size: 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--lima); padding: 28px 0 14px; }
.footer__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; width: min(900px, 100% - 32px); }
.footer__title { font-family: var(--font-alt); font-weight: 600; font-size: 1.4rem; color: var(--roxo); line-height: 1.1; }
.footer__links { display: flex; flex-direction: column; gap: 4px; }
.footer__links a, .footer__links li { font-family: var(--font-alt); font-weight: 600; font-size: .85rem; color: var(--roxo); }
.footer__links li { text-decoration: underline; }
.footer__cta { text-decoration: none; font-weight: 700 !important; }
.footer__copy { text-align: center; font-size: .75rem; color: #8a8a6a; margin-top: 8px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 860px) {
  .header__toggle { display: block; }
  .header__nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #f0f0e4; padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
    display: none;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 10px 0; width: 100%; font-size: 1rem; }

  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 56px 0; }
  .hero { padding: 56px 0 72px; }
  .hide-mobile { display: none; }

  .familiar__grid { grid-template-columns: 1fr; gap: 24px; }
  .familiar__media { max-width: 340px; }
  .familiar__list li { font-size: 1.05rem; max-width: none; }

  .ciclo__num { left: 16px; font-size: 1.05rem; }
  .ciclo__card h3 { font-size: 1.15rem; }

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__photo { min-height: 0; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; margin-inline: auto; }
  .sobre__text { padding: 24px; font-size: .95rem; }

  .depoimentos { padding: 64px 0; }
  .carousel__btn { display: none; }
  .carousel__track { padding: 0 4px 8px; scroll-padding-inline: 4px; gap: 16px; }
  .testimonial { flex-basis: 88%; padding: 28px 24px; gap: 20px; }
  .testimonial__author { margin-top: -12px; }

  .faq__item { padding: 0 20px; }
  .faq__answer { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed; z-index: 60; right: 22px; bottom: 22px;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 860px) {
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* =========================================================
   TEXTO JUSTIFICADO nos blocos de leitura mais longos
   ========================================================= */
.sobre__text p,
.testimonial p,
.faq__answer p,
.steps__item p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
