/* =========================================================
   Fernanda Schuller · Psicóloga
   Paleta e tipografia herdadas da página "em construção"
   ========================================================= */

:root {
  --ink: #18232b;
  --muted: #67747a;
  --paper: #f8f5ef;
  --card: rgba(255, 255, 255, .68);
  --accent: #e47b61;
  --accent-dark: #ba5947;
  --brown: #905e47;
  --brown-dark: #7a4c38;
  --line: rgba(24, 35, 43, .12);

  --sand: #e9dcd0;
  --clay: #edc4b0;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius-lg: 1.75rem;
  --radius-md: 1.25rem;
  --shadow-soft: 0 24px 50px rgba(54, 48, 41, .11);
  --shadow-lift: 0 28px 70px rgba(70, 57, 45, .16);
  --header-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 800; }

::selection {
  color: #fff;
  background: var(--accent);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1.15rem;
  border-radius: 0 0 .9rem .9rem;
  color: #fff;
  background: var(--ink);
  font-size: .85rem;
  font-weight: 700;
}

.skip-link:focus-visible { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografia utilitária ---------- */

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.section__title {
  color: var(--brown);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  letter-spacing: -.04em;
}

.section__intro {
  max-width: 46ch;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
}

em { color: var(--accent); font-style: italic; }

/* ---------- Botões e links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.button--solid {
  color: #fff;
  background: var(--brown);
  box-shadow: 0 12px 28px rgba(144, 94, 71, .22);
}

.button--solid:hover {
  background: var(--brown-dark);
  box-shadow: 0 16px 34px rgba(122, 76, 56, .3);
  transform: translateY(-2px);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, .55);
}

.button--ghost:hover {
  color: var(--accent-dark);
  border-color: rgba(186, 89, 71, .4);
  background: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: .88rem;
  font-weight: 700;
  transition: gap .25s ease, border-color .25s ease;
}

.link-arrow:hover {
  gap: .85rem;
  border-color: var(--accent-dark);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(248, 245, 239, .82);
  box-shadow: 0 10px 30px rgba(54, 48, 41, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Com o menu aberto o fundo é sólido: backdrop-filter no header viraria
   containing block do painel fixo e vazaria o conteúdo por baixo. */
.site-header.has-open-nav {
  border-bottom-color: transparent;
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: block; line-height: 0; }

.brand img {
  width: clamp(215px, 27vw, 330px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.nav__link {
  position: relative;
  padding: .35rem 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.nav__link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transition: width .3s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__link.is-active {
  color: var(--ink);
}

.nav__link.is-active::after { width: 100%; }

.nav__cta { padding: .8rem 1.25rem; font-size: .8rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}

.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: clamp(1rem, 2.5vw, 2rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__statement {
  max-width: 20ch;
  color: var(--brown);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.36;
}

/* Retratos */

.hero__figure {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow-lift);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Seções ---------- */

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

.section__head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* Sobre */

.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.about__figure {
  position: relative;
  display: grid;
  justify-items: center;
}

.about__lead {
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--brown-dark);
  line-height: 1.35;
}

.about__content p {
  color: var(--muted);
  font-size: 1.02rem;
}

.about__content strong { color: var(--ink); }

/* Etapas */

.section--steps { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  counter-reset: step;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.step-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--clay));
  transform: scaleX(0);
  transform-origin: left;
  content: "";
  transition: transform .4s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.step-card:hover::before { transform: scaleX(1); }

.step-card__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}

.step-card__title { color: var(--brown); font-size: 1.6rem; }

.step-card p {
  color: var(--muted);
  font-size: .96rem;
}

/* Modalidades */

.section--about,
.section--modes {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.mode-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mode-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(228, 123, 97, .13);
}

.mode-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-card__title { color: var(--brown); font-size: 1.5rem; }

.mode-card p {
  color: var(--muted);
  font-size: .96rem;
}

/* Especialidades */

.specialties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}

.tag-list li {
  padding: .75rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: .88rem;
  font-weight: 600;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}

.tag-list li:hover {
  color: var(--accent-dark);
  border-color: rgba(186, 89, 71, .35);
  background: #fff;
  transform: translateY(-2px);
}

.tag-list .is-muted {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
  font-style: italic;
}

/* Formação */

.specialties__formation {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.formation__heading { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }

.formation__subtitle {
  margin-top: 2rem;
  color: var(--brown);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.formation-list {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.formation-list li {
  position: relative;
  padding-left: 1.5rem;
}

.formation-list li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.formation-list strong {
  display: block;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.5;
}

.formation-list span {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

/* Contato */

.section--contact { padding-bottom: clamp(4rem, 9vw, 7rem); }

.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-list {
  display: grid;
  gap: .75rem;
  margin-top: 2.5rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .6);
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.contact-list a:hover {
  border-color: rgba(186, 89, 71, .35);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.contact-list__icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(228, 123, 97, .13);
}

.contact-list__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list__body {
  display: grid;
  gap: .1rem;
  min-width: 0;
}

.contact-list__body strong {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.contact-list__body span {
  overflow: hidden;
  font-size: .96rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-list__arrow {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  color: var(--muted);
}

.contact__figure {
  position: relative;
  display: grid;
  justify-items: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.brand--footer img { width: clamp(200px, 24vw, 290px); }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.35rem;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  transition: color .25s ease;
}

.site-footer__nav a:hover { color: var(--accent-dark); }

.site-footer__legal {
  width: 100%;
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .73rem;
  text-align: center;
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  z-index: 45;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brown);
  box-shadow: 0 16px 34px rgba(144, 94, 71, .32);
  transition: background .25s ease, transform .25s ease;
}

.whatsapp-float:hover {
  background: var(--brown-dark);
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1080px) {
  .nav__list { gap: 1rem; }
  .nav__link { font-size: .72rem; letter-spacing: .06em; }
}

@media (max-width: 940px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    z-index: 40;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.75rem var(--gutter) 2.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px rgba(54, 48, 41, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    display: grid;
    gap: .25rem;
  }

  .nav__list li { border-bottom: 1px solid var(--line); }

  .nav__link {
    display: block;
    padding: .95rem 0;
    font-size: .82rem;
    letter-spacing: .1em;
  }

  .nav__link::after { display: none; }

  .nav__cta { justify-content: center; width: 100%; }

  .hero__inner,
  .about,
  .specialties,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__inner { gap: clamp(2.5rem, 8vw, 3.5rem); }

  .hero__content { order: 1; }
  .hero__figure { order: 2; }

  .about__figure { order: 2; }
  .about__content { order: 1; }

  .contact__figure { order: 2; }

  .hero__statement { max-width: 24ch; }

  .steps,
  .modes {
    grid-template-columns: 1fr 1fr;
  }

  .about__figure,
  .contact__figure {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 700px) {
  body { line-height: 1.7; }

  .steps,
  .modes {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 1.75rem; }

  .hero__statement {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.2vw, 2rem);
    line-height: 1.4;
  }

  .portrait { width: min(100%, 340px); }

  .contact-list a { padding: .95rem 1.05rem; gap: .85rem; }
  .contact-list__body span { font-size: .88rem; }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer__legal { text-align: left; }

  .whatsapp-float {
    width: 3.4rem;
    height: 3.4rem;
  }
}

@media (max-width: 400px) {
  .tag-list { gap: .65rem; }
  .tag-list li { font-size: .82rem; padding: .6rem 1.05rem; }
  .contact-list__body span { font-size: .82rem; }
}

/* ---------- Preferências do usuário ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .whatsapp-float { display: none; }

  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
