/*
 * Identidade visual do ecossistema Dra. Giovanna Lima
 * Branco, dourado e mármore: premium, refinado e fácil de ler.
 */

:root {
  --white: #ffffff;
  --paper: #fcfbf8;
  --paper-2: #f6f2ea;
  --ink: #2b2520;
  --ink-2: #4f463f;
  --muted: #776c62;
  --line: #ece5d9;
  --line-2: #ddd2bf;
  --gold: #b8935a;
  --gold-deep: #8b6a36;
  --gold-light: #dcc9a3;
  --gold-tint: #faf5ec;
  --canvas: #f9f6f0;
  /* Botão principal: dourado acetinado, do tom claro (topo) ao mais profundo (base) */
  --cta-1: #b49159;
  --cta-2: #9f7c46;
  --cta-3: #926f3c;
  --cta-ink: #fffaf0;
  --shadow-1: 0 1px 1px rgba(43, 37, 32, 0.03), 0 2px 10px -4px rgba(43, 37, 32, 0.08);
  --shadow-2: 0 1px 2px rgba(43, 37, 32, 0.04), 0 16px 36px -20px rgba(43, 37, 32, 0.22);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Títulos em Instrument Serif: serifa condensada, de revista de moda.
     Por ser fina, entra maior, com um respiro entre as letras e um traço sutil
     que dá corpo sem perder a elegância. Textos em Manrope. */
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --display-w: 400;
  --display-scale: 1.14;
  --display-track: 0.01em;
  --display-stroke: 0.009em;
}

/* Outras fontes de título para comparar na prévia (painel de testes) */
html[data-fonte="noto"] {
  --display: "Noto Serif Display", Georgia, serif;
  --display-w: 500;
  --display-scale: 1;
  --display-track: -0.01em;
  --display-stroke: 0;
}

html[data-fonte="playfair"] {
  --display: "Playfair", Georgia, serif;
  --display-w: 500;
  --display-scale: 1.04;
  --display-track: -0.01em;
  --display-stroke: 0;
}

html[data-fonte="urbanist"] {
  --display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --display-w: 500;
  --display-scale: 0.95;
  --display-track: -0.01em;
  --display-stroke: 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fundo da página: mármore quase imperceptível, parado atrás do conteúdo, com
   uma luz clara no topo. Dá textura sem disputar atenção com o texto. */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: url("img/marmore.webp") center / cover;
  opacity: 0.3;
}

body::after {
  background: radial-gradient(130% 55% at 50% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 72%);
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

.display {
  font-family: var(--display);
  font-weight: var(--display-w);
  letter-spacing: var(--display-track);
  -webkit-text-stroke: var(--display-stroke) currentColor;
}

/* Números alinhados em valores e contadores (algumas fontes usam algarismos de texto por padrão) */
.price b,
.plan__tab small,
.top__count,
.scan__pct,
.insight__n,
.timeline li::before,
.metodo li::before,
.how__list li::before {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Mármore discreto: aplicado como camada de fundo do elemento. A base clara
   evita que os veios do fundo da página apareçam por baixo. */
.marble {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
}

.marble::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("img/marmore.webp") center / cover;
  opacity: var(--marble-op, 0.5);
  pointer-events: none;
}

/* Topo de página: o mármore se dissolve no fundo, sem faixa de corte */
.marble--fade {
  background-color: transparent;
}

.marble--fade::before {
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

/* Ícones de traço fino */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--fill {
  fill: currentColor;
  stroke: none;
}

/* Rótulo de seção: filete dourado + texto em frase normal */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
}

.kicker::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.kicker--center {
  justify-content: center;
}

.kicker--center::after {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* Monograma tipográfico. Trocar pelo logo oficial quando houver o arquivo. */
.monogram {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

/* Traço fino geométrico, como o "GL" do logo dela; não muda com a fonte dos títulos */
.monogram__mark {
  font-family: "Urbanist", var(--sans);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.monogram__mark i {
  font-style: normal;
}

.monogram__name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cta-1) 0%, var(--cta-2) 55%, var(--cta-3) 100%);
  color: var(--cta-ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(70, 45, 10, 0.25);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.35), inset 0 -1px 0 rgba(60, 40, 10, 0.12), 0 10px 22px -14px rgba(110, 80, 30, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

/* Brilho de folha de ouro que atravessa o botão no hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 225, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: scale(0.985);
}

/* Desabilitado: texto legível, para o rótulo explicar o que falta */
.btn[disabled] {
  background: var(--paper-2);
  color: var(--muted);
  text-shadow: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  filter: none;
  cursor: not-allowed;
}

.btn[disabled]::before {
  display: none;
}

.btn .ico {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  transition: transform 0.4s var(--ease);
}

.btn:hover .ico:last-child {
  transform: translateX(3px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: var(--white);
  color: var(--gold-deep);
  text-shadow: none;
  box-shadow: inset 0 0 0 1px var(--gold-light);
}

.btn--ghost:hover {
  background: var(--gold-tint);
  filter: none;
}

.btn--ghost::before {
  display: none;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14px;
  gap: 8px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 5px;
  cursor: pointer;
}

.link .ico {
  width: 17px;
  height: 17px;
}

/* Onda suave a partir do ponto tocado (posição definida em JS) */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple-host::after {
  content: "";
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(184, 147, 90, 0.18);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-host.ripple::after {
  animation: ripple 0.7s var(--ease-out);
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(50);
    opacity: 0;
  }
}

/* Revelação ao rolar (a classe "on" é aplicada em JS) */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.rv.on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 36px 24px 44px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Painel de testes: aparece só na prévia local (localhost) */
.devpanel {
  position: fixed;
  right: 8px;
  top: 45%;
  z-index: 90;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--ink);
}

.devpanel__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--gold-deep);
  cursor: pointer;
}

.devpanel__box {
  position: absolute;
  right: 0;
  top: 48px;
  width: 232px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.devpanel__box b {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.devpanel__row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.devpanel__row:last-child {
  margin-bottom: 0;
}

.devpanel__row[data-k="titulo"] {
  flex-wrap: wrap;
}

.devpanel__row[data-k="titulo"] button {
  flex-basis: 40%;
}

.devpanel__row button {
  flex: 1;
  padding: 7px 4px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.devpanel__row button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-weight: 600;
}
