/* ============================================
   OdontoqualityBH — Alternativa ao CPAP
   Design system: "Do ronco ao silêncio"
   ============================================ */

:root {
  --night: #141B2E;
  --night-2: #232F4B;
  --night-3: #2E3C60;
  --dawn: #E8A15C;
  --dawn-dim: #C9863F;
  /* Variante escurecida para TEXTO sobre fundo claro (--dawn-dim original falha WCAG AA 4.5:1
     em texto pequeno sobre --cream; mantido --dawn-dim para ícones/decoração não-textual).
     Calibrada contra --cream-2 (F1EBE0), o mais escuro dos dois fundos claros do site — passar
     nele garante 5.5:1+ no --cream (FAF7F1) também. Ver PageSpeed Insights de 11/08/2026: a
     primeira versão (#956023) passava em --cream (4.94:1) mas falhava em --cream-2 (4.45:1). */
  --dawn-text: #8A5820;
  --cream: #FAF7F1;
  --cream-2: #F1EBE0;
  --ink: #1C2029;
  --ink-soft: #4A4F5C;
  --sage: #7C9885;
  --sage-dim: #6b8a74;
  --white: #FFFFFF;
  --line: rgba(28,32,41,0.10);
  --line-night: rgba(255,255,255,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dawn-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--dawn-dim);
  display: inline-block;
}

.section {
  padding: var(--space-7) 0;
}

.section-tight { padding: var(--space-6) 0; }

.section-dark {
  background: var(--night);
  color: var(--white);
}

.section-dark .eyebrow { color: var(--dawn); }
.section-dark .eyebrow::before { background: var(--dawn); }

/* ===== Focus states ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--dawn);
  color: var(--night);
  box-shadow: 0 8px 24px -8px rgba(232, 161, 92, 0.55);
}

.btn-primary:hover {
  background: #f0ad6a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(232, 161, 92, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-night);
}

.btn-ghost:hover {
  border-color: var(--dawn);
  color: var(--dawn);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
}

.btn-sm { padding: 0.7em 1.3em; font-size: 0.9rem; }

.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 27, 46, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand img { height: 2.1rem; width: 2.1rem; border-radius: 6px; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links li {
  display: inline-block;
  margin-right: var(--space-4);
}

.nav-links li:last-child {
  margin-right: 0;
}

.nav-links a {
  display: inline-block;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--dawn); }

.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; }
  .nav-cta { display: inline-flex; margin-left: var(--space-2); }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(175deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--white);
  padding: 8.5rem 0 var(--space-7);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(232,161,92,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-5);
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: italic;
  color: var(--dawn);
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}

.hero-trust-item strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 0.95rem;
}

/* Waveform signature element */
.wave-panel {
  background: var(--night-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: var(--space-4);
  position: relative;
}

.wave-panel-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-2);
}

.wave-panel svg { width: 100%; height: auto; display: block; }

/* Foto do aparelho dentro do card do hero: largura contida para não deixar
   a coluna da imagem desproporcionalmente mais alta que a coluna de texto
   (a foto é um retrato 505×615 — bem mais alto que o painel de onda original). */
.hero-photo-panel img {
  display: block;
  width: 100%;
  max-width: 280px;
  /* Proporção travada explicitamente (505:615, a dimensão real do arquivo) —
     não depende do navegador inferir a partir dos atributos width/height do <img>. */
  aspect-ratio: 505 / 615;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.wave-before { stroke: #E06B5C; }
.wave-after { stroke: var(--dawn); }

.wave-caption {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* wave divider between sections */
.wave-divider {
  width: 100%;
  height: 40px;
  display: block;
}

.wave-divider path { stroke: var(--line); }

/* ===== Symptom checklist (Problema) ===== */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--space-5);
}

@media (min-width: 720px) {
  .symptom-grid { grid-template-columns: 1fr 1fr; }
}

.symptom-item {
  background: var(--white);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.symptom-item svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--sage);
  margin-top: 3px;
}

.symptom-item p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.symptom-item strong { color: var(--ink); }

/* ===== Two-column intro sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split.reverse .split-media { order: 2; }
}

.split-media img {
  border-radius: var(--radius);
  width: 100%;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-5);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.section-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* ===== Comparison (Benefícios) ===== */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 800px) {
  .compare-wrap { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid var(--line);
}

.compare-card.is-alt {
  background: var(--night);
  color: var(--white);
  border-color: var(--night);
  position: relative;
}

.compare-card.is-alt::before {
  content: 'Sem máscara';
  position: absolute;
  top: -12px;
  left: var(--space-4);
  background: var(--dawn);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 100px;
  font-weight: 700;
}

.compare-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}

.compare-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compare-card li {
  display: flex;
  gap: 0.7em;
  font-size: 0.95rem;
  align-items: flex-start;
}

.compare-card.is-alt { color: rgba(255,255,255,0.9); }
.compare-card.is-alt h3 { color: var(--white); }

.tag-x { color: #C4574A; flex-shrink: 0; }
.tag-check { color: var(--sage); flex-shrink: 0; }
.compare-card.is-alt .tag-check { color: var(--dawn); }

/* ===== Process (Como funciona) ===== */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}

.process-item:last-child { border-bottom: 1px solid var(--line); }

.process-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--dawn-text);
  padding-top: 0.15em;
}

.process-item h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.process-item p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; max-width: 56ch; }

/* ===== Specialists ===== */
.specialist-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dawn-text);
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
}

/* ===== Social proof strip ===== */
.proof-strip {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.proof-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.proof-item svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; }

/* ===== Reviews (dados reais do Google, sem widget pago) ===== */
.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}

.reviews-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.reviews-stars { color: var(--dawn-dim); display: flex; gap: 2px; }
.reviews-stars svg { width: 18px; height: 18px; }

.reviews-header-meta { font-size: 0.88rem; color: var(--ink-soft); }
.reviews-header-meta strong { color: var(--ink); }

.reviews-google-mark {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1050px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-name-row { display: flex; align-items: center; gap: 0.3rem; }
.review-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.review-name-row svg { width: 14px; height: 14px; color: #4285F4; }
.review-time { font-size: 0.78rem; color: var(--ink-soft); }

.review-stars { display: flex; gap: 1px; margin-bottom: 0.5rem; color: var(--dawn-dim); }
.review-stars svg { width: 14px; height: 14px; }

.review-text { font-size: 0.87rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.reviews-more {
  text-align: center;
  margin-top: var(--space-4);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(175deg, var(--night-2) 0%, var(--night) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-7) 0;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--white);
  max-width: 20ch;
  margin: 0 auto var(--space-3);
}

.final-cta p {
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin: 0 auto var(--space-4);
  font-size: 1.05rem;
}

/* ===== Contact / Footer ===== */
.contact-section { padding: var(--space-7) 0 var(--space-6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); }
}

.contact-card {
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.contact-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: var(--space-3); }

.contact-line {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.contact-line svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--dawn); margin-top: 2px; }
.contact-line a:hover { color: var(--dawn); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}

.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.site-footer {
  background: var(--night);
  color: rgba(255,255,255,0.5);
  padding: var(--space-4) 0;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
}

/* ===== WhatsApp floating button ===== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  /* Texto branco sobre este verde falha WCAG AA (1.98:1, precisa de 4.5:1).
     --night sobre o mesmo verde dá 8.64:1 — mantém o verde reconhecível do WhatsApp. */
  color: var(--night);
  padding: 0.85rem 1.15rem;
  border-radius: 100px;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.35);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.wa-float:hover { transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 22px; height: 22px; }

/* Em telas pequenas o botão encolhe, mas mantém o rótulo:
   botão flutuante só com ícone converte menos que com texto. */
@media (max-width: 480px) {
  .wa-float {
    padding: 0.8rem 1.05rem;
    font-size: 0.85rem;
    gap: 0.45rem;
    right: 12px;
    bottom: 12px;
  }
  .wa-float svg { width: 20px; height: 20px; }
}

/* ===== Mobile menu ===== */
.menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--night-2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 1rem var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.mobile-menu .btn { margin: var(--space-3); }

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ===== Reveal on scroll (subtle) ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--dawn-dim);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 0 var(--space-3);
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 66ch;
}

/* ===== Video facade (capa clicável, carrega o player só ao clicar) ===== */
.yt-facade {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: var(--night);
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.yt-facade:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.yt-facade-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(20, 27, 46, 0.82);
  border: 2px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-facade:hover .yt-facade-play {
  background: var(--dawn);
  border-color: var(--dawn);
  transform: translate(-50%, -50%) scale(1.08);
}

.yt-facade-play svg {
  width: 24px; height: 24px;
  color: var(--white);
  margin-left: 3px;
}

.yt-facade:hover .yt-facade-play svg { color: var(--night); }

.yt-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Utility ===== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
