/* Odonto Cristo — estilos globais */
:root {
  --navy: #1f3a5f;
  --navy-900: #142840;
  --blue: #3b9ad9;
  --blue-600: #2a83c2;
  --blue-50: #eef6fc;
  --blue-100: #dcecf8;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 40, 64, .08);
  --shadow-lg: 0 20px 50px rgba(20, 40, 64, .14);
  --container: 1180px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
body.nav-open .wa-float { display: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; line-height: 1.1; white-space: nowrap;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1ebe5b; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }

/* Topbar */
.topbar { background: var(--navy); color: #cfe0f0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 767px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

/* Header */
/* sem backdrop-filter: ele criaria containing block e quebraria o menu mobile (position: fixed) */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(20, 40, 64, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { width: 64px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; }
.brand-name b { color: var(--blue); font-weight: 700; }
.brand-tag { font-size: .66rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 420px) { .site-header .brand-tag { display: none; } }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--blue-600); text-decoration: none; background: var(--blue-50); }
.has-sub { position: relative; }
.has-sub button svg { width: 14px; height: 14px; transition: transform .2s; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.sub a { display: block; padding: 9px 12px; font-size: .92rem; }
@media (min-width: 992px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover button svg { transform: rotate(180deg); }
}
.nav-cta { margin-left: 8px; }
.nav .nav-cta .btn-wa, .nav .nav-cta .btn-wa:hover { color: #fff; background: var(--wa); padding: .8em 1.3em; border-radius: 999px; }
.nav .nav-cta .btn-wa:hover { background: #1ebe5b; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #fff; padding: 16px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.open { transform: none; visibility: visible; }
  .site-header .nav { top: var(--header-bottom, 76px); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button { width: 100%; padding: 14px; font-size: 1.05rem; justify-content: space-between; }
  .sub { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 12px; }
  .has-sub.open .sub { display: block; }
  .has-sub.open button svg { transform: rotate(180deg); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* Seções */
section { padding: 72px 0; }
@media (min-width: 992px) { section { padding: 96px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: linear-gradient(160deg, #f4f9fd 0%, #e6f1fa 55%, #fff 100%); }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 154, 217, .22), transparent 65%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.hero-trust strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.35rem; line-height: 1; }
.hero-trust svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #fff; color: var(--blue); box-shadow: var(--shadow); }

.hero-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.hero-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero-card img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .tooth { width: 62%; height: auto; opacity: .95; }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); line-height: 1.3;
}
.float-card strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1rem; }
.float-card svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.float-card.fc-1 { left: -14px; top: 12%; }
.float-card.fc-2 { right: -14px; bottom: 12%; }
@media (max-width: 480px) { .float-card.fc-1 { left: 8px; } .float-card.fc-2 { right: 8px; } }

/* Diferenciais */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature svg { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Cards de tratamento */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card .icon { width: 56px; height: 56px; padding: 13px; border-radius: 14px; background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; margin-bottom: 18px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card-cta { background: linear-gradient(140deg, var(--navy), var(--blue-600)); border-color: transparent; }
.card-cta h3, .card-cta .more { color: #fff; }
.card-cta p { color: #d7e7f5; }
.card-cta .icon { background: rgba(255, 255, 255, .15); }
.card:hover .more svg { transform: translateX(4px); }

/* Sobre / split */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.reverse > :first-child { order: 2; } }
.media-box {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4;
  background: linear-gradient(150deg, var(--blue-100), var(--blue-50)); display: grid; place-items: center; color: var(--navy);
}
.media-box img { width: 100%; height: 100%; object-fit: cover; }
.media-box .placeholder { text-align: center; padding: 24px; color: var(--muted); font-size: .9rem; }
.media-box .placeholder svg { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--blue); }
.badge-years {
  position: absolute; left: 20px; bottom: 20px; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 20px;
  font-family: var(--font-head); line-height: 1.1; box-shadow: var(--shadow-lg);
}
.badge-years strong { font-size: 2.2rem; display: block; }
.badge-years span { font-size: .8rem; opacity: .85; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 3px; }

/* Passos */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 32px 28px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--blue-100); position: absolute; right: 22px; top: 14px;
}
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Avaliações */
.reviews-box {
  display: grid; gap: 28px; align-items: center; padding: 40px; border-radius: 24px; background: #fff; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .reviews-box { grid-template-columns: auto 1fr auto; } }
.stars { display: flex; gap: 4px; color: #f5b301; }
.stars svg { width: 26px; height: 26px; }
.reviews-score { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Localização */
.location { display: grid; gap: 32px; }
@media (min-width: 992px) { .location { grid-template-columns: .9fr 1.1fr; align-items: stretch; } }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--blue-50); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* CTA final */
.cta-band { background: linear-gradient(130deg, var(--navy) 0%, var(--blue-600) 100%); color: #fff; text-align: center; border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e7f5; max-width: 620px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Página interna */
.page-hero { background: linear-gradient(160deg, #f4f9fd, #e6f1fa); padding: 48px 0 56px; }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9fb0c2; }
.breadcrumb a { color: var(--muted); }

.article-layout { display: grid; gap: 48px; }
@media (min-width: 992px) { .article-layout { grid-template-columns: 1fr 340px; gap: 64px; } }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a4654; }
.prose ul li { margin-bottom: .4em; }
.prose .checklist li { color: #3a4654; }
.aside-card { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: #d7e7f5; }
.aside-card h3 { color: #fff; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .92rem; display: grid; gap: 8px; }
.aside-card a.link { color: #fff; }
.related { margin-top: 18px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.notice { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--blue-100); padding-left: 12px; margin-top: 32px; }

/* Rodapé */
.site-footer { background: var(--navy-900); color: #b5c7da; padding: 64px 0 0; font-size: .94rem; margin-top: 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b5c7da; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: #8ea6bf; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding: 20px 0; font-size: .82rem; color: #8ea6bf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animação */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
