/* Dr. Marcelo Montera — tokens extraídos do material real do cliente
   (foto de estúdio em terno azul-marinho sobre fundo preto, com friso dourado). */

@font-face {
  font-family: "Public Sans";
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PublicSans-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Allura";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Allura-Regular.woff2") format("woff2");
}

:root {
  --ink: #0a1c33;
  --ink-2: #051020;
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --muted: #5b6472;
  --line: #e3e6ea;
  --gold: #af8a4e;
  --gold-soft: #caab67;
  --gold-line: rgba(202, 171, 103, .35);
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "Helvetica Neue", "Public Sans", Arial, sans-serif;
  --shadow: 0 18px 40px -22px rgba(10, 28, 51, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 300; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 40px; }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7940; box-shadow: 0 10px 24px -10px rgba(175,138,78,.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #142a49; }
.btn-block { width: 100%; justify-content: center; }
.btn i { font-size: 18px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink-2); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar-inner { display: flex; gap: 28px; padding: 8px 24px; }
.topbar-inner a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar-inner a:hover { opacity: 1; color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.script-logo {
  font-family: "Allura", cursive; font-size: 32px; line-height: 1;
  color: var(--ink); white-space: nowrap;
}
.script-logo-footer { color: var(--gold-soft); font-size: 36px; display: inline-block; margin-bottom: 6px; }
.nav-desktop { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-desktop a:hover { color: var(--gold); }
.btn-nav { margin-left: 8px; }
.menu-toggle {
  display: none; background: none; border: none; font-size: 24px; color: var(--ink);
  cursor: pointer; padding: 4px;
}
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 10px 0; font-size: 15px; }
.nav-mobile .btn { margin-top: 10px; justify-content: center; }

@media (max-width: 860px) {
  .nav-desktop, .btn-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile.is-open { display: flex; }
  .topbar-inner { flex-direction: column; gap: 4px; padding: 8px 20px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 72px;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  z-index: 2;
}

/* aurora animada */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35;
  will-change: transform;
}
.blob-a {
  width: 620px; height: 620px; top: -220px; left: -120px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  animation: aurora-drift-a 22s ease-in-out infinite;
}
.blob-b {
  width: 520px; height: 520px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, #2c4a76, transparent 70%);
  animation: aurora-drift-b 26s ease-in-out infinite;
}
@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .blob-a, .blob-b { animation: none; }
}

.hero-watermark {
  position: absolute; top: 50%; left: 6%; transform: translateY(-50%);
  font-size: min(38vw, 560px); color: #fff; opacity: .035; z-index: 0;
  pointer-events: none; line-height: 1;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding-top: 64px; padding-bottom: 0; position: relative; z-index: 1;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--gold-soft); border: 1px solid var(--gold-line);
  background: rgba(202,171,103,.08);
}
.badge-pill i { font-size: 14px; }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  color: #fff;
  margin-bottom: 20px;
  max-width: 16ch;
}
.text-gold-gradient {
  background: linear-gradient(100deg, var(--gold-soft), #fff2d8 50%, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: rgba(255,255,255,.78); max-width: 46ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { border-color: #fff; }

.hero-media { align-self: center; display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative; max-width: 360px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
}
.hero-photo-frame img { display: block; width: 100%; height: auto; }
.hero-photo-badge {
  position: absolute; left: -14px; bottom: -18px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-photo-badge strong { display: block; font-size: 13.5px; font-weight: 600; }
.hero-photo-badge span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-media { order: -1; max-width: 220px; margin: 0 auto 32px; }
  .hero-photo-frame { max-width: 220px; }
  .hero-photo-badge { left: 50%; transform: translateX(-50%); bottom: -22px; text-align: center; }
  .hero-cta { margin-bottom: 36px; }
  .hero-watermark { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: #fff; }
@media (max-width: 700px) {
  .section { padding: 56px 0; }
}

/* Formação e afiliações */
.affil-row {
  display: flex; flex-wrap: wrap; gap: 0;
}
.affil-row li {
  font-size: 14px; color: var(--muted); padding: 4px 22px;
  border-left: 1px solid var(--line);
}
.affil-row li:first-child { border-left: none; padding-left: 0; }

/* Quem é */
.who-section { background: var(--paper); }
.who-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.who-media img {
  border-radius: var(--radius); width: 100%; height: auto;
  box-shadow: 0 30px 60px -30px rgba(10,28,51,.25);
}
.who-copy h2 { margin-bottom: 20px; }
.who-copy p { font-size: 15.5px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; max-width: 60ch; }
.who-copy .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .who-grid { grid-template-columns: 1fr; gap: 28px; }
  .who-media { max-width: 280px; margin: 0 auto; }
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: left; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.stat-card i { display: block; font-size: 22px; color: var(--gold); margin-bottom: 12px; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 300; color: var(--ink); letter-spacing: -.03em; }
.stat-label { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Especialidades */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.spec-card i { font-size: 28px; color: var(--gold); }
.spec-card span { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}

/* Bento trajetória */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.bento-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.bento-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bento-card h3 i { color: var(--gold); font-size: 20px; }
.bento-card ul { display: flex; flex-direction: column; gap: 10px; }
.bento-card li { font-size: 14.5px; color: var(--muted); line-height: 1.5; padding-left: 16px; position: relative; }
.bento-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold-soft);
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
}

.award-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.award-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.award-strip img { width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 860px) {
  .award-strip { grid-template-columns: 1fr; }
}

/* Atendimento tabs */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab-btn {
  background: none; border: none; padding: 12px 4px; margin-right: 24px;
  font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel[hidden] { display: none; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.check-chip {
  display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500;
  padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper-alt); transition: border-color .2s ease, transform .2s ease;
}
.check-chip:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.check-chip i { color: var(--gold); font-size: 22px; flex-shrink: 0; }
.tab-text { max-width: 60ch; font-size: 15px; color: var(--muted); margin-bottom: 24px; }
@media (max-width: 780px) {
  .check-grid { grid-template-columns: 1fr; }
}
.convenio-note {
  display: flex; align-items: center; gap: 8px; margin-top: 36px;
  font-size: 13.5px; color: var(--muted);
}
.convenio-note i { color: var(--gold); }

/* Knowsmed band */
.knowsmed-section { position: relative; overflow: hidden; }
.knowsmed-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.knowsmed-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink) 15%, rgba(10,28,51,.55) 55%, rgba(10,28,51,.25) 100%);
}
.knowsmed-band { position: relative; z-index: 1; max-width: 720px; text-align: left; }
.knowsmed-band h2 { color: #fff; margin-bottom: 18px; }
.knowsmed-band p { color: rgba(255,255,255,.78); font-size: 16px; margin-bottom: 28px; max-width: 56ch; }

/* Palestras */
.talks-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.talk-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.talk-year { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.talk-card h3 { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
@media (max-width: 860px) {
  .talks-row { grid-template-columns: 1fr; }
}

/* Contato */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:not(.contact-card-static):hover { border-color: var(--gold-line); transform: translateX(2px); }
.contact-card i { font-size: 24px; color: var(--gold); flex-shrink: 0; }
.contact-card strong { display: block; font-size: 14px; font-weight: 600; }
.contact-card span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(175,138,78,.15);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 13.5px; margin: 14px 0 0; min-height: 18px; }
.form-msg.is-ok { color: #1c7a4d; }
.form-msg.is-err { color: #b3352c; }

@media (max-width: 900px) {
  .contato-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Footer */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.72); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; }
.footer-brand p { font-size: 13.5px; margin: 0; max-width: 32ch; line-height: 1.5; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 26px -8px rgba(0,0,0,.4);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 26px -8px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 10px 26px -8px rgba(0,0,0,.4), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
