/* Hallmark · genre: editorial · macrostructure: Photographic (unleashed) · theme: custom teal+clay
 * tone: confiança clínica + calor local · anchor hue: teal 185° · segunda voz: clay 45°
 * enrichment: duotone photo grade + scroll reveal · sem trava de design (aval do André)
 * regra de negócio mantida: WhatsApp sempre alcançável · sem preço
 * Pre-emit critique: P5 H5 E5 S4 R4 V5
 */
@import "tokens.css";

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 92px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal; font-weight: 600; line-height: 1.04;
  letter-spacing: -0.015em; overflow-wrap: anywhere; min-width: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--edge); }

/* rótulo editorial */
.label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-clay);
}

/* ····· tratamento de foto: grade editorial suave ·····
 * dessatura leve + calor nas luzes + teal só na sombra profunda.
 * Coeso como marca, mas dente branco e pele natural (duotone pesado erra pra odonto). */
.duo { position: relative; overflow: hidden; isolation: isolate; }
.duo > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.03) brightness(1.03); }
.duo::before { content: ""; position: absolute; inset: 0; background: var(--duo-shadow); mix-blend-mode: multiply; opacity: 0.14; z-index: 1; }
.duo::after  { content: ""; position: absolute; inset: 0; background: var(--duo-light); mix-blend-mode: soft-light; opacity: 0.4; z-index: 2; }

/* ····· reveal no scroll (progressive enhancement; guarda .js) ····· */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ····· botão WhatsApp ····· */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  background: var(--color-wpp); color: var(--color-ink);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  padding: 15px var(--space-md); border-radius: 999px; border: var(--rule) solid transparent;
}
.btn svg { flex: none; }
.btn:hover { background: color-mix(in oklch, var(--color-wpp), black 9%); }
.btn:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--color-paper); border-color: color-mix(in oklch, var(--color-paper), transparent 55%); }
.btn--ghost:hover { background: color-mix(in oklch, var(--color-paper), transparent 88%); }
.btn--ghost:focus-visible { outline-color: var(--color-paper); }

.wpp-fixo {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 50;
  width: calc(100% - 28px); max-width: 520px; padding: 16px; font-size: var(--text-lg);
  box-shadow: 0 10px 30px oklch(21% 0.018 195 / 0.28);
}
.wpp-fixo:active { transform: translateX(-50%) translateY(1px); }

/* ····· 1 · HERO · foto full-viewport + nome sobre a imagem ····· */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; }
.hero .duo { position: absolute; inset: 0; z-index: 0; }
.hero .duo > img { object-position: center 25%; }
.hero::after { /* scrim de legibilidade */
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, oklch(18% 0.02 195 / 0.92) 0%, oklch(18% 0.02 195 / 0.5) 34%, transparent 66%);
}
.hero-info { position: relative; z-index: 4; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--edge) var(--space-2xl); color: var(--color-paper); }
.hero-info .label { color: var(--color-clay-soft); display: block; margin-bottom: var(--space-sm); }
.hero-info h1 { font-size: var(--text-4xl); color: var(--color-paper); }
.hero-info .sub { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.25; margin-top: var(--space-sm); opacity: 0.92; max-width: 22ch; }
.cred { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.cred li { position: relative; padding-left: var(--space-sm); }
.cred li:first-child { padding-left: 0; }
.cred li:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: var(--rule); height: 0.9em; background: color-mix(in oklch, var(--color-paper), transparent 45%); }

/* ····· 2 · MANIFESTO · momento tipográfico ····· */
.manifesto { padding: var(--space-3xl) 0; }
.manifesto p { font-family: var(--font-display); font-weight: 500; font-size: var(--text-mega); line-height: 0.95; letter-spacing: -0.03em; }
.manifesto .dot { color: var(--color-clay); }
.manifesto .foot { font-family: var(--font-body); font-size: var(--text-lg); color: var(--color-ink-soft); margin-top: var(--space-lg); max-width: 40ch; letter-spacing: 0; }

/* diferenciais · trio numerado em clay */
.marca { border-top: var(--rule) solid var(--color-line); padding-top: var(--space-lg); margin-top: var(--space-xl); display: grid; gap: var(--space-lg); }
.marca-item .n { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-clay); display: block; margin-bottom: var(--space-2xs); }
.marca-item h3 { font-size: var(--text-lg); }
.marca-item p { font-size: var(--text-sm); color: var(--color-ink-soft); margin-top: var(--space-2xs); }

/* ····· seção genérica ····· */
.sec { padding: var(--space-2xl) 0; }
.sec-head { margin-bottom: var(--space-xl); }
.sec-head .label { display: block; margin-bottom: var(--space-sm); }
.sec-head h2 { font-size: var(--text-3xl); }

/* ····· 3 · SERVIÇOS · lista única, implante como item líder ····· */
.lista { list-style: none; }
.lista li { padding: var(--space-lg) 0; border-top: var(--rule) solid var(--color-line); }
.lista li:first-child { padding-top: 0; border-top: none; }
.lista li:last-child { border-bottom: var(--rule) solid var(--color-line); }
.lista .lead .lead-foto { aspect-ratio: 16 / 9; margin-bottom: var(--space-md); }
.lista .lead h3 { font-size: var(--text-3xl); }
.lista .lead p { font-size: var(--text-lg); color: var(--color-ink); }
.lista .cat { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-clay); margin-bottom: var(--space-xs); }
.lista h3 { font-size: var(--text-2xl); }
.lista p { color: var(--color-ink-soft); margin-top: var(--space-2xs); max-width: 42ch; }
.nota { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-soft); }
.nota strong { color: var(--color-ink); }

/* ····· 4 · GALERIA · mosaico full-bleed, legenda sobreposta ····· */
.galeria .galeria-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: var(--space-lg);
}
.galeria figure { position: relative; margin: 0; }
.galeria figure.big { grid-column: 1 / -1; }
.galeria .duo { aspect-ratio: 3 / 2; }
.galeria figure.big .duo { aspect-ratio: 16 / 10; }
.galeria figure::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top, oklch(18% 0.02 195 / 0.72), transparent 42%); }
.galeria figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); z-index: 4; color: var(--color-paper); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.galeria figure.big figcaption { left: var(--edge); }

/* ····· 5 · DEPOIMENTOS · pull-quotes sobre faixa tint ····· */
.depoimentos { background: var(--color-paper-2); }
.depo { padding: var(--space-xl) 0; border-top: var(--rule) solid var(--color-line-strong); }
.depo:first-of-type { border-top: none; padding-top: var(--space-md); }
.depo p { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1.28; }
.depo .mark { font-family: var(--font-display); color: var(--color-clay); }
.depo cite { display: block; margin-top: var(--space-md); font-family: var(--font-body); font-style: normal; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-soft); }

/* ····· 6 · LOCAL ····· */
.local .end { font-size: var(--text-lg); line-height: 1.5; }
.local .horario { margin: var(--space-sm) 0 var(--space-lg); color: var(--color-ink-soft); }
.local .horario strong { color: var(--color-ink); }
.mapa { width: 100%; height: 300px; border: var(--rule) solid var(--color-line); display: block; }

/* ····· 7 · CTA FINAL · faixa tinta, tipo grande ····· */
.cta-final { background: var(--color-ink); color: var(--color-paper); padding: var(--space-3xl) 0; }
.cta-final .label { color: var(--color-clay-soft); display: block; margin-bottom: var(--space-md); }
.cta-final h2 { font-size: var(--text-4xl); color: var(--color-paper); line-height: 1.0; }
.cta-final p { margin: var(--space-md) 0 var(--space-xl); opacity: 0.82; max-width: 34ch; }

/* ····· desktop: solta o ritmo em diptych ····· */
@media (min-width: 720px) {
  .marca { grid-template-columns: repeat(3, 1fr); }
  .hero-info h1 { font-size: clamp(3.4rem, 8vw, 5.2rem); }

  /* galeria: mosaico assimétrico */
  .galeria .galeria-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .galeria figure.big { grid-column: span 2; grid-row: span 2; }
  .galeria figure.big .duo { aspect-ratio: auto; height: 100%; }
  .galeria .duo { height: 100%; }

  /* local em diptych */
  .local .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-2xl); align-items: center; }
  .local .sec-head { grid-column: 1 / -1; }
}
