/* Clínica Mendonça de Odontologia — novo layout */
:root {
  --brand: #1987a6;        /* azul-petróleo do logo */
  --brand-strong: #126e89; /* links e textos pequenos */
  --deep: #0c3a4a;         /* títulos, rodapé, faixas escuras */
  --mist: #eaf5f8;         /* fundo das seções claras */
  --mist-soft: #f5fafb;
  --cta: #c8432b;          /* botão principal de agendar */
  --cta-hover: #ad3721;
  --ink: #22343c;
  --muted: #5b6f77;
  --line: #d7e7ec;
  --white: #ffffff;
  --wa: #1f9d55;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --r-panel: 28px;
  --r-card: 20px;
  --r-img: 16px;
  --shadow: 0 1px 2px rgba(12, 58, 74, .06), 0 8px 24px -12px rgba(12, 58, 74, .18);
  --container: 1200px;

  /* tema do agendamento (assets/agenda/agenda.css lê estes) */
  --cm-agenda-fundo: #f5fafb;
  --cm-superficie: #ffffff;
  --cm-tinta: #0c3a4a;
  --cm-mudo: #4f646c;
  --cm-linha: rgba(12, 58, 74, .14);
  --cm-linha-forte: rgba(25, 135, 166, .5);
  --cm-acento: #126e89;
  --cm-acento-escuro: #0c3a4a;
  --cm-petroleo: #1987a6;
  --cm-fonte-titulo: "Sora", system-ui, sans-serif;
  --cm-fonte-texto: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--deep);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-brand { background: var(--brand-strong); color: #fff; }
.btn-brand:hover { background: var(--deep); }
.btn-outline { border-color: var(--brand); color: var(--brand-strong); background: #fff; }
.btn-outline:hover { background: var(--mist); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17824a; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--mist); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep); }
.brand img { width: 46px; height: 46px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 700 1.2rem/1.1 var(--font-head); letter-spacing: -.02em; }
.brand small { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); margin-right: 8px; }
.top-phone .icon { width: 22px; height: 22px; color: var(--brand); }
.top-phone span { display: flex; flex-direction: column; line-height: 1.15; }
.top-phone small { font-size: .8rem; color: var(--muted); }
.top-phone strong { font-size: 1.05rem; }
.top-actions .btn { min-height: 44px; padding: .55em 1.15em; font-size: .95rem; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav > .container > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.mainnav a, .mainnav .nav-parent {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  color: var(--deep); font-weight: 600; font-size: .97rem; text-decoration: none;
  border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.mainnav a:hover, .mainnav .nav-parent:hover { color: var(--brand-strong); }
.mainnav a[aria-current="page"], .mainnav .is-current > .nav-parent { color: var(--brand-strong); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.nav-parent .icon { width: 14px; height: 14px; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: 10px 12px; font-weight: 500; }
.submenu a:hover { background: var(--mist); }
.submenu a[aria-current="page"] { box-shadow: none; background: var(--mist); border-radius: 10px; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--deep); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .top-phone { display: none; }
}
@media (max-width: 900px) {
  .top-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar { min-height: 68px; }
  .mainnav { display: none; }
  .site-header.is-open .mainnav { display: block; max-height: calc(100vh - 68px); overflow-y: auto; }
  .mainnav > .container > ul { flex-direction: column; padding: 8px 0 16px; }
  .mainnav a, .mainnav .nav-parent { padding: 12px 4px; font-size: 1.05rem; width: 100%; }
  .mainnav .nav-parent .icon { display: none; }
  .mainnav a[aria-current="page"], .mainnav .is-current > .nav-parent { box-shadow: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0 0 0 14px; margin-left: 4px; }
  .mobile-actions { display: grid !important; gap: 10px; padding: 8px 0 20px; }
}
.mobile-actions { display: none; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: var(--brand); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.lead { font-size: 1.2rem; color: var(--ink); }
.prose p { max-width: 70ch; }
.muted { color: var(--muted); }

/* ---------- Home: hero ---------- */
.hero { padding: 28px 0 0; }
.hero-panel {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  background: var(--mist); border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden;
}
.hero-panel::after { /* marca d'água do logo */
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px;
  border-radius: 50%; border: 56px solid rgba(25, 135, 166, .07); pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--deep); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 600; font-size: .95rem; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero-tag img { width: 30px; height: 30px; }
.hero h1 { margin-bottom: 18px; font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); }
.hero-sub { font-size: 1.2rem; color: var(--ink); max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; z-index: 1; }
.hero-media .photo { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4.6; box-shadow: 0 30px 60px -30px rgba(12, 58, 74, .45); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-badge {
  position: absolute; left: -28px; bottom: 28px; background: #fff; border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); max-width: 290px;
}
.hero-badge strong { font: 800 2.6rem/1 var(--font-head); color: var(--brand); letter-spacing: -.04em; }
.hero-badge span { font-size: .95rem; line-height: 1.3; color: var(--deep); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media .photo { animation: heroPhoto .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-badge { animation: heroBadge .7s .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes heroPhoto { from { opacity: 0; transform: scale(.96); } }
  @keyframes heroBadge { from { opacity: 0; transform: translateY(14px); } }
}

/* faixa de diferenciais (estilo referência) */
.perks { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--brand); display: grid; place-items: center; flex: none; }
.perk .ico .icon { width: 22px; height: 22px; }
.perk p { margin: 0; font-size: .97rem; line-height: 1.4; color: var(--deep); font-weight: 600; }

@media (max-width: 1000px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .hero-badge { left: 16px; bottom: 16px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Cards de especialidade ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.spec-card { display: block; text-decoration: none; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.spec-card .img { aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--mist); }
.spec-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spec-card:hover img { transform: scale(1.04); }
.spec-card h3 { margin: 0; padding: 16px 12px 18px; text-align: center; font-size: 1.08rem; color: var(--brand-strong); }
@media (max-width: 1000px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .spec-card h3 { font-size: .98rem; padding: 12px 8px 14px; } }

/* ---------- Bloco sobre (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .95; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-img); }
.mosaic img:first-child { grid-row: span 2; }
.split h2 { color: var(--deep); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Faixa DSD ---------- */
.dsd { background: var(--deep); color: #dcebef; border-radius: var(--r-panel); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.dsd-copy { padding: clamp(32px, 5vw, 64px); }
.dsd-copy img.dsd-logo { width: 210px; margin-bottom: 22px; }
.dsd h2 { color: #fff; }
.dsd p { max-width: 58ch; }
.dsd .test-drive { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px 18px; color: #fff; font-weight: 600; margin: 24px 0 28px; }
.dsd .test-drive .icon { color: #7fd3e6; width: 24px; height: 24px; margin-top: 1px; }
.dsd-media { position: relative; min-height: 360px; }
.dsd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .dsd { grid-template-columns: 1fr; } .dsd-media { min-height: 280px; order: -1; } }

/* ---------- Selos ---------- */
.seals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.seal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.seal img { height: 92px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; }
.seal span { font-size: .88rem; line-height: 1.3; color: var(--muted); }
@media (max-width: 900px) { .seals { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .seals { grid-template-columns: 1fr 1fr; } .seal:last-child { grid-column: span 2; } }

/* ---------- Depoimentos ---------- */
.testi-wrap { position: relative; }
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; scrollbar-width: thin; }
.testi { scroll-snap-align: start; background: #fff; border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.testi .who { display: flex; gap: 14px; align-items: center; padding: 20px 20px 0; }
.testi .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.testi .who strong { display: block; color: var(--deep); font-family: var(--font-head); font-size: 1rem; line-height: 1.25; }
.testi .who span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
.testi blockquote { margin: 0; padding: 16px 20px 22px; font-size: 1rem; line-height: 1.6; color: var(--ink); position: relative; }
.testi blockquote::before { content: "\201C"; display: block; font: 700 3rem/1 var(--font-head); color: var(--brand); opacity: .35; height: 26px; }
.testi .clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.testi.is-open .clamp { -webkit-line-clamp: unset; display: block; }
.testi .more { margin: -10px 20px 20px; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--brand-strong); font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.testi-nav { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.round-btn:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; color: var(--deep); font-size: .95rem; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--mist-soft);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 135, 166, .2); background: #fff; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e7f6ee; color: #136b3b; }
.form-msg.err { display: block; background: #fdecea; color: #9b2c1a; }
.info-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mist); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-list .ico .icon { width: 20px; height: 20px; }
.info-list a { color: var(--deep); font-weight: 700; text-decoration: none; }
.info-list a:hover { color: var(--brand-strong); }
.info-list small { display: block; color: var(--muted); font-size: .9rem; }
.map { border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Faixa CTA ---------- */
.cta-band { background: var(--brand-strong); color: #fff; border-radius: var(--r-panel); padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 24ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--deep); color: #b9d3db; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #e6f2f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: #9fc2cc; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--brand); text-decoration: none; }
.socials .icon { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .88rem; color: #8fb3bd; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { background: #17824a; }

/* ---------- Páginas internas ---------- */
.page-hero { padding: 28px 0 0; }
.page-hero .panel { background: var(--mist); border-radius: var(--r-panel); padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.page-hero .panel::after { content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; border: 44px solid rgba(25, 135, 166, .08); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9ab3bb; }
.crumbs a { color: var(--brand-strong); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { margin: 0; position: relative; z-index: 1; }
.page-hero .lead { margin: 16px 0 0; max-width: 62ch; position: relative; z-index: 1; }
.page-hero.has-img .panel { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.page-hero.has-img .hero-thumb { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; box-shadow: var(--shadow); }
.page-hero.has-img .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img .hero-thumb.contain img { object-fit: contain; padding: 14px; }
@media (max-width: 900px) { .page-hero.has-img .panel { grid-template-columns: 1fr; } .page-hero.has-img .hero-thumb { max-width: 420px; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: 1.8em; color: var(--deep); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.4em; color: var(--brand-strong); }
.article p, .article li { max-width: 70ch; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--brand); }
.figure { margin: 28px 0; background: var(--mist-soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; place-items: center; }
.figure img { max-height: 300px; width: auto; border-radius: 10px; }
.callout { background: var(--mist); border-radius: var(--r-card); padding: 22px 24px; margin: 28px 0; }
.callout p:last-child { margin: 0; }
.aside { position: sticky; top: 150px; display: grid; gap: 18px; }
.aside .card h3 { margin-bottom: 8px; }
.aside .card p { color: var(--muted); font-size: .97rem; }
.aside .card .btn { width: 100%; margin-top: 10px; }
.aside-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--deep); font-weight: 600; }
.aside-nav a:hover { background: var(--mist); }
.aside-nav a[aria-current="page"] { background: var(--mist); color: var(--brand-strong); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .aside { position: static; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 0 0 1.2em; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--deep); font-size: .97rem; margin: 0; }
.section-mist .chips li { background: #fff; }

.icon-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.icon-list .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font: 600 1.12rem/1.35 var(--font-head); color: var(--deep); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--brand-strong); display: grid; place-items: center; flex: none; transition: transform .2s; }
.qa details[open] summary .plus { transform: rotate(45deg); }
.qa .answer { padding: 0 4px 18px; }

/* Corpo clínico */
.lead-doctor { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.lead-doctor .photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; }
.lead-doctor .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.role { display: inline-block; background: var(--mist); color: var(--brand-strong); font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.member { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.member .avatar { width: 112px; height: 136px; border-radius: 16px; overflow: hidden; background: var(--mist); display: grid; place-items: center; font: 700 1.8rem var(--font-head); color: var(--brand); }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: 4px; }
.member ul { margin: 8px 0 0; padding-left: 1.1em; }
.member li { margin-bottom: 4px; font-size: .98rem; }
.member li::marker { color: var(--brand); }
.member p { margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .lead-doctor { grid-template-columns: 1fr; } .lead-doctor .photo { max-width: 360px; } .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .member { grid-template-columns: 1fr; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 30, 38, .85); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 14px; margin: 0 auto; }
.lightbox .close { position: absolute; top: 10px; right: 10px; }

/* Blocos de 3 (biossegurança, dentista paulista) */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tri .card h3 { color: var(--deep); }
.tri .card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.tri .card .ico .icon { width: 26px; height: 26px; }
.tri .card p:last-of-type { margin-bottom: 0; }
.tri .card .btn { margin-top: 18px; }
@media (max-width: 900px) { .tri { grid-template-columns: 1fr; } }

.quote-big { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.35 var(--font-head); color: var(--deep); letter-spacing: -.015em; margin: 0; max-width: 32ch; }
.quote-big::before { content: "\201C"; color: var(--brand); }
.quote-big::after { content: "\201D"; color: var(--brand); }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep); box-shadow: var(--shadow); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }

.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-pair img { border-radius: var(--r-card); width: 100%; }
@media (max-width: 700px) { .promo-pair { grid-template-columns: 1fr; } }

.testi-feature { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.testi-feature img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.testi-feature cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); }
.testi-feature cite strong { color: var(--deep); }
@media (max-width: 700px) { .testi-feature { grid-template-columns: 1fr; } .testi-feature img { width: 140px; } }

.stack > * + * { margin-top: clamp(40px, 5vw, 64px); }
.pt-0 { padding-top: 0 !important; }

.spec-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec-tiles li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.spec-tiles .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--brand); display: grid; place-items: center; flex: none; }
.spec-tiles .ico .icon { width: 22px; height: 22px; }
.spec-tiles strong { display: block; font: 600 1.02rem/1.3 var(--font-head); color: var(--deep); }
.spec-tiles small { display: block; color: var(--muted); font-size: .93rem; margin-top: 4px; line-height: 1.35; }
@media (max-width: 1000px) { .spec-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .spec-tiles { grid-template-columns: 1fr; } }
.gallery { grid-auto-flow: dense; }
.type-cards { display: grid; gap: 16px; margin: 24px 0; }
.type-cards .card { box-shadow: none; }
.type-cards .card h3 { margin-top: 0; color: var(--deep); }
.type-cards .card p:last-child { margin-bottom: 0; }
.article .role { margin-top: -.4em; }

.hero-copy { min-width: 0; }
@media (min-width: 561px) { .nowrap-lg { white-space: nowrap; } }
@media (max-width: 640px) {
  .spec-card:last-child { grid-column: span 2; }
  .spec-card:last-child .img { aspect-ratio: 16 / 8; }
  .hero-panel { padding: 24px 20px; }
  .hero-sub { font-size: 1.08rem; }
}
.tri .card { display: flex; flex-direction: column; align-items: flex-start; }
.tri .card .btn { margin-top: auto; }
.tri .card p:last-of-type { margin-bottom: 18px; }
.split .testi-feature { grid-template-columns: 120px 1fr; gap: 24px; }
.split .testi-feature .quote-big { font-size: 1.15rem !important; }
@media (max-width: 700px) { .split .testi-feature { grid-template-columns: 1fr; } }

/* ---------- WhatsApp como único caminho ---------- */
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.contact-card .lead { margin-bottom: 18px; }
.contact-card .btn-lg { width: 100%; margin-bottom: 26px; }
.contact-card .info-list { margin: 0; }
.map-card { padding: 12px; display: flex; }
.map-card .map { flex: 1; aspect-ratio: auto; min-height: 320px; }
.m-bar { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .wa-float { display: none; }
  .m-bar { display: flex; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; gap: 14px; }
  .section-head .btn { min-height: 42px; padding: .45em 1.1em; font-size: .95rem; }
  h2 { font-size: 1.55rem; }
  .lead { font-size: 1.08rem; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.08rem; }
  .topbar { min-height: 64px; gap: 12px; }
  .menu-toggle { width: 44px; height: 44px; }

  .hero { padding-top: 12px; }
  .hero-panel { border-radius: 22px; gap: 24px; }
  .hero-tag { font-size: .85rem; margin-bottom: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { margin-bottom: 22px; }
  .hero-ctas .btn { width: 100%; }
  .hero-media .photo { aspect-ratio: 4 / 3.4; border-radius: 18px; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 16px; }
  .hero-badge strong { font-size: 2rem; }
  .perks { margin-top: 16px; }
  .perk { padding: 14px 16px; }
  .perk .ico { width: 38px; height: 38px; }

  .page-hero { padding-top: 12px; }
  .page-hero .panel { border-radius: 22px; padding: 24px 20px; }
  .page-hero .panel::after { display: none; }
  .page-hero.has-img .panel { gap: 20px; }
  .page-hero.has-img .hero-thumb { aspect-ratio: 16 / 10; max-width: none; }

  .card { padding: 20px; }
  .dsd { border-radius: 22px; }
  .dsd-copy { padding: 24px 20px; }
  .dsd-copy img.dsd-logo { width: 160px; }
  .dsd-media { min-height: 220px; }
  .dsd .btn { width: 100%; }
  .mosaic { gap: 8px; }
  .split .btn, .tri .card .btn, .aside .card .btn { width: 100%; }
  .seals { gap: 10px; }
  .seal { padding: 14px 10px; }
  .seal img { height: 64px; }
  .seal span { font-size: .8rem; }

  .testi-track { grid-auto-columns: 86%; gap: 12px; margin: 0 -16px; padding: 4px 16px 20px; scroll-padding: 0 16px; }
  .testi-nav { display: none; }

  .cta-band { border-radius: 22px; padding: 24px 20px; }
  .cta-band .actions, .cta-band .btn { width: 100%; }
  .map-card .map { min-height: 260px; }

  .article-layout { gap: 32px; }
  .article h2 { margin-top: 1.5em; }
  .figure { padding: 12px; margin: 20px 0; }
  .figure img { max-height: 220px; }
  .callout { padding: 18px; }
  .chips li { font-size: .9rem; padding: 6px 12px; }
  .lead-doctor { gap: 24px; }
  .lead-doctor .photo { max-width: none; aspect-ratio: 4 / 4; }
  .member { grid-template-columns: 84px 1fr; gap: 14px; }
  .member .avatar { width: 84px; height: 104px; font-size: 1.4rem; }
  .quote-big { font-size: 1.3rem; }
  .gallery { grid-auto-rows: 130px; gap: 8px; }
  .promo-pair { gap: 12px; }
  .site-footer { padding-top: 40px; }
  .foot-grid { gap: 24px; }
}
@media (max-width: 380px) {
  .member { grid-template-columns: 1fr; }
}

/* ---------- Agendamento ---------- */
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.top-actions .btn .icon { width: 18px; height: 18px; }

.agenda-panel {
  background: var(--deep); color: #fff; border-radius: var(--r-panel);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  position: relative; overflow: hidden;
}
.agenda-panel::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 135, 166, .55), transparent 70%); pointer-events: none;
}
.agenda-panel > * { position: relative; }
.agenda-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-weight: 600; font-size: .92rem; color: #bfe3ee;
}
.agenda-tag .icon { width: 18px; height: 18px; }
.agenda-texto h2 { color: #fff; margin: 0 0 12px; }
.agenda-texto .lead { color: rgba(255, 255, 255, .86); margin: 0 0 26px; max-width: 34ch; }
.agenda-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dor { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-dor:hover { background: rgba(255, 255, 255, .1); }
.pulso {
  width: 10px; height: 10px; border-radius: 50%; background: #ff7a5c; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 122, 92, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .pulso { animation: pulso 1.8s ease-out infinite; }
  @keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 92, 0); } }
}
.agenda-lado {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px);
}
.agenda-passos { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.agenda-passos li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.agenda-passos b {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 700 .9rem/1 var(--font-head);
}
.agenda-atalhos { margin: 0 0 12px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.agenda-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  background: #fff; color: var(--deep); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.agenda-chip:hover { background: var(--mist); }
.agenda-chip:focus-visible { outline-color: #fff; }
@media (max-width: 900px) { .agenda-panel { grid-template-columns: 1fr; } }

/* barra fixa do celular: agendar + WhatsApp */
.m-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60; gap: 10px;
}
.m-bar a {
  min-height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
}
.m-bar .icon { width: 22px; height: 22px; }
.m-bar-agendar { flex: 1; background: var(--cta); }
.m-bar-agendar:hover { background: var(--cta-hover); }
.m-bar-wa { flex: none; width: 54px; background: var(--wa); }
.m-bar-wa .icon { width: 26px; height: 26px; }

@media (max-width: 640px) {
  .agenda-panel { border-radius: 22px; padding: 26px 20px; }
  .agenda-acoes .btn { width: 100%; }
  .agenda-passos { grid-template-columns: 1fr; }
  .agenda-lado { padding: 18px 16px; }
}
