/* =========================================================
   Psicoterapia: seções da página e janela do formulário
   ========================================================= */

/* ===== Psicoterapia (vista integrada) ===== */
[hidden] {
  display: none !important;
}
#psicoterapia {
  --line: rgba(22, 54, 58, 0.14);
  --script: "Parisienne", "Brush Script MT", cursive;
}
#psicoterapia h1,
#psicoterapia h2,
#psicoterapia h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--petrol);
  letter-spacing: -0.01em;
}
#psicoterapia .kicker {
  display: inline-flex;
  margin: 0 0 1.4rem;
  font-size: 1rem;
}
#psicoterapia .kicker::before {
  width: 40px;
}
#psicoterapia {
  line-height: 1.75;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  font-size: 1rem;
}
.back:hover {
  color: var(--petrol);
}
.back svg {
  width: 18px;
  height: 18px;
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  gap: 0;
}
.btn-outline {
  border: 1.5px solid var(--petrol);
  color: var(--petrol);
}
.btn-outline:hover {
  background: var(--petrol);
  color: var(--white);
}
/* Abertura */
.opening {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}
.opening::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(1000px, 140vw);
  aspect-ratio: 2/1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 205, 234, 0.7), rgba(217, 205, 234, 0));
  pointer-events: none;
}
.opening::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(620px, 110vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(110, 79, 158, 0.14);
  pointer-events: none;
}
.opening .wrap {
  position: relative;
  z-index: 1;
}
.opening h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.08;
  max-width: 15ch;
  margin: 0 auto 2.25rem;
  letter-spacing: -0.02em;
}
.opening h1 em {
  font-style: normal;
  color: var(--violet);
}
.opening .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
}

/* Apresentação */
.hello {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hello-card {
  position: relative;
  background: var(--white);
  border-radius: 999px 999px 30px 30px;
  padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px solid var(--mist);
}
.hello-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px 999px 22px 22px;
  border: 1px solid rgba(110, 79, 158, 0.18);
  pointer-events: none;
}
.hello-card .script {
  display: block;
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1.1;
  color: var(--violet);
}
.hello-card p {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--petrol);
}
.hello-card small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hello-text p {
  margin: 0 0 1.15rem;
  max-width: 36rem;
}
.hello-text .lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--petrol);
}
.hello-text .note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--lilac-soft);
  color: var(--petrol);
  font-size: 1.02rem;
  line-height: 1.6;
}
.hello-text .note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--violet);
  margin-top: 0.15rem;
}

/* Modalidades */
#psi-modalidades {
  padding-top: 0;
}
.mod-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.mod-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.mod-head p:last-child {
  margin: 0;
  color: var(--muted);
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.25rem);
  max-width: 64rem;
  margin: 0 auto;
}
.mod-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px 999px 28px 28px;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 2.5rem);
  text-align: center;
}
.mod-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px 999px 20px 20px;
  border: 1px solid rgba(110, 79, 158, 0.16);
  pointer-events: none;
}
.mod-card:nth-child(2) {
  background: var(--lilac-soft);
}
.mod-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--petrol);
  color: var(--lilac);
}
.mod-ico svg {
  width: 28px;
  height: 28px;
}
.mod-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.mod-card p {
  margin: 0 auto;
  max-width: 20rem;
  color: var(--muted);
  line-height: 1.65;
}
.mod-note {
  text-align: center;
  margin: clamp(1.75rem, 3vw, 2.25rem) auto 0;
  color: var(--petrol);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.mod-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
@media (max-width: 860px) {
  .mod-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}
@media (max-width: 640px) {
  .mod-grid {
    grid-template-columns: 1fr;
  }
  .mod-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Respostas */
#psi-processo {
  background: var(--white);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
}
.split p {
  margin: 0 0 1.15rem;
  max-width: 36rem;
}
.pull {
  margin-top: 1.75rem !important;
  padding-left: 1.3rem;
  border-left: 2px solid var(--violet);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--petrol);
}

/* TCC */
.tcc-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.tcc-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
}
.tcc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.tcc p {
  margin: 0 0 1.15rem;
  max-width: 36rem;
}
.model {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.model svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.model .lbl {
  font-family: var(--serif);
  font-size: 21px;
  fill: var(--petrol);
}
.model .sub {
  font-family: var(--sans);
  font-size: 11.5px;
  fill: var(--muted);
}
.model figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.highlight {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--petrol);
}
.highlight span {
  color: var(--violet);
}

/* Frase em destaque */
.thought {
  position: relative;
  overflow: hidden;
  background: var(--petrol);
  text-align: center;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
}
.thought::before,
.thought::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217, 205, 234, 0.1);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.thought::before {
  width: min(720px, 130vw);
  aspect-ratio: 1;
}
.thought::after {
  width: min(1080px, 190vw);
  aspect-ratio: 1;
  border-color: rgba(217, 205, 234, 0.06);
}
.thought .wrap {
  position: relative;
}
.thought .script {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 1.15;
  color: var(--lilac);
  margin: 0 0 2rem;
}
.thought p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--sage);
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

/* Compreender */
.understand {
  text-align: center;
}
.understand h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  margin: 0 auto 0.8rem;
  max-width: 18ch;
}
.understand .intro {
  margin: 0 auto;
  color: var(--muted);
}
.verbs {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 56rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.verbs li {
  padding: clamp(1.4rem, 3vw, 2rem) 0.5rem;
}
.verbs li + li {
  border-left: 1px solid var(--line);
}
.verbs span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: var(--petrol);
}
.verbs li:nth-child(even) span {
  color: var(--violet);
}
.verbs small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.understand .closing {
  max-width: 38rem;
  margin: 0 auto;
}

/* Chamada para contato */
.cta {
  padding-top: 0;
}
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--lilac);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 300px 300px 32px 32px;
  padding: clamp(4.5rem, 9vw, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 286px 286px 22px 22px;
  border: 1px solid rgba(22, 54, 58, 0.15);
  pointer-events: none;
}
.cta-box > * {
  position: relative;
}
#psi-formulario .cta-box .kicker {
  margin-bottom: 1rem;
  color: var(--violet);
}
#psi-formulario .cta-box p {
  margin-bottom: 1rem;
}
.form-facts {
  list-style: none;
  padding: 0;
  margin: 2rem auto 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 40rem;
  border-top: 1px solid rgba(22, 54, 58, 0.15);
  border-bottom: 1px solid rgba(22, 54, 58, 0.15);
}
.form-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
}
.form-facts li + li {
  border-left: 1px solid rgba(22, 54, 58, 0.15);
}
.ff-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(110, 79, 158, 0.45);
  display: grid;
  place-items: center;
  color: var(--violet);
  background: rgba(251, 252, 250, 0.5);
}
.ff-ico svg {
  width: 19px;
  height: 19px;
}
.form-facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--petrol);
  line-height: 1.25;
}
.form-facts li > span:last-child {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}
.btn-form {
  padding: 1.05rem 1.9rem;
  font-size: 1.05rem;
  box-shadow: 0 18px 34px -18px rgba(22, 54, 58, 0.55);
}
.btn-form svg {
  transition: transform 0.25s;
}
.btn-form:hover svg {
  transform: translateX(4px);
}
.form-alt {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-alt a {
  color: var(--violet);
  font-weight: 600;
}

/* Janela do formulário */
.form-modal {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(780px, calc(100% - 2rem));
  max-width: none;
  height: min(90vh, 920px);
  max-height: none;
  overflow: visible;
  color: var(--ink);
}
.form-modal::backdrop {
  background: rgba(22, 54, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-modal[open] {
  animation: fmIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.form-modal[open]::backdrop {
  animation: fmFade 0.35s ease;
}
@keyframes fmIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fmFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fm-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(10, 30, 32, 0.6);
}
.fm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.1rem 1.75rem;
  background: var(--lilac-soft);
  border-bottom: 1px solid var(--mist);
}
.fm-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet);
}
.fm-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--petrol);
  margin: 0.1rem 0 0;
}
.fm-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fm-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--petrol);
  text-decoration: none;
  border: 1px solid rgba(22, 54, 58, 0.2);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.fm-ext:hover {
  background: var(--white);
  border-color: var(--petrol);
}
.fm-ext svg {
  width: 16px;
  height: 16px;
}
.fm-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--petrol);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.fm-close:hover {
  background: var(--violet);
}
.fm-close svg {
  width: 18px;
  height: 18px;
}
.fm-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #f1eef6;
}
.fm-body iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.fm-body.loaded iframe {
  opacity: 1;
}
.fm-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.fm-loading span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--lilac);
  border-top-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fm-foot {
  margin: 0;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--mist);
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .form-facts {
    grid-template-columns: 1fr;
  }
  .form-facts li {
    flex-direction: row;
    text-align: left;
    gap: 0.9rem;
    padding: 0.9rem 0.25rem;
  }
  .form-facts li + li {
    border-left: 0;
    border-top: 1px solid rgba(22, 54, 58, 0.15);
  }
  .ff-ico {
    flex: none;
  }
  .btn-form {
    width: 100%;
    justify-content: center;
  }
  .form-modal {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
  }
  .fm-panel {
    border-radius: 0;
  }
  .fm-head {
    padding: 1rem 1rem 1rem 1.25rem;
  }
  .fm-head h2 {
    font-size: 1.35rem;
  }
  .fm-ext span {
    display: none;
  }
  .fm-ext {
    padding: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-modal[open],
  .form-modal[open]::backdrop {
    animation: none;
  }
}
.cta-box h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin: 0 0 0.8rem;
}
.cta-box p {
  max-width: 30rem;
  margin: 0 auto 2rem;
  color: var(--petrol);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.btn-outline {
  border: 1.5px solid var(--petrol);
  color: var(--petrol);
}
.btn-outline:hover {
  background: var(--petrol);
  color: var(--white);
}
.cta-meta {
  margin-top: 1.75rem !important;
  font-size: 0.95rem;
  color: var(--muted) !important;
}

/* Animação de entrada suave */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .hello,
  .split,
  .tcc {
    grid-template-columns: 1fr;
  }
  .hello-card {
    max-width: 380px;
    justify-self: center;
    width: 100%;
  }
  .verbs {
    grid-template-columns: 1fr 1fr;
  }
  .verbs li:nth-child(3) {
    border-left: 0;
  }
  .verbs li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .back span {
    display: none;
  }
  .opening .btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-box {
    border-radius: 180px 180px 28px 28px;
  }
  .cta-box::before {
    border-radius: 166px 166px 18px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
