/* ==========================================================================
   Matheus Afonso — Psicólogo
   Valores (cores, tamanhos, espaçamentos) migrados 1:1 do design aprovado.
   ========================================================================== */

:root {
  --tinta: #363636;
  --azul: #4368AB;
  --azul-escuro: #0B3B5D;
  --cinza: #EDEDED;
  --cinza-texto: #767676;
  --cinza-rodape: #5F5F5F;
  --gutter: clamp(20px, 3.6vw, 48px);
  --gradiente-card: linear-gradient(160deg, #4368AB 0%, #0B3B5D 100%);
  --gradiente: linear-gradient(135deg, #4368AB 0%, #0B3B5D 100%);
  --ease-suave: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

html {
  /* O cabeçalho é fixo (sticky): reserva o espaço dele para não cobrir o título da seção.
     --altura-cabecalho é medida pelo script.js (o cabeçalho muda de altura conforme a largura);
     os 72px são só o valor de reserva sem JS. */
  scroll-padding-top: calc(var(--altura-cabecalho, 72px) + 16px);
}

html, body { margin: 0; padding: 0; background: #FFFFFF; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--tinta);
  overflow-x: clip; /* clip (e não hidden) para não quebrar o position: sticky do cabeçalho */
}

* { box-sizing: border-box; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }
a { color: var(--tinta); text-decoration: none; }
a:hover { color: var(--azul); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
::selection { background: var(--azul); color: #fff; }

button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.pular-conteudo {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 20px; background: #FFFFFF; border: 1px solid var(--tinta);
  border-radius: 999px; font-size: 14px;
}
.pular-conteudo:focus { top: 12px; }

.contenedor {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.titulo-secao {
  text-align: center;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.45;
}

.icone-link {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tinta);
  transition: color 280ms ease;
}
.icone-link:hover { color: var(--azul); }

/* ---------- Cabeçalho ---------- */

.cabecalho {
  position: sticky; top: 0; z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(54, 54, 54, 0.09);
}
.cabecalho__interno {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 20px;
}
.marca { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; padding: 12px 0; }
.marca__nome { font-size: 17px; font-weight: 500; letter-spacing: 0.005em; }
.marca__papel { font-size: 12.5px; font-weight: 400; letter-spacing: 0.06em; color: var(--cinza-texto); }

.menu {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 8px 0;
}
.menu__link {
  font-size: 14px; font-weight: 400; letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 280ms ease, color 280ms ease;
}
.menu__link:hover { color: var(--azul); border-bottom-color: var(--azul); }

.botao-contorno {
  font-size: 14px; font-weight: 400;
  border: 1px solid rgba(54, 54, 54, 0.35);
  border-radius: 999px;
  padding: 9px 26px; min-height: 40px;
  display: inline-flex; align-items: center;
  background: transparent;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-suave);
}
.botao-contorno:hover { background-color: var(--cinza); border-color: var(--tinta); transform: translateY(-2px); }

/* ---------- Hero ----------
   A composição original é uma faixa 1920×886. Tudo dentro de .hero__arte é
   posicionado em % dessa faixa e o texto usa cqw, então ela escala inteira.
   Título e frases são texto real; o rosto (.hero__rosto) é um recorte da foto
   posto por cima das letras para manter o efeito de profundidade.            */

.hero { background: #FFFFFF; }

.hero__palco { position: relative; container-type: inline-size; }
.hero__moldura { overflow: hidden; }
.hero__arte {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1920 / 886;
}
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__titulo {
  position: absolute; inset: 0;
  font-weight: 400;
  color: #414141;
  pointer-events: none;
}
.hero__titulo-principal {
  position: absolute;
  left: calc(215 / 1920 * 100%);
  top: calc(267 / 886 * 100%);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; /* o banner original usa métricas Arial Bold */
  font-size: 10.42cqw;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  white-space: nowrap;
}
.hero__corte { margin-right: 1.52em; } /* vão entre "Psico" e "logia", que fica atrás do rosto (margem, e não inline-block, para o leitor de tela ler "Psicologia") */
.hero__titulo-secundario {
  position: absolute;
  left: calc(226 / 1920 * 100%);
  top: calc(479 / 886 * 100%);
  font-size: max(2.97cqw, 1rem); /* piso em rem: não encolhe demais em telas estreitas */
  font-weight: 300;
  letter-spacing: 0.165em;
  line-height: 1;
  white-space: nowrap;
}

.hero__rosto {
  position: absolute;
  left: calc(740 / 1920 * 100%);
  top: calc(285 / 886 * 100%);
  width: calc(431 / 1920 * 100%);
  height: auto;
  pointer-events: none;
}

.hero__frase {
  position: absolute;
  bottom: calc(60 / 886 * 100%);
  font-size: max(1.5625cqw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.23;
  color: #363636;
}
.hero__frase--esq { left: calc(55 / 1920 * 100%); }
.hero__frase--dir { right: calc(50 / 1920 * 100%); text-align: right; }
.hero__frase strong { font-weight: 700; }

.hero__pilares {
  max-width: 1040px; margin: 0 auto;
  padding: clamp(26px, 3vw, 44px) var(--gutter);
}
.pilares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(24px, 3vw, 44px);
  align-items: start; justify-items: stretch;
}
.pilares li {
  text-align: center;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.03em;
  line-height: 1.55;
  color: var(--tinta);
}
.pilares strong { font-weight: 700; }

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

.sobre {
  background: #FFFFFF;
  padding: clamp(34px, 3.8vw, 58px) 0 0;
  border-top: 1px solid rgba(54, 54, 54, 0.1);
}
.sobre__titulo {
  max-width: 1440px;
  margin: 0 auto clamp(30px, 3.4vw, 54px);
  padding: 0 var(--gutter);
}
.sobre__grade { display: flex; flex-wrap: wrap; align-items: stretch; }

.sobre__foto {
  flex: 0 1 35%;
  min-width: min(100%, 300px);
  position: relative; overflow: hidden;
}
.sobre__foto img {
  width: 100%; height: 100%;
  min-height: clamp(320px, 34vw, 470px);
  object-fit: cover; object-position: 46% 14%;
}
.sobre__foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.9) 100%);
}
.sobre__legenda {
  position: absolute; z-index: 1;
  left: clamp(18px, 2.2vw, 32px); bottom: clamp(18px, 2vw, 28px);
  color: #FFFFFF;
}
.sobre__legenda-nome { margin-bottom: 4px; font-size: clamp(16px, 1.35vw, 21px); font-weight: 500; }
.sobre__legenda-crp { font-size: clamp(14px, 1.2vw, 19px); letter-spacing: 0.01em; }

.sobre__texto {
  flex: 1 1 60%;
  min-width: min(100%, 320px);
  background: var(--cinza);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(30px, 4vw, 64px);
  padding: clamp(34px, 5.6vw, 85px) clamp(24px, 4vw, 60px) clamp(30px, 3.4vw, 52px) clamp(26px, 4.8vw, 72px);
}
.sobre__paragrafos { max-width: 64ch; display: flex; flex-direction: column; gap: 16px; }
.sobre__paragrafos p {
  text-align: left;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.58;
  text-wrap: pretty;
}
.sobre__acoes {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 24px);
}
.sobre__redes { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); }

.link-saiba {
  display: inline-flex; align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  min-height: 44px;
  padding: 0; border: 0; background: none;
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.14em;
  color: var(--tinta);
  cursor: pointer;
  transition: color 280ms ease, gap 280ms ease;
}
.link-saiba svg { flex: none; display: block; }
.link-saiba:hover { color: var(--azul); gap: 26px; }

/* ---------- Como funciona ---------- */

.processo {
  background: #FFFFFF;
  padding: clamp(42px, 4.8vw, 74px) 0 clamp(36px, 4vw, 60px);
}
.processo__titulo { margin-bottom: clamp(26px, 3.2vw, 48px); }
.etapas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.etapa {
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  border-radius: 26px;
  padding: clamp(26px, 2.6vw, 38px);
  background: var(--gradiente-card);
  color: #FFFFFF;
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.etapa:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 59, 93, 0.18); }
.etapa__titulo { font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; letter-spacing: 0.005em; line-height: 1.3; }
.etapa__texto { font-size: clamp(13.5px, 1vw, 15px); line-height: 1.58; text-wrap: pretty; }
.etapa__numero {
  margin-top: auto;
  padding-top: clamp(28px, 3.4vw, 50px);
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 300; letter-spacing: -0.01em; line-height: 1;
}

/* ---------- Temas ---------- */

.temas { background: #FFFFFF; padding: clamp(36px, 4vw, 60px) 0 clamp(44px, 5vw, 76px); }
.temas__miolo { border-top: 1px solid rgba(54, 54, 54, 0.12); padding-top: clamp(34px, 3.8vw, 58px); }
.temas__titulo { margin-bottom: clamp(16px, 1.8vw, 24px); }
.temas__intro {
  max-width: 58ch;
  margin: 0 auto clamp(26px, 3vw, 44px);
  text-align: center;
  font-size: clamp(14px, 1.02vw, 15.5px);
  line-height: 1.62;
  text-wrap: pretty;
}
.temas__controles { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: clamp(14px, 1.6vw, 20px); }
.botao-seta {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: transparent;
  border: 1px solid rgba(54, 54, 54, 0.3); border-radius: 999px;
  color: var(--tinta); cursor: pointer;
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}
.botao-seta:hover { background-color: var(--cinza); border-color: var(--tinta); }

.temas__janela { overflow: hidden; }
.temas__trilha {
  --gap-temas: clamp(14px, 1.6vw, 22px);
  display: flex; align-items: flex-start;
  gap: var(--gap-temas);
  will-change: transform;
}
.tema { flex: 0 0 calc((100% - 3 * var(--gap-temas)) / 4); min-width: 150px; }
.tema__imagem { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.tema__imagem img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  filter: saturate(0.82) contrast(1.04) brightness(0.99);
  transition: transform 400ms ease;
}
.tema--relacionamento .tema__imagem img { object-position: 50% 45%; }
.tema__imagem:hover img { transform: scale(1.02); }
.tema__imagem::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,59,93,0.1) 0%, rgba(11,59,93,0.22) 100%);
}
.tema__nome {
  margin-top: 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Vamos conversar ---------- */

.conversar { background: var(--gradiente); color: #FFFFFF; padding: clamp(60px, 6.8vw, 106px) 0; }
.conversar__interno {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: clamp(24px, 3.4vw, 56px);
}
.conversar__texto { flex: 1 1 440px; min-width: 260px; }
.conversar__titulo {
  margin-bottom: clamp(16px, 1.8vw, 26px);
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 400;
  letter-spacing: 0.2em; line-height: 1.5;
}
.conversar__chamada {
  max-width: 20ch;
  font-size: clamp(26px, 2.9vw, 42px); font-weight: 400;
  letter-spacing: -0.012em; line-height: 1.14;
  text-wrap: pretty;
}
.conversar__chamada strong { font-weight: 600; }

.botao-cheio {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 15px 32px;
  border: 1px solid #FFFFFF; border-radius: 999px;
  color: #FFFFFF;
  font-size: clamp(14px, 1.08vw, 16px);
  transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease-suave);
}
.botao-cheio:hover { background-color: #FFFFFF; color: var(--azul-escuro); transform: translateY(-2px); }
.botao-cheio:focus-visible { outline-color: #FFFFFF; } /* o azul padrão some sobre o fundo azul */

/* ---------- Rodapé ---------- */

.rodape { background: #FFFFFF; padding: clamp(52px, 5.6vw, 88px) 0 clamp(26px, 3vw, 40px); }
.rodape__topo {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: clamp(24px, 3.4vw, 56px);
  padding-bottom: clamp(30px, 3.4vw, 52px);
}
.rodape__nome { margin-bottom: 4px; font-size: 16px; font-weight: 500; }
.rodape__detalhe { font-size: 12.5px; letter-spacing: 0.04em; color: var(--cinza-rodape); }
.rodape__detalhe + .rodape__detalhe { margin-top: 3px; }
.rodape__frase {
  flex: 0 1 380px; min-width: 240px;
  text-align: right;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}
.rodape__base {
  border-top: 1px solid rgba(54, 54, 54, 0.12);
  padding-top: clamp(18px, 2vw, 26px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
}
.rodape__menu { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 2.8vw, 40px); }
.rodape__menu a {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13px; letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 260ms ease, border-color 260ms ease;
}
.rodape__menu a:hover { color: var(--azul); border-bottom-color: var(--azul); }
.rodape__redes { display: flex; gap: 8px; }
.rodape__copy { margin-top: clamp(20px, 2.4vw, 32px); font-size: 12px; line-height: 1.6; color: var(--cinza-texto); }

/* ---------- Modal "Saiba mais sobre mim" ---------- */

@keyframes veu { from { opacity: 0; } to { opacity: 1; } }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

body.modal-aberto { overflow: hidden; }

.modal {
  /* o próprio <dialog> é o véu: ocupa a tela toda e centraliza o painel */
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; border: 0;
  padding: clamp(12px, 3vw, 40px);
  overflow: hidden;
  background: rgba(11, 59, 93, 0.32);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--tinta);
  align-items: center; justify-content: center;
  animation: veu 260ms ease both;
}
.modal[open] { display: flex; }
.modal::backdrop { background: transparent; }

.modal__painel {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(85vh, 900px);
  max-height: min(85dvh, 900px);
  background: var(--cinza);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(11, 59, 93, 0.16);
  overflow: hidden;
  display: flex;
  animation: sobe 320ms var(--ease-suave) both;
}
.modal__fechar {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(54, 54, 54, 0.12); border-radius: 999px;
  color: var(--tinta); cursor: pointer;
  transition: background-color 260ms ease, color 260ms ease;
}
.modal__fechar:hover { background-color: #FFFFFF; color: var(--azul); }

.modal__rolagem {
  flex: 1 1 auto;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-wrap: wrap; align-items: stretch;
  scrollbar-width: thin; scrollbar-color: rgba(54, 54, 54, 0.28) transparent;
}
.modal__rolagem::-webkit-scrollbar { width: 6px; }
.modal__rolagem::-webkit-scrollbar-thumb { background: rgba(54, 54, 54, 0.24); border-radius: 999px; }
.modal__rolagem::-webkit-scrollbar-track { background: transparent; }

.modal__foto { flex: 1 1 300px; min-width: min(100%, 280px); position: relative; align-self: stretch; }
.modal__foto-fixa {
  position: sticky; top: 0;
  height: clamp(280px, 85vh, 900px);
  overflow: hidden;
}
.modal__foto-fixa img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 16%; }
.modal__foto-fixa::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,59,93,0) 0%, rgba(11,59,93,0.72) 100%);
}
.modal__legenda {
  position: absolute; z-index: 1;
  left: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 28px);
  color: #FFFFFF;
}
.modal__legenda-nome { margin-bottom: 3px; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; }
.modal__legenda-crp { font-size: clamp(13px, 1.05vw, 16px); }

.modal__conteudo {
  flex: 1 1 440px; min-width: min(100%, 300px);
  padding: clamp(40px, 4.4vw, 70px) clamp(24px, 3.4vw, 58px) clamp(38px, 4.2vw, 62px);
  display: flex; flex-direction: column;
  gap: clamp(40px, 4.4vw, 66px);
}
.modal__bloco { display: flex; flex-direction: column; gap: 16px; max-width: 58ch; }
.modal__bloco--separado { border-top: 1px solid rgba(54, 54, 54, 0.14); padding-top: clamp(34px, 3.8vw, 54px); }
.modal__bloco--contato { gap: 20px; }

.modal__rotulo {
  font-size: clamp(12px, 1vw, 14px); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--azul);
}
.modal__rotulo--primeiro { padding-right: 52px; } /* espaço para o botão de fechar */
.modal__rotulo:focus { outline: none; } /* recebe foco só por script, ao abrir o modal, para começar a leitura */
.modal__destaque {
  font-size: clamp(20px, 1.85vw, 28px); font-weight: 400;
  line-height: 1.3; letter-spacing: -0.015em;
  color: var(--azul-escuro);
  text-wrap: pretty;
}
.modal__assinatura {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(54, 54, 54, 0.14);
  font-size: 13px; letter-spacing: 0.08em; line-height: 1.6;
  color: #6B6B6B; /* #767676 dava contraste 3,9:1 sobre o cinza do modal; #6B6B6B passa em 4,5:1 */
}
.modal__texto { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; text-wrap: pretty; }
.modal__texto em { font-style: italic; color: var(--azul-escuro); }
.modal__citacao {
  font-size: clamp(17px, 1.45vw, 21px); font-style: italic;
  line-height: 1.45; color: var(--azul-escuro);
  text-wrap: pretty;
}
.modal__contatos { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.botao-whatsapp {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 15px 30px;
  border-radius: 999px;
  background: var(--gradiente);
  color: #FFFFFF;
  font-size: clamp(14px, 1.08vw, 16px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.botao-whatsapp:hover { opacity: 0.92; transform: translateY(-2px); color: #FFFFFF; }
.modal__links { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 34px); }
.modal__links a {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13px; letter-spacing: 0.1em;
  color: #5A5A5A;
  border-bottom: 1px solid transparent;
  transition: color 260ms ease, border-color 260ms ease;
}
.modal__links a:hover { color: var(--azul); border-bottom-color: var(--azul); }

/* ---------- Antes do JS iniciar (ou sem JS) ----------
   Controles que dependem do script ficam invisíveis, sem mexer no layout. */

html:not(.js) .link-saiba,
html:not(.js) .temas__controles { visibility: hidden; }

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

/* Hero em telas estreitas: a composição vira um recorte da faixa (mantém título e rosto
   inteiros e legíveis) e as duas frases passam para baixo da foto, como texto corrido. */
@media (max-width: 899.98px) {
  .hero__moldura { aspect-ratio: 1520 / 886; }
  .hero__arte { width: calc(1920 / 1520 * 100%); margin-left: calc(-180 / 1520 * 100%); }

  .hero__frase {
    position: static;
    padding: clamp(20px, 5vw, 30px) var(--gutter) 0;
    font-size: clamp(0.9375rem, 2.6vw, 1.125rem);
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: center;
  }
  .hero__frase--dir { text-align: center; padding-top: 6px; }
  .hero__pilares { padding-top: clamp(22px, 5vw, 32px); }
}

/* Celular (até 600px): frases e benefícios centralizados, os três benefícios em uma coluna */
@media (max-width: 600px) {
  .hero__frase, .hero__frase--dir { text-align: center; }
  .pilares { grid-template-columns: 1fr; }
}

/* Cabeçalho no mobile: marca + botão na primeira linha, links na segunda (em vez de 3 linhas soltas) */
@media (max-width: 640px) {
  html { scroll-padding-top: calc(var(--altura-cabecalho, 104px) + 16px); }
  .cabecalho__interno { position: relative; gap: 0; }
  .menu { width: 100%; gap: 22px; padding: 0 0 12px; }
  .menu .botao-contorno {
    position: absolute; top: 14px; right: var(--gutter);
    min-height: 38px; padding: 8px 18px; font-size: 13px;
  }
}

/* Telas muito estreitas (320px): o texto do botão quebra em duas linhas (sem diminuir a fonte)
   para caber ao lado da marca, e a linha dos links desce para não encostar nele. */
@media (max-width: 359px) {
  .cabecalho__interno { padding-inline: 16px; }
  .menu { padding-top: 10px; }
  .menu .botao-contorno {
    right: 16px; top: 12px; min-height: 0; padding: 6px 16px;
    max-width: 116px; justify-content: center; text-align: center; line-height: 1.25;
  }
}

/* Foto do "Sobre" ocupa a largura toda quando o texto passa para baixo */
@media (max-width: 700px) {
  .sobre__foto { flex-basis: 100%; }
}

/* "Sobre mim" no tablet (701–1100px): a foto ocupa a largura toda, de ponta a ponta, e o painel de
   texto vem logo abaixo, exatamente como no layout base (mesma largura, espaçamentos e parágrafos).
   Como a foto é um retrato 4:5, na largura toda ela é enquadrada numa faixa mais larga (cabeça e
   ombros) para não ficar altíssima. */
@media (min-width: 701px) and (max-width: 1100px) {
  .sobre__foto { flex-basis: 100%; }
  .sobre__foto img {
    height: auto; min-height: 0;
    aspect-ratio: 3 / 2; max-height: 640px;
    object-position: 50% 6%;
  }
}

/* Cards do processo: 4 colunas só cabem a partir de ~1000px (o título "Autoconhecimento" vazava) */
@media (max-width: 999.98px) {
  .etapas { grid-template-columns: repeat(2, 1fr); }
}

/* Cards do processo em 1 coluna: em 2 colunas o título "Autoconhecimento" não cabe */
@media (max-width: 480px) {
  .etapas { grid-template-columns: 1fr; }
}

/* Modal empilhado: a foto deixa de ocupar a altura toda da janela */
@media (max-width: 800px) {
  .modal__foto-fixa { position: relative; height: clamp(220px, 62vw, 380px); }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__painel { animation: none; }
  .etapa, .tema__imagem img, .botao-contorno, .botao-cheio, .botao-whatsapp, .link-saiba { transition: none; }
  .etapa:hover, .botao-contorno:hover, .botao-cheio:hover, .botao-whatsapp:hover { transform: none; }
  .tema__imagem:hover img { transform: none; }
  .link-saiba:hover { gap: clamp(12px, 1.4vw, 20px); }
  * { scroll-behavior: auto !important; }
}
