/* =========================================================
   Dra. Suely — Psiquiatria
   ========================================================= */

:root {
  --cream: #f7f4ef;
  --cream-2: #efe9e0;
  --ink: #22302e;
  --ink-soft: #556662;
  --sage: #3f6e63;
  --sage-dark: #2c5249;
  --sage-light: #dfe9e4;
  --wa: #25d366;
  --white: #fffdfa;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(34, 48, 46, .06);
  --shadow-md: 0 14px 40px rgba(34, 48, 46, .10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 78px;
  --container: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sage-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(44, 82, 73, .22);
}
.btn--primary:hover { background: #23443d; }

.btn--ghost {
  background: transparent;
  color: var(--sage-dark);
  border-color: rgba(63, 110, 99, .35);
}
.btn--ghost:hover { background: rgba(63, 110, 99, .07); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(247, 244, 239, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  background: rgba(247, 244, 239, .95);
  border-bottom-color: rgba(34, 48, 46, .08);
  box-shadow: 0 6px 24px rgba(34, 48, 46, .05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand__role {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  position: relative;
  padding: 6px 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__list a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(34, 48, 46, .16);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 84px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -160px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(63, 110, 99, .16), rgba(63, 110, 99, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage);
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(1.95rem, 3.6vw, 2.95rem);
  max-width: 17ch;
  margin-bottom: 20px;
}
.hero__text {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero__note {
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.hero__media {
  position: relative;
  max-width: 400px;
  margin-left: auto;
  width: 100%;
}
.hero__frame {
  position: relative;
  border-radius: 190px 190px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sage-light), var(--cream-2));
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .5);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.hero__badge strong {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* ---------- Seções ---------- */
.section { padding: 92px 0; }
.section--tint {
  background: var(--cream-2);
  border-top: 1px solid rgba(34, 48, 46, .05);
  border-bottom: 1px solid rgba(34, 48, 46, .05);
}
.section__head {
  max-width: 620px;
  margin-bottom: 46px;
}
.section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 16px;
}
.section__lead {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.prose { color: var(--ink-soft); font-size: 1.02rem; }
.prose p { max-width: 56ch; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(63, 110, 99, .18);
  font-size: .86rem;
  color: var(--sage-dark);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 46px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(34, 48, 46, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sage-light);
  margin-bottom: 20px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__text { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background: var(--sage-dark);
  color: #fff;
}
.band__title { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.band__text { color: rgba(255, 255, 255, .78); font-size: .95rem; margin: 0; }
.band .btn--primary {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: none;
}
.band .btn--primary:hover { background: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(34, 48, 46, .07);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 500;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--sage);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--ink-soft);
  font-size: .95rem;
  padding: 0 0 18px;
  margin: 0;
  max-width: 58ch;
}

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 780px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 48, 46, .07);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 110, 99, .25);
}
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage-light);
  flex: 0 0 auto;
}
.contact__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__item--wa .contact__icon { background: rgba(37, 211, 102, .14); }
.contact__item--wa .contact__icon svg { fill: #128c4b; stroke: none; }
.contact__icon .fill { fill: var(--sage-dark); stroke: none; }

.contact__body { display: flex; flex-direction: column; line-height: 1.35; }
.contact__body strong { font-weight: 600; font-size: .98rem; }
.contact__body span { color: var(--ink-soft); font-size: .9rem; }
.contact__arrow {
  margin-left: auto;
  color: var(--sage);
  font-size: 1.1rem;
  transition: transform .2s ease;
}
.contact__item:hover .contact__arrow { transform: translateX(4px); }

.contact__note {
  margin-top: 28px;
  font-size: .86rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Página 404 ---------- */
.page-notfound {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-notfound .header { position: static; }
.page-notfound main { flex: 1 0 auto; display: flex; align-items: center; }

.notfound {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(63, 110, 99, .13), rgba(63, 110, 99, 0) 68%);
  pointer-events: none;
}
.notfound__inner {
  position: relative;
  max-width: 640px;
}
.notfound__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}
.notfound__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.notfound__actions { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(34, 48, 46, .08);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 35px; width: auto; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}
.footer__crm {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .88rem;
}
.footer__nav a:hover { color: var(--sage-dark); }
.footer__legal {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
  flex-basis: 100%;
  border-top: 1px solid rgba(34, 48, 46, .07);
  padding-top: 24px;
}

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 10px 28px rgba(18, 140, 75, .35);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 360px; margin: 0 auto; width: 100%; }
  .hero__badge { left: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; padding: 30px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 24px 26px;
    background: var(--cream);
    border-bottom: 1px solid rgba(34, 48, 46, .08);
    box-shadow: 0 18px 40px rgba(34, 48, 46, .12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(34, 48, 46, .07);
    font-size: 1rem;
  }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .container { padding: 0 20px; }
  .brand__role { font-size: .66rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__frame { border-radius: 140px 140px var(--radius-lg) var(--radius-lg); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
