/* ==========================================================================
   Dra. Mariana Rodrigues Santos: Landing page
   Estilos do site. Cores e medidas principais ficam nas variáveis de :root.
   ========================================================================== */

:root {
  /* Cores */
  --paper: #ffffff;
  --surface: #f6f6f5;
  --surface-2: #efefed;
  --border: #e2e1dd;
  --ink: #141414;
  --ink-soft: #59564f;
  --gold: #ad8636;        /* detalhes, linhas, ícones, botões */
  --gold-hover: #8a6928;  /* hover de botões */
  --gold-text: #825f20;   /* dourado para texto (contraste AA) */

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 2px; font-weight: 700; font-size: .9rem;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

.link-gold { color: var(--gold-text); font-weight: 700; }
.link-gold:hover { color: var(--ink); }
.link-touch { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 28px;
  border: 1px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { padding-block: 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.brand small {
  display: block; margin-top: 3px;
  font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .12em;
  color: var(--gold-text); text-transform: uppercase;
}
.nowrap { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { padding-block: 12px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.nav-links a:hover { color: var(--gold-text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { white-space: nowrap; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: transparent;
  cursor: pointer; align-items: center; justify-content: center;
}
.mobile-panel {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border); padding: 14px 0 22px;
  /* Em celular deitado o menu é mais alto que a tela: rola dentro do painel. */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel a:not(.btn) { padding: 10px 0; font-size: 1rem; font-weight: 600; }
.mobile-panel .btn { margin-top: 10px; }

@media (max-width: 1180px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: flex; }
}
/* Celular deitado: cabeçalho mais baixo para sobrar tela para o conteúdo. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
}

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; }
.h2 { margin-top: 14px; font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); line-height: 1.16; text-wrap: balance; }
.rule { width: 56px; height: 1px; background: var(--gold); margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { padding-block: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.h1 { margin-top: 16px; font-size: clamp(2.2rem, 3.6vw + 1rem, 3.6rem); line-height: 1.1; text-wrap: balance; }
.h1 em { font-style: italic; font-weight: 400; color: var(--gold-text); }
.hero-name { margin-top: 22px; font-size: 1.2rem; }
.lede { margin-top: 12px; max-width: 48ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-support { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }
/* Celulares pequenos: título e texto mais compactos para o botão aparecer na 1ª tela. */
@media (max-width: 380px) {
  .hero-grid { gap: 28px; padding-block: 32px 48px; }
  .h1 { font-size: 2rem; }
  .hero-name { margin-top: 16px; }
  .lede { font-size: 1rem; line-height: 1.6; }
  .cta-row { margin-top: 24px; }
}
@media (max-width: 340px) {
  .brand { padding-block: 0; font-size: 1rem; }
  .hero-grid { gap: 24px; padding-top: 20px; }
}

/* Moldura das fotos */
.frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.frame--tall { aspect-ratio: 3 / 4; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.frame-corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); pointer-events: none; }
.frame-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
/* Tablet em pé (coluna única): a foto não passa de 480px, senão ocupa mais de uma tela. */
@media (max-width: 900px) { .hero .frame { max-width: 480px; margin-inline: auto; } }
@media (max-width: 860px) {
  .sobre-grid .frame, .filo-img { width: 100%; max-width: 480px; margin-inline: auto; }
}

/* ---------- Procedimentos ---------- */
.proc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 48px 0 0; padding: 0; list-style: none;
  background: var(--border); border: 1px solid var(--border);
}
@media (max-width: 900px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-cell { display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 34px 28px; background: var(--paper); }
.proc-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold-text); }
.proc-cell h3 { font-size: 1.06rem; }
.proc-cell p { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); }
.proc-cta { margin-top: auto; margin-bottom: -14px; padding-block: 14px; font-size: .8rem; letter-spacing: .02em; }

/* ---------- Sobre ---------- */
.sobre-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .sobre-grid { grid-template-columns: 1fr; } }
.body-copy { max-width: 60ch; font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); }
.body-copy + .body-copy { margin-top: 18px; }
.body-copy strong { color: var(--ink); font-weight: 700; }
.sobre-text { margin-top: 26px; }
.credentials { margin-top: 26px; font-size: .82rem; letter-spacing: .03em; line-height: 1.9; color: var(--ink-soft); }
.credentials b { color: var(--ink); }

/* ---------- Diferenciais ---------- */
.dif-list { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.dif-row {
  display: grid; grid-template-columns: 64px 1fr 2fr; gap: 28px; align-items: baseline;
  padding-block: 26px; border-bottom: 1px solid var(--border);
}
.dif-row:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .dif-row { grid-template-columns: 40px 1fr; }
  .dif-row .dif-desc { grid-column: 2; margin-top: 6px; }
}
.dif-index { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-text); }
.dif-title { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.dif-desc { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Filosofia ---------- */
.filosofia { background: var(--ink); color: var(--paper); }
.filosofia .eyebrow { color: var(--gold); }
.filosofia .h2 { max-width: 820px; color: var(--paper); }
.filosofia .body-copy { max-width: 64ch; margin-top: 26px; color: #c9c6bf; }
.filo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .filo-grid { grid-template-columns: 1fr; gap: 40px; } }
.filo-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #3a3a3a; }
.filo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- Depoimentos ---------- */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }
.rating-line strong { font-size: 1.05rem; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: .95rem; }
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .depo-grid { grid-template-columns: 1fr; } }
.depo-card { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 30px 26px; border: 1px solid var(--border); background: var(--paper); }
.depo-quote { margin: 0; flex-grow: 1; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.65; }
.depo-author { display: flex; align-items: center; gap: 12px; }
.depo-avatar {
  display: flex; flex: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-text);
}
.depo-name { font-size: .86rem; font-weight: 700; }
.depo-src { margin-top: 2px; font-size: .76rem; color: var(--ink-soft); }

/* ---------- Dúvidas ---------- */
.faq-list { max-width: 760px; margin-top: 44px; }
details { border-bottom: 1px solid var(--border); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 20px; min-height: 44px;
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1rem;
}
details[open] summary { padding-bottom: 12px; }
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; width: 18px; height: 18px; color: var(--gold); transition: transform .2s ease; }
details[open] summary .chev { transform: rotate(45deg); }
details p { max-width: 64ch; margin: 0 0 22px; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Contato / CTA final ---------- */
.cta-final { background: var(--surface); border-top: 1px solid var(--border); text-align: center; }
.cta-final .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-final .h2 { max-width: 640px; margin-top: 0; }
.cta-final .hero-support { margin-top: 0; line-height: 1.7; }
.cta-final .hero-support a:hover { color: var(--gold-text); }

/* ---------- Formulário de contato ---------- */
.lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; gap: 36px; } }
.lead-intro .body-copy { margin-top: 22px; }
.lead-note { max-width: 46ch; margin-top: 22px; font-size: .85rem; line-height: 1.6; color: var(--ink-soft); }

.lead-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); background: var(--surface); }
.lead-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: .86rem; font-weight: 700; }
.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #8f8b83; border-radius: 2px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6b675f; opacity: 1; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #a3261a; }
.field-hint { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.field-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.field-count { flex: none; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.field-error { font-size: .84rem; font-weight: 600; line-height: 1.4; color: #a3261a; }
.field-error[hidden] { display: none; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.field-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field-check label { flex: 1; min-width: 0; font-size: .86rem; font-weight: 400; line-height: 1.6; color: var(--ink-soft); cursor: pointer; }
.field-check label a { color: var(--gold-text); font-weight: 700; text-decoration: underline; }
.field-check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; }
.lead-form .btn:disabled { opacity: 1; background: var(--ink-soft); border-color: var(--ink-soft); cursor: wait; }
.form-status { font-size: .9rem; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3261a; font-weight: 600; }
.form-status.is-success { color: var(--ink); font-weight: 600; }
.lead-done[hidden] { display: none; }
.lead-done:focus { outline: none; }
.lead-done h3 { font-size: 1.5rem; }
.lead-done p { margin-top: 12px; max-width: 46ch; line-height: 1.7; color: var(--ink-soft); }
.lead-done .btn { margin-top: 24px; }

/* ---------- Página de privacidade ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-top: 14px; font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.12; }
.legal h2 { margin-top: 44px; font-size: 1.35rem; line-height: 1.25; }
.legal p, .legal li { margin-top: 14px; font-size: 1rem; line-height: 1.8; color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--gold-text); font-weight: 700; text-decoration: underline; }
@media (max-width: 640px) { .btn-back { display: none; } }
.legal-updated { margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Rodapé ---------- */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-footer { padding-block: 36px; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 640px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 70;
  right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%;
  background: var(--ink);
  transition: background-color .2s ease, opacity .25s ease, visibility .25s ease;
}
.wa-float:hover { background: var(--gold-hover); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Com o menu aberto, o botão flutuante não cobre os itens. */
body:has(.burger[aria-expanded="true"]) .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) { .wa-float { right: 16px; } }

/* ---------- Animação de entrada (sutil, só ao carregar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fade-up .7s ease both; }
  .reveal-2 { animation-delay: .1s; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
