/* =========================================================================
   {{NOME}} — Psicóloga Clínica — Landing Page
   CSS puro, mobile-first, sem framework e sem build step.
   Fontes: stack de sistema apenas (zero requisições externas — ajuda o LCP).
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

body { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; }

/* ---------- Paleta e tokens (light = padrão) ---------- */
:root {
  color-scheme: light;

  /* base: branco com rosa claro nas seções alternadas */
  --bg: #FFFFFF;
  --bg-alt: #FDF3F5;
  --surface: #FFFFFF;
  --text: #33262A;          /* marrom-vinho escuro: quente, casa com o rosa */
  --text-muted: #6B565C;
  --border: #F3DFE4;

  /* marca: rosa profundo, adulto — não o pink saturado de wellness */
  --primary: #A34363;
  --primary-dark: #85304C;
  --accent: #C9718D;
  --accent-btn: #A34363;
  --accent-btn-hover: #85304C;
  --on-accent: #FFFFFF;

  /* verde oficial do WhatsApp: usado só no canal (widget e botão flutuante),
     porque o reconhecimento "isso é o WhatsApp que eu já uso" reduz o atrito
     do clique. A identidade da página segue rosa. */
  --wa: #25D366;
  --wa-dark: #1DA851;
  --wa-ink: #0B2A18;
  --wa-chat-bg: #ECE5DD;

  --focus-ring: #85304C;
  --shadow: 0 12px 32px -14px rgba(51, 38, 42, 0.20);

  /* ritmo e forma */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --container: 1120px;
  --gap-section: clamp(3.5rem, 8vw, 6.5rem);

  /* tipografia: stacks 100% de sistema, zero requisição externa */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}



/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 5vw + 0.5rem, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.35rem); }

p { margin: 0 0 1em; color: var(--text); }

.lede {
  font-size: clamp(1.05rem, 1.5vw + 0.6rem, 1.25rem);
  color: var(--text-muted);
  max-width: 46ch;
}

/* foco visível em qualquer elemento interativo */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* skip link para acessibilidade de teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--primary);
  padding: 0.9em 1.2em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

section {
  padding-block: var(--gap-section);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-btn);
  margin-bottom: 0.75rem;
}

/* ---------- Botões / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 44px;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-btn);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent-btn-hover); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--surface); }

.btn-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand strong {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.1rem;
}
.brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-cta { display: none; }
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-copy .credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-photo {
  order: -1;
}
@media (min-width: 900px) {
  .hero-photo { order: 2; }
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- Passos "como funciona" ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Áreas de atuação ---------- */
.specialties-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.specialties-intro p {
  margin: 0;
  font-size: 1.05rem;
}
.specialties-intro strong { color: var(--primary); }

.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.value-card .icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent-btn);
  margin-bottom: 0.9rem;
}

.value-card h3 { margin-bottom: 0.4em; }
.value-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Sobre ---------- */
.about .container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about .container {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 3.5rem;
  }
}

.about-photo img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-body .credential-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.about-body .credential-list li {
  display: flex;
  gap: 0.6em;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-body .credential-list strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.3rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chev {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.2s ease;
  color: var(--accent-btn);
}
.faq-item[open] summary .chev { transform: rotate(180deg); }

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-emergency {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.final-cta {
  text-align: center;
}
.final-cta .container {
  max-width: 720px;
}
.final-cta h2 { color: var(--primary); }
.final-cta .btn { margin-top: 1.5rem; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #EDEAE2;
  padding-block: 3rem 6.5rem; /* espaço extra p/ não colidir c/ botão flutuante no mobile */
}

@media (min-width: 640px) {
  .site-footer { padding-block: 3rem; }
}

.site-footer a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { text-decoration-thickness: 2px; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.7;
}

.footer-notice {
  font-size: 0.82rem;
  opacity: 0.8;
  border-top: 1px solid rgba(237, 234, 226, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  line-height: 1.7;
}

/* ---------- Botão flutuante de WhatsApp (mobile) ---------- */


/* some espaço reservado no fim da página p/ o botão flutuante nunca cobrir texto */
@media (max-width: 639px) {
  main { padding-bottom: 0; }
}

/* ---------- Utilitário visualmente oculto (texto só p/ leitor de tela) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Telas grandes: mais respiro ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1240px; }
}

/* ============================================================
   Widget de conversa do WhatsApp
   Substitui o botão flutuante simples. Verde oficial do WhatsApp
   de propósito: aqui o reconhecimento do canal vale mais do que a
   consistência com o rosa da marca — a pessoa precisa entender em
   um relance que vai cair num app que ela já usa.
   ============================================================ */
.wa-widget {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* --- botão que abre --- */
.wa-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(11, 42, 24, 0.45);
  transition: background-color .18s ease, transform .18s ease;
}
.wa-launcher:hover { background: #2AE674; transform: translateY(-1px); }
.wa-launcher:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.wa-launcher-icon { width: 24px; height: 24px; flex: none; }

/* --- painel da conversa --- */
.wa-panel {
  width: min(340px, calc(100vw - 24px));
  border-radius: 16px;
  overflow: hidden;
  background: var(--wa-chat-bg);
  box-shadow: 0 24px 60px -18px rgba(51, 38, 42, 0.45);
  animation: waSobe .18s ease-out;
}
@keyframes waSobe {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--wa-dark);
  color: #FFFFFF;
}
.wa-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.wa-ident { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.wa-ident strong { font-size: .98rem; font-weight: 600; }
.wa-ident-sub { font-size: .8rem; opacity: .9; }
.wa-close {
  margin-left: auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: #FFFFFF;
  cursor: pointer;
}
.wa-close svg { width: 18px; height: 18px; }
.wa-close:hover { background: rgba(255, 255, 255, .18); }
.wa-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }

.wa-panel-body { padding: 16px 14px; }
.wa-bubble {
  position: relative;
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 0 10px 10px 10px;
  background: #FFFFFF;
  color: #33262A;
  font-size: .93rem;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.wa-bubble p { margin: 0; }
.wa-bubble p + p { margin-top: .55em; }

.wa-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #F4EFE9;
  border-top: 1px solid rgba(0, 0, 0, .07);
}
.wa-panel-foot input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #FFFFFF;
  color: #33262A;
  font: 400 .95rem/1.3 var(--font-body);
}
.wa-panel-foot input:focus-visible { outline: 2px solid var(--wa-dark); outline-offset: 0; }
.wa-send {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  cursor: pointer;
  transition: background-color .18s ease;
}
.wa-send svg { width: 20px; height: 20px; }
.wa-send:hover { background: #2AE674; }
.wa-send:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.wa-note {
  margin: 0;
  padding: 8px 14px 12px;
  background: #F4EFE9;
  color: #6B565C;
  font-size: .76rem;
  line-height: 1.4;
}

/* com o painel aberto, o rótulo do botão sai e ele vira só o ícone */
.wa-widget.is-open .wa-launcher-label { display: none; }
.wa-widget.is-open .wa-launcher { padding: 16px; }

@media (max-width: 480px) {
  .wa-launcher-label { display: none; }
  .wa-launcher { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-panel { animation: none; }
  .wa-launcher { transition: none; }
}

/* --- convite automático (aparece 10s depois, uma vez por sessão) --- */
.wa-teaser {
  position: relative;
  width: min(300px, calc(100vw - 32px));
  padding: 4px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 18px 44px -16px rgba(51, 38, 42, 0.42);
  animation: waTeaserEntra .28s ease-out;
}
@keyframes waTeaserEntra {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-teaser-abrir {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.wa-teaser-abrir:hover { background: #FDF3F5; }
.wa-teaser-abrir:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -2px; }
.wa-teaser-abrir img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

.wa-teaser-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-teaser-texto strong { font-size: .9rem; font-weight: 600; color: var(--text); }
.wa-teaser-texto span {
  font-size: .84rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.wa-teaser-fechar {
  position: absolute;
  top: -8px; right: -8px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--text);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(51, 38, 42, .3);
}
.wa-teaser-fechar svg { width: 14px; height: 14px; }
.wa-teaser-fechar:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* pontinho de aviso no botão enquanto o convite está de pé */
.wa-widget.tem-aviso .wa-launcher::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #E5484D;
  border: 2px solid #FFFFFF;
}
.wa-launcher { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .wa-teaser { animation: none; }
}

/* --- ficha de credenciais em tela estreita ---
   O <li> é flex em linha: o rótulo ("Áreas de atuação:") e o valor dividem a
   largura. Abaixo de ~560px não cabem lado a lado — o rótulo quebra em duas
   linhas e o valor descola, que era o desalinho visto no celular. Empilhar
   resolve e ainda melhora a leitura: rótulo em cima, valor embaixo. */
@media (max-width: 560px) {
  .about-body .credential-list li {
    flex-direction: column;
    gap: 0.15em;
  }
  .about-body .credential-list {
    padding: 1.15rem 1.25rem;
  }
  /* o respiro do desktop vira um vão grande demais no fim da seção */
  .about {
    padding-bottom: clamp(2.5rem, 7vw, 4rem);
  }
}
