/* =============================================================
   Ana Paula Becker — Psicóloga Clínica
   Paleta rosé + taupe derivada do logo da marca
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cores */
  --creme:       #FDF7F4;
  --creme-2:     #F6EBE5;
  --taupe:       #7A5A52;
  --taupe-dark:  #5E443E;
  --rose:        #E3998C;
  --rose-dark:   #C97F72;
  --rose-soft:   #F3D4CC;
  --texto:       #4A3B37;
  --texto-claro: #8A7570;
  --branco:      #FFFFFF;

  /* Tipografia */
  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Parisienne", "Brush Script MT", cursive;

  /* Métricas */
  --container: 1184px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 28px;
  --nav-h: 88px;

  /* Sombras */
  --shadow-sm: 0 4px 16px rgba(122, 90, 82, .08);
  --shadow-md: 0 18px 48px rgba(122, 90, 82, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.12; font-family: var(--serif); }
p   { margin: 0 0 1.15em; }
ul  { margin: 0; padding: 0; list-style: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--taupe); color: var(--branco);
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: 820px; }
.center { text-align: center; }

.section  { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.band     { position: relative; }
.band--creme  { background: var(--creme); }
.band--creme2 { background: var(--creme-2); }
.band--taupe  { background: var(--taupe); color: #F7EDE9; }
.band--taupe .section__title { color: var(--branco); }
.band--taupe .eyebrow        { color: var(--rose-soft); }
.band--taupe .rule           { background: var(--rose); }

.has-watermark { overflow: hidden; }

/* ---------- 4. Tipografia de seção ---------- */
.section__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -.01em;
  color: var(--texto);
}
.section__title--left { text-align: left; }

.eyebrow {
  margin: 1rem 0 0;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--texto-claro);
}

.rule {
  display: block;
  width: 120px;
  height: 1px;
  margin: 1.75rem auto 2.5rem;
  background: var(--rose);
  opacity: .7;
}
.rule--left  { margin-inline: 0; }
.eyebrow--left { text-align: left; }

.kicker {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 1.5rem;
}

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.35rem; font-size: .72rem; }

.btn--primary {
  background: var(--rose);
  color: var(--branco);
  box-shadow: 0 8px 22px rgba(201, 127, 114, .28);
}
.btn--primary:hover { background: var(--rose-dark); box-shadow: 0 12px 28px rgba(201, 127, 114, .34); }

.btn--ghost, .btn--outline {
  background: transparent;
  border-color: var(--rose);
  color: var(--rose-dark);
}
.btn--ghost:hover, .btn--outline:hover { background: var(--rose); color: var(--branco); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--branco);
  margin-top: .75rem;
}
.btn--outline-light:hover { background: var(--branco); color: var(--taupe); border-color: var(--branco); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.icon--lg   { width: 1.9rem; height: 1.9rem; }
.icon--rose { color: var(--rose); }

.link-arrow {
  display: inline-block;
  color: var(--rose-dark);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .25s var(--ease);
}
.link-arrow:hover { opacity: .65; }
.link-arrow--light { color: var(--branco); }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}
/* O fundo mora num ::before, não na própria .nav: `backdrop-filter` cria um
   bloco de contenção e prenderia o menu mobile (position: fixed) dentro da
   altura da navbar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Véu degradê desde o topo: o hero tem foto à direita, e sem isto os últimos
     links do menu ficam ilegíveis. O degradê evita a borda dura de um blur. */
  background: linear-gradient(to bottom,
              rgba(253, 247, 244, .94) 0%,
              rgba(253, 247, 244, .88) 55%,
              rgba(253, 247, 244, 0) 100%);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled::before {
  background: rgba(253, 247, 244, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(122, 90, 82, .1), var(--shadow-sm);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__mark { width: 46px; height: 46px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--rose-dark);
  letter-spacing: .01em;
}
.logo__role {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--texto-claro);
  margin-top: .15rem;
}
.logo--light .logo__name { color: var(--rose-soft); }
.logo--light .logo__role { color: rgba(255, 255, 255, .65); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: .84rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--texto);
  position: relative;
  padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width .3s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a:not(.btn):hover,
.nav__links a.is-active { color: var(--rose-dark); }
.nav__cta { color: var(--branco) !important; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 26px;
  margin-inline: auto;
  background: var(--texto);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(100svh, 900px);
  background: var(--creme);
  position: relative;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 4vw, 3.5rem) 4rem var(--gutter);
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}
.hero__title {
  font-size: clamp(2.85rem, 1.7rem + 4.4vw, 4.85rem);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: 1.06rem;
  max-width: 46ch;
  color: #5C4B45;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.center-actions { justify-content: center; }

.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero__wave {
  position: absolute;
  inset: 0 auto 0 -1px;
  height: 100%;
  width: 240px;
  max-width: 42%;
}
.hero__wave-h { display: none; }
.wave-fill { fill: var(--creme); }
.wave-band { fill: var(--rose); }
.wave-band--2 { opacity: .30; }
.wave-band--3 { opacity: .16; }

.rating { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.rating--inline { margin-top: 2.5rem; }
.rating__stars { display: inline-flex; gap: .15rem; color: var(--rose); }
.rating__stars .icon { width: 1.05rem; height: 1.05rem; }
.rating__label { font-size: .88rem; color: var(--texto-claro); }
.rating--big {
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.rating--big .rating__score {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--rose-dark);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.rating--big .rating__stars .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- 8. Lista "Como posso ajudar" ---------- */
.help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 3rem;
  max-width: 1000px;
  margin-inline: auto;
}
.help-list li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  line-height: 1.6;
}
.petal {
  width: 1.05rem; height: 1.05rem;
  flex: none;
  margin-top: .38rem;
  color: var(--rose);
  fill: currentColor;
}
.help-note {
  margin-top: 3rem;
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--texto-claro);
}

/* Marcas d'água decorativas */
.watermark {
  position: absolute;
  width: 460px; height: 460px;
  color: var(--rose);
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  fill: currentColor;
}
.watermark--tl { top: -110px; left: -140px; transform: rotate(180deg); }
.watermark--br { bottom: -120px; right: -140px; }
.watermark--tr { top: -130px; right: -150px; transform: rotate(90deg); }

/* ---------- 9. Blocos divididos ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__text  { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split__text p { max-width: 58ch; }

.address {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.address .icon { margin-top: .35rem; }

/* ---------- 10. Depoimentos ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}
.card {
  margin: 0;
  background: var(--branco);
  border: 1px solid var(--rose-soft);
  border-radius: 20px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 1.5rem; left: 2rem;
  width: 34px; height: 1px;
  background: var(--rose);
  opacity: .5;
}
.card blockquote { margin: 1.25rem 0 0; flex: 1; }
.card blockquote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--texto);
  margin: 0;
}
.card figcaption {
  margin-top: 1.75rem;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

/* ---------- 11. Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.contact__col {
  padding-inline: clamp(1rem, 3vw, 2.75rem);
  text-align: center;
}
.contact__col + .contact__col { border-left: 1px solid rgba(255, 255, 255, .22); }
.contact__col .icon--lg { margin-inline: auto; color: var(--rose-soft); }
.contact__col h3 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 1.1rem 0 1rem;
  color: var(--branco);
}
.contact__col p { font-size: .96rem; color: rgba(255, 255, 255, .85); }
.contact__note {
  margin-top: 3.5rem;
  text-align: center;
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
}

/* ---------- 12. Rodapé ---------- */
.footer {
  background: var(--taupe-dark);
  color: rgba(255, 255, 255, .8);
  /* Folga extra embaixo para o botão flutuante do WhatsApp não cobrir o texto */
  padding-block: 3.5rem 5.5rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer__links a {
  font-size: .84rem;
  text-decoration: none;
  color: rgba(255, 255, 255, .78);
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--rose-soft); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-top: 1.75rem;
}
.footer__bottom p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* ---------- 13. WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--branco);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.whatsapp-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- 14. Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. Responsivo ---------- */
@media (max-width: 1024px) {
  .nav__links { gap: 1.35rem; }
  .nav__links a { font-size: .8rem; }
  .hero__wave { width: 190px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 76px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--creme);
    padding: var(--nav-h) 2rem 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { font-size: 1.15rem; }
  /* Logo e botão ficam acima do overlay do menu */
  .nav__toggle, .nav .logo { position: relative; z-index: 2; }
  body.menu-open { overflow: hidden; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* Espaço para a navbar: sem isto o cabeçalho cobre o rosto na foto */
  .hero__media { order: -1; height: min(58vh, 480px); margin-top: var(--nav-h); }
  .hero__media img { object-position: center 20%; }
  .hero__wave { display: none; }
  .hero__wave-h {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    height: 90px;
  }
  .hero__text {
    padding: 2.5rem var(--gutter) 4rem;
    margin-inline: auto;
    max-width: 640px;
    text-align: left;
  }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__text,
  .split--reverse .split__media { order: initial; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 11; }
  .split__text p { max-width: none; }

  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__col + .contact__col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 2.5rem;
  }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .help-list { grid-template-columns: 1fr; gap: 1rem; }
  .watermark { width: 300px; height: 300px; }
  .hero__actions .btn,
  .center-actions .btn { flex: 1 1 100%; justify-content: center; }
  .rating--big { flex-direction: column; gap: .4rem; }
  .logo__name { font-size: 1.35rem; }
  .logo__mark { width: 40px; height: 40px; }
  .card { padding: 2rem 1.5rem 1.5rem; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- 16. Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .whatsapp-float, .watermark, .hero__wave, .hero__wave-h { display: none !important; }
  .band--taupe { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
