/*
Theme Name: Renata Arantes
Theme URI: https://www.psirenataarantes.com.br/
Author: Odelio Jr
Description: Tema sob medida para o site da psicologa Renata Arantes (CRP 04/83991), em Ituiutaba/MG. Pagina unica com as secoes de apresentacao, abordagem humanista, atendimentos infantil, adolescente e adulto, consultorio, duvidas frequentes e contato por WhatsApp. Conteudo fixo nos templates, sem dependencia de plugins ou page builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renata-arantes
Tags: one-column, custom-logo, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Renata Arantes — Psicóloga
   Paleta e tipografia derivadas do logotipo: roxo da assinatura,
   cores das folhas da árvore usadas para codificar as modalidades.
   ========================================================================== */

:root {
  color-scheme: light;

  /* marca */
  --brand:       #5C2D91;
  --brand-deep:  #43206B;
  --brand-mid:   #7B4BB0;
  --brand-soft:  #F2EAFA;

  /* texto */
  --ink:         #2E2138;
  --ink-soft:    #574A63;
  --muted:       #7B6E86;

  /* superfícies */
  --ground:      #FBF9FA;
  --ground-alt:  #F5F1F7;
  --surface:     #FFFFFF;
  --line:        #E8E0EE;
  --line-soft:   #F0EAF3;

  /* modalidades — folhas da árvore */
  --kid:         #C8306B;
  --kid-soft:    #FCEDF3;
  --teen:        #1B76B0;
  --teen-soft:   #E9F3FA;
  --adult:       #24804B;
  --adult-soft:  #EAF5EE;

  /* whatsapp */
  --wa:          #25D366;
  --wa-deep:     #128C7E;

  /* medidas */
  --measure:     36rem;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(46,33,56,.04), 0 8px 24px rgba(46,33,56,.06);
  --shadow-lift: 0 2px 4px rgba(46,33,56,.05), 0 16px 40px rgba(46,33,56,.10);
  --header-h:    72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto é obrigatório: sem ele o atributo height="" do HTML vira
   altura CSS fixa e a imagem estica quando a largura encolhe. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- tipografia */

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: "Figtree", sans-serif;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brand-mid);
  margin: 0 0 .85rem;
}

.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--ground-alt); }
.section--white { background: var(--surface); }

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.section-head p { color: var(--ink-soft); margin-top: 1rem; }

/* ------------------------------------------------------------------ botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn svg { width: 19px; height: 19px; flex: none; }

.btn--wa {
  background: var(--wa-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(18,140,126,.28);
}
.btn--wa:hover { background: #0F7A6C; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand-mid); background: var(--brand-soft); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ header */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.header.is-stuck {
  background: rgba(251,249,250,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__logo { flex: none; margin-right: auto; }
.header__logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--brand); }

.header .btn { padding: .7rem 1.15rem; font-size: .93rem; }

/* o CTA dentro do menu existe só para a versão mobile */
.header__nav-wrap > .btn { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }

.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 62rem) {
  .burger { display: block; }
  .header__nav-wrap {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem 1.75rem;
    display: none;
  }
  .header.is-open .header__nav-wrap { display: block; }
  .header.is-open { background: rgba(251,249,250,.98); backdrop-filter: blur(12px); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
  }
  .header__nav-wrap > .btn { display: flex; width: 100%; margin-top: 1.25rem; }
  .header > .wrap > .btn { display: none; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  margin-top: var(--header-h);
  background: var(--ground);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(251,249,250,.97) 0%,
    rgba(251,249,250,.93) 34%,
    rgba(251,249,250,.55) 52%,
    rgba(251,249,250,0) 68%);
}

.hero__body {
  position: relative;
  z-index: 1;
  /* padding-block apenas: o lateral vem do .wrap e não pode ser zerado */
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  min-height: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__body .inner { max-width: 33rem; }

.hero h1 { margin-bottom: 1.4rem; color: var(--brand-deep); }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); }

.hero__seals {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.25rem;
}

.seal {
  font-size: .8rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: rgba(242,234,250,.85);
  border: 1px solid #E3D5F2;
  border-radius: 100px;
  padding: .35rem .85rem;
}

@media (max-width: 52rem) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 5 / 4; }
  .hero__media img { object-position: 78% center; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(251,249,250,0) 55%, rgba(251,249,250,1) 100%);
  }
  .hero__body { min-height: 0; padding-block: 0 3.5rem; margin-top: -2rem; }
  .hero__body .inner { max-width: none; }
}

/* ------------------------------------------------------------------- sobre */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

@media (max-width: 58rem) { .portrait { position: static; } }

.prose { max-width: var(--measure); }
.prose p { color: var(--ink-soft); }
.prose p:first-of-type { font-size: 1.14rem; color: var(--ink); }

.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}

.credentials div { background: var(--surface); padding: 1.1rem 1.25rem; }
.credentials dt { font-weight: 700; font-size: .95rem; color: var(--brand-deep); }
.credentials dd { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* --------------------------------------------------------------- abordagem */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.pillar__mark svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.7; }

.pillar h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.pillar p { font-size: .97rem; color: var(--ink-soft); }

.quote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
}

.quote p {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  text-wrap: balance;
  max-width: 44rem;
  margin: 0;
}

/* ----------------------------------------------------------- atendimentos
   Três modalidades. Sem JS, os blocos ficam empilhados e completos;
   com JS, viram abas e o .mods ganha a classe .is-tabs.               */

.mod--kid   { --accent: var(--kid);   --accent-soft: var(--kid-soft); }
.mod--teen  { --accent: var(--teen);  --accent-soft: var(--teen-soft); }
.mod--adult { --accent: var(--adult); --accent-soft: var(--adult-soft); }

.mods { display: grid; gap: 1.5rem; }

.mod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* ---- cabeçalho (visível só na versão sem abas) ---- */

.mod__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.mod__icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.mod__icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mod__titles { display: flex; flex-direction: column; gap: .1rem; }
.mod__name { font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.mod__age  { font-size: .85rem; color: var(--muted); }

/* ---- corpo em duas colunas ---- */

.mod__body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 56rem) {
  .mod__body { grid-template-columns: minmax(0, 1fr); }
}

.mod__main h3 {
  color: var(--accent);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-bottom: 1rem;
}
.mod__main h3 .sep { opacity: .45; }

/* em tela estreita o título quebra em duas linhas, sem deixar o
   separador órfão no começo da segunda */
@media (max-width: 34rem) {
  .mod__main h3 .sep { display: none; }
  .mod__main h3 .lud { display: block; }
}

.mod__main p { color: var(--ink-soft); }

.mod__main p.opening {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1rem;
}

.mod__note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.mod__note p { font-size: .95rem; margin: 0; }
.mod__note strong { color: var(--accent); }

/* ---- painel lateral ---- */

.mod__side {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.mod__side-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0 0 .9rem;
}

.mod__list { list-style: none; padding: 0; margin: 0; }

.mod__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .94rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: .5rem;
}

.mod__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ---- rodapé com os passos ---- */

.mod__foot {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  padding-top: .9rem;
  border-top: 2px solid var(--accent-soft);
}

.flow li::before {
  content: counter(flow);
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: .95rem;
  color: var(--accent);
  display: block;
  margin-bottom: .3rem;
}

.flow strong { display: block; font-size: .97rem; margin-bottom: .2rem; }
.flow span { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

/* ---- versão com abas (só quando o JS liga) ---- */

.mods.is-tabs { gap: 0; }

.tabbar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tabbar::-webkit-scrollbar { display: none; }

.tab {
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 1 1 0;
  min-width: 12rem;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.tab--kid   { --accent: var(--kid);   --accent-soft: var(--kid-soft); }
.tab--teen  { --accent: var(--teen);  --accent-soft: var(--teen-soft); }
.tab--adult { --accent: var(--adult); --accent-soft: var(--adult-soft); }

.tab:hover { border-color: var(--accent); transform: translateY(-1px); }

.tab[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.tab .mod__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); }
.tab[aria-selected="true"] .mod__icon { background: #fff; }
.tab .mod__icon svg { width: 20px; height: 20px; }

.tab .mod__name { font-size: .98rem; }
.tab .mod__age  { font-size: .78rem; }

.mods.is-tabs .mod { border-radius: var(--radius-lg); }
.mods.is-tabs .mod__head { display: none; }
.mods.is-tabs .mod[hidden] { display: none; }

@media (max-width: 40rem) {
  .tab { min-width: 10.5rem; padding: .75rem .9rem; }
  .tab .mod__icon { display: none; }
}

/* --------------------------------------------------------------- os passos */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--brand-mid);
  display: block;
  margin-bottom: .65rem;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.steps h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); }

/* -------------------------------------------------------- quando procurar */

.signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: .1rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.signals li {
  display: flex;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: .98rem;
}

.signals li svg {
  width: 18px; height: 18px;
  flex: none;
  margin-top: .3rem;
  stroke: var(--brand-mid);
  fill: none;
  stroke-width: 2;
}

/* ------------------------------------------------------------- consultório */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.gallery img {
  width: 100%;
  /* height:100% aqui empurrava a legenda para fora do figure */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery figcaption {
  font-size: .84rem;
  color: var(--muted);
  margin-top: .6rem;
}

.address {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.address__block { min-width: 14rem; }
.address dt {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: .4rem;
}
.address dd { margin: 0; color: var(--ink); line-height: 1.5; }
.address dd a { text-decoration: none; font-weight: 600; }
.address dd a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------- faq */

.faq { max-width: 48rem; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
  list-style: none;
  transition: color .18s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }

.faq summary::after {
  content: "";
  width: 11px; height: 11px;
  margin-left: auto;
  flex: none;
  border-right: 2px solid var(--brand-mid);
  border-bottom: 2px solid var(--brand-mid);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq .answer {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.faq .answer p { font-size: .99rem; }

/* ----------------------------------------------------------------- contato */

.cta {
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.cta h2 { color: #fff; margin-bottom: 1.1rem; }
.cta p {
  color: #E3D5F2;
  font-size: 1.12rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn-row { justify-content: center; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-grid a, .contact-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.contact-grid a:hover { border-color: var(--brand-mid); transform: translateY(-2px); }

.contact-grid dt {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: .3rem;
}
.contact-grid dd { margin: 0; font-weight: 600; font-size: 1.02rem; }

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--ink);
  color: #CFC5D8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .93rem;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer strong { color: #fff; }
.footer a { color: #D8CCE2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer h4 {
  font-family: "Figtree", sans-serif;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #9B8DA8;
  margin: 0 0 .9rem;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }

.alert {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--kid);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.alert p { margin: 0; font-size: .93rem; line-height: 1.55; }
.alert p + p { margin-top: .5rem; }
.alert strong { color: #fff; }

.footer__base {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #9B8DA8;
}

/* ----------------------------------------------------- whatsapp flutuante */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.42);
  transition: transform .2s ease;
}

.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (min-width: 52rem) {
  .wa-float { right: 2rem; bottom: 2rem; }
}

/* --------------------------------------------------------------- skip link */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: .85rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------- entrada suave
   Só no hero, e de propósito.

   Duas tentativas anteriores animavam cada seção conforme ela entrava na
   tela — uma com IntersectionObserver, outra com animation-timeline. As
   duas deixaram texto preso em opacity 0 em situações reais: blocos acima
   da dobra que nunca são observados, abas em segundo plano que não animam,
   e ranges de scroll que não completam perto do fim da página.

   Num site de saúde mental, texto invisível é falha grave. Então o corpo
   da página não anima: o que está no HTML está na tela. O hero pode animar
   com segurança porque a animação roda no carregamento, não depende de
   rolagem nem de observador, e termina sempre em estado visível.          */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__body .inner > * {
    animation: hero-in .7s cubic-bezier(.22,.61,.36,1) both;
  }
  .hero__body .inner > *:nth-child(2) { animation-delay: .08s; }
  .hero__body .inner > *:nth-child(3) { animation-delay: .16s; }
  .hero__body .inner > *:nth-child(4) { animation-delay: .24s; }
}

/* ==========================================================================
   Páginas internas do WordPress
   A home é a página única. Isto atende política de privacidade, textos
   avulsos, busca e o 404 — tudo que passa pelo index.php.
   ========================================================================== */

.wrap--estreito { max-width: 48rem; }

/* o header é fixo: páginas internas precisam começar abaixo dele */
body:not(.home) .section:first-of-type { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }

.entry__head { margin-bottom: 2rem; }
.entry__head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .6rem; }

.entry__meta {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

.entry__conteudo { color: var(--ink-soft); }
.entry__conteudo > * + * { margin-top: 1.1rem; }

.entry__conteudo h2,
.entry__conteudo h3,
.entry__conteudo h4 { color: var(--ink); margin-top: 2.25rem; }

.entry__conteudo h2 { font-size: 1.6rem; }
.entry__conteudo h3 { font-size: 1.25rem; }

.entry__conteudo a { font-weight: 500; }

.entry__conteudo ul,
.entry__conteudo ol { padding-left: 1.25rem; }
.entry__conteudo li { margin-bottom: .4rem; }
.entry__conteudo li::marker { color: var(--brand-mid); }

.entry__conteudo blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--brand-soft);
  border-radius: var(--radius);
}
.entry__conteudo blockquote p { margin: 0; color: var(--brand-deep); }

.entry__conteudo img,
.entry__conteudo .wp-block-image img { border-radius: var(--radius); }

.entry__conteudo figcaption {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .5rem;
}

.entry__conteudo pre,
.entry__conteudo table { overflow-x: auto; max-width: 100%; }

.entry__conteudo table { border-collapse: collapse; width: 100%; }
.entry__conteudo th,
.entry__conteudo td {
  text-align: left;
  padding: .6rem .9rem .6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

/* listagem de textos */

.lista { display: grid; gap: 2rem; }

.lista__item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.lista__item:last-child { border-bottom: none; }

.lista__item h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.lista__item h2 a { color: var(--ink); text-decoration: none; }
.lista__item h2 a:hover { color: var(--brand); }
.lista__item p { color: var(--ink-soft); margin: .6rem 0 0; }

/* paginação */

.navigation.pagination { margin-top: 3rem; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.nav-links .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
}

.nav-links .page-numbers:hover { border-color: var(--brand-mid); color: var(--brand); }

.nav-links .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* logotipo enviado pelo painel, no lugar do que vem no tema */

.header__logo .custom-logo { height: 40px; width: auto; }
.custom-logo-link { display: block; }

/* barra de administração do WordPress */

body.admin-bar .header { top: 32px; }
body.admin-bar .header__nav-wrap { top: calc(var(--header-h) + 32px); }

@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar .header__nav-wrap { top: calc(var(--header-h) + 46px); }
}

/* utilitário de acessibilidade que o WordPress espera existir */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip-path: none;
  background: var(--surface);
  color: var(--brand-deep);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
