/* ==========================================================================
   Gabriela Moreira | Psicóloga Clínica
   Direção visual: Editorial Sóbrias
   Paleta: Carvão #1C1C1A · Off-white #F4F1EA · Cinza quente #8A8780 · Taupe #C9C5BA
   Tipografia: Playfair Display (títulos, frases) + Inter (texto, interface)
   ========================================================================== */

:root {
  --carvao: #1C1C1A;
  --offwhite: #F4F1EA;
  --cinza: #8A8780;
  --taupe: #C9C5BA;

  /* carvão em transparência, para texto secundário legível sobre off-white */
  --text-soft: rgba(28, 28, 26, 0.7);
  --line: rgba(28, 28, 26, 0.14);
  --line-light: rgba(244, 241, 234, 0.16);
  --soft-light: rgba(244, 241, 234, 0.68);
  --small-text: #5F5E5A; /* carvão sobre off-white para textos pequenos (contraste AA) */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(120px, 16vw, 232px);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--carvao);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--taupe); color: var(--carvao); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--carvao);
  color: var(--offwhite);
  font-size: 13px;
  z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* --- Tipografia ------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h1, h2, h3, .mf-big, .about-quote, .identify-close, .process-quote { text-wrap: balance; }
p { text-wrap: pretty; }

.label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--small-text);
  margin-bottom: 36px;
}
.label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.label-light { color: var(--taupe); }
.label .label-num {
  order: -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--carvao);
}
.label-light .label-num { color: var(--offwhite); }

/* --- Botões e links --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--carvao);
  border-radius: 2px;
  background: transparent;
  color: var(--carvao);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--carvao);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn::after { content: "→"; letter-spacing: 0; transition: transform .5s var(--ease); }
.btn:hover { color: var(--offwhite); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover::after { transform: translateX(5px); }


.link-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-line::after { content: "→"; letter-spacing: 0; transition: transform .5s var(--ease); }
.link-line:hover { background-size: 30% 1px; }
.link-line:hover::after { transform: translateX(5px); }

/* --- Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--carvao);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.site-header.scrolled .progress { opacity: .55; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .5s var(--ease);
}
.site-header.scrolled .header-inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--carvao); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand-role {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--small-text);
}

.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--carvao);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* --- Hero ------------------------------------------------------------------- */

.hero {
  overflow: hidden;
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: var(--section);
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.hero-text {
  grid-column: 1 / span 6;
}
.hero h1 {
  font-size: clamp(51px, 7.65vw, 109px); /* ~12% menor: mais respiro em relação à foto */
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 7.5em;
  margin-bottom: clamp(16px, 1.6vw, 24px); /* assinatura colada ao título: um bloco só */
}
.hero-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.4;
  margin-bottom: clamp(32px, 3vw, 44px);
}
.hero-sub {
  max-width: 340px;
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.hero-media {
  grid-column: 7 / -1;
  position: relative;
  margin-right: calc(var(--gutter) * -1);
}
.hero-photo {
  position: relative;
  height: clamp(560px, calc(100svh - var(--header-h) - 40px), 920px);
  overflow: hidden;
  border-radius: 2px 0 0 2px;
  background: var(--taupe);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
/* Interseção: as duas formas da logo, em linha fina, cruzando a borda da foto */
.hero-line {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: -15%;
  width: 54%;
  height: 46%;
  color: var(--offwhite);
  stroke-width: 1;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: .55;
}

.hero-caption {
  position: absolute;
  left: -36px;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--small-text);
  white-space: nowrap;
}

/* --- Nem sempre ------------------------------------------------------------- */

.identify { padding: clamp(96px, 12vw, 176px) 0 var(--section); }
/* título grande à esquerda; texto e frase de fechamento à direita */
.identify-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.identify-title {
  grid-column: 1 / span 6;
  font-size: clamp(38px, 4.9vw, 66px);
  line-height: 1.08;
}
.identify-side { grid-column: 8 / span 5; }
.identify-text p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-soft);
}
.identify-close {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(25px, 2.3vw, 32px);
  line-height: 1.32;
  color: var(--carvao);
}

/* --- Cabeçalhos de seção ---------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-bottom: clamp(72px, 10vw, 140px);
}
.section-head .label { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1 / span 6; }
.section-intro,
.section-quote { grid-column: 8 / span 5; align-self: end; }
.section-intro p { color: var(--text-soft); }
.section-intro p + p { margin-top: 16px; }
.section-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-soft);
}

/* --- Como trabalho ---------------------------------------------------------- */

.method { padding: 0 0 var(--section); }
.steps { position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  padding: clamp(32px, 4vw, 52px) 0;
}
/* linha fina que cresce ao entrar na tela */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.step.visible::before { transform: scaleX(1); }
.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  grid-column: 1 / span 2;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  color: var(--taupe);
  transition: color .6s var(--ease);
}
.step h3 {
  grid-column: 3 / span 5;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
}
.step p {
  grid-column: 9 / span 4;
  font-size: 15px;
  color: var(--text-soft);
}
.step:hover .step-num { color: var(--carvao); }
.step::before { transition: transform 1.4s var(--ease-out), background .6s var(--ease); }
.step:hover::before { background: var(--carvao); }

/* --- O que podemos olhar ---------------------------------------------------- */

.territories { padding: 0 0 var(--section); }
.terr-list { border-top: 1px solid var(--line); }
.terr {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.terr h3 {
  grid-column: 1 / span 8;
  font-size: inherit;
  letter-spacing: 0;
  line-height: inherit;
}
.terr-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 6.5fr);
  column-gap: 24px;
  align-items: baseline;
  width: 100%;
  padding: clamp(26px, 3vw, 40px) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.terr-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--cinza);
}
.terr-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3.35vw, 50px); /* ~7% menor: mais respiro no índice */
  line-height: 1.08;
  letter-spacing: -0.02em;
  transition: color .5s var(--ease), transform .6s var(--ease);
}
.terr-desc {
  grid-column: 9 / span 3;
  align-self: center;
}
/* sinal "+" no fim de cada linha: indica que há uma descrição */
.terr::after {
  content: "";
  grid-column: 12;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--cinza), var(--cinza)) center / 100% 1px no-repeat,
    linear-gradient(var(--cinza), var(--cinza)) center / 1px 100% no-repeat;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  pointer-events: none;
}
.terr-desc p {
  font-size: 15px;
  color: var(--text-soft);
}

/* Desktop com mouse: índice que revela a descrição no hover/foco */
@media (hover: hover) and (pointer: fine) and (min-width: 961px) {
  .terr-desc {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .terr-list:hover .terr-title { color: var(--cinza); }
  .terr:hover .terr-title,
  .terr:focus-within .terr-title,
  .terr.open .terr-title { color: var(--carvao); font-style: italic; transform: translateX(16px); }
  .terr:hover .terr-desc,
  .terr:focus-within .terr-desc,
  .terr.open .terr-desc { opacity: 1; transform: none; }
  .terr:hover::after,
  .terr:focus-within::after,
  .terr.open::after { transform: rotate(45deg); opacity: 0; }
}

/* Toque / telas menores: accordion (não depende de hover) */
@media (hover: none), (pointer: coarse), (max-width: 960px) {
  .terr { display: block; }
  .terr::after { display: none; }
  .terr-btn {
    grid-template-columns: 48px minmax(0, 1fr) 14px;
    padding: 26px 0;
  }
  .terr-btn::after {
    content: "";
    width: 13px;
    height: 13px;
    align-self: center;
    background:
      linear-gradient(var(--carvao), var(--carvao)) center / 100% 1px no-repeat,
      linear-gradient(var(--carvao), var(--carvao)) center / 1px 100% no-repeat;
    transition: transform .5s var(--ease);
  }
  .terr-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
  .terr-btn[aria-expanded="true"] .terr-title { font-style: italic; }
  .terr-title { font-size: clamp(24px, 5.9vw, 37px); }
  .terr-desc {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s var(--ease);
  }
  .terr-desc > p {
    overflow: hidden;
    padding-left: 72px;
    opacity: 0;
    transition: opacity .5s var(--ease), padding .6s var(--ease);
  }
  .terr.open .terr-desc { grid-template-rows: 1fr; }
  .terr.open .terr-desc > p { opacity: 1; padding-bottom: 28px; }
}

/* --- Sobre ------------------------------------------------------------------ */

.about { padding: 0 0 var(--section); overflow-x: clip; }
/* estrutura da primeira versão: foto com recorte orgânico + texto contínuo */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
}
.about-media { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--taupe);
  border-radius: 4px 4px 46% 46% / 4px 4px 30% 30%;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1);
}
.about-text h2 {
  font-size: clamp(32px, 4.2vw, 55px); /* ~8% menor que a primeira versão */
  margin-bottom: 40px;
}
.about-text p:not(.label) {
  font-size: 17px;
  color: var(--text-soft);
}
.about-text p + p { margin-top: 20px; }
.about-text p.about-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--carvao);
  margin-bottom: 8px;
}
/* destaque: a frase-chave da prática clínica */
.about-text p.about-quote {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(25px, 2.3vw, 32px);
  line-height: 1.3;
  color: var(--carvao);
}

/* --- Manifesto -------------------------------------------------------------- */

.manifesto {
  padding: var(--section) 0;
  background: var(--carvao);
  color: var(--offwhite);
}
.manifesto .label {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  margin-bottom: 20px;
}
/* conceito da seção, discreto, logo abaixo do rótulo */
.mf-concept {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  color: var(--taupe);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.mf-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--line-light);
}
.mf-small { grid-column: 1 / span 4; }
.mf-small p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--soft-light);
}
.mf-small p + p { margin-top: 18px; }
.mf-big {
  grid-column: 6 / span 7;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.mf-row-alt .mf-big { grid-column: 1 / span 7; grid-row: 1; }
.mf-row-alt .mf-small { grid-column: 9 / span 4; grid-row: 1; }
.mf-steps { font-style: italic; color: var(--taupe); }

.mf-sign {
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.mf-sign p {
  grid-column: 1 / span 9;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.mf-sign em { color: var(--taupe); }
.mf-sign span {
  grid-column: 1 / span 6;
  margin-top: clamp(48px, 6vw, 88px); /* respiro entre a assinatura e o fecho */
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  max-width: 22em;
  font-size: 17px;
  color: var(--soft-light);
}

/* --- Psicoterapia: título forte à esquerda, conteúdo à direita ------------ */

.process { padding: var(--section) 0; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.process h2 {
  grid-column: 1 / span 6;
  font-size: clamp(35px, 4.55vw, 60px); /* ~9% menor que a versão anterior */
  line-height: 1.08;
}
.process-text { grid-column: 8 / span 5; }
.process-text p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
}
/* destaque secundário */
.process-text .process-quote {
  margin: 32px 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(23px, 2.1vw, 28px);
  line-height: 1.3;
  color: var(--carvao);
}
.process-text .link-line { margin-top: 48px; }

/* --- Informações + FAQ ------------------------------------------------------ */

.info { padding: 0 0 var(--section); }
/* esquerda: título + presencial/online; direita: FAQ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.info-side { grid-column: 1 / span 4; }
.info-side h2 { margin-bottom: clamp(40px, 4vw, 56px); }
.mode + .mode { margin-top: 32px; }
.mode-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--small-text);
  margin-bottom: 10px;
}
.mode-city {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.2;
  color: var(--carvao);
  margin-bottom: 4px;
}
.mode p:not(.mode-city) { font-size: 15.5px; color: var(--text-soft); max-width: 22em; }
.faq { grid-column: 6 / span 7; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 30px 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
  transition: color .4s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 9px;
  background:
    linear-gradient(var(--carvao), var(--carvao)) center / 100% 1px no-repeat,
    linear-gradient(var(--carvao), var(--carvao)) center / 1px 100% no-repeat;
  transition: transform .5s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--text-soft); }
.faq-body { padding: 0 64px 36px 0; max-width: 40em; }
.faq-body p { font-size: 15.5px; color: var(--text-soft); }
.faq-body p + p { margin-top: 14px; }
.faq-item[open] .faq-body { animation: faqIn .6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- Encerramento / Contato: off-white, assinatura à esquerda, contatos à direita */

.contact {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.contact-main { grid-column: 1 / span 6; }
.contact h2 {
  font-size: clamp(40px, 5.9vw, 84px); /* ~8% menor que a versão anterior */
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 36px;
}
.contact-sign {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.4;
  margin-bottom: 32px;
}
.contact-lead {
  max-width: 30em;
  font-size: 16.5px;
  font-weight: 300;
  color: var(--text-soft);
  margin-bottom: 48px;
}
.contact-details {
  grid-column: 8 / span 5;
  border-top: 1px solid var(--carvao);
}
.contact-details > div {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--small-text);
  margin-bottom: 8px;
}
.contact-details dd { font-size: 16px; line-height: 1.65; color: var(--carvao); }
.contact-details a[href^="mailto"] { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.contact-details a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease);
}
.contact-details a:hover { background-size: 30% 1px; }

/* --- Footer ----------------------------------------------------------------- */

.site-footer { padding: 80px 0 56px; font-size: 13px; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px 64px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand p { line-height: 1.7; color: var(--text-soft); }
.footer-brand strong { color: var(--carvao); font-weight: 500; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 12px 36px;
}
.footer-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.footer-nav a:hover { background-size: 100% 1px; }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--small-text);
}
.footer-legal p:first-child { max-width: 620px; }
/* --- Microinterações -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .reveal.visible { opacity: 1; transform: none; }

.js .img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-out); }
.js .img-reveal img { transform: scale(1.06); transition: transform 2.2s var(--ease-out); }
/* o recorte é disparado pelo bloco pai (.visible), pois o IntersectionObserver
   não detecta um elemento totalmente recortado por clip-path */
.js .visible .img-reveal { clip-path: inset(0 0 0 0); }
.js .visible .img-reveal img { transform: none; }

.js .hero-line { opacity: 0; transition: opacity 2s var(--ease) .9s; }
.js .hero-media.visible .hero-line { opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .img-reveal, .js .img-reveal img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .hero-line { opacity: .55; transition: none; }
  .step::before { transform: scaleX(1); transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* --- Responsivo ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .step h3 { grid-column: 3 / span 4; }
  .step p { grid-column: 8 / span 5; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 96px var(--gutter) 48px;
    background: var(--offwhite);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a {
    font-family: var(--serif);
    font-size: clamp(32px, 8vw, 44px);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.2;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(2) { transition-delay: .05s; }
  .main-nav.open a:nth-child(3) { transition-delay: .1s; }
  .main-nav.open a:nth-child(4) { transition-delay: .15s; }
  .main-nav.open a:nth-child(5) { transition-delay: .2s; }
  .main-nav a::after { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--offwhite); }

  /* Hero: texto primeiro, foto logo abaixo */
  .hero-inner { display: block; }
  .hero-text { padding-bottom: 0; }
  .hero { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
  .hero-media { margin-top: clamp(56px, 10vw, 80px); margin-right: 0; }
  .hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: max(68svh, 480px); border-radius: 2px; }
  .hero-caption { left: auto; right: 0; bottom: -28px; writing-mode: horizontal-tb; transform: none; }
  .hero-photo img { object-position: 50% 24%; }
  .hero-line { left: auto; right: -6%; top: 6%; width: 48%; height: 40%; }


  .identify-title, .identify-side { grid-column: 1 / -1; }
  .process h2, .process-text { grid-column: 1 / -1; }
  .process-text { margin-top: 40px; max-width: 34em; }
  .identify-side { margin-top: 48px; max-width: 34em; }

  .section-head h2,
  .section-intro,
  .section-quote { grid-column: 1 / -1; }
  .section-intro,
  .section-quote { margin-top: 32px; max-width: 34em; }

  .step { grid-template-columns: 80px minmax(0, 1fr); row-gap: 12px; }
  .step-num { grid-column: 1; grid-row: 1 / span 2; font-size: 44px; }
  .step h3, .step p { grid-column: 2; }


  .about-grid { grid-template-columns: 1fr; gap: 72px; }
  .about-media { max-width: 460px; }

  .mf-small, .mf-big,
  .mf-row-alt .mf-big, .mf-row-alt .mf-small { grid-column: 1 / -1; grid-row: auto; }
  .mf-row { row-gap: 40px; }
  .mf-sign p, .mf-sign span { grid-column: 1 / -1; }
  .mf-sign span { margin-top: 48px; }


  .info-side, .faq { grid-column: 1 / -1; }
  .faq { margin-top: 72px; }

  .contact-main, .contact-details { grid-column: 1 / -1; }
  .contact-details { margin-top: 80px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  :root { --section: 112px; }

  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 11px; letter-spacing: 0.22em; }
  .brand-role { font-size: 9px; letter-spacing: 0.26em; }

  .hero h1 { font-size: clamp(48px, 13.6vw, 63px); }
  .hero-media { margin-right: calc(var(--gutter) * -1); }
  .hero-caption { right: var(--gutter); }
  .hero-photo { aspect-ratio: 4 / 5.2; border-radius: 0; }


  .step { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; font-size: 36px; margin-bottom: 8px; }
  .step h3, .step p { grid-column: 1; }


  .terr-btn { grid-template-columns: 40px minmax(0, 1fr) 14px; }
  .terr-desc > p { padding-left: 64px; }
  .about-media { margin-right: 28px; }

  .faq-body { padding-right: 0; }

  .btn { width: 100%; justify-content: space-between; }
  .link-line { letter-spacing: 0.12em; gap: 10px; }

  /* hero: menos vão entre a foto e a seção seguinte */
  .hero { padding-bottom: 72px; }
  .identify { padding-top: 40px; }

  /* polimento mobile */
  .identify { padding-bottom: 86px; }                 /* ~23% menos vão antes de "Como trabalho" */
  .method .section-intro p { font-size: 15px; }       /* ~3% menor */
  .step p { font-size: 14.5px; }                      /* ~3% menor */
  #o-que-podemos-olhar h2 { font-size: 33px; }        /* ~8% menor */

  /* manifesto: hierarquia em três níveis, sem frases com o mesmo peso */
  .mf-concept { font-size: 24px; }                    /* conceito da seção */
  .mf-big { font-size: 26px; }                        /* "Aquilo que aparece..." */
  .mf-row-alt .mf-steps { font-size: 30px; }          /* "Observar. Perguntar..." */
  .mf-sign p { font-size: 37px; }                     /* assinatura: o ponto mais forte */
  .mf-small p { font-size: 16.5px; }

  /* rodapé: links em lista vertical */
  .footer-nav { flex-direction: column; gap: 0; }
  .footer-inner { gap: 28px; }


  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { justify-content: flex-start; }
  .footer-legal { flex-direction: column; }
}

/* telas muito estreitas (≤360px): botões e links em uma linha */
@media (max-width: 360px) {
  .btn { padding: 0 20px; letter-spacing: 0.14em; gap: 12px; }
  .link-line { letter-spacing: 0.08em; font-size: 11px; }
}

/* telas de toque: áreas de toque confortáveis (≥ 44px) sem mudar o visual */
@media (hover: none), (pointer: coarse) {
  .brand { padding: 7px 0; }
  .link-line { padding-top: 14px; }
  .contact-details a {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
    background: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    background: none;
  }
}

/* ==========================================================================
   Fotografias integradas à composição
   Ritmo: foto (hero) → silêncio → tipografia → foto (sobre) → silêncio
   (manifesto) → foto (psicoterapia) → informação. As fotos se ancoram
   às bordas da tela e das seções; nunca como cards ou caixas.
   ========================================================================== */

picture { display: contents; }

/* distância do conteúdo até a borda da tela (para a foto "sangrar") */
:root { --bleed: calc(var(--gutter) + max(0px, (100vw - var(--wrap)) / 2)); }

/* Hero: a foto ocupa toda a altura da capa e se apoia na borda direita
   e na base da seção; o texto respira à esquerda */
.hero-media { margin-right: calc(var(--bleed) * -1); }
.hero-photo { border-radius: 0; background: var(--carvao); }
.hero-photo img { object-position: 50% 26%; }

/* Sobre: retrato mais próximo (rosto e mão), saindo pela borda esquerda
   e subindo um pouco além do início da seção; um único corte orgânico */
.about-grid { align-items: start; }
.about-media {
  margin-left: calc(var(--bleed) * -1);
  margin-top: clamp(-96px, -5vw, -32px);
}
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 0 0 48% 0 / 0 0 26% 0;
  background: var(--carvao);
}
.about-photo img { filter: none; object-position: 55% 14%; }
.about-text { padding-top: clamp(32px, 7vw, 120px); }

/* Psicoterapia: a foto sorrindo nasce dentro do fim do manifesto (o fundo
   escuro da foto se funde ao carvão) e desce para o off-white */
.process-grid { row-gap: 40px; align-items: start; }
.process-media {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  margin-left: calc(var(--bleed) * -1);
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.process-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--offwhite); }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.process h2 { grid-column: 7 / span 6; grid-row: 1; align-self: end; padding-top: clamp(40px, 8vw, 140px); }
.process-text { grid-column: 7 / span 5; grid-row: 2; }

@media (min-width: 961px) {
  /* a foto do hero vai até a base da seção, sem vão abaixo dela */
  .hero { padding-bottom: 0; }
  .hero-photo { height: clamp(600px, calc(100svh - var(--header-h)), 980px); }
  .identify { padding-top: var(--section); }
}

@media (max-width: 960px) {
  .hero-media { margin-right: 0; }
  .about-media { margin-left: calc(var(--gutter) * -1); margin-top: 0; width: calc(88% + var(--gutter)); }
  .about-text { padding-top: 0; }
  .process-media { grid-column: 1 / -1; grid-row: auto; order: -1; margin: 0 0 24px calc(var(--gutter) * -1); width: calc(84% + var(--gutter)); }
  .process-text { margin-top: 0; }
  .process h2, .process-text { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .hero-line { left: -4%; right: auto; top: 3%; width: 40%; height: 30%; }
}
@media (max-width: 640px) {
  .hero-media { margin-right: calc(var(--gutter) * -1); }
  .hero-photo img { object-position: 52% 24%; }
}

/* --- Hero: fotografia editorial retangular, sem máscara ----------------- */
/* Texto em 5 colunas; a foto ocupa o resto e vai até a borda direita da
   tela, ultrapassando a dobra. A interseção é só uma assinatura pequena. */
.hero-photo { background: none; border-radius: 0; }
.hero-photo img { clip-path: none; object-position: 50% 24%; }
.hero-line { display: none; }
.hero-mark {
  position: absolute;
  z-index: 2;
  width: clamp(56px, 5vw, 76px);
  height: clamp(56px, 5vw, 76px);
  color: var(--offwhite);
  mix-blend-mode: difference;
  opacity: .7;
  pointer-events: none;
}
.hero-mark use { stroke-width: 0.8; }

@media (min-width: 961px) {
  .hero-text { grid-column: 1 / span 5; position: relative; z-index: 1; }
  .hero h1 { max-width: none; white-space: nowrap; }
  .hero-media {
    grid-column: 6 / -1;
    margin-right: calc(var(--bleed) * -1);
    margin-left: clamp(16px, 3vw, 56px);
    align-self: start;
  }
  .hero-photo { height: clamp(640px, calc(100svh - var(--header-h) + 72px), 1040px); }
  .hero-mark { left: calc(clamp(56px, 5vw, 76px) / -2); top: 58%; }
  .hero-caption { left: -34px; }
}
@media (max-width: 960px) {
  .hero-media { margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); }
  .hero-photo { aspect-ratio: 4 / 5; max-height: none; width: 100%; }
  .hero-mark { left: var(--gutter); top: -28px; }
  .hero-caption { right: var(--gutter); }
}

/* --- Hero: canto superior esquerdo em curva ampla + forma em linha fina -- */
.hero-mark { display: none; }
.hero-photo { border-radius: clamp(120px, 15vw, 260px) 0 0 0; overflow: hidden; }
.hero-ring {
  position: absolute;
  z-index: 2;
  left: -16%;
  top: -6%;
  width: 46%;
  height: 40%;
  overflow: visible;
  pointer-events: none;
  color: var(--offwhite);
  mix-blend-mode: difference;
  opacity: .6;
  stroke-width: 1;
}
@media (max-width: 960px) {
  .hero-photo { border-radius: clamp(96px, 30vw, 200px) 0 0 0; }
  .hero-ring { left: -4%; top: -5%; width: 44%; height: 34%; }
}

/* --- Revisão final: escala das fotos e tamanhos mínimos de texto -------- */
/* telas largas: Sobre e Psicoterapia não passam de ~760px de altura */
.about-photo, .process-photo { max-height: min(82svh, 760px); }
.about-photo { aspect-ratio: auto; height: min(calc((50vw) * 1.25), 760px); }
.about-photo img, .process-photo img { height: 100%; }
.brand-role { font-size: 10px; }
.contact-details dt { font-size: 11px; }
/* tablet: foto do topo sem ultrapassar ~3/4 da tela */
@media (min-width: 641px) and (max-width: 960px) {
  .hero-photo { max-height: 74svh; }
  .about-photo { height: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .about-photo { height: auto; aspect-ratio: 4 / 5; }
  .brand-role { font-size: 9.5px; }
}
@media (min-width: 961px) {
  .process-photo { aspect-ratio: auto; height: min(52vw, 760px); max-height: none; }
}

/* --- Proporção fixa das fotos no desktop -------------------------------- */
/* As fotos são verticais (2:3). Em telas largas o espaço disponível ficava
   quadrado/horizontal e a foto era ampliada e cortada. Aqui a proporção
   é fixa (3:4) e a foto se ancora na borda da tela, com tamanho máximo. */
@media (min-width: 961px) {
  .hero-media {
    --hero-h: clamp(600px, calc(100svh - var(--header-h) + 40px), 960px);
    justify-self: end;
    width: min(calc(100% + var(--bleed)), calc(var(--hero-h) * 0.76));
  }
  .hero-photo { height: var(--hero-h); }
  .hero-ring { top: 3%; left: -22%; width: 42%; height: 36%; }

  .about-media { width: min(calc(100% + var(--bleed)), 620px); }
  .about-photo { height: auto; aspect-ratio: 3 / 4; max-height: none; }

  .process-media { width: min(calc(100% + var(--bleed)), 620px); }
  .process-photo { height: auto; aspect-ratio: 3 / 4; max-height: none; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .hero-photo { max-height: none; aspect-ratio: 4 / 5; width: min(100%, calc(76svh * 0.8)); margin-left: auto; }
}

/* Sobre: link para o LinkedIn ao final do texto */
.about-text .about-link { margin-top: 40px; }
/* Contato: link do WhatsApp sem número, com seta */
.contact-details .link-arrow::after { content: " →"; }

/* Menu mobile: o backdrop-filter do header criava um "containing block" e
   prendia o menu (position: fixed) dentro da faixa do header no iOS.
   O fundo/blur passa para um pseudo-elemento, e o header não recebe filtro. */
.site-header.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
body.menu-open .site-header::before { opacity: 1; background: var(--offwhite); }
