/* ============================================================
   Jorge Franco — Psicólogo · Landing Page
   Identidade extraída do site Wix original:
   serifa clássica + sans leve, paleta pêssego/verde-abissal/grafite,
   arte do labirinto desenhada à mão como elemento assinatura.
   Mobile-first (base 380px).
   ============================================================ */

:root {
  /* Paleta */
  --ivory: #FBF7F4;        /* fundo base */
  --peach: #F5E6E0;        /* seção Sobre (fiel ao Wix) */
  --green-deep: #0E4F4A;   /* verde-abissal, cor de marca */
  --green-emerald: #3FBF9F;/* acento fino */
  --mint: #DFF3EE;         /* chips de confiança */
  --graphite: #2B2B2B;     /* texto + CTA final */
  --wa-green: #1EBE5D;     /* exclusivo dos botões WhatsApp */
  --wa-green-dark: #17984A;
  --ink: #2B2B2B;
  --ink-soft: #55504C;
  --line: rgba(43, 43, 43, 0.16);

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", Futura, sans-serif;

  /* Ritmo */
  --space-section: clamp(4rem, 10vw, 7.5rem);
  --container: 68rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, blockquote, figure, p, ul, ol { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--green-emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: 46rem; }

.section { padding-block: var(--space-section); }

/* âncoras dos sitelinks (#sobre, #como-funciona, #faq, #contato):
   a rolagem para com respiro em vez de colar a seção no topo */
[id] { scroll-margin-top: 1.5rem; }

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
}

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

.section__lead {
  text-align: center;
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
}

.section__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn--whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 190, 93, 0.32);
}

.btn--whatsapp:hover { background: var(--wa-green-dark); transform: translateY(-2px); }
.btn--whatsapp:active { transform: translateY(0); }

.btn--large {
  font-size: 1.1875rem;
  padding: 1.15rem 2.4rem;
}

.icon-wa { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar__brand em { font-weight: 500; }

.topbar__crp {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  background: var(--mint);
  color: var(--green-deep);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* padding-top maior: o texto começa abaixo da faixa do labirinto */
  padding-block: clamp(7rem, 16vw, 11rem) 0;
}

/* Labirinto vetorial: moldura em L (faixa no topo + faixa à direita),
   sem sobreposição com o retrato. O traço se desenha ao carregar. */
.hero__maze {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform; /* parallax leve no scroll (js/main.js) */
}

.hero__maze-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(6rem, 13vw, 9.5rem);
  opacity: 0.16;
}

.hero__maze-side {
  display: none; /* só no desktop: faixa à direita da foto */
}

.maze-path {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maze-draw 3s cubic-bezier(0.33, 0.1, 0.25, 1) forwards;
}

.maze-path:nth-child(2n) { animation-delay: 0.35s; }
.maze-path:nth-child(3n) { animation-delay: 0.7s; }

@keyframes maze-draw {
  to { stroke-dashoffset: 0; }
}

.hero__inner {
  position: relative;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}

.hero__text h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  max-width: 15em;
}

.hero__text h1 em {
  font-weight: 500;
  color: var(--green-deep);
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero__text .btn { margin-top: 2.1rem; }

.hero__proof {
  margin-top: 1.3rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--green-deep);
}

.hero__portrait {
  justify-self: center;
  width: min(19rem, 78%);
  position: relative;
}

.hero__portrait img {
  border-radius: 10rem 10rem 0.4rem 0.4rem; /* arco de capela: eco da serifa clássica */
  border: 1px solid var(--line);
  padding: 0.45rem;
  background: #fff;
}

/* ---------- 2. Barra de confiança ---------- */
.trust {
  background: var(--mint);
  border-block: 1px solid rgba(14, 79, 74, 0.12);
  padding-block: 2.2rem;
}

.trust__list {
  list-style: none;
  padding: 0;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.2rem;
  text-align: center;
}

.trust__list li {
  display: grid;
  gap: 0.15rem;
}

.trust__list strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-deep);
}

.trust__list span {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

/* ---------- 3. Isso parece com você? ---------- */
.pains__grid {
  margin-top: 2.8rem;
  display: grid;
  gap: 1.1rem;
}

.pain-card {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.7rem 1.5rem;
  background: #fff;
  position: relative;
}

/* filete de tinta no topo do cartão, como um traço à mão */
.pain-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.4rem;
  width: 3.2rem;
  height: 3px;
  background: var(--green-deep);
  border-radius: 0 0 3px 3px;
}

.pain-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.pain-card p { color: var(--ink-soft); }

/* ---------- 4. Como funciona ---------- */
.steps { padding-top: 0; }

/* filete esmeralda: único uso do verde-claro como traço */
.steps .section__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--green-emerald);
  margin: 1.1rem auto 0;
}

.steps__list {
  list-style: none;
  padding: 0;
  margin-top: 2.8rem;
  display: grid;
  gap: 2.4rem;
  counter-reset: passo;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.3rem;
  align-items: baseline;
}

.step__number {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--green-deep);
  align-self: start;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.step p { color: var(--ink-soft); margin-top: 0.25rem; }

/* ---------- 5. Sobre + Método ---------- */
.about {
  background: linear-gradient(170deg, var(--peach) 0%, #FAF0EB 55%, var(--ivory) 100%);
}

.about__grid {
  display: grid;
  gap: 2.8rem;
}

.about__photo {
  justify-self: center;
  width: min(17rem, 74%);
}

.about__photo img {
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  padding: 0.45rem;
  background: #fff;
}

.about__photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.about__text .section__title { margin-bottom: 1.2rem; }

.about__text p + p { margin-top: 1rem; }

.about__method-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
  color: var(--green-deep);
}

/* Citação de Heidegger sobre o labirinto em marca-d'água */
.about__quote {
  position: relative;
  margin-top: 2.6rem;
  padding: 2.6rem 1.5rem;
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.about__quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/labirinto.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}

.about__quote p {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--graphite);
}

.about__quote cite {
  position: relative;
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 6. Reescrevendo Caminhos ---------- */
/* Rosa-pêssego tom sobre tom; labirinto em baixo-relevo ao fundo.
   O grafite do CTA final fica sendo a única seção escura da página. */
.rewrite {
  position: relative;
  background: linear-gradient(190deg, #FAF0EB 0%, var(--peach) 100%);
  overflow: hidden;
}

.rewrite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/labirinto.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.055;
  pointer-events: none;
}

.rewrite__inner {
  position: relative;
  max-width: 42rem;
  text-align: center;
}

.rewrite .section__title { margin-bottom: 1.6rem; }

.rewrite p { font-size: 1.0625rem; color: var(--ink-soft); }

.rewrite p + p { margin-top: 1.2rem; }

.rewrite em {
  font-family: var(--serif);
  font-size: 1.15em;
  color: var(--green-deep);
}

.rewrite__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--green-deep);
}

/* ---------- 8. FAQ ---------- */
.faq .section__title { margin-bottom: 2.4rem; }

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-of-type { border-top: 1px solid var(--line); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--green-deep);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 0.25rem 1.4rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- 9. CTA final ---------- */
.final-cta {
  background: var(--graphite);
  color: var(--ivory);
  padding-block: var(--space-section);
}

.final-cta__inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2.2rem;
}

.final-cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  line-height: 1.2;
  max-width: 18em;
}

.final-cta h2 em {
  font-weight: 500;
  color: var(--green-emerald);
}

.final-cta__phone {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: var(--mint);
  color: var(--green-deep);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

/* ---------- 10. Rodapé ---------- */
.footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding-block: 2.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.footer__contact { margin-top: 0.6rem; }

.footer__contact a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer__notice {
  margin: 1.4rem auto 0;
  max-width: 34rem;
  font-size: 0.8125rem;
}

.footer__copy {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- 11. Botão flutuante ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(30, 190, 93, 0.42);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.wa-float:hover { background: var(--wa-green-dark); transform: scale(1.07); }

.wa-float svg { width: 2rem; height: 2rem; }

/* ---------- Animação de entrada (sutil) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .maze-path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero__maze { transform: none !important; }
}

/* ============================================================
   Desktop (≥ 900px)
   ============================================================ */
@media (min-width: 900px) {

  .topbar { padding: 1.1rem 2.5rem; }

  .hero { padding-block: clamp(9rem, 13vw, 11.5rem) clamp(4rem, 6vw, 6rem); }

  .hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 4rem;
  }

  /* faixa vertical à direita da foto — nunca atrás dela */
  .hero__maze-side {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: clamp(5rem, 8vw, 9rem);
    opacity: 0.16;
  }

  .hero__portrait {
    width: 100%;
    max-width: 19rem;
    justify-self: start; /* afasta o retrato da faixa direita do labirinto */
  }

  .trust__list { grid-template-columns: repeat(4, 1fr); }

  .pains__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .about__grid {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 4.5rem;
    align-items: start;
  }

  .about__photo {
    width: 100%;
    position: sticky;
    top: 2rem;
  }
}
