/* =========================================================
   Tainá Eid · Psicóloga — estilos
   Identidade: roxo-noite, violeta e rosa · Anton + Montserrat
   ========================================================= */

/* ---------- Base ---------- */
:root {
  color-scheme: light;
  --night: #2a1040;
  --violet: #4b1d72;
  --pink: #e0559f;
  --pink-dark: #c9408a;
  --pink-soft: #f3a7cf;
  --pink-strong: #c23a82;  /* botões: texto branco com contraste AA */
  --pink-text: #bd357d;    /* texto rosa sobre fundo claro (AA) */
  --lil: #f4ebfa;
  --lil2: #e6d4f2;
  --line: #cdb6de;
  --ink: #24122f;
  --mut: #574463;
  --paper: #fdfaff;
  --on-dark: #dccbe8;
  --display: Anton, Impact, sans-serif;
  --text: Montserrat, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font: 16px/1.65 var(--text); color: var(--ink); background: var(--paper); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--pink); outline-offset: 2px;
}

h1, h2, .logo b {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.05;
}
h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; color: var(--violet); margin-bottom: 8px; }
h3 { font-weight: 700; line-height: 1.25; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }
.narrow { max-width: 760px; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.small { font-size: .88rem; color: var(--mut); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: #fff; color: var(--violet); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 6px;
  background: var(--pink-strong); color: #fff; font: 700 .95rem var(--text);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: #a92f71; }
.btn:active { transform: scale(.97); }

.tlink {
  display: inline-block; padding: 10px 0; color: var(--violet); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.tlink.light { color: #fff; }

/* ---------- Navegação ---------- */
nav { position: sticky; top: 0; z-index: 30; background: var(--night); color: #fff; }
nav .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
nav ul { display: flex; gap: clamp(4px, 1vw, 12px); list-style: none; }
nav ul a { display: block; padding: 10px 8px; border-radius: 4px; color: #e9dcf3; text-decoration: none; font-size: .9rem; font-weight: 600; }
nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-acoes { display: flex; align-items: center; gap: 8px; }
nav .btn { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; line-height: 1; }
.logo img { width: 40px; height: 40px; }
.logo b { font-size: 1.55rem; letter-spacing: .04em; white-space: nowrap; }
.logo small { display: block; margin-top: 4px; font-size: .82rem; opacity: .8; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; background: transparent; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
nav.aberto .menu-btn span { background: transparent; }
nav.aberto .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
nav.aberto .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .menu-btn { display: grid; }
  nav ul {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 50; flex-direction: column; gap: 0;
    padding: 20px max(22px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    background: var(--night); border-top: 1px solid rgba(255, 255, 255, .12);
    overflow-y: auto; overscroll-behavior: contain;
  }
  nav.aberto ul { display: flex; }
  nav ul a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  nav ul li:last-child a { border-bottom: 0; }
  nav ul a:hover { background: none; }
  html.menu-aberto, html.menu-aberto body { overflow: hidden; }
}
@media (max-width: 380px) {
  .logo small { display: none; }
  .logo b { font-size: 1.35rem; }
  nav .btn { padding: 0 14px; }
}
@media (max-width: 350px) {
  .wrap { padding: 0 16px; }
  nav .wrap { gap: 8px; }
  .logo { gap: 8px; }
  .logo img { width: 32px; height: 32px; }
  .logo b { font-size: 1.2rem; }
  nav .btn { padding: 0 12px; font-size: .82rem; }
}

/* ---------- Topo ---------- */
.hero { background: var(--night); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); text-wrap: balance; }
.hero .sub { margin-top: 12px; color: var(--pink-soft); font-weight: 600; }
.hero .intro { margin: 22px 0 30px; max-width: 520px; color: var(--on-dark); font-size: 1.08rem; }
.hero picture { display: block; justify-self: end; width: 100%; max-width: 300px; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 6px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 900px) {
  /* no celular a foto vira uma assinatura ao lado do nome, abaixo do título */
  .hero .wrap { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "titulo titulo" "foto nome" "texto texto" "acoes acoes"; column-gap: 14px; row-gap: 0; align-items: center; }
  .hero .wrap > div { display: contents; }
  .hero h1 { grid-area: titulo; margin-bottom: 20px; }
  .hero picture { grid-area: foto; justify-self: start; width: 64px; }
  .hero img { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--pink); object-position: center 25%; }
  .hero .sub { grid-area: nome; margin: 0; font-size: .95rem; line-height: 1.4; }
  .hero .intro { grid-area: texto; margin: 22px 0 26px; }
  .hero .cta { grid-area: acoes; }
}
@media (max-width: 600px) { .cta .btn { width: 100%; } }

/* ---------- Layout editorial (título à esquerda) ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 56px; align-items: start; }
.ed p { margin-bottom: 14px; }
@media (max-width: 760px) { .ed { grid-template-columns: 1fr; } }

/* ---------- Atendimento (abas) ---------- */
.lead-in { font-size: 1.1rem; margin-bottom: 16px; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.themes button {
  min-height: 44px; padding: 0 10px; border: 1.5px solid var(--lil2); border-radius: 6px;
  background: #fff; color: var(--violet); font: 600 .92rem var(--text); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.themes button:hover { border-color: var(--violet); }
.themes button[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
@media (min-width: 761px) { .themes { display: flex; flex-wrap: wrap; } .themes button { padding: 0 16px; } }
.tpanel { min-height: 132px; margin-bottom: 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); }
.tpanel p { margin-bottom: 10px; }
.tpanel a { display: inline-block; padding: 10px 0; color: var(--violet); font-weight: 700; }

/* ---------- Sobre mim ---------- */
.about { background: var(--lil); }
.sobre { max-width: 820px; }
.sobre h2 { margin-bottom: 22px; }
.sobre p { margin-bottom: 14px; max-width: 680px; }
.sobre .lede { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.5; color: var(--violet); font-weight: 500; }
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; list-style: none; }
.path::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: var(--lil2); }
.path li { position: relative; padding: 26px 8px 0 0; }
.path li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 3px solid var(--lil); border-radius: 50%; background: var(--pink); }
.path b { display: block; color: var(--violet); font-size: .95rem; line-height: 1.25; }
.path span { font-size: .82rem; color: var(--mut); }
@media (max-width: 600px) { .path { grid-template-columns: 1fr 1fr; gap: 18px 12px; } .path::before { display: none; } }

/* ---------- Frase ---------- */
.quote { background: var(--night); color: #fff; padding: clamp(36px, 6vw, 64px) 0; }
.quote p { max-width: 900px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.1; text-wrap: balance; }

/* ---------- Como marcar ---------- */
.agenda { background: var(--violet); color: #fff; }
.agenda h2 { color: #fff; }
.agenda h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.agenda h2 + h3 { margin-top: 14px; }
.agenda p { color: #e8dbf1; }
.agsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
@media (max-width: 760px) { .agsplit { grid-template-columns: 1fr; } }

.steps { display: grid; gap: 10px; margin-top: 8px; list-style: none; counter-reset: passo; }
.steps li { counter-increment: passo; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.steps li::before {
  content: counter(passo); grid-row: 1 / 3; display: grid; place-items: center;
  width: 40px; height: 40px; border: 2px solid var(--pink); border-radius: 50%;
  font-family: var(--display); font-size: 1.2rem;
}
.steps b { font-size: .98rem; }
.steps span { font-size: .85rem; color: var(--line); }

.box { padding: 26px; border-radius: 6px; background: #fff; color: var(--ink); }
.box p { color: var(--ink); }
.box label, .box .lbl { display: block; margin: 18px 0 8px; font-weight: 700; font-size: .88rem; }
.box input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); font: 16px var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 600 .85rem var(--text); cursor: pointer; }
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.box .btn { width: 100%; margin-top: 18px; }
.msg { min-height: 1.2em; margin-top: 10px; font-size: .82rem; color: var(--mut); }
.box .fine { margin-top: 12px; font-size: .8rem; color: var(--mut); }
.fine a { color: var(--violet); }

/* ---------- Dúvidas ---------- */
details { border-bottom: 1px solid var(--lil2); padding: 6px 0; }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 700; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pink); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 12px; color: var(--mut); font-size: .95rem; }
details a { color: var(--pink-text); font-weight: 700; text-underline-offset: 3px; }
.sos { margin-top: 32px; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); font-size: .93rem; }

/* ---------- Textos (índice) ---------- */
#conteudos .wrap { max-width: 820px; }
.posts { margin: 8px 0 24px; border-top: 2px solid var(--violet); }
.post {
  display: grid; grid-template-columns: 1fr auto auto; column-gap: 24px; row-gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--lil2); color: var(--ink); text-decoration: none;
}
.post h3 { grid-column: 1; color: var(--violet); font-size: 1.1rem; line-height: 1.3; }
.post p { grid-column: 1; color: var(--mut); font-size: .93rem; }
.post .meta { grid-column: 2; grid-row: 1 / 3; align-self: center; white-space: nowrap; color: var(--pink-text); font-weight: 700; font-size: .82rem; }
.post::after { content: "→"; grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--violet); font-weight: 700; transition: transform .2s; }
.post:hover::after { transform: translateX(4px); }
.post:hover h3, .post:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr auto; padding: 15px 0; row-gap: 2px; }
  .post h3 { font-size: .98rem; line-height: 1.35; }
  .post .meta { font-size: .78rem; margin-top: 4px; }
  .post p { display: none; }
  .post .meta { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .post::after { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- Página de texto ---------- */
.ahead { background: var(--night); color: #fff; padding: 40px 0 48px; }
.ahead .wrap { max-width: 720px; }
.ahead h1 { font-size: clamp(2rem, 5.5vw, 3rem); text-wrap: balance; }
.ahead p { margin-top: 14px; color: var(--on-dark); }
.ahead .meta { margin-top: 12px; font-size: .82rem; color: #bfa6d1; }
.back { display: inline-block; padding: 10px 0; margin-bottom: 12px; color: var(--pink-soft); font-weight: 700; font-size: .88rem; text-decoration: none; }
.abody { max-width: 720px; margin: 0 auto; padding: 44px 22px 20px; font-size: 1.05rem; }
.abody p { margin-bottom: 18px; }
.abody h2 { margin: 34px 0 12px; font-family: var(--text); font-weight: 700; text-transform: none; font-size: 1.3rem; line-height: 1.25; }
.abody ul { margin: 0 0 18px 20px; }
.abody li { margin-bottom: 10px; }
.abody strong { color: var(--violet); }
.abody a { color: var(--violet); }
.abody .note { padding: 14px 18px; border-left: 3px solid var(--lil2); color: var(--mut); font-size: .92rem; }
.abody .refs { font-size: .88rem; color: var(--mut); }
.sig { max-width: 720px; margin: 0 auto; padding: 0 22px; font-size: .85rem; color: var(--mut); }
.endcta { max-width: 720px; margin: 20px auto 60px; padding: 24px 22px 0; }
.endcta > div { padding-top: 24px; border-top: 3px solid var(--violet); }
.endcta p { margin-bottom: 18px; color: var(--mut); font-size: .95rem; }

/* ---------- Saúde mental nas telas ---------- */
.telas-link { display: grid; gap: 2px; margin: 0 0 16px; padding: 20px 22px; border-radius: 6px; background: var(--night); color: var(--on-dark); text-decoration: none; font-size: .93rem; }
.telas-link b { color: #fff; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .01em; }
.telas-link:hover b { text-decoration: underline; text-decoration-color: var(--pink); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
@media (max-width: 600px) { .filtros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .filtros .chip { width: 100%; } }
.intro-telas { font-size: 1rem; }
.abody .telas { list-style: none; margin: 16px 0 18px; padding: 0; border-top: 2px solid var(--violet); }
.telas li { padding: 18px 0 6px; border-bottom: 1px solid var(--lil2); }
.telas li[hidden] { display: none; }
.telas .tipo { font-size: .8rem; font-weight: 700; color: var(--pink-text); }
.abody .telas h2 { margin: 4px 0 4px; font-family: var(--text); font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 1.2rem; line-height: 1.3; color: var(--violet); }
.abody .telas .resumo { margin-bottom: 4px; color: var(--mut); font-size: .95rem; }
.telas details { border: 0; padding: 0; }
.telas summary { justify-content: flex-start; gap: 8px; padding: 8px 0 10px; color: var(--violet); font-size: .88rem; }
.telas summary::after { font-size: 1.1rem; }
.telas details[open] { padding-bottom: 12px; }
.abody .telas details p { margin: 0 0 10px; font-size: .95rem; color: var(--ink); }
.abody .telas .orig { color: var(--mut); font-size: .88rem; }
.abody .telas .aviso { color: var(--mut); font-size: .85rem; }
.abody .telas .ext { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 0; }
.abody .telas .ext a { display: inline-block; padding: 8px 0; font-weight: 700; font-size: .9rem; color: var(--violet); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.abody .telas .ext a::after { content: " ↗"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rodapé ---------- */
footer { background: var(--night); color: #cbb8d8; padding: 48px 0 32px; font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer .logo b { font-size: 1.8rem; }
footer a { display: inline-block; padding: 10px 0; color: var(--pink-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; flex-direction: column; }
footer .logo { padding: 0; }
footer .info { margin-top: 6px; }
footer .legal { flex-basis: 100%; padding-top: 18px; border-top: 1px solid #45285c; font-size: .78rem; }

/* ---------- Botão "Agendar" flutuante (celular) ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; z-index: 40;
    right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 999px; background: var(--pink-strong); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none;
    box-shadow: 0 4px 14px rgba(42, 16, 64, .28);
    transform: translateY(calc(100% + 30px)); transition: transform .25s ease;
  }
  .mbar.on { transform: none; }
  html.menu-aberto .mbar { transform: translateY(calc(100% + 30px)); }
  footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Ajustes de proporção no celular ---------- */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .ed { gap: 14px; }
  .btn { min-height: 48px; }
  .box { padding: 20px 18px; }
  .agenda h3 { margin-top: 20px; }
  .quote { padding: 32px 0; }

  .ahead { padding: 20px 0 26px; }
  .abody .telas h2 { font-size: 1.05rem; margin: 2px 0 2px; }
  .abody .telas .resumo { font-size: .92rem; line-height: 1.55; }
  .telas li { padding: 16px 0 4px; }
  .telas summary { padding: 6px 0 8px; }
  .intro-telas { font-size: .95rem; }
  .ahead h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .ahead p { font-size: .98rem; margin-top: 10px; }
  .back { margin-bottom: 6px; }
  .abody { padding: 24px 22px 12px; font-size: 1rem; line-height: 1.7; }
  .abody p { margin-bottom: 16px; }
  .abody h2 { margin: 30px 0 10px; font-size: 1.15rem; line-height: 1.3; }
  .abody li { margin-bottom: 8px; }
  .abody .note { padding: 10px 14px; font-size: .9rem; }
  .sig, .endcta p { font-size: .88rem; }
  .endcta { margin-bottom: 40px; }
}

/* ---------- Movimento ---------- */
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
  .hero h1, .hero .sub, .hero .intro, .hero .cta, .hero picture { animation: up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .sub { animation-delay: .08s; }
  .hero picture { animation-delay: .1s; }
  .hero .intro { animation-delay: .16s; }
  .hero .cta { animation-delay: .24s; }
  .tpanel > * { animation: up .45s ease both; }
  .js .path::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s ease .3s; }
  .js .rv.in .path::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
