/* ==========================================================================
   Clínica Heiden — HTML, CSS e JS puros
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; }
img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
ul, ol, menu { list-style: none; }
a { color: inherit; text-decoration: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

/* ---------- Tokens ---------- */
:root {
  --radius: .25rem;
  --background: oklch(97.3% .008 92);
  --foreground: oklch(25% .008 80);
  --primary: oklch(26% .006 80);
  --primary-foreground: oklch(97.3% .008 92);
  --muted-foreground: oklch(48% .012 85);
  --border: oklch(86% .015 95);
  --ring: oklch(62% .02 90);
  --sand: oklch(87.8% .019 96);
  --sand-foreground: oklch(26% .006 80);

  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

/* ---------- Base ---------- */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  letter-spacing: .01em;
  font-weight: 300;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .02em; font-weight: 400; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.5;
}

.muted { color: var(--muted-foreground); }

/* ---------- Layout ---------- */
.section { padding-inline: 1.5rem; }
@media (min-width: 768px) { .section { padding-inline: 4rem; } }

.sand { background-color: var(--sand); color: var(--sand-foreground); }

/* ---------- Botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  transition: opacity .2s ease;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .7rem;
  font-weight: 400;
  cursor: pointer;
}
.btn:hover { opacity: .85; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.5rem;
}
@media (min-width: 768px) { .site-header { padding-inline: 4rem; } }

.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.header-link {
  border-bottom: 1px solid color-mix(in oklab, var(--foreground) 40%, transparent);
  padding-bottom: .25rem;
  transition: border-color .2s ease;
  white-space: nowrap;
}
.header-link:hover { border-bottom-color: var(--foreground); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; padding: 2.5rem 4rem; }
}
.hero-copy { text-align: center; }
@media (min-width: 768px) { .hero-copy { text-align: left; } }

.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.25;
  text-transform: uppercase;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }

.hero-sub { margin-top: 1.25rem; font-size: 1rem; line-height: 1.5rem; color: var(--muted-foreground); }
.hero-local { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.hero .btn { margin-top: 1.75rem; }

.hero-media { background-color: var(--sand); padding: 1rem; }
@media (min-width: 768px) { .hero-media { padding: 1.5rem; } }
.hero-media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
@media (min-width: 768px) { .hero-media img { max-height: 560px; } }

/* ---------- Seções ---------- */
.block { padding-block: 5rem; }
.block-cta { padding-block: 6rem; text-align: center; }

.section-title {
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  text-transform: uppercase;
}
@media (min-width: 768px) { .section-title { font-size: 1.875rem; line-height: 2.25rem; } }

.split {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split img { width: 100%; object-fit: cover; }

.lead { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.625; }
@media (min-width: 768px) { .lead { font-size: 1.875rem; } }
.mt-10 { margin-top: 2.5rem; }

/* ---------- Avaliação ---------- */
.evaluation {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 5rem;
}
@media (min-width: 768px) { .evaluation { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evaluation img { width: 100%; object-fit: cover; }
.evaluation h2 { font-size: 1.875rem; line-height: 2.25rem; text-transform: uppercase; }
@media (min-width: 768px) { .evaluation h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.evaluation .intro { margin-top: 1.5rem; color: var(--muted-foreground); }

.check-list { margin-top: 1.5rem; }
.check-list li {
  display: flex;
  gap: .75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  font-size: .875rem;
  line-height: 1.25rem;
}
.check-list li + li { margin-top: 1rem; }

/* ---------- Benefícios ---------- */
.benefits {
  display: grid;
  gap: 2.5rem;
  margin: 3.5rem auto 0;
  max-width: 64rem;
}
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefit { border-top: 1px solid color-mix(in oklab, var(--foreground) 20%, transparent); padding-top: 1.5rem; }
.benefit p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; }

/* ---------- CTA final ---------- */
.block-cta h2 {
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
}
@media (min-width: 768px) { .block-cta h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.block-cta .note { margin-top: 1.5rem; color: var(--muted-foreground); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 1.5rem; }
@media (min-width: 768px) { .site-footer { padding-inline: 4rem; } }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-grid p { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

/* ---------- Revelação ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

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