/* ==========================================================================
   Mariana Favoreto · Psicóloga · CRP 16/1855
   Landing page — folha de estilos principal
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta */
  --plum: #5E456D;          /* ameixa profunda — títulos, autoridade */
  --lilac: #9D86B0;         /* lilás da marca — detalhes */
  --lilac-soft: #F2EDF5;    /* lilás muito claro — seções de acolhimento */
  --ivory: #FCFAF8;         /* marfim quente — fundo principal */
  --white: #FFFFFF;
  --ink: #2B2730;           /* grafite ameixa — texto principal */
  --ink-soft: #6F6874;      /* cinza quente — texto secundário */
  --cta: #2F765F;           /* verde sálvia profundo — ação */
  --cta-hover: #255F4D;
  --wa-green: #25D366;      /* somente ícone do WhatsApp */
  --border-soft: #E4DCE8;

  /* Tipografia */
  --font-heading: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1220px;
  --radius-card: 20px;
  --radius-btn: 13px;
  --shadow-card: 0 6px 24px rgba(94, 69, 109, 0.07);
  --shadow-card-hover: 0 10px 32px rgba(94, 69, 109, 0.12);
  --header-h: 80px;
  --header-h-mobile: 68px;

  /* Movimento */
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
  overflow-x: clip;
}

/* As formas orgânicas atrás das fotos não devem gerar rolagem horizontal */
.hero,
.section-about {
  overflow-x: clip;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
}

/* Foco visível */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-final-cta a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #FFFFFF;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--plum);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--plum);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(37px, 3.2vw + 24px, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 720px;
}

h2 {
  font-size: clamp(30px, 2vw + 20px, 42px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(21px, 0.5vw + 18px, 24px);
  line-height: 1.3;
  font-weight: 700;
}

p {
  overflow-wrap: break-word;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 18px;
}

.microcopy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.microcopy-light {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Container e seções ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding-block: clamp(44px, 5.5vw, 80px);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(17px, 0.4vw + 16px, 19px);
  color: var(--ink-soft);
  line-height: 1.75;
}

.section-lead + .section-lead {
  margin-top: 14px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.btn-primary {
  background-color: var(--cta);
  color: #FFFFFF;
  padding: 15px 26px;
  font-size: 16px;
  min-height: 50px;
  box-shadow: 0 4px 16px rgba(47, 118, 95, 0.22);
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  box-shadow: 0 6px 20px rgba(47, 118, 95, 0.3);
}

.btn-primary:active {
  background-color: var(--cta-hover);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(47, 118, 95, 0.25);
}

.btn-lg {
  padding: 17px 30px;
  font-size: 17px;
  min-height: 56px;
}

.btn-header {
  padding: 11px 20px;
  font-size: 15px;
  min-height: 48px;
  white-space: nowrap;
}

.icon-wa {
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 1px;
}

.link-secondary {
  display: inline-block;
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--plum);
}

.link-secondary:hover {
  color: var(--cta);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(252, 250, 248, 0.92);
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(43, 39, 48, 0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

/* Monograma "mf" oficial */
.brand-mark {
  width: 46px;
  height: auto;
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-role {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.main-nav a:hover {
  color: var(--plum);
  border-bottom-color: var(--lilac);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--plum);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(32px, 4.5vw, 60px));
  padding-bottom: clamp(48px, 6vw, 88px);
  background: radial-gradient(circle at 80% 20%, #F2EDF5 0%, #FCFAF8 48%, #FCFAF8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(17px, 0.5vw + 16px, 20px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 640px;
}

.hero-credentials {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}

.hero-credentials strong {
  color: var(--plum);
  font-weight: 600;
}

.hero-cta-group {
  margin-top: 30px;
}

.hero-cta-group .microcopy {
  margin-top: 12px;
  max-width: 420px;
}

.hero-checks {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.icon-check {
  color: var(--cta);
  flex-shrink: 0;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: min(100%, 460px);
}

/* Forma orgânica lilás suave atrás da fotografia */
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: -6% -8% -4% -6%;
  background: var(--lilac-soft);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  z-index: 0;
}

.hero-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(94, 69, 109, 0.16);
}

/* ---------- Barra de confiança ---------- */
.trust-bar {
  background: var(--white);
  border-block: 1px solid var(--border-soft);
  padding-block: 26px;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 32px;
}

.trust-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.trust-icon {
  color: var(--lilac);
  flex-shrink: 0;
}

/* ---------- Cards genéricos ---------- */
.cards-grid {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Fluxo centralizado: para grids com número ímpar de cards, a última
   linha incompleta fica centralizada (em vez de órfãos à esquerda).
   O flex-basis usa o mesmo gap, então linhas completas preenchem 100%. */
.cards-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --cg: clamp(18px, 2vw, 26px);
  gap: var(--cg);
}

.cards-flow.cards-grid-3 > * {
  flex: 0 1 calc((100% - 2 * var(--cg)) / 3);
}

.cards-flow.cards-grid-2 > * {
  flex: 0 1 calc((100% - var(--cg)) / 2);
}

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.5vw, 34px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 260ms var(--ease), transform 260ms var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--lilac-soft);
  color: var(--plum);
}

/* ---------- Seção de dores ---------- */
.section-pains {
  background: var(--white);
}

.section-pains .card {
  background: var(--ivory);
}

.section-closing {
  margin-top: clamp(30px, 3.5vw, 44px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.closing-highlight {
  font-family: var(--font-heading);
  font-size: clamp(19px, 1vw + 15px, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--plum);
  max-width: 720px;
}

.section-closing .microcopy {
  margin-top: -8px;
}

/* ---------- Bloco de decisão ---------- */
.section-decision {
  padding-block: clamp(36px, 4vw, 56px);
  background: var(--ivory);
}

.decision-block {
  background: var(--lilac-soft);
  border-radius: 26px;
  padding: clamp(32px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.decision-text h2 {
  margin-bottom: 18px;
}

.decision-text p {
  color: var(--ink);
  line-height: 1.75;
}

.decision-complement {
  margin-top: 14px;
  font-weight: 600;
  color: var(--plum) !important;
}

.decision-action {
  display: flex;
  justify-content: center;
}

.decision-action .btn {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

/* ---------- Pilares ---------- */
.section-pillars {
  background: var(--ivory);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.pillar-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: clamp(28px, 2.6vw, 36px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 260ms var(--ease), transform 260ms var(--ease);
}

.pillar-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.pillar-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lilac);
}

.pillar-card h3 {
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.section-closing-note {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Quando o CTA vem logo após uma nota, aproxima os dois */
.section-closing-note + .section-closing,
.demands-note + .section-closing {
  margin-top: 30px;
}

/* ---------- Demandas ---------- */
.section-demands {
  background: var(--white);
}

.card-demand {
  background: var(--ivory);
}

.card-demand h3 {
  font-size: clamp(19px, 0.4vw + 17px, 21px);
}

.demands-note {
  margin-top: clamp(26px, 3vw, 36px);
  padding: 22px 26px;
  background: var(--lilac-soft);
  border-left: 3px solid var(--lilac);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 860px;
}

/* ---------- Abordagem ---------- */
.section-approach {
  background: var(--lilac-soft);
}

.section-approach .card {
  border-color: rgba(157, 134, 176, 0.28);
}

.section-approach .card-icon {
  background: var(--ivory);
}

.section-approach .section-closing {
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---------- Sobre Mariana ---------- */
.section-about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.about-photo-frame {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: -5% -6% -5% -7%;
  background: var(--lilac-soft);
  border-radius: 45% 55% 48% 52% / 55% 46% 54% 45%;
  z-index: 0;
}

.about-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(94, 69, 109, 0.14);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-text p + p {
  margin-top: 14px;
}

.about-text p {
  line-height: 1.75;
}

.about-highlights {
  margin-block: 26px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-highlights li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lilac-soft);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.about-highlights li:hover {
  background: #EAE2EF;
  transform: translateY(-2px);
}

/* ---------- Como funciona ---------- */
.section-steps {
  background: var(--white);
}

/* Título centralizado nesta seção (harmoniza com etapas e CTA centrados) */
.section-steps .section-head {
  margin-inline: auto;
  text-align: center;
  max-width: 680px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: passo;
  position: relative;
}

/* Linha conectora: vai do centro da 1ª coluna ao centro da 3ª,
   passando exatamente pelo centro dos três círculos */
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--border-soft);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-body {
  max-width: 300px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--plum);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--white);
}

.step-body h3 {
  margin-bottom: 8px;
  font-size: clamp(19px, 0.4vw + 17px, 21px);
}

.step-body p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.section-faq {
  background: var(--lilac-soft);
}

.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.faq-heading {
  margin: 0;
  font-size: inherit;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  min-height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(17px, 0.4vw + 15px, 19px);
  font-weight: 700;
  color: var(--plum);
  transition: background-color 180ms var(--ease);
}

.faq-trigger:hover {
  background-color: var(--ivory);
}

/* Ícone de mais/menos */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--lilac);
  border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.faq-icon::before {
  top: 10px;
  left: 3px;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 3px;
  left: 10px;
  width: 2px;
  height: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 24px 22px;
}

.faq-panel p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-panel.is-animating {
  overflow: hidden;
  transition: height 260ms var(--ease);
}

/* ---------- CTA final ---------- */
.section-final-cta {
  background: var(--plum);
  text-align: center;
}

.section-final-cta h2 {
  color: #FFFFFF;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 22px;
}

.section-final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 0.4vw + 16px, 19px);
  line-height: 1.7;
  max-width: 640px;
  margin-inline: auto;
}

.section-final-cta p + p {
  margin-top: 12px;
}

.section-final-cta .btn {
  margin-top: 32px;
}

.section-final-cta .microcopy-light {
  margin-top: 18px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(36px, 4vw, 48px);
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-role {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 16px;
}

.footer-contact ul,
.footer-links ul {
  display: grid;
  gap: 10px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(157, 134, 176, 0.16);
  color: var(--lilac);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}

.footer-contact a:hover .footer-icon {
  background: var(--lilac);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-contact a:hover {
  text-decoration: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 26px 30px;
  display: grid;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 760px;
}

.footer-copy {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43, 39, 48, 0.18);
  padding: 22px;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-cookie {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  min-height: 42px;
  cursor: pointer;
}

.btn-cookie-accept {
  background: var(--cta);
  color: #FFFFFF;
  border: none;
}

.btn-cookie-accept:hover {
  background: var(--cta-hover);
}

.btn-cookie-reject,
.btn-cookie-config,
.btn-cookie-save {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-soft);
}

.btn-cookie-reject:hover,
.btn-cookie-config:hover,
.btn-cookie-save:hover {
  background: var(--lilac-soft);
}

.cookie-preferences[hidden],
.cookie-banner[hidden],
.faq-panel[hidden] {
  display: none;
}

.cookie-preferences {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 10px;
}

.cookie-pref {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.cookie-pref input {
  width: 18px;
  height: 18px;
  accent-color: var(--cta);
}

.btn-cookie-save {
  justify-self: start;
}

/* ---------- Modal de Privacidade e Termos ---------- */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 39, 48, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.legal-modal.is-open .legal-modal-overlay {
  opacity: 1;
}

.legal-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(43, 39, 48, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

.legal-modal.is-open .legal-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.legal-modal-head h2 {
  font-size: clamp(19px, 1vw + 15px, 23px);
  margin: 0;
}

.legal-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.legal-modal-close:hover {
  background: var(--lilac-soft);
  color: var(--plum);
}

.legal-modal-body {
  padding: clamp(20px, 3vw, 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-modal-body h2 {
  font-size: clamp(21px, 1.2vw + 16px, 26px);
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.legal-modal-body h2:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.legal-modal-body h3 {
  font-size: clamp(17px, 0.6vw + 15px, 20px);
  margin: 28px 0 10px;
}

.legal-modal-body p,
.legal-modal-body li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.legal-modal-body p + p {
  margin-top: 12px;
}

.legal-modal-body ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.legal-modal-body .legal-updated {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.legal-modal-body .legal-consent {
  background: var(--lilac-soft);
  border-left: 3px solid var(--lilac);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-modal-loading {
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

body.legal-modal-open {
  overflow: hidden;
}

/* Botão discreto de reabrir preferências de cookies (rodapé) */
.cookie-reopen {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
  transition: color 160ms var(--ease);
}

.cookie-reopen:hover {
  color: #FFFFFF;
}

.cookie-reopen:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsividade ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* fluxo centralizado passa a 2 colunas */
  .cards-flow.cards-grid-3 > * {
    flex-basis: calc((100% - var(--cg)) / 2);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .steps {
    gap: clamp(16px, 2.5vw, 28px);
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 55% 1fr;
  }

  .main-nav ul {
    gap: 16px;
  }
}

/* Hero empilha antes do menu para nunca espremer o texto.
   No empilhado, a fotografia entra logo após o H1 (hero-intro → foto → hero-body). */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    display: contents;
  }

  .hero-intro {
    order: 1;
  }

  .hero-media {
    order: 2;
    justify-content: center;
  }

  .hero-body {
    order: 3;
  }

  .hero-photo-frame {
    width: min(88%, 380px);
  }

  .hero-lead {
    margin-top: 0;
  }

  h1 {
    max-width: 620px;
  }
}

/* Navegação mobile (o menu de 5 itens fica apertado antes de 900px) */
@media (max-width: 1080px) {
  .site-header {
    height: var(--header-h-mobile);
  }

  html {
    scroll-padding-top: calc(var(--header-h-mobile) + 16px);
  }

  .hero {
    padding-top: calc(var(--header-h-mobile) + clamp(32px, 6vw, 56px));
  }

  .nav-toggle {
    display: flex;
  }

  .brand-role {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 16px 32px rgba(43, 39, 48, 0.1);
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 13px 8px;
    font-size: 16px;
    border-bottom: none;
    border-radius: 10px;
  }

  .main-nav a:hover {
    background: var(--lilac-soft);
  }

  .btn-header {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .btn-header .icon-wa {
    width: 16px;
    height: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: clamp(37px, 9.5vw, 42px);
  }

  h2 {
    font-size: clamp(30px, 7.5vw, 34px);
  }

  .cards-grid-3,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  /* fluxo centralizado passa a coluna única */
  .cards-flow.cards-grid-3 > *,
  .cards-flow.cards-grid-2 > * {
    flex-basis: 100%;
  }

  .decision-block {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .decision-action .btn {
    max-width: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  /* No mobile, a foto entra logo após o título (intro → foto → texto) */
  .about-content {
    display: contents;
  }

  .about-intro {
    order: 1;
  }

  .about-media {
    order: 2;
  }

  .about-body {
    order: 3;
  }

  .about-photo-frame {
    width: min(100%, 360px);
    margin-inline: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* no mobile a linha horizontal dá lugar à vertical */
  .steps::before {
    display: none;
  }

  /* No mobile o título volta a alinhar à esquerda, como o resto da página */
  .section-steps .section-head {
    margin-inline: 0;
    text-align: left;
    max-width: none;
  }

  /* linha vertical ligando as etapas no mobile */
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding-bottom: 32px;
    position: relative;
  }

  .step-body {
    max-width: none;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: var(--border-soft);
  }

  .step:last-child::before {
    display: none;
  }

  .step-number {
    box-shadow: none;
    flex-shrink: 0;
  }

  .trust-items {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .btn-lg,
  .section-closing .btn,
  .about-content .btn,
  .hero-cta-group .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .section-final-cta {
    text-align: left;
  }

  .section-final-cta h2,
  .section-final-cta p {
    margin-inline: 0;
  }
}

/* Telas estreitas: só o monograma (evita nome truncado) */
@media (max-width: 480px) {
  .brand-text {
    display: none;
  }
}

@media (max-width: 380px) {
  .btn-header span {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Interatividade e micro-interações
   ========================================================================== */

/* Barra de progresso de leitura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lilac), var(--plum));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Entrada orquestrada do hero no carregamento */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-intro > *,
.hero-body > * {
  animation: hero-rise 480ms var(--ease) backwards;
}

.hero-intro > *:nth-child(1) { animation-delay: 60ms; }
.hero-intro > *:nth-child(2) { animation-delay: 140ms; }
.hero-body > *:nth-child(1) { animation-delay: 220ms; }
.hero-body > *:nth-child(2) { animation-delay: 300ms; }
.hero-body > *:nth-child(3) { animation-delay: 380ms; }
.hero-body > *:nth-child(4) { animation-delay: 460ms; }

.hero-media {
  animation: hero-rise 560ms var(--ease) 260ms backwards;
}

/* Forma orgânica com respiração lenta atrás das fotos */
@keyframes blob-breathe {
  0% {
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%;
    transform: rotate(2deg) scale(1.03);
  }
  100% {
    border-radius: 52% 48% 42% 58% / 45% 52% 48% 55%;
    transform: rotate(-2deg) scale(1);
  }
}

.hero-photo-frame::before,
.about-photo-frame::before {
  animation: blob-breathe 14s ease-in-out infinite alternate;
  will-change: border-radius, transform;
}

/* Link ativo na navegação (scrollspy) */
.main-nav a.is-active {
  color: var(--plum);
  border-bottom-color: var(--lilac);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .main-nav a.is-active {
    background: var(--lilac-soft);
    border-bottom: none;
  }
}

/* Botões: leve elevação e balanço do ícone no hover */
.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

@keyframes wa-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(8deg) scale(1.08); }
}

.btn-primary:hover .icon-wa {
  animation: wa-wiggle 480ms var(--ease);
}

/* Pulso suave e espaçado no CTA persistente do cabeçalho (1 pulso a cada ~7s) */
@keyframes cta-pulse {
  0%, 8%, 100% { box-shadow: 0 4px 16px rgba(47, 118, 95, 0.22); }
  4% { box-shadow: 0 4px 16px rgba(47, 118, 95, 0.22), 0 0 0 9px rgba(47, 118, 95, 0.14); }
}

.btn-header {
  animation: cta-pulse 7s ease-out 3s infinite;
}

.btn-header:hover {
  animation: none;
}

/* Números das etapas ganham vida ao entrar na tela */
.step.reveal .step-number {
  transform: scale(0.6);
  transition: transform 380ms var(--ease);
}

.step.reveal.is-revealed .step-number {
  transform: scale(1);
}

/* Ícones dos cards mudam de tom no hover */
.card:hover .card-icon,
.pillar-card:hover .card-icon {
  background: var(--lilac);
  color: #FFFFFF;
}

.card-icon {
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}

/* Cards de dores e demandas: borda ganha o lilás no hover */
.card:hover,
.pillar-card:hover {
  border-color: var(--lilac);
}

/* Revelação também para blocos individuais */
[data-reveal].reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

[data-reveal].reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Página Terapia Cognitiva Sexual — mesma marca, outra atmosfera
   Variações escopadas em .page-tcs; nada aqui afeta a página principal.
   ========================================================================== */
:root {
  --wine: #7A4358;        /* vinho ameixa — detalhes da página TCS */
  --wine-soft: rgba(122, 67, 88, 0.12);
  --rose-soft: #F6ECEF;   /* rosé muito claro — seções de acolhimento */
  --mauve: #B58A99;       /* malva rosado — detalhes suaves */
}

.page-tcs .eyebrow {
  color: var(--wine);
}

.page-tcs .hero-photo-frame::before {
  background: var(--rose-soft);
}

.page-tcs .card-icon {
  color: var(--wine);
}

.page-tcs .pillar-number {
  color: var(--mauve);
}

.page-tcs .about-highlights li {
  border-color: rgba(181, 138, 153, 0.45);
}

.page-tcs .step-number {
  background: var(--wine);
}

/* Seções em rosé claro */
.section-rose {
  background: var(--rose-soft);
}

.section-rose .card {
  border-color: rgba(181, 138, 153, 0.35);
}

/* Bloco de privacidade e normalização */
.privacy-block {
  background: var(--rose-soft);
  border-radius: 26px;
  padding: clamp(32px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.privacy-block h2 {
  margin-bottom: 18px;
}

.privacy-block p {
  line-height: 1.75;
}

.privacy-complement {
  margin-top: 14px;
  font-weight: 600;
  color: var(--wine);
}

.privacy-action {
  display: flex;
  justify-content: center;
}

.privacy-action .btn {
  width: 100%;
  max-width: 380px;
}

/* Bloco de valores pessoais (seção de comportamento compulsivo) */
.values-block {
  margin-top: clamp(36px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--wine);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  max-width: 860px;
}

.values-block h3 {
  margin-bottom: 10px;
  color: var(--wine);
}

.values-block p {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* Nota de frequência sob o grupo 9 */
.freq-note {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 860px;
}

/* CTA final com detalhe sutil em vinho */
.page-tcs .section-final-cta {
  background:
    radial-gradient(circle at 12% 88%, rgba(122, 67, 88, 0.5) 0%, rgba(122, 67, 88, 0) 46%),
    var(--plum);
}

/* Entrada discreta no menu para a outra landing page */
.main-nav a.nav-link-alt {
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 14px;
}

.main-nav a.nav-link-alt:hover {
  color: var(--plum);
  background: var(--lilac-soft);
  border-bottom-color: var(--border-soft);
}

/* O menu da página TCS tem 6 itens: mais compacto e sem quebra de linha */
.page-tcs .main-nav a {
  font-size: 14px;
  white-space: nowrap;
}

.page-tcs .main-nav ul {
  gap: clamp(12px, 1.2vw, 20px);
}

.page-tcs .main-nav a.nav-link-alt {
  font-size: 13px;
  padding: 6px 12px;
}

.page-tcs .btn-header {
  padding: 11px 16px;
  font-size: 14px;
}

.page-tcs .brand {
  flex-shrink: 0;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .page-tcs .nav-toggle {
    display: flex;
  }

  .page-tcs .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 16px 32px rgba(43, 39, 48, 0.1);
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  }

  .page-tcs .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .page-tcs .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .page-tcs .main-nav a {
    display: block;
    padding: 13px 8px;
    font-size: 16px;
    border-bottom: none;
    border-radius: 10px;
  }

  .page-tcs .main-nav a:hover {
    background: var(--lilac-soft);
  }

  .page-tcs .main-nav a.nav-link-alt {
    border: none;
  }
}

/* Coluna de serviços no rodapé */
.footer-grid-4 {
  grid-template-columns: 1.1fr 1.2fr 0.9fr 0.9fr;
}

@media (max-width: 1024px) {
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .privacy-block {
    grid-template-columns: 1fr;
  }

  .privacy-action .btn {
    max-width: none;
  }

  .footer-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
