/* ==========================================================================
   TOKENS
   Paleta e layout seguem o redesign "Acolhimento" (ver
   Redesign de site de psicologia/design_handoff_site_acolhimento/README.md),
   com o dourado da logo real incorporado como acento adicional.
   Breakpoint único (mobile-first, min-width): 860px
   ========================================================================== */
:root {
  --color-cream: #FBF9F5;
  --color-sand: #F0E9DB;
  --color-maroon: #7A3524;
  --color-maroon-deep: #5A2717;
  --color-terra: #C17847;
  --color-gold: #C99A4E;
  --color-gold-deep: #A9752E;
  --color-ink: #3D2F26;
  --color-muted: #71655C;
  --color-white: #FFFFFF;

  /* Verde do WhatsApp — mantido fora da paleta da marca de propósito, para
     preservar o reconhecimento imediato do botão. */
  --color-whatsapp: #25963F;
  --color-whatsapp-dark: #1E7A33;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-h1: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.15rem);
  --fs-h3: clamp(1.1rem, 1vw + 1rem, 1.25rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem);
  --fs-lead: clamp(1.05rem, 0.6vw + 1rem, 1.125rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Moldura em arco das fotos: topo abobadado, base reta. O raio vertical é
     menor que o horizontal para o arco não "comer" o cabelo nas laterais. */
  --frame-arch: 50% 50% var(--radius-lg) var(--radius-lg) / 24% 24% var(--radius-lg) var(--radius-lg);

  --shadow-soft: 0 12px 32px -14px rgba(90, 39, 23, 0.28);
  --shadow-soft-sm: 0 10px 26px -12px rgba(90, 39, 23, 0.22);

  --ease-calm: cubic-bezier(0.16, 0.8, 0.24, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 900ms;

  --container-max: 1180px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  /* O menu mobile off-canvas usa position:fixed + translateX(100%) para
     ficar fora da tela; sem isso, ele alarga a largura de rolagem do
     documento e causa scroll horizontal indesejado no celular. */
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
a { color: var(--color-maroon); text-decoration: none; }
a:hover { color: var(--color-terra); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-maroon);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-ink); font-weight: 600; line-height: 1.15; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow { max-width: 780px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin: 0 0 var(--space-3);
}

.section__intro { max-width: 640px; margin-bottom: var(--space-10); }
.section__intro p { color: var(--color-muted); margin-top: var(--space-3); font-size: var(--fs-body); line-height: 1.8; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-maroon); color: var(--color-cream);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   SCROLL REVEAL — progressive enhancement (só ativa com <html class="js">;
   sem JS, ou com prefers-reduced-motion, o conteúdo aparece direto)
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-slow) var(--ease-calm), transform var(--dur-slow) var(--ease-calm); }
html.js .reveal--left { transform: translateX(-36px); }
html.js .reveal.in { opacity: 1; transform: translate(0, 0); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0.9rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-calm), box-shadow var(--dur-fast) var(--ease-calm), background-color var(--dur-fast) var(--ease-calm);
}
.btn__icon { flex-shrink: 0; }
.btn--primary { background: var(--color-whatsapp); color: var(--color-white); box-shadow: var(--shadow-soft-sm); }
.btn--primary:hover { background: var(--color-whatsapp-dark); color: var(--color-white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-maroon); border: 1.5px solid var(--color-maroon); }
.btn--outline:hover { background: var(--color-maroon); color: var(--color-cream); }
.btn--light { background: var(--color-cream); color: var(--color-maroon); }
.btn--light:hover { background: var(--color-white); color: var(--color-maroon-deep); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; min-height: 40px; }

.link-inline {
  display: inline-flex; align-items: center; color: var(--color-maroon); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.link-inline:hover { color: var(--color-terra); }

/* ==========================================================================
   PROGRESS BAR + HEADER
   ========================================================================== */
.progress-track { position: sticky; top: 0; left: 0; width: 100%; height: 3px; background: var(--color-sand); z-index: 110; }
.progress-fill { height: 100%; width: 0%; background: var(--color-terra); transition: width 0.1s linear; }

.site-header {
  position: sticky; top: 3px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(251, 249, 245, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-sand);
}
.site-header__brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--color-ink); }
.site-header__logo { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }

.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--color-ink); }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

.nav {
  position: fixed; inset: 0 0 0 30%; z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
  background: var(--color-cream); box-shadow: var(--shadow-soft);
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-calm);
}
.nav.is-open { transform: translateX(0); }
.nav__list { display: flex; flex-direction: column; gap: var(--space-5); font-size: 1.15rem; font-weight: 600; }
.nav__link { color: var(--color-ink); }
.nav__link:hover { color: var(--color-maroon); }
.nav__cta { align-self: flex-start; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { position: static; inset: auto; flex-direction: row; align-items: center; gap: var(--space-6); padding: 0; background: transparent; box-shadow: none; transform: none; }
  .nav__list { flex-direction: row; gap: var(--space-6); font-size: 14px; }
  .nav__link { color: var(--color-muted); }
  .nav__cta { display: none; }
}
.header-cta { display: none; }
@media (min-width: 860px) { .header-cta { display: inline-flex; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { display: grid; gap: var(--space-10); align-items: center; padding: var(--space-10) clamp(1.25rem, 4vw, 2.5rem) var(--space-12); background: linear-gradient(180deg, var(--color-cream), var(--color-sand)); }
.hero__content > * { min-width: 0; }
.hero h1 { margin: 0 0 var(--space-5); }
.hero__subtitle { font-size: var(--fs-lead); line-height: 1.65; color: var(--color-muted); max-width: 460px; margin: 0 0 var(--space-6); }
.hero__actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); font-size: 0.85rem; color: var(--color-muted); }
.hero__trust .stars { color: var(--color-gold-deep); letter-spacing: 1px; }

/* A foto é um retrato meio-corpo (5:8). A moldura em arco preserva o jaleco e
   o bordado "Ψ" na base, que a moldura oval anterior cortava. */
.hero__media {
  position: relative; isolation: isolate;
  width: 100%; max-width: 320px; aspect-ratio: 5 / 8; margin-inline: auto;
}
.hero__media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--frame-arch);
  box-shadow: var(--shadow-soft);
  animation: irisIn 1.2s var(--ease-calm) both;
}
/* Painel de areia deslocado atrás da foto — dá profundidade e amarra a imagem
   ao fundo creme em vez de ela parecer "colada" na página. */
.hero__media::before {
  content: ""; position: absolute; z-index: 0; inset: 26px -20px -20px 20px;
  border-radius: var(--frame-arch);
  background: linear-gradient(155deg, var(--color-sand), #E7DCC6);
}
/* Fio dourado concêntrico, retomando o dourado da logo. */
.hero__media::after {
  content: ""; position: absolute; z-index: 2; inset: -12px;
  border-radius: var(--frame-arch);
  border: 1px solid rgba(201, 154, 78, 0.45);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }
@keyframes irisIn { from { clip-path: circle(0% at 50% 35%); } to { clip-path: circle(100% at 50% 35%); } }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 620px; padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .hero__media { max-width: 380px; }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.sobre { display: grid; gap: var(--space-10); align-items: center; padding: var(--space-12) clamp(1.25rem, 4vw, 2.5rem); }
.sobre > * { min-width: 0; }
/* Retrato no consultório (6:7). Retângulo suave em vez de círculo: o círculo
   cortava os certificados da parede, que aqui funcionam como prova de formação. */
.sobre__media {
  position: relative; isolation: isolate;
  width: 100%; max-width: 340px; aspect-ratio: 6 / 7; margin-inline: auto;
}
.sobre__media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-sm);
}
/* Contorno dourado deslocado — mesma família visual do fio do hero. */
.sobre__media::before {
  content: ""; position: absolute; z-index: 0; inset: -14px 14px 14px -14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 154, 78, 0.5);
}
.sobre__body { color: var(--color-muted); line-height: 1.85; margin: 0 0 var(--space-5); max-width: 640px; }

.cred-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: 10px; font-size: 0.92rem; color: var(--color-muted); }
.cred-list li { padding-left: var(--space-5); position: relative; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold-deep); }

.cred-expand { margin-bottom: var(--space-6); color: var(--color-muted); }
.cred-expand summary { cursor: pointer; color: var(--color-maroon); font-size: 0.92rem; font-weight: 600; list-style: none; }
.cred-expand summary::-webkit-details-marker { display: none; }
.cred-expand summary::marker { content: ""; }
.cred-expand[open] summary { margin-bottom: var(--space-4); }
.cred-sub { font-weight: 700; color: var(--color-ink); margin: var(--space-4) 0 var(--space-2); font-size: 0.85rem; }
.cred-expand .cred-list:first-of-type .cred-sub { margin-top: 0; }

blockquote.pull-quote {
  font-style: italic; font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-maroon);
  border-left: 3px solid var(--color-terra); padding-left: var(--space-5);
}

@media (min-width: 860px) {
  .sobre { grid-template-columns: 0.8fr 1.2fr; }
  .sobre__media { max-width: 400px; }
}

/* ==========================================================================
   PHOTO FRAME (fallback genérico, mantido para compatibilidade)
   ========================================================================== */
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   COMO FUNCIONA
   ========================================================================== */
.como { padding: var(--space-12) clamp(1.25rem, 4vw, 2.5rem); background: var(--color-sand); }
.steps-row { display: flex; flex-direction: column; gap: var(--space-5); }
.step-card { flex: 1 1 240px; background: var(--color-cream); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6); box-shadow: var(--shadow-soft-sm); }
.step-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-maroon); color: var(--color-cream); font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: var(--space-4); }
.step-card h3 { font-size: 1.15rem; margin: 0 0 var(--space-2); }
.step-card p { font-size: 0.92rem; line-height: 1.7; color: var(--color-muted); margin: 0; }

.tags { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-10); }
.tag { background: var(--color-cream); border: 1px solid #E4D9C4; color: var(--color-muted); padding: 9px 18px; border-radius: var(--radius-pill); font-size: 0.82rem; }
.note { font-size: 0.85rem; color: var(--color-muted); margin-top: var(--space-5); max-width: 640px; font-style: italic; }

@media (min-width: 860px) {
  .steps-row { flex-direction: row; gap: var(--space-6); }
}

/* ==========================================================================
   ÁREAS DE ATUAÇÃO / DIFERENCIAIS
   ========================================================================== */
.areas, .dif { padding: var(--space-12) clamp(1.25rem, 4vw, 2.5rem); }
.dif { background: var(--color-sand); }
.grid3 { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: 8px; }
.card { background: var(--color-cream); border: 1px solid #E4D9C4; border-radius: var(--radius-md); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-soft-sm); }
.card h3 { font-size: 1.05rem; margin: 0 0 var(--space-2); color: var(--color-maroon); }
.card p { font-size: 0.92rem; line-height: 1.65; color: var(--color-muted); margin: 0; }

@media (min-width: 860px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL
   ========================================================================== */
.test-wrap { margin-top: var(--space-10); max-width: 900px; margin-inline: auto; }
.test-source { color: var(--color-maroon); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-5); text-align: center; font-weight: 700; }
.test-viewport { overflow: hidden; }
.test-track { display: flex; gap: 16px; transition: transform 0.6s var(--ease-calm); }
.test-card { flex: 0 0 100%; background: var(--color-cream); border-radius: var(--radius-md); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-soft-sm); }
.test-card .stars { color: var(--color-gold-deep); font-size: 0.95rem; margin-bottom: var(--space-3); letter-spacing: 2px; }
.test-card p { font-size: 0.9rem; line-height: 1.65; color: var(--color-ink); margin: 0 0 var(--space-3); }
.test-card .author { font-size: 0.85rem; color: var(--color-muted); font-weight: 600; }
.test-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-5); margin-top: var(--space-6); }
.test-arrow { background: var(--color-cream); border: 1px solid #E4D9C4; color: var(--color-ink); width: 38px; height: 38px; border-radius: 50%; font-size: 15px; }
.test-arrow:hover { background: var(--color-sand); }
.test-dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: #E0D3BA; transition: all 0.4s ease; padding: 0; }
.dot.is-active { width: 22px; background: var(--color-maroon); }

@media (min-width: 640px) {
  .test-card { flex: 0 0 calc(50% - 8px); }
}
@media (min-width: 860px) {
  .test-card { flex: 0 0 calc(33.333% - 11px); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: var(--space-12) clamp(1.25rem, 4vw, 2.5rem); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq-item { background: var(--color-sand); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--color-ink); min-height: 44px; }
.faq-q .icon { transition: transform 0.35s ease; font-size: 1.3rem; color: var(--color-maroon); flex-shrink: 0; }
.faq-item.is-open .icon { transform: rotate(45deg); }
.faq-a { font-size: 0.92rem; line-height: 1.75; color: var(--color-muted); margin-top: var(--space-4); display: none; }
.faq-item.is-open .faq-a { display: block; animation: fadeInSoft 0.4s ease; }
@keyframes fadeInSoft { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { padding: var(--space-12) clamp(1.25rem, 4vw, 2.5rem); background: var(--color-sand); }
.cta-card { max-width: 760px; margin-inline: auto; text-align: center; background: linear-gradient(135deg, var(--color-maroon), var(--color-terra)); border-radius: var(--radius-lg); padding: var(--space-10) clamp(1.5rem, 5vw, 2.75rem); box-shadow: var(--shadow-soft); }
.cta-card h2 { color: var(--color-cream); margin: 0 0 var(--space-4); }
.cta-card p { font-size: 1rem; color: #F2E4D4; margin: 0 0 var(--space-6); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-cream); padding: var(--space-10) clamp(1.25rem, 4vw, 2.5rem) var(--space-6); border-top: 1px solid #E4D9C4; }
.site-footer__inner { max-width: var(--container-max); margin-inline: auto; display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.site-footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.site-footer__logo { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.85rem; color: var(--color-muted); }
.footer-col a { color: var(--color-muted); text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: var(--color-maroon); }
.footer-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-ink); margin: 0; }
.footer-cta { align-self: flex-start; }
.disclaimer { max-width: var(--container-max); margin: var(--space-5) auto 0; font-size: 0.72rem; color: var(--color-muted); line-height: 1.6; }
.copy { max-width: var(--container-max); margin: var(--space-2) auto 0; font-size: 0.72rem; color: var(--color-muted); }

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed; bottom: max(26px, env(safe-area-inset-bottom)); right: max(26px, env(safe-area-inset-right));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-whatsapp); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); z-index: 90;
  animation: floatPulse 2.6s ease-in-out infinite;
  opacity: 0; transform: scale(0.8);
  transition: opacity var(--dur-slow) var(--ease-calm), transform var(--dur-fast) var(--ease-calm), background-color var(--dur-fast) var(--ease-calm);
}
.whatsapp-float.is-visible { opacity: 1; transform: scale(1); }
.whatsapp-float:hover { background: var(--color-whatsapp-dark); }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 150, 63, 0.45); } 50% { box-shadow: 0 0 0 16px rgba(37, 150, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }
