
/* ==================================================================
   YARA RABELO — PSICÓLOGA CLÍNICA
   Design system: Luz da Manhã
   Wellness contemporâneo, natural e sofisticado.
   ================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #F8F7F3;
  --white: #FEFDFC;
  --wood: #9B7656;
  --wood-deep: #76583F;
  --rosemary: #66735F;
  --rosemary-deep: #4F5C4A;
  --rosemary-wash: #EEF1EB;
  --sand: #DED5C9;
  --line: #E5E1D9;
  --text: #2E312C;
  --muted: #68706A;
  --soft-text: #7C817B;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1160px;
  --reading-width: 760px;
  --section-padding: clamp(4.5rem, 8vw, 7.5rem);
  --header-height: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --cookie-bar-offset: 0px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
h1,h2,h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rosemary);
  outline-offset: 4px;
}
::selection { background: #DDE3D8; color: var(--text); }

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 1000;
  background: var(--text); color: var(--white);
  padding: .75rem 1rem; font-size: .85rem; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-padding) 0; }
.section--tinted {
  background: var(--rosemary-wash);
  position: relative;
}
.section__narrow .container { max-width: var(--reading-width); }

.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.15rem;
  color: var(--rosemary-deep);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--wood);
}
.section__title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -.025em;
  max-width: 20ch;
  margin-bottom: 2.2rem;
}
.section__title::after { display: none; }

/* ------------------------- BOTÕES ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .86rem; font-weight: 700; letter-spacing: .01em;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn--primary { background: var(--wood); color: #fff; }
.btn--primary:hover { background: var(--wood-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--rosemary); color: var(--rosemary-deep); }
.btn--sm { min-height: 40px; padding: .6rem 1rem; font-size: .78rem; }
.btn--lg { min-height: 52px; padding: .9rem 1.5rem; font-size: .9rem; }

/* ------------------------- HEADER ------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(248,247,243,.94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(248,247,243,.97);
}
.header__inner {
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo__mark {
  width: 34px; height: 34px; object-fit: contain; flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.08rem; line-height: 1;
}
.logo__role {
  display: block; margin-top: .28rem;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: .58rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
}
.nav__list { display: flex; align-items: center; gap: 1.65rem; }
.nav__link {
  position: relative; display: inline-block;
  padding: .3rem 0;
  color: var(--muted);
  font-size: .78rem; font-weight: 600;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--rosemary);
  transition: width .2s var(--ease);
}
.nav__link:hover,.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,.nav__link.is-active::after { width: 100%; }
.nav__cta { flex-shrink: 0; }
.nav__toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 21px; height: 1.5px; background: var(--text); transition: transform .2s var(--ease), opacity .2s var(--ease); }

/* ------------------------- HERO ------------------------- */
.hero {
  min-height: min(820px, 100vh);
  display: flex; align-items: center;
  padding: calc(var(--header-height) + 3.5rem) 0 4.5rem;
  background: var(--paper);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.hero__content { max-width: 560px; }
.hero__credential {
  margin-bottom: 1.35rem;
  color: var(--rosemary-deep);
  font-size: .82rem; font-weight: 600;
}
.hero__title {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 5.2vw, 4.65rem);
  letter-spacing: -.045em;
}
.hero__subtitle {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__secondary-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  color: var(--rosemary-deep);
  font-size: .78rem; font-weight: 700;
  border-bottom: 1px solid transparent;
}
.hero__secondary-link:hover { border-bottom-color: var(--rosemary); }
.hero__trust {
  display: flex; align-items: center; gap: .45rem;
  margin-top: 1.15rem;
  color: var(--soft-text);
  font-size: .74rem;
}
.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 540px);
}
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 43%;
  border-radius: 2px;
}
.hero__glow { display: none; }
.hero__badge { display: none; }

/* ------------------------- SOBRE ------------------------- */
#sobre .container { max-width: 1000px; }
#sobre .section__title { max-width: 18ch; }
.about__text {
  max-width: 700px;
  font-size: 1.02rem;
  color: var(--muted);
}
.about__text p + p { margin-top: 1.1rem; }

.formacao { margin-top: 4rem; max-width: 850px; }
.formacao__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rosemary-deep);
}
.formacao__grid {
  border-top: 1px solid var(--line);
}
.formacao__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.formacao__icon { display: none; }
.formacao__card-title {
  display: block; margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
}
.formacao__card-place {
  display: block; color: var(--muted); font-size: .78rem;
}
.formacao__status {
  align-self: start; color: var(--rosemary-deep);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}

/* ------------------------- SERVIÇOS ------------------------- */
#servicos { background: var(--paper); }
.servicos__intro {
  max-width: 690px; margin-bottom: 2.7rem;
  color: var(--muted); font-size: .94rem;
}
.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.card__icon { display: none; }
.card__title {
  margin-bottom: .55rem;
  font-size: 1.35rem;
  letter-spacing: -.015em;
}
.card__text { color: var(--muted); font-size: .83rem; line-height: 1.65; }
#servicos .card {
  min-height: 245px;
  padding: 1.8rem 1.7rem;
}
#servicos .card::before {
  content: "";
  display: block; width: 28px; height: 2px;
  margin-bottom: 2.5rem; background: var(--wood);
}

/* ------------------------- PARA QUEM ------------------------- */
#para-quem { background: var(--rosemary-wash); }
#para-quem .grid--4 {
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 3.5rem; row-gap: 0;
  border-top: 1px solid rgba(79,92,74,.18);
}
#para-quem .card {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(79,92,74,.18);
}
#para-quem .card::before {
  content: "—";
  color: var(--wood);
  font-weight: 700;
}
#para-quem .card__title {
  margin-bottom: .25rem;
  font-size: 1.25rem;
}
#para-quem .card__text { max-width: 29rem; }

/* ------------------------- COMO FUNCIONA ------------------------- */
#como-funciona { background: var(--paper); }
.timeline {
  max-width: 930px;
  border-top: 1px solid var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline__marker { display: none; }
.timeline__step {
  display: block;
  color: var(--wood-deep);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.timeline__title {
  margin: .35rem 0 .3rem;
  font-size: 1.55rem;
}
.timeline__content p { max-width: 620px; color: var(--muted); font-size: .85rem; }

/* ------------------------- BENEFÍCIOS ------------------------- */
#beneficios { background: var(--paper); }
#beneficios .grid--3 { margin-top: 2rem; }
#beneficios .card { padding: 1.7rem; min-height: 185px; }
#beneficios .card::before {
  content: "";
  display: block; width: 18px; height: 1px;
  margin-bottom: 2.4rem; background: var(--rosemary);
}

/* ------------------------- FAQ ------------------------- */
#faq { background: var(--white); }
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  color: var(--text);
  font-size: .9rem; font-weight: 700;
}
.accordion__icon {
  flex: 0 0 auto; color: var(--rosemary-deep); font-size: .72rem;
  transition: transform .25s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.accordion__panel p { max-width: 680px; padding: 0 2rem 1.4rem 0; color: var(--muted); font-size: .85rem; }


/* ------------------------- CTA ------------------------- */
.cta {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--wood);
  color: #fff;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.cta__text {
  max-width: 650px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.12; letter-spacing: -.02em;
}
.cta .btn--primary { background: var(--white); color: var(--wood-deep); flex-shrink: 0; }
.cta .btn--primary:hover { background: #F0ECE5; }

/* ------------------------- BLOG ------------------------- */
.blog-hero { padding-top: calc(var(--header-height) + 4.5rem); }
.blog-hero__intro { max-width: 690px; color: var(--muted); font-size: .95rem; }
.blog-card {
  display: flex; flex-direction: column;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.blog-card:hover { transform: translateY(-2px); border-color: #CFC8BD; }
.blog-card__cover {
  height: 150px; display: grid; place-items: center;
  background: var(--rosemary);
  color: var(--white);
}
.blog-card__cover svg { display: none; }
.blog-card__cover i { display: none; }
.blog-card__cover--autoconhecimento::after {
  content: "01"; font-family: var(--font-display); font-size: 3.5rem; opacity: .65;
}
.blog-card:nth-child(2) .blog-card__cover--autoconhecimento::after { content: "02"; }
.blog-card__tag {
  margin: 1.4rem 1.5rem .5rem;
  color: var(--rosemary-deep);
  font-size: .66rem; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase;
}
.blog-card .card__title { margin: 0 1.5rem .65rem; font-size: 1.45rem; }
.blog-card .card__text { margin: 0 1.5rem; }
.blog-card__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: auto 1.5rem 1.5rem;
  color: var(--wood-deep);
  font-size: .76rem; font-weight: 800;
}
.blog-card__cta i { font-size: .65rem; transition: transform .2s var(--ease); }
.blog-card:hover .blog-card__cta i { transform: translateX(3px); }

/* ------------------------- ARTIGO ------------------------- */
.article { padding-top: 1rem; }
.article__back {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 2rem; color: var(--rosemary-deep);
  font-size: .75rem; font-weight: 800;
}
.article__tag {
  display: block; margin-bottom: .7rem;
  color: var(--wood-deep);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.article > .section__title { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.article__meta { color: var(--soft-text); font-size: .72rem; }
.article__body {
  margin-top: 3.5rem;
  color: #4F554F;
  font-size: .96rem;
}
.article__body p + p { margin-top: 1.25rem; }
.article__body h2 {
  margin: 3rem 0 1rem;
  font-size: 1.75rem;
}
.article__body a { color: var(--rosemary-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------- FOOTER ------------------------- */
.footer {
  background: #29302B;
  color: #F4F2ED;
  padding: 3.2rem 0 1.5rem;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer__brand { display: flex; align-items: center; gap: .85rem; }
.footer__mark { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.footer__name { font-family: var(--font-display); font-size: 1.2rem; }
.footer__role,.footer__crp { color: #C6CBC5; font-size: .68rem; }
.footer__crp { margin-top: .15rem; }
.footer__social { display: flex; gap: .5rem; }
.footer__icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #F4F2ED;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.footer__icon:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer__bottom p { color: #AEB5AE; font-size: .66rem; }
.footer__policy-link { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------- FLOATERS / COOKIES ------------------------- */
.float-btn {
  position: fixed; right: 1.25rem; z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--white); color: var(--text);
  box-shadow: 0 8px 24px rgba(46,49,44,.08);
}
.float-btn--whatsapp {
  bottom: calc(1.25rem + var(--cookie-bar-offset));
  border-color: #D9DED6; color: var(--rosemary-deep);
}
.float-btn--top {
  bottom: calc(4.9rem + var(--cookie-bar-offset));
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.float-btn--top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  padding: .8rem 1.5rem;
  background: #29302B; color: #fff;
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar__text { max-width: 850px; font-size: .68rem; line-height: 1.5; }
.cookie-bar__text a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------- REVEAL ------------------------- */
.reveal, .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------- PRIVACIDADE ------------------------- */
.policy {
  max-width: 760px; margin: 0 auto;
  padding: calc(var(--header-height) + 3rem) 1.5rem 5rem;
}
.policy h1 { margin-bottom: .5rem; font-size: clamp(2rem,4vw,3rem); }
.policy p,.policy li { color: var(--muted); margin-bottom: 1rem; }
.policy h2 { margin: 2.4rem 0 .7rem; font-size: 1.35rem; }
.policy ul { padding-left: 1.2rem; list-style: disc; }
.policy__back { display: inline-block; margin-bottom: 2rem; color: var(--rosemary-deep); font-weight: 700; }

/* ------------------------- RESPONSIVO ------------------------- */
@media (max-width: 960px) {
  .nav__list { gap: 1rem; }
  .nav__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero__title { font-size: clamp(2.5rem, 6vw, 3.8rem); }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  #servicos .grid--3, #beneficios .grid--3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  :root { --header-height: 70px; }
  .container { padding: 0 1.2rem; }
  .header__inner { height: var(--header-height); }
  .nav {
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .28s var(--ease);
  }
  .nav.is-open { max-height: 430px; }
  .nav__list { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.2rem 1rem; }
  .nav__link { display: block; padding: .8rem 0; font-size: .82rem; }
  .nav__toggle { display: flex; }
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3.5rem;
  }
  .hero__inner { display: flex; flex-direction: column; gap: 2.2rem; align-items: stretch; }
  .hero__content { max-width: none; }
  .hero__title { max-width: 13ch; font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero__subtitle { max-width: 38rem; font-size: .94rem; margin-bottom: 1.6rem; }
  .hero__media { width: 100%; max-width: none; order: 2; }
  .hero__photo { aspect-ratio: 4 / 5; object-position: center 40%; }
  .hero__secondary-link { margin-top: .9rem; }
  .section { padding: clamp(4rem, 13vw, 5.2rem) 0; }
  .section__title { font-size: clamp(1.9rem, 9vw, 2.7rem); margin-bottom: 1.8rem; }
  #para-quem .grid--4 { grid-template-columns: 1fr; }
  #para-quem .card { grid-template-columns: 2rem 1fr; }
  #servicos .grid--3, #beneficios .grid--3 { grid-template-columns: 1fr; }
  #servicos .card { min-height: auto; }
  .timeline__item { grid-template-columns: 58px 1fr; gap: .8rem; }
  .timeline__title { font-size: 1.35rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .cta__text { font-size: 2.15rem; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .cookie-bar { align-items: stretch; flex-direction: column; gap: .6rem; padding: .9rem 1.2rem; }
  .cookie-bar .btn { align-self: flex-start; }
  .float-btn { right: 1rem; }
  .article__body { margin-top: 2.5rem; font-size: .92rem; }
}
@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .hero__title { font-size: 2.65rem; }
  .logo__role { display: none; }
}
