/* =========================================================
   Silvia Psicóloga — estilos
   Paleta amarela, aconchegante e acolhedora
   ========================================================= */

:root {
  /* Cores */
  --mel: #F2B84B;          /* amarelo principal */
  --mel-escuro: #E0A12E;
  --manteiga: #FBE7B0;     /* amarelo claro */
  --creme: #FFF8EC;        /* fundo */
  --papel: #FFFDF8;        /* cards */
  --terracota: #D98E5F;    /* acento */
  --oliva: #7A8450;        /* detalhe natural */
  --cafe: #4A3B2C;         /* texto */
  --cafe-suave: #6E5C49;   /* texto secundário */
  --borda: #F0DFC0;

  /* Tipografia */
  --font-titulo: "Fraunces", Georgia, serif;
  --font-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Forma */
  --raio-sm: 12px;
  --raio: 24px;
  --raio-lg: 40px;
  --sombra: 0 10px 30px -12px rgba(150, 100, 30, .25);
  --sombra-lg: 0 24px 60px -24px rgba(150, 100, 30, .35);

  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-texto);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cafe);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--cafe);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.01em; line-height: 1.22; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--terracota); }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--cafe); color: var(--creme);
  padding: 10px 16px; border-radius: var(--raio-sm); z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oliva); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--mel);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-texto); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--mel); color: var(--cafe); box-shadow: var(--sombra); }
.btn--primary:hover { background: var(--mel-escuro); box-shadow: var(--sombra-lg); }
.btn--ghost { border-color: var(--cafe); color: var(--cafe); background: transparent; }
.btn--ghost:hover { background: var(--cafe); color: var(--creme); }
.btn--dark { background: var(--cafe); color: var(--creme); }
.btn--dark:hover { background: #2f251b; }
.btn--sm { padding: 10px 20px; font-size: .95rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 248, 236, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s, background-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(100, 70, 20, .35); background: rgba(255, 248, 236, .95); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__sun {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #FFD77A, var(--mel) 60%, var(--terracota));
  box-shadow: 0 0 0 6px rgba(242, 184, 75, .22);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-family: var(--font-titulo); font-size: 1.2rem; font-weight: 600; }
.logo__text small { font-size: .75rem; color: var(--cafe-suave); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a {
  text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding: 4px 0;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 100%;
  background: var(--mel); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--manteiga);
  border-radius: 50%; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--cafe); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px 24px 32px;
    background: var(--creme);
    box-shadow: 0 20px 30px -20px rgba(100, 70, 20, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--borda); }
  .nav ul a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: linear-gradient(180deg, var(--manteiga) 0%, var(--creme) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.hero__lead { font-size: 1.2rem; color: var(--cafe-suave); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: var(--cafe-suave); }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--oliva); opacity: .8;
}

.hero__photo { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.photo-frame {
  position: relative;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden; background: var(--mel);
  box-shadow: var(--sombra-lg);
  aspect-ratio: 44 / 54;
  outline: 10px solid rgba(255, 253, 248, .7);
  outline-offset: 0;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__note {
  position: absolute; left: -32px; bottom: 32px; max-width: 250px;
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--papel); border-radius: var(--raio);
  padding: 16px 18px; box-shadow: var(--sombra);
  font-family: var(--font-titulo); font-style: italic; font-size: 1rem; line-height: 1.4;
}
.hero__note p { margin: 0; }
.hero__note-icon { font-size: 1.4rem; font-style: normal; }

.blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.blob--1 {
  width: 520px; height: 520px; right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(242, 184, 75, .45), transparent 70%);
}
.blob--2 {
  width: 380px; height: 380px; left: -160px; bottom: -160px;
  background: radial-gradient(circle, rgba(217, 142, 95, .22), transparent 70%);
}

@media (max-width: 900px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__photo { max-width: 360px; }
  .hero__note { left: 0; bottom: -20px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .hero__photo { max-width: 300px; }
}

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

.section__header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__header .eyebrow { justify-content: center; }
.section__header p { color: var(--cafe-suave); }

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__visual { position: relative; display: flex; justify-content: center; }
.about__circle {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #FFE19A 0%, var(--mel) 55%, var(--terracota) 100%);
  box-shadow: var(--sombra-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.about__circle::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(122, 132, 80, .45);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__years {
  font-family: var(--font-titulo); font-size: 7.5rem; font-weight: 700; line-height: .9;
  color: var(--papel);
}
.about__years-label {
  display: block; text-align: center; font-weight: 700; color: var(--cafe); font-size: 1.05rem; line-height: 1.3;
}
.about__quote {
  font-family: var(--font-titulo); font-size: 14rem; line-height: 1;
  color: var(--papel); opacity: .85; transform: translateY(40px);
}
.about__facts { margin-top: 32px; display: grid; gap: 12px; }
.about__facts li {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline;
  padding: 14px 20px; background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio-sm);
}
.about__fact-label { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oliva); }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__circle { max-width: 260px; }
  .about__years {
  font-family: var(--font-titulo); font-size: 7.5rem; font-weight: 700; line-height: .9;
  color: var(--papel);
}
.about__years-label {
  display: block; text-align: center; font-weight: 700; color: var(--cafe); font-size: 1.05rem; line-height: 1.3;
}
.about__quote { font-size: 10rem; }
}
@media (max-width: 480px) {
  .about__facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Como posso ajudar ---------- */
.help { background: var(--papel); border-radius: var(--raio-lg) var(--raio-lg) 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 32px 28px; border-radius: var(--raio);
  background: var(--creme); border: 1px solid var(--borda);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); background: #FFF4DC; }
.card__icon {
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--manteiga); color: var(--terracota);
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--cafe-suave); margin: 0; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Como funciona ---------- */
.steps { background: linear-gradient(180deg, var(--papel), var(--manteiga)); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: passo; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracota) 0 8px, transparent 8px 16px);
  opacity: .5;
}
.timeline__item { position: relative; text-align: center; padding: 0 8px; }
.timeline__num {
  position: relative; z-index: 1;
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-titulo); font-size: 1.5rem; font-weight: 700;
  background: var(--mel); color: var(--cafe);
  box-shadow: 0 0 0 8px var(--creme), var(--sombra);
}
.timeline__item p { color: var(--cafe-suave); font-size: 1rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { text-align: left; padding-left: 80px; min-height: 58px; }
  .timeline__num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Contato ---------- */
.contact { background: var(--manteiga); padding-top: 32px; }
.contact__card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 64px; border-radius: var(--raio-lg);
  background: var(--mel);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .35), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(217, 142, 95, .35), transparent 50%);
  box-shadow: var(--sombra-lg);
}
.contact__card .eyebrow { color: var(--cafe); }
.contact__card .eyebrow::before { background: var(--cafe); }
.contact__text p { font-size: 1.1rem; }
.contact__text .btn { margin-top: 12px; }
.contact__list { display: grid; gap: 14px; }
.contact__list li {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 20px; border-radius: var(--raio);
  background: rgba(255, 253, 248, .75);
}
.contact__list div { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.contact__list span { color: var(--cafe-suave); font-size: .95rem; overflow-wrap: anywhere; }
.contact__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: var(--manteiga); color: var(--terracota);
}
.contact__icon svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .contact__card { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
}
@media (max-width: 480px) {
  .contact__card { padding: 36px 20px; border-radius: var(--raio); }
  .contact__text .btn { width: 100%; }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--cafe); color: #EADBC4; padding: 48px 0 104px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 32px; align-items: center; }
.footer__name { font-family: var(--font-titulo); font-size: 1.3rem; color: var(--mel); font-weight: 600; }
.footer p { margin: 4px 0 0; }
.footer__emergency { padding: 14px 18px; border-radius: var(--raio-sm); background: rgba(255, 255, 255, .06); }
.footer__emergency strong { color: var(--mel); }
.footer__copy { text-align: right; opacity: .75; }
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__copy { text-align: left; }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--oliva); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(60, 70, 30, .55);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Adições (feedback da cliente) ---------- */
.hero__name {
  font-family: var(--font-titulo); font-size: 1.2rem; font-weight: 600; margin-top: 8px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.hero__name span { font-family: var(--font-texto); font-size: .9rem; font-weight: 600; color: var(--cafe-suave); }
.hero__actions { margin-top: 28px; }

.logo__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(242, 184, 75, .35); flex-shrink: 0; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 64px; }
.info {
  padding: 20px 22px; border-radius: var(--raio);
  background: var(--papel); border: 1px solid var(--borda); box-shadow: var(--sombra);
  display: flex; flex-direction: column; gap: 4px;
}
.info__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oliva); }
.info strong { font-family: var(--font-titulo); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .info-grid { grid-template-columns: 1fr; } }

.contact__link { margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--terracota); text-decoration: none; }
.contact__link:hover { text-decoration: underline; }
.card h3 { font-size: 1.2rem; }

/* ---------- Fotos reais ---------- */
.about__visual { position: relative; }
.about__photo {
  width: 100%; max-width: 400px; aspect-ratio: 4 / 5;
  border-radius: var(--raio-lg); overflow: hidden; box-shadow: var(--sombra-lg);
  outline: 10px solid var(--manteiga);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about__badge {
  position: absolute; right: -8px; bottom: -28px;
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, #FFE19A 0%, var(--mel) 60%, var(--terracota) 100%);
  box-shadow: var(--sombra-lg);
}
.about__badge .about__years { font-size: 3.4rem; }
.about__badge .about__years-label { font-size: .8rem; }
@media (max-width: 900px) {
  .about__photo { max-width: 340px; margin: 0 auto; }
  .about__badge { right: calc(50% - 190px); width: 120px; height: 120px; }
  .about__badge .about__years { font-size: 2.6rem; }
}
@media (max-width: 480px) { .about__badge { right: 0; } }

/* ---------- Galeria do consultório ---------- */
.space { background: var(--manteiga); }
.gallery {
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--raio); box-shadow: var(--sombra); background: var(--papel);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { object-position: center 60%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 253, 248, .9); font-weight: 700; font-size: .85rem;
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__item--tall { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 10; }
  .gallery__item--wide { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall, .gallery__item--wide { grid-column: auto; }
}

.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }

/* ---------- Especializações ---------- */
.specs__title { font-size: 1.35rem; margin: 32px 0 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec {
  position: relative; padding: 16px 18px 16px 44px;
  background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio-sm);
  display: flex; flex-direction: column; gap: 2px; line-height: 1.45;
  transition: border-color .2s, box-shadow .2s;
}
.spec:hover { border-color: var(--mel); box-shadow: var(--sombra); }
.spec::before {
  content: ""; position: absolute; left: 18px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mel); box-shadow: 0 0 0 4px var(--manteiga);
}
.spec strong { font-family: var(--font-titulo); font-weight: 600; font-size: 1.05rem; }
.spec span { font-size: .92rem; color: var(--cafe-suave); }
.specs__crp { margin-top: 16px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--oliva); }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }
