/* Catarina Azevedo — Psicologia Clínica e da Saúde */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bone: #F4F1EC;
  --bone-deep: #EBE5DC;
  --ink: #201C1A;
  --ink-soft: #554E49;
  --muted: #8A817A;
  --accent: #8C6A6C;
  --accent-soft: #C4A9A6;
  --sand: #DCD3C8;
  --espresso: #2A2422;
  --line: #DED6CB;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* warm paper grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 28, 'WONK' 1;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
}
h1 { font-size: clamp(38px, 6.2vw, 78px); }
h2 { font-size: clamp(30px, 4.4vw, 54px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
em { font-style: italic; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; color: var(--ink-soft); }

/* ── NAV ──────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 30px;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
#nav.stuck {
  padding: 14px 30px;
  background: rgba(244, 241, 236, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand b {
  font-family: var(--body); font-weight: 700; font-size: 17px;
  letter-spacing: .01em;
}
.brand small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: 14.5px; font-weight: 600;
  padding: 14px 26px; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone); text-decoration: none;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: none; border-color: var(--ink); color: var(--ink); }
.btn.light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--espresso); }
.btn svg { width: 15px; height: 15px; }
#nav .btn { padding: 11px 22px; font-size: 13.5px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 100px; background: none; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 1.4px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bone); padding: 120px 30px 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a {
  font-family: var(--display); font-size: 30px; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn {
  margin-top: 26px; padding: 17px 26px; border-bottom: 0;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  color: var(--bone);
}

/* ── HERO ─────────────────────────────────────────── */
.hero { padding: 168px 0 90px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center;
}
.hero h1 { max-width: 12ch; }
.hero h1 em { color: var(--accent); }
.hero .lead { margin: 30px 0 0; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-top: 34px;
}
.hero-tag i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  display: block; flex: 0 0 auto;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.75); opacity: 1; }
}

/* arch-framed portrait */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 300px 300px 18px 18px;
  overflow: hidden;
  background: var(--sand);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.portrait.in img { transform: scale(1); }
.portrait::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42,36,34,.16) 100%);
}

.creds {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 84px; padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-size: 13px; color: var(--muted); letter-spacing: .02em;
}
.creds b { color: var(--ink-soft); font-weight: 600; }

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 58px; }
.section-head h2 em { color: var(--accent); }

/* deep band with line reveal */
.band {
  background: var(--espresso); color: var(--bone);
  padding: 118px 0;
}
.band .eyebrow { color: var(--accent-soft); }
.band-text {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(23px, 3vw, 37px); line-height: 1.32; letter-spacing: -.01em;
  max-width: 20ch; margin: 0;
}
.band-text .line { display: block; overflow: hidden; }
.band-text .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.band-text .line.in > span { transform: none; }
.band-note { margin-top: 44px; color: rgba(244,241,236,.62); font-size: 15.5px; max-width: 52ch; }

/* áreas — editorial list */
.areas { border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 24px;
  padding: 30px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: padding-left .5s var(--ease), background .5s var(--ease);
  position: relative;
}
.area:hover { padding-left: 22px; background: var(--bone-deep); }
.area-n { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.area h3 { font-size: clamp(21px, 2.4vw, 30px); }
.area .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  opacity: 0; transform: translateX(-8px); transition: all .5s var(--ease);
}
.area:hover .dot { opacity: 1; transform: none; }

/* sobre */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.about-photo { border-radius: 18px 18px 200px 200px; overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.about-body p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 20px; }
.about-body p:last-child { margin-bottom: 0; }

.quote {
  margin: 54px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: clamp(21px, 2.4vw, 29px);
  font-style: italic; font-weight: 300; line-height: 1.3; color: var(--ink);
}

.training { margin-top: 56px; }
.training h4 {
  font-family: var(--body); font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 20px;
}
.tr-row {
  display: flex; justify-content: space-between; gap: 22px;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px;
}
.tr-row span { color: var(--ink-soft); }
.tr-row b { font-weight: 600; }
.tr-row i { font-style: normal; color: var(--muted); white-space: nowrap; font-size: 13px; }

/* como trabalho — sticky steps */
.process { background: var(--bone-deep); }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.process-sticky { position: sticky; top: 130px; }
.big-n {
  font-family: var(--display); font-size: clamp(90px, 15vw, 190px); line-height: .85;
  color: var(--accent); opacity: .22; font-weight: 300;
  transition: opacity .6s var(--ease);
}
.steps { display: flex; flex-direction: column; }
.step {
  padding: 40px 0; border-top: 1px solid var(--line);
  opacity: .34; transition: opacity .7s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step.active { opacity: 1; }
.step-k {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); margin: 12px 0 0; max-width: 46ch; }

/* consultas */
.sessions-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.price-card {
  background: var(--bone-deep); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .who { display: flex; flex-direction: column; gap: 4px; }
.price-row .who b { font-size: 16.5px; font-weight: 600; }
.price-row .who small { font-size: 13px; color: var(--muted); }
.price-row .amount { font-family: var(--display); font-size: 27px; white-space: nowrap; }
.price-card .btn { width: 100%; margin-top: 26px; }
.price-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }

.facts { display: flex; flex-direction: column; }
.fact { padding: 22px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact b {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.fact p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.todo { color: var(--accent); font-style: italic; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-family: var(--display); font-size: clamp(18px, 2vw, 23px);
  color: var(--ink); line-height: 1.24;
}
.qa-q .sign { position: relative; width: 15px; height: 15px; flex: 0 0 auto; }
.qa-q .sign::before, .qa-q .sign::after {
  content: ''; position: absolute; background: var(--accent);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.qa-q .sign::before { width: 15px; height: 1.4px; }
.qa-q .sign::after { width: 1.4px; height: 15px; transition: transform .45s var(--ease); }
.qa.open .qa-q .sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.qa-a-in { padding: 0 0 26px; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* contacto */
.final { background: var(--espresso); color: var(--bone); padding: 126px 0; text-align: center; }
.final h2 { max-width: 16ch; margin: 0 auto; }
.final h2 em { color: var(--accent-soft); }
.final .lead { color: rgba(244,241,236,.68); margin: 26px auto 40px; max-width: 46ch; }
.final-links { margin-top: 42px; display: flex; gap: 12px 30px; justify-content: center; flex-wrap: wrap; font-size: 14.5px; }
.final-links a { color: rgba(244,241,236,.72); text-decoration: none; border-bottom: 1px solid rgba(244,241,236,.25); padding-bottom: 2px; }
.final-links a:hover { color: var(--bone); border-color: var(--bone); }

/* footer */
footer { background: var(--espresso); color: rgba(244,241,236,.55); padding: 0 0 46px; font-size: 13px; }
.foot-in { border-top: 1px solid rgba(244,241,236,.12); padding-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: rgba(244,241,236,.55); text-decoration: none; }
footer a:hover { color: var(--bone); }
.crisis {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(244,241,236,.12);
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; color: rgba(244,241,236,.42);
}
.crisis b { color: rgba(244,241,236,.68); font-weight: 600; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* legal pages */
.legal-head { padding: 150px 0 24px; }
.legal-head .back { font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 26px; }
.legal-head .updated { font-size: 13px; color: var(--muted); margin-top: 16px; }
.legal-body { padding-bottom: 100px; }
.legal-body h2 { font-family: var(--body); font-size: 17px; font-weight: 700; margin: 42px 0 12px; letter-spacing: 0; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 15.5px; }
.legal-body a { color: var(--accent); }

@media (max-width: 900px) {
  .nav-links, #nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 130px 0 70px; }
  .hero-grid, .about-grid, .process-grid, .sessions-grid { grid-template-columns: 1fr; gap: 46px; }
  .portrait { max-width: 400px; }
  .about-photo { max-width: 340px; }
  .process-sticky { position: static; }
  .big-n { display: none; }
  .section, .band, .final { padding: 76px 0; }
  .area { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 24px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
