/* Layout: editorial-clínico. Hero em duas colunas com odontograma interativo, seções alternando fundo,
   cartões planos com linha fina, um único bloco cheio (chamada final), dock de WhatsApp fixo. */
:root {
  --bg: #F3F8F8;
  --surface: #FFFFFF;
  --ink: #0F2A31;
  --muted: #4A656B;
  --brand: #0E5563;
  --on-brand: #FFFFFF;
  --accent: #9ADAD0;
  --line: #D3E2E2;
  --wa: #12803F;
  --wa-hover: #0E6B34;
  --wa-deep: #0B5E2F;
  --cream: #F7F3EC;
  --caramel: #B98A5E;
  --caramel-ink: #8A5A2B;
  color-scheme: light;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
  --gutter: clamp(16px, 5vw, 48px);
  --dock-h: 0px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1A1E; --surface: #112429; --ink: #E8F2F2; --muted: #9DB7BC;
  --brand: #7FD0C4; --on-brand: #06242A; --accent: #1F5C65; --line: #20393F;
  --cream: #0F2328; --caramel: #D1A67B; --caramel-ink: #D1A67B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.display { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.01em; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.i { width: 20px; height: 20px; flex: none; }
.i-lg { width: 36px; height: 36px; flex: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.link-wa { display: inline-block; padding-block: 10px; font-weight: 600; font-size: 15.5px; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link-wa:hover { text-decoration-thickness: 2.5px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 23px; }
.brand span { font-family: var(--font-body); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 8px; }
.nav a { text-decoration: none; padding-block: 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.500px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.500px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-photo { margin: 0; aspect-ratio: 1; max-width: 470px; width: 100%; justify-self: end; border-radius: 50%; padding: 10px; border: 1.5px solid var(--caramel); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: var(--line); display: block; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.hero h1 em { color: var(--brand); font-style: italic; }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rating a { text-underline-offset: 3px; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.stars { color: var(--caramel-ink); letter-spacing: 2px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.cap { margin-top: 16px; font-size: 14.5px; color: var(--muted); min-height: 3.2em; }
.cap strong { color: var(--ink); font-weight: 600; }

/* Odontograma */
.arch { margin-top: 16px; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.arch + .midline + .arch { margin-top: 10px; }
.midline { height: 1px; background: var(--line); margin-top: 10px; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.tooth svg { width: 100%; height: auto; display: block; fill: var(--bg); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: fill .15s ease, color .15s ease; }
.tooth i { font-style: normal; font-family: var(--font-mono); font-size: 9px; line-height: 1; }
.tooth:hover svg, .tooth:focus-visible svg { fill: var(--accent); color: var(--brand); }
.tooth.on svg { fill: var(--brand); color: var(--brand); }
.tooth.on i { color: var(--brand); font-weight: 500; }
.tooth.flip { flex-direction: column-reverse; }
.tooth.flip svg { transform: scaleY(-1); }

/* Faixa de credenciais */
.creds-band { background: var(--surface); border-block: 1px solid var(--line); }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.cred + .cred { padding-left: 20px; border-left: 1px solid var(--line); }
.cred small { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cred b { font-weight: 600; font-size: 16px; line-height: 1.3; }

/* Seções */
section { padding: clamp(48px, 7vw, 96px) 0; }
.creds-band { padding-block: 0; }
.alt { background: var(--cream); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Sobre */
.plan-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.plan-grid .section-head { margin-bottom: 0; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 720px; }
.about-text p { color: var(--muted); max-width: 60ch; }
.about-text strong { color: var(--ink); font-weight: 600; }
.facts { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; width: 100%; }
.facts li { border-top: 2px solid var(--brand); padding-top: 10px; font-size: 15px; overflow-wrap: anywhere; }
.facts small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Grades e cartões */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card, .case { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card h3, .case h3 { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 29px; line-height: 1.1; }
.card p, .case p { color: var(--muted); font-size: 16px; }
.card .link-wa, .card .btn { margin-top: auto; }
.card p { margin-bottom: 8px; }
.alt .card:not(.card-cta) { background: var(--surface); }
.card-cta { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card-cta p { color: var(--on-brand); opacity: .9; }
.card-cta .btn-wa { background: #fff; color: var(--wa-deep); }
.card-cta .btn-wa:hover { background: #E9F6EE; }

/* Casos */
.case { background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.case-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: 14px; }
.case-feature img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 6px); aspect-ratio: 1173 / 880; object-fit: cover; }
.case-feature .case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px clamp(8px, 2vw, 24px) 12px 0; }
.case-feature h3 { font-size: clamp(30px, 3.4vw, 42px); }
.case-profile h3 { font-size: clamp(21px, 2.1vw, 25px); }
.case:hover { border-color: var(--brand); transform: translateY(-2px); }
.case .i-lg { color: var(--brand); }
.go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15.5px; color: var(--brand); }
.go::after { content: " →"; }

/* Diferenciais */
.diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--line); }
.diff { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.diff h3 { font-size: 30px; font-family: var(--font-display); line-height: 1.1; }
.diff p { color: var(--muted); font-size: 16px; }

/* Depoimentos */
.reviews { display: flex; flex-direction: column; gap: 24px; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.score .big { font-family: var(--font-display); font-size: clamp(64px, 10vw, 104px); line-height: .9; color: var(--brand); }
.score .stars { font-size: 22px; }
.score .small { color: var(--muted); font-size: 16px; }
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quotes:empty { display: none; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.25; text-wrap: pretty; }
.quote:first-child { grid-column: 1 / -1; }
.quote:first-child blockquote { font-size: clamp(28px, 3.6vw, 40px); max-width: 30ch; }
.quote figcaption { font-size: 14.5px; color: var(--muted); margin-top: auto; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 92px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 62ch; }

/* Localização */
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.loc-info { display: flex; flex-direction: column; }
.loc-info dl { margin: 0; display: grid; gap: 18px; }
.loc-info dt { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.loc-info dd { margin: 0; font-size: 18px; }
.loc-info dd a { text-underline-offset: 3px; }
.map-card { display: flex; flex-direction: column; gap: 14px; }
.map-card iframe { width: 100%; flex: 1; min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chamada final e rodapé */
.final { padding-top: 0; }
.final-box { background: var(--brand); color: var(--on-brand); border-radius: 26px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.final-box h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16ch; }
.final-box p { margin-top: 10px; opacity: .88; max-width: 46ch; }
.final-box .btn-wa { background: #fff; color: var(--wa-deep); }
.final-box .btn-wa:hover { background: #E9F6EE; }
footer { padding: 32px 0 calc(40px + var(--dock-h)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot { display: flex; flex-direction: column; gap: 8px; }
footer a { text-underline-offset: 3px; }

/* Dock de WhatsApp */
.dock { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.dock a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.dock-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.dock-wa:hover { background: var(--wa-hover); }
.dock-wa .i { width: 24px; height: 24px; }
.dock-call { display: none !important; }

@media (max-width: 900px) {
  .hero-grid, .plan-grid, .loc-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred:nth-child(3) { padding-left: 0; border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-photo { justify-self: center; max-width: 190px; order: -1; padding: 8px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --dock-h: 78px; }
  body { font-size: 16.5px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .arch { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px 4px; }
  .tooth { padding: 6px 0; min-height: 56px; }
  .tooth i { font-size: 10px; }
  .arch + .midline + .arch { margin-top: 14px; }
  .midline { margin-top: 14px; }
  .hero-card { padding: 16px 14px 14px; }
  .case, .card { padding: 22px; }
  .case-feature { padding: 12px; }
  .map-actions .btn { flex: 1 1 100%; }
  .review-actions .btn { flex: 1 1 100%; }
  .final-box .btn { width: 100%; }
  .brand b { font-size: 21px; }
  /* Barra fixa com dois botões */
  .dock { left: 0; right: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .dock a { flex: 1; min-height: 54px; box-shadow: none; padding: 0 16px; }
  .dock-wa { flex: 2; }
  .dock-call { display: inline-flex !important; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
}
@media (max-width: 900px) {
  .case-feature { grid-template-columns: minmax(0, 1fr); }
  .case-feature .case-body { padding: 4px 10px 12px; }
}
@media (max-width: 360px) {
  .brand b { font-size: 18px; white-space: nowrap; }
  .brand span { font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
  .bar { gap: 8px; }
  .btn-sm { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .case, .tooth svg, .faq summary::after, .menu-btn span { transition: none; }
}
