/* ============================================================
   Dr. Felipe Coelho — Landing Page
   Paleta evoluída da identidade atual: fundo escuro premium + dourado
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #FAF8F5;
  --bg-dark: #101D24;
  --bg-dark-2: #0B151A;
  --text-dark: #16252C;
  --text-muted: #4B5B63;
  --text-light: #F7F2EA;
  --text-light-muted: #C9BFB1;
  --gold: #F1D1B5;
  --gold-deep: #C79A5D;
  --gold-line: rgba(199, 154, 93, 0.35);
  --border-soft: rgba(22, 37, 44, 0.08);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-card: 0 12px 30px -14px rgba(16, 29, 36, 0.25);
  --shadow-cta: 0 10px 24px -8px rgba(199, 154, 93, 0.45);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --space-section: clamp(3.5rem, 7vw, 7rem);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { 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);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-cta {
  background: linear-gradient(180deg, var(--gold) 0%, #e9bd94 100%);
  color: var(--text-dark);
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover { box-shadow: 0 14px 30px -8px rgba(199, 154, 93, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(247, 242, 234, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline:hover { background: var(--text-dark); color: var(--text-light); }

.btn-lg { padding: 1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Scroll progress (veia enchendo de sangue) ---------- */
@keyframes pulseGlow {
  0%, 100% { transform: translate(50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(50%, -50%) scale(1.25); opacity: .75; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .75; }
}

/* Veia no topo (mobile/tablet) */
.pulse-rail-top {
  display: block; position: fixed; top: 0; left: 0; width: 100%; height: 14px; z-index: 101;
}
.pulse-rail-top svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (min-width: 960px) { .pulse-rail-top { display: none; } }

.pulse-dot-top { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 102; pointer-events: none; }
.pulse-dot-top span {
  position: absolute; top: -6px; left: -6px; width: 12px; height: 12px;
  border-radius: 50%; display: block;
  background: radial-gradient(circle at 35% 35%, #FFD8C7, #FF6B4A 55%, #A8342A 100%);
  box-shadow: 0 0 9px 3px rgba(255, 107, 74, .65);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@media (min-width: 960px) { .pulse-dot-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot-top span { animation: none; } }

/* Veia lateral (desktop) */
.pulse-rail { display: none; }
@media (min-width: 960px) {
  .pulse-rail {
    display: block; position: fixed; left: 14px; top: var(--header-h); bottom: 0; width: 30px; z-index: 40;
  }
  .pulse-rail svg { width: 100%; height: 100%; overflow: visible; }
}

/* Estilo compartilhado das duas veias */
.pulse-track { stroke: rgba(199, 154, 93, .2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pulse-sheen { stroke: rgba(255, 255, 255, .18); stroke-width: 2; stroke-linecap: round; fill: none; }
.pulse-tip {
  filter: drop-shadow(0 0 6px rgba(255, 107, 74, .8));
  animation: pulseGlow 1.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@media (prefers-reduced-motion: reduce) { .pulse-tip { animation: none; } }
.pulse-rail-top .pulse-track, .pulse-rail-top .pulse-fill, .pulse-rail-top .pulse-sheen {
  vector-effect: non-scaling-stroke;
}
.pulse-rail-top .pulse-fill { stroke: url(#pulseGradTop); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pulse-rail .pulse-fill { stroke: url(#pulseGrad); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pulse-rail .pulse-tip { fill: url(#tipGrad); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 29, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 242, 234, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--gold);
  flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; }
.logo-img--footer { height: 48px; }

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--gold); }

.header-cta { flex-shrink: 0; padding: 0.65em 1.3em; font-size: 0.85rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(199,154,93,0.15), transparent 55%),
    linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-light);
  padding: calc(72px + 3.5rem) 0 4rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

/* ---------- Hero background: "achando as veias" (estilo VeinViewer) ---------- */
/* Posição do scanner e da janela de revelação das veias são calculadas via JS
   (script.js) a cada frame, em sincronia — por isso não há @keyframes aqui. */
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-scan-veins {
  position: absolute;
  inset: 0;
  opacity: .8;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle, white 0%, white 35%, transparent 75%);
  mask-image: radial-gradient(circle, white 0%, white 35%, transparent 75%);
  -webkit-mask-size: 200px 200px;
  mask-size: 200px 200px;
}
.hero-scan-veins svg { width: 100%; height: 100%; display: block; }
.hero-scan-veins--cursor {
  -webkit-mask-position: -9999px -9999px;
  mask-position: -9999px -9999px;
}
.hero-scan .veins path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.hero-scan-box {
  position: absolute;
  top: 20%;
  left: -12%;
  width: 12%;
  height: 26%;
  border: 1px solid rgba(241, 209, 181, .25);
  border-radius: 4px;
  background: radial-gradient(ellipse at center, rgba(241,209,181,.14), rgba(241,209,181,.03) 55%, transparent 72%);
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan-box, .hero-scan-veins { display: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 0.8em;
}
.eyebrow--light { color: var(--gold); }

.hero h1 { color: var(--text-light); }
.hero-sub { color: var(--text-light-muted); font-size: 1.05rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 2.2rem;
}

.hero-proof {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(247, 242, 234, 0.12);
}
.hero-proof li { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-proof strong { font-size: 1.3rem; color: var(--gold); font-weight: 800; }
.hero-proof span { font-size: 0.78rem; color: var(--text-light-muted); }

/* Textos do hero ~10% menores, pra sobrar mais área de fundo livre */
.hero-copy .eyebrow { font-size: 0.7rem; }
.hero-copy h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
.hero-copy .hero-sub { font-size: 0.95rem; }
.hero-actions .btn { padding: 0.77em 1.44em; font-size: 0.85rem; }
.hero-proof strong { font-size: 1.15rem; }
.hero-proof span { font-size: 0.7rem; }

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--portrait { aspect-ratio: 4 / 5; }
.photo-frame--portrait img { object-position: center 15%; }
.photo-frame--tall { aspect-ratio: 3 / 4; }
.photo-frame--tall img { object-position: center 20%; }
.photo-frame--hero { max-width: 85%; margin-inline: auto; }

/* ---------- Section scaffolding ---------- */
section { padding: var(--space-section) 0; }

.section-head { max-width: 62ch; margin: 0 0 2.6rem; }
.section-lead { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Problem ---------- */
.problem { background: var(--bg-dark); color: var(--text-light); }
.problem .section-lead { color: var(--text-light-muted); }

.problem-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.problem-card {
  background: rgba(247,242,234,0.04);
  border: 1px solid rgba(247,242,234,0.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.problem-card svg { color: var(--gold); margin-bottom: 0.8rem; }
.problem-card h3 { color: var(--text-light); font-size: 1.05rem; }
.problem-card p { color: var(--text-light-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Treatments ---------- */
.treatments { background: var(--bg-soft); }

.treatment-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
.treatment-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.treatment-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(16,29,36,0.25); }
.treatment-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--gold), #e9bd94);
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}
.treatment-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.credentials-list {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.credentials-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.credentials-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.credentials-list strong { color: var(--text-dark); }

/* ---------- Differentiators ---------- */
.differentiators { background: var(--bg-dark); color: var(--text-light); }
.diff-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.diff-card {
  border-top: 1px solid var(--gold-line);
  padding-top: 1.2rem;
}
.diff-number {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.diff-card h3 { color: var(--text-light); }
.diff-card p { color: var(--text-light-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Social proof ---------- */
.social-proof { background: var(--bg-soft); }
.proof-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.proof-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.proof-card--doctoralia { border: 1px solid var(--gold-line); }
.stars { color: var(--gold-deep); font-size: 1.1rem; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.proof-number { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.2rem; }
.proof-detail { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 0.8rem; }
.proof-link { font-size: 0.85rem; font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.proof-link:hover { text-decoration: underline; }

/* ---------- Insurance ---------- */
.insurance { background: var(--bg); text-align: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.insurance-title { font-size: 1.3rem; margin-bottom: 1.4rem; }
.insurance-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 0;
  margin: 0 0 1.2rem;
}
.insurance-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0.6em 1.2em;
  font-size: 0.88rem;
  font-weight: 600;
}
.insurance-note { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.insurance-note a { color: var(--gold-deep); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.9rem 0 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg-dark); color: var(--text-light); }
.cta-inner {
  display: grid;
  gap: 2.5rem;
}
.cta-copy .section-lead { color: var(--text-light-muted); }
.cta-address { margin-top: 2rem; }
.cta-address h3 { color: var(--gold); font-size: 1rem; }
.cta-address p { color: var(--text-light-muted); font-size: 0.92rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 1rem; border: 1px solid var(--gold-line); background: var(--bg-dark-2); }
.map-embed iframe { display: block; }
.map-fallback-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.map-fallback-link:hover { text-decoration: underline; }

.cta-form {
  background: var(--bg);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  align-self: start;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 700; }
.form-field input, .form-field select {
  padding: 0.75em 0.9em;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg-soft);
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark-2); color: var(--text-light-muted); padding: 3.5rem 0 1.5rem; }
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,242,234,0.1);
}
.footer-brand p { font-size: 0.8rem; margin-top: 0.6rem; color: var(--text-light-muted); }
.footer-col h3 { color: var(--text-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.88rem; }
.footer-col a { text-decoration: none; color: var(--text-light-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 1.5rem; font-size: 0.78rem; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   Breakpoints — mobile-first progressive enhancement
   ============================================================ */

/* Tablet and up */
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .treatment-cards { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop */
@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }

  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .treatment-cards { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 0.85fr 1.15fr; }
  .diff-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { grid-template-columns: 1fr 0.9fr; }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* Mobile only — nav becomes drawer */
@media (max-width: 959px) {
  .main-nav {
    position: fixed;
    top: 72px; right: 0;
    width: min(78vw, 320px);
    height: calc(100vh - 72px);
    background: var(--bg-dark);
    border-left: 1px solid rgba(247,242,234,0.1);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.4rem; }
  .main-nav a { font-size: 1.05rem; }

  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* treatment cards as horizontal scroll-snap carousel on small phones */
  .treatment-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
  }
  .treatment-card {
    min-width: 78%;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}
