/* ---------------------------------------------------
   Thamiris Del Poente — Neuropsicopedagoga
   Tokens
--------------------------------------------------- */
:root {
  --sand: #FBF8F2;
  --sand-deep: #F4EEE1;
  --surface: #FFFFFF;
  --ink: #2F2D26;
  --ink-soft: #5F5C50;
  --ink-faint: #8D8974;
  --line: #EBE3D0;
  --sage: #5D7F89;
  --sage-deep: #3F5E68;
  --sage-tint: #E7EEEE;
  --gold: #CC9A47;
  --gold-deep: #B07E30;
  --gold-tint: #F5E9D3;
  --rose: #D98FA0;
  --rose-tint: #F8E7EB;
  --shadow: 0 24px 48px -26px rgba(196, 148, 88, 0.22);
  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1120px;
}

/* Identidade sempre clara e acolhedora — não muda com o tema escuro do sistema. */

/* ---------------------------------------------------
   Reset
--------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--sand);
  padding: 0.8em 1.2em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9em;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }

.btn-small { padding: 0.6em 1.2em; font-size: 0.88rem; }
.btn-large { padding: 1.1em 2.2em; font-size: 1.05rem; }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--sage-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero { padding: 5.5rem 0 5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 { margin-bottom: 0.6em; }
.lede { font-size: 1.12rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
}

.hero-figure { position: relative; }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--gold) 32%, transparent), transparent 60%),
    radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--rose) 34%, transparent), transparent 60%);
  filter: blur(6px);
  z-index: 0;
}

.figure-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.figure-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--sage-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.figure-avatar img { width: 100%; height: 100%; object-fit: contain; }

.figure-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.2em;
  color: var(--ink);
}
.figure-role {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 1.4em;
}

.mark-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}
.mark-divider::before,
.mark-divider::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line);
}
.mark-divider span { color: var(--rose); font-size: 0.65rem; line-height: 1; }

.mark-divider--left { justify-content: flex-start; margin: 0.7rem 0 0.9rem; }
.mark-divider--left::before { display: none; }
.mark-divider--left::after { width: 34px; }

.figure-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}
.figure-tags li {
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding-left: 1.1em;
  position: relative;
}
.figure-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.figure-tags li:nth-child(2n)::before { background: var(--rose); }

/* ---------------------------------------------------
   Sections (generic)
--------------------------------------------------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--sand-deep); }

.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-sub { font-size: 1.02rem; }

/* ---------------------------------------------------
   About
--------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.media-frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--sage-tint), var(--rose-tint));
  border-radius: 46% 54% 57% 43% / 55% 46% 54% 45%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.credentials { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.credentials li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.3em;
  position: relative;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 1px;
  background: var(--sage);
}

/* ---------------------------------------------------
   Services cards
--------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.section-alt .card { background: var(--surface); }
.card-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-tint);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--sage-deep);
  margin-bottom: 1.1em;
}
.card:nth-child(3n+2) .card-index { background: var(--rose-tint); color: var(--rose); }
.card:nth-child(3n) .card-index { background: color-mix(in srgb, var(--gold) 22%, var(--sand-deep)); color: var(--gold); }
.card p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------------------------------------------------
   Process
--------------------------------------------------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 70ch;
}
.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-deep);
}
.process-item:nth-child(2n) .process-number { background: var(--rose-tint); color: var(--rose); }
.process-item h3 { margin-bottom: 0.3em; }
.process-item p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------------------------------------------------
   Diferenciais
--------------------------------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}
.diff-copy h2 { max-width: 16ch; }
.diff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.4rem;
}
.diff-list h3 { margin-bottom: 0.35em; }
.diff-list p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------------------------------------------------
   FAQ
--------------------------------------------------- */
.faq-list {
  max-width: 74ch;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1rem;
  margin: 0 -1rem;
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  transition: background 0.15s ease;
}
.faq-question:hover { background: var(--sage-tint); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--sage-deep);
  top: 50%;
  left: 50%;
  transition: transform 0.2s ease;
}
.faq-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 1.4rem; margin: 0; font-size: 0.95rem; max-width: 68ch; }

/* ---------------------------------------------------
   CTA final
--------------------------------------------------- */
.cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--rose-tint) 0%, var(--gold-tint) 55%, var(--sand) 100%);
  color: var(--ink);
  overflow: hidden;
}
.cta-final-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 640px;
}
.cta-final h2 { color: var(--ink); }
.cta-final p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.cta-final .btn-primary { background: var(--sage-deep); color: var(--sand); }
.cta-final .btn-primary:hover { background: var(--sage); }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--sand-deep);
  border-top: 1px solid var(--line);
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-about p { font-size: 0.92rem; margin-top: 1rem; margin-bottom: 0.3rem; }
.footer-location { color: var(--ink-faint) !important; font-size: 0.85rem !important; }

.footer-whatsapp {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.footer-whatsapp h3 { margin-bottom: 0.5em; }
.footer-whatsapp p { font-size: 0.92rem; margin-bottom: 1.4em; }

.footer-contact ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact a { text-decoration: none; font-size: 0.94rem; color: var(--ink-soft); transition: color 0.15s ease; }
.footer-contact a:hover { color: var(--sage-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }

/* ---------------------------------------------------
   WhatsApp floating button
--------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
  transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); background: var(--gold-deep); }
.whatsapp-float svg { width: 26px; height: 26px; fill: var(--ink); }

/* ---------------------------------------------------
   Scroll reveal
--------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-figure { max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .media-frame { max-width: 320px; aspect-ratio: 1; }
  .diff-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 620px) {
  .section { padding: 4rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .diff-list { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 40px 1fr; }
  .hero-actions .btn { width: 100%; }
}
