/* =========================================================
   LP Facetas em Resina · JR Odonto
   Tokens do Manual de Marca (Studio Amarali, 2021)
   ========================================================= */

@font-face { font-family: "Abenda"; src: url("assets/fonts/abenda.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("assets/fonts/metropolis-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("assets/fonts/metropolis-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("assets/fonts/metropolis-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("assets/fonts/metropolis-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Marca (oficiais) */
  --plum: #704159;        /* primária. 7.7:1 sobre --paper */
  --gray: #7C7D7C;        /* só texto grande ou secundário (3.9:1) */
  --line: #B3B2B2;        /* só linhas e bordas, nunca texto */
  --paper: #F9F9F9;

  /* Derivadas */
  --plum-700: #5A3447;
  --plum-050: #F3EEF1;
  --ink: #2A1F26;         /* texto. 15:1 sobre --paper */
  --stage: #1F161C;       /* fundo do palco */
  --ink-soft: #5B5158;

  --font-display: "Abenda", "Playfair Display", Georgia, serif;
  --font-body: "Metropolis", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Posição da boca na imagem (ajustar quando as imagens finais chegarem) */
  --mouth-x: 52%;
  --mouth-y: 61%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.stage :focus-visible, .final :focus-visible, .topbar :focus-visible { outline-color: var(--paper); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(249, 249, 249, .72); margin-bottom: 14px;
}
.eyebrow--plum { color: var(--plum); }
h1, .h2 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 6vw, 72px); }
.h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 28px; color: var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--font-body); letter-spacing: .01em; text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--light { background: var(--paper); color: var(--plum); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn--light:hover { background: #fff; }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--plum-700); }
.btn--ghost { color: var(--paper); border: 1px solid rgba(249,249,249,.4); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 17px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(31,22,28,.75), rgba(31,22,28,0));
}
.topbar { transition: background-color .3s var(--ease); }
.topbar.is-scrolled { background: rgba(31,22,28,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.topbar__logo img { width: auto; height: 26px; }
@media (max-width: 599px) { .topbar .btn { display: none; } .topbar__logo img { height: 22px; } }

/* =========================================================
   PALCO
   Sem a classe .motion (sem JS, GSAP falhou ou reduced-motion):
   layout estático com as 4 imagens em grade e os passos em lista.
   ========================================================= */
.stage { background: var(--stage); color: var(--paper); }
.stage__pin { position: relative; padding: 110px var(--gutter) 64px; display: flex; flex-direction: column; }
.stage__intro { order: -1; }
.motion .stage__pin { display: block; }
.stage__intro { max-width: 560px; margin-bottom: 40px; }
.stage__intro h1 { margin-bottom: 18px; }
.stage__intro .lead { color: rgba(249,249,249,.82); margin-bottom: 28px; }
.stage__hint { display: none; }

.stage__media { margin-bottom: 40px; }
.stage__zoom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 760px; }
.frame { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #2b2027; }
.stage__sweep, .stage__vignette, .stage__progress { display: none; }

.stage__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 760px; }
.step__n { display: block; font-size: 12px; letter-spacing: .2em; color: rgba(249,249,249,.55); margin-bottom: 6px; }
.step__t { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.stage__steps p { color: rgba(249,249,249,.8); margin-bottom: 0; }
.stage__steps .btn { margin-top: 20px; }
.stage__note { font-size: 12px; color: rgba(249,249,249,.55); margin: 32px 0 0; }

/* ---------- Modo animado ---------- */
.motion .stage__pin {
  height: 100vh; height: 100svh; padding: 0; overflow: hidden;
}
.motion .stage__media { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; }
.motion .stage__zoom {
  position: relative; display: block; max-width: none;
  height: 100%; width: 100%;
  transform-origin: var(--mouth-x) var(--mouth-y);
  will-change: transform;
}
.motion .frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: 50% 35%;
  opacity: 0;
}
.motion .frame[data-frame="1"] { opacity: 1; }
.motion .frame--wipe { opacity: 1; clip-path: inset(0 100% 0 0); }

.motion .stage__sweep {
  display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 18%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,250,245,.55) 50%, rgba(255,255,255,0));
  mix-blend-mode: soft-light; opacity: 0; pointer-events: none;
}
.motion .stage__vignette {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(31,22,28,.92) 0%, rgba(31,22,28,.55) 26%, rgba(31,22,28,0) 50%),
    linear-gradient(to bottom, rgba(31,22,28,.6) 0%, rgba(31,22,28,0) 18%);
}

.motion .stage__intro {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: max(32px, env(safe-area-inset-bottom));
  margin: 0;
}
.motion .stage__hint {
  display: block; margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(249,249,249,.6);
}

.motion .stage__steps {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 120px;
  display: block; max-width: 440px;
}
.motion .stage__steps li {
  position: absolute; left: 0; right: 0; bottom: 0;
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.motion .stage__steps li.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
}

.motion .stage__progress {
  display: block; position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 40px;
  height: 1px; background: rgba(249,249,249,.18); max-width: 440px;
}
.motion .stage__progress { bottom: 100px; }
.motion .stage__progress span { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.motion .stage__note { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 64px; margin: 0; font-size: 11px; }

/* Desktop: rosto centralizado em coluna 4:5, textos nas laterais */
@media (min-width: 1100px) {
  .motion .stage__zoom { width: auto; aspect-ratio: 4 / 5; height: 100%; }
  .motion .stage__vignette {
    background:
      radial-gradient(ellipse 46svh 60svh at 50% 50%, rgba(31,22,28,0) 60%, rgba(31,22,28,1) 100%),
      linear-gradient(to bottom, rgba(31,22,28,.5), rgba(31,22,28,0) 16%);
  }
  .motion .stage__intro { left: var(--gutter); right: auto; top: 50%; bottom: auto; translate: 0 -50%; max-width: calc(50vw - 40svh - 24px); min-width: 340px; }
  .motion .stage__note { left: auto; top: auto; bottom: 14px; text-align: right; max-width: 40%; }
  .motion .stage__intro h1 { font-size: clamp(40px, 3.6vw, 60px); }
  .motion .stage__steps { left: auto; right: var(--gutter); top: 50%; bottom: auto; width: calc(50vw - 40svh - 24px); min-width: 280px; }
  .motion .stage__steps li { bottom: auto; top: 0; transform: translateY(calc(-50% + 14px)); }
  .motion .stage__steps li.is-active { transform: translateY(-50%); }
  .motion .stage__progress { left: auto; right: var(--gutter); bottom: 64px; width: calc(50vw - 40svh - 24px); min-width: 280px; }
}

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--plum-050); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; font-size: 19px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 1px; background: var(--plum); }
@media (min-width: 800px) { .ticks { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 40px; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-size: 12px; letter-spacing: .2em; color: var(--plum); font-weight: 500; }
.steps strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.steps span { color: var(--ink-soft); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.portrait { margin: 0; }
.portrait img { border-radius: var(--radius); width: 100%; max-width: 460px; }
.cro { font-size: 14px; letter-spacing: .06em; color: var(--plum); font-weight: 500; margin-top: -16px; margin-bottom: 20px; }

.gallery { display: grid; gap: 12px; margin-bottom: 28px; }
.gallery img { border-radius: var(--radius); width: 100%; }
@media (min-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }
.address { color: var(--ink-soft); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--plum); border-bottom: 1.5px solid var(--plum);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; }

.final { background: var(--stage); color: var(--paper); padding: clamp(88px, 12vw, 150px) 0; }
.final .h2 { color: var(--paper); }
.final .lead { color: rgba(249,249,249,.8); margin-bottom: 36px; }
.final__mark { width: 64px; margin: 0 auto 28px; opacity: .9; }

.footer { padding: 56px 0 120px; font-size: 15px; }
.footer__logo { width: 180px; margin-bottom: 24px; }
.footer p { margin-bottom: 6px; }

/* ---------- CTA fixo (celular) ---------- */
.dock {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 999px; background: var(--plum); color: #fff;
  font: 500 16px/1 var(--font-body); text-decoration: none;
  box-shadow: 0 12px 30px rgba(31,22,28,.35);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.dock .ico { width: 20px; height: 20px; }
.dock.is-visible { transform: none; }
@media (min-width: 900px) { .dock { display: none; } .footer { padding-bottom: 56px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
