/* ============================================================
   Dra. Rhayany Barbosa | Pediatria e Cardiopediatria
   Landing one-page. Base estrutural dos sites Aneline/Paola.
   Paleta do manual: bege #E2D6C0, verde sálvia #8AA788,
   marrom #8B705F. Assinatura: monograma RB em coração
   (pediatria + cardio) como selo e marca-d'água; formas de
   nuvem suaves ecoando a luminária do consultório.
   Tipografia: Fraunces (títulos) + Nunito Sans (texto).
   ============================================================ */

:root {
  --cream-50: #F8F4EB;      /* fundo de página, bege clareado */
  --sand-200: #E2D6C0;      /* bege oficial */
  --sage-300: #8AA788;      /* verde sálvia oficial */
  --sage-600: #587956;      /* sálvia escurecido, botões */
  --sage-700: #40593F;      /* títulos e texto AA sobre creme */
  --brown-500: #8B705F;     /* marrom oficial */
  --brown-700: #5C4839;     /* texto de apoio AA */
  --ink-800: #3A342C;       /* texto corrido */

  --wpp-green: #25D366;
  --wpp-green-deep: #0F7A3D;

  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 0.25s;
  --dur-base: 0.6s;
  --dur-slow: 1.1s;

  --radius-card: 20px;
  --maxw: 1160px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-800);
  background: var(--cream-50);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-700); text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; }

body { opacity: 0; transition: opacity var(--dur-base) var(--ease); }
body.is-loaded { opacity: 1; }

::selection { background: var(--sand-200); color: var(--ink-800); }

/* ---------- Tipografia ---------- */
h1, h2, h3, .serif {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--sage-700);
  line-height: 1.18;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
h1 em, h2 em { font-style: italic; color: var(--brown-500); }

.label {
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brown-700);
  display: inline-block;
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; }
.muted { color: #6E6357; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; position: relative; overflow: hidden; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.grid-2 { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Formas: nuvens e círculos ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob--sand { background: var(--sand-200); opacity: 0.45; }
.blob--cream { background: #EFE8D8; }
.blob--sage { background: var(--sage-300); opacity: 0.16; }
.blob--cloud { border-radius: 46% 54% 52% 48% / 60% 58% 42% 40%; background: #fff; opacity: 0.6; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--wpp { background: var(--wpp-green-deep); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28); }
.btn--wpp:hover { background: #0C6A34; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.38); }
.btn--sage { background: var(--sage-600); color: #fff; box-shadow: 0 8px 20px rgba(88, 121, 86, 0.25); }
.btn--sage:hover { background: var(--sage-700); }
.btn--ghost { background: transparent; color: var(--sage-700); box-shadow: inset 0 0 0 1.5px var(--sage-600); }
.btn--ghost:hover { background: rgba(138, 167, 136, 0.1); }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 235, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(58, 52, 44, 0.08); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sage-700); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.brand img { width: 190px; height: auto; }

.nav-main { margin-left: auto; }
.nav-main > ul { display: flex; align-items: center; gap: 0.1rem; }
.nav-main a.nav-link {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-800);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-main a.nav-link:hover { background: rgba(138, 167, 136, 0.14); }
.nav-main a.nav-link.is-active { color: var(--sage-700); background: rgba(138, 167, 136, 0.16); }
.nav-main a:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 2px; }

.header-cta { display: none; }
@media (min-width: 1200px) { .header-cta { display: inline-flex; } }
.nav-mobile-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--sage-700); border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 2px; }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  /* backdrop-filter no header cria containing block; painel absoluto ao header sticky */
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--cream-50);
    padding: 2rem 1.5rem 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    margin-left: 0;
  }
  body.nav-open .nav-main { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-main > ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-main a.nav-link { width: 100%; font-size: 1.1rem; padding: 0.9rem 1rem; }
  .nav-mobile-cta { display: inline-flex; margin-top: 1.5rem; width: 100%; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.6rem; font-weight: 700; font-size: 0.95rem; color: var(--sage-700); }
.hero-checks span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-checks svg { width: 18px; height: 18px; color: var(--sage-600); flex: none; }
.hero-credential { margin-top: 1.2rem; font-size: 0.88rem; color: var(--brown-700); font-weight: 700; letter-spacing: 0.02em; }
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-note { margin-top: 0.9rem; font-size: 0.88rem; color: #6E6357; }

/* Moldura de foto: cantos bem arredondados + sombra sálvia deslocada */
.photo-card { position: relative; max-width: 460px; margin-inline: auto; }
.card-shadow {
  position: absolute;
  inset: 8% -14px -14px 8%;
  background: var(--sage-300);
  opacity: 0.9;
  border-radius: calc(var(--radius-card) + 8px);
  z-index: 0;
  will-change: transform;
}
.photo-frame {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-card) + 8px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(58, 52, 44, 0.16);
  background: #fff;
}
.photo { width: 100%; height: auto; }

.selo-overlay {
  position: absolute;
  z-index: 2;
  width: clamp(84px, 10vw, 120px);
  height: auto;
  right: -22px;
  bottom: -20px;
  filter: drop-shadow(0 10px 24px rgba(58, 52, 44, 0.22));
}
.selo-pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.selo-watermark {
  position: absolute;
  width: 520px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ---------- Cards de serviços ---------- */
.cards-3 { display: grid; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  /* card solitário na última linha fica centralizado */
  .cards-3 > .card:last-child:nth-child(3n + 1) { grid-column: 2; }
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 10px 34px rgba(58, 52, 44, 0.06);
  border-top: 3px solid var(--sage-300);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(58, 52, 44, 0.11); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-50);
  display: grid;
  place-items: center;
  color: var(--sage-600);
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.18rem; }
.card p { flex: 1; font-size: 0.97rem; }

/* ---------- Info blocks (diferenciais) ---------- */
.info-blocks { display: grid; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 700px) { .info-blocks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .info-blocks--3col { grid-template-columns: repeat(3, 1fr); } }
.info-block {
  background: var(--cream-50);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem;
  border-left: 3px solid var(--sand-200);
}
.info-block:hover { border-left-color: var(--sage-300); }
.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--sage-600);
  margin-bottom: 0.9rem;
  box-shadow: 0 6px 16px rgba(58, 52, 44, 0.08);
}
.mini-icon svg { width: 22px; height: 22px; }
.info-block h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.info-block p { font-size: 0.96rem; }

/* ---------- Timeline de fases ---------- */
.timeline { margin-top: 3rem; display: grid; gap: 1.2rem; position: relative; }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.phase {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.8rem 1.4rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(58, 52, 44, 0.06);
  border-top: 3px solid var(--sand-200);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.phase:hover { border-top-color: var(--sage-300); transform: translateY(-4px); }
.phase-age {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-600);
  background: rgba(138, 167, 136, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.7rem;
}
.phase h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.phase p { font-size: 0.92rem; }

/* ---------- Lista com corações ---------- */
.dot-list { display: grid; gap: 0.85rem; }
.dot-list li { padding-left: 1.7rem; position: relative; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--sage-300);
  clip-path: path("M6 11 C2 8 0 5.6 0 3.6 C0 1.6 1.4 0 3.2 0 C4.3 0 5.4 0.6 6 1.5 C6.6 0.6 7.7 0 8.8 0 C10.6 0 12 1.6 12 3.6 C12 5.6 10 8 6 11 Z");
}

/* ---------- Steps (como funciona) ---------- */
.steps { display: grid; gap: 1.4rem; margin-top: 3rem; counter-reset: passo; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.9rem 1.5rem 1.7rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(58, 52, 44, 0.06);
}
.step::before {
  counter-increment: passo;
  content: counter(passo, decimal-leading-zero);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2rem;
  color: var(--sand-200);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 3rem auto 0; display: grid; gap: 0.9rem; }
.faq details {
  background: var(--cream-50);
  border: 1px solid #EAE1CF;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.faq details[open] { box-shadow: 0 12px 30px rgba(58, 52, 44, 0.08); background: #fff; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--sage-700);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--sage-600);
  transition: transform var(--dur-fast) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--sage-600); outline-offset: -3px; }
.faq details p { padding: 0 1.4rem 1.3rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--sage-700), var(--sage-600));
  border-radius: calc(var(--radius-card) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--sand-200); }
.cta-band p { max-width: 620px; margin: 1rem auto 2rem; color: rgba(255, 255, 255, 0.94); }
.band-selo { position: absolute; width: 230px; height: auto; right: -50px; bottom: -60px; opacity: 0.15; pointer-events: none; }
.cta-band .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Quote / identificação ---------- */
.quote-band { text-align: center; position: relative; }
.quote-band blockquote {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  color: var(--sage-700);
  line-height: 1.45;
  max-width: 800px;
  margin-inline: auto;
}
.quote-band blockquote em { font-style: italic; color: var(--brown-500); }

.perguntas { display: grid; gap: 0.7rem; margin: 1.8rem 0; }
.pergunta {
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  font-style: italic;
  color: var(--brown-700);
  font-size: 0.98rem;
  box-shadow: 0 6px 18px rgba(58, 52, 44, 0.05);
  border-left: 3px solid var(--sage-300);
}

/* ---------- Endereço / mapa ---------- */
.address-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 12px 34px rgba(58, 52, 44, 0.08);
  border-left: 3px solid var(--sage-300);
}
.map-placeholder { margin-top: 2.5rem; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 14px 40px rgba(58, 52, 44, 0.1); }
.map-placeholder iframe { display: block; width: 100%; height: 380px; border: 0; }

.gallery-2 { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .gallery-2 { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.gallery-2 figure { border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 12px 34px rgba(58, 52, 44, 0.1); margin: 0; }
.gallery-2 img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Depoimentos (estrutura pronta) ---------- */
.testimonials { display: grid; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 10px 30px rgba(58, 52, 44, 0.06);
  font-size: 0.97rem;
}
.testimonial footer { margin-top: 1rem; font-weight: 700; color: var(--sage-700); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-700); color: #EEF0E8; padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem; margin-top: clamp(2rem, 5vw, 3rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.f-logo img { width: 210px; height: auto; }
.f-crm { margin-top: 1.2rem; font-size: 0.92rem; line-height: 1.8; color: #DDE3D4; }
.f-social { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #F2F4EC; transition: background var(--dur-fast) var(--ease); }
.f-social a:hover { background: var(--brown-500); }
.f-social svg { width: 20px; height: 20px; }
.site-footer h4 { font-family: var(--font-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-200); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer ul a, .site-footer ul li { color: #EEF0E8; font-size: 0.95rem; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.5rem; display: grid; gap: 0.5rem; font-size: 0.85rem; color: #D3DACB; }
.footer-disclaimer { font-size: 0.8rem; }

/* ---------- WhatsApp flutuante ---------- */
.wpp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wpp-green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(15, 122, 61, 0.4);
  transition: transform var(--dur-fast) var(--ease);
}
.wpp-float:hover { transform: scale(1.08); }
.wpp-float:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 3px; }
.wpp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.img-reveal { opacity: 0; transform: scale(1.04); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.img-reveal.is-visible { opacity: 1; transform: scale(1); }

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