/* ==========================================================
   Implant Senior — folha de estilos
   Paleta extraída da logo: #30B5BC
   ========================================================== */

:root {
  --teal: #30b5bc;
  --teal-deep: #12828a;
  --ink: #08373d;
  --ink-soft: #2b5359;
  --mist: #e7f6f6;
  --aqua: #bfe8ea;
  --white: #ffffff;
  --wa: #12803f;
  --wa-dark: #0d6a33;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(48, 181, 188, .25);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.005em; font-variation-settings: "opsz" 36; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.lead { font-size: 1.25rem; line-height: 1.6; max-width: 34em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: .75rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px;
  padding: .9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1.05rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
/* brilho que cruza o botão ao passar o mouse */
.btn--primary::after, .btn--wa::after, .btn--light::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--primary:hover::after, .btn--wa:hover::after, .btn--light:hover::after {
  transform: translateX(120%); transition: transform .8s ease;
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); box-shadow: 0 14px 28px -14px rgba(8, 55, 61, .6); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--small { min-height: 46px; padding: .6rem 1.25rem; font-size: 1rem; }
.btn:active { transform: translateY(1px) scale(.99); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(8, 55, 61, .35); }

/* barra que mostra o quanto da página já foi lida */
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform-origin: left; transform: scaleX(var(--p, 0));
}

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

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink);
}
.brand--light .brand-name { color: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a:not(.btn):not(.nav-phone) {
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink);
  padding-block: .4rem;
  background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.nav a:not(.btn):not(.nav-phone):hover { background-size: 100% 2px; }
.nav-phone { display: none; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle-bars { top: 50%; margin-top: -1px; }
.menu-toggle-bars::before { top: -6px; left: 50%; }
.menu-toggle-bars::after  { top: 6px;  left: 50%; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 9vw, 8rem);
  overflow: hidden;
}

/* fita decorativa que se desenha sozinha */
.hero-ribbon {
  position: absolute; left: 0; bottom: 0; width: min(70%, 900px); height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-ribbon path {
  fill: none; stroke: var(--aqua); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 3.2s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.4rem; max-width: 12.5em; }
.hero-copy .lead { margin-bottom: 2.2rem; }

/* entrada do topo: palavra por palavra, depois o restante */
.word { display: inline-block; animation: word-up .9s var(--ease) calc(.1s + var(--i) * 70ms) both; }
@keyframes word-up { from { opacity: 0; transform: translateY(.55em); } }

.hero-copy .lead   { animation: fade-up .9s var(--ease) .8s both; }
.hero-actions      { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-copy .hero-actions { animation: fade-up .9s var(--ease) .95s both; }
.hero-points       { animation: fade-up .9s var(--ease) 1.1s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

.hero-points { margin-top: 2.4rem; display: grid; gap: .55rem; }
.hero-points li {
  position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 1.05rem; height: .6rem;
  border-left: 3px solid var(--teal-deep); border-bottom: 3px solid var(--teal-deep);
  transform: rotate(-48deg) translateY(-30%);
}

.hero-visual { position: relative; justify-self: end; width: min(100%, 480px); }

.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: var(--teal);
  border-radius: 220px 36px 220px 36px;
  display: grid; place-items: center;
  animation: panel-in 1.1s var(--ease) .1s both;
}
@keyframes panel-in { from { opacity: 0; transform: scale(.92) rotate(-2deg); } }
.hero-panel::after {
  content: ""; position: absolute; inset: 16px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 206px 24px 206px 24px;
  pointer-events: none;
}
.hero-tooth {
  width: 68%;
  animation: reveal-logo 1.6s cubic-bezier(.65, 0, .25, 1) .5s both;
}
@keyframes reveal-logo {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.25rem .95rem 1rem;
  background: var(--white); color: var(--ink);
  border-radius: 18px; text-decoration: none; line-height: 1.3; font-size: .98rem;
  box-shadow: 0 18px 40px -18px rgba(8, 55, 61, .5);
}
.hero-chip strong { display: block; font-weight: 700; }
.hero-chip .icon { width: 2.1rem; height: 2.1rem; padding: .45rem; background: var(--mist); color: var(--teal-deep); border-radius: 50%; }

.hero-chip--wa {
  left: -2.2rem; bottom: 2.6rem;
  animation: chip-in .8s var(--ease) 1.7s both, float 6s ease-in-out 2.5s infinite alternate;
}
.hero-chip--loc {
  right: -1rem; top: 3rem; padding: .7rem 1.1rem .7rem .75rem;
  animation: chip-in .8s var(--ease) 2s both, float 7s ease-in-out 2.8s infinite alternate-reverse;
}
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -9px; } }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: clamp(40px, 6vw, 90px);
  fill: var(--teal);
  display: block;
}

/* ---------- Faixa animada ---------- */
.marquee {
  background: var(--teal); color: var(--ink);
  overflow: hidden; padding-block: 1.15rem 1.35rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group li {
  display: flex; align-items: center; white-space: nowrap;
  font: 500 clamp(1.3rem, 2.6vw, 1.8rem)/1.2 var(--font-display);
  font-variation-settings: "opsz" 48;
  padding-inline: 1.6rem;
}
.marquee-group li::after {
  content: ""; width: 1.2rem; height: 1.2rem; margin-left: 3.2rem; flex: none;
  background: url("../assets/tooth-white.png") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity .9s ease var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms),
    filter .9s ease var(--d, 0ms);
}
.js [data-reveal="rise"]  { transform: translateY(30px); }
.js [data-reveal="left"]  { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="pop"]   { transform: translateY(24px) scale(.95); }
.js [data-reveal="wipe"]  { transform: translateY(22px); filter: blur(10px); }
.js [data-reveal].is-in   { opacity: 1; transform: none; filter: none; }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .86); overflow: hidden; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--teal { background: var(--teal); color: var(--ink); overflow: hidden; }

.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }

.split {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.split-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-head h2 { margin-bottom: 1.1rem; }
.split-head p { margin-bottom: 1.8rem; max-width: 26em; }

/* Tratamentos: cada item abre uma conversa no WhatsApp */
.treatments li { border-top: 1.5px solid var(--aqua); }
.treatments li:last-child { border-bottom: 1.5px solid var(--aqua); }
.treatments a {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.7rem .5rem 1.7rem 0; text-decoration: none; color: inherit;
  transition: padding .35s var(--ease), background-color .35s ease;
}
.treatments h3 { margin-bottom: .5rem; font-size: 1.65rem; transition: color .25s ease; }
.treatments p { max-width: 32em; }
.t-body { display: block; }
.t-go {
  flex: none; width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--aqua); color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .4s var(--ease);
}
.t-go svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.treatments a:hover, .treatments a:focus-visible { padding-left: 1.1rem; background: var(--mist); }
.treatments a:hover h3 { color: var(--teal-deep); }
.treatments a:hover .t-go { background: var(--ink); border-color: var(--ink); color: var(--white); transform: rotate(-45deg); }

/* Sinais */
.signs-card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  background: var(--white);
  border-radius: 44px 44px 44px 10px;
  padding: clamp(1.75rem, 5vw, 4rem);
  box-shadow: 0 40px 70px -48px rgba(8, 55, 61, .45);
}
.signs-head h2 { margin-bottom: 1.1rem; }
.signs-head p { margin-bottom: 1.8rem; max-width: 28em; }
.signs-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-block: 1.05rem; border-bottom: 1.5px solid var(--mist);
  color: var(--ink); font-weight: 500;
}
.signs-list li:first-child { padding-top: 0; }
.signs-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check {
  flex: none; width: 2.1rem; height: 2.1rem; margin-top: -.1rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--teal);
}
.check svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .7s ease calc(var(--d, 0ms) + .45s); }
.js .is-in .check path { stroke-dashoffset: 0; }

/* Passos (sequência real: numeração faz sentido) */
.steps {
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.steps li { counter-increment: passo; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(passo);
  position: absolute; top: 0; left: 0;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--teal); color: var(--ink);
  font: 500 1.4rem/1 var(--font-display);
  border-radius: 50%;
  z-index: 1;
}
/* a linha entre os passos se desenha quando o passo aparece */
.steps li::after {
  content: ""; position: absolute; top: calc(1.5rem - 1px); left: 3.4rem; right: -1.2rem; height: 2px;
  background: linear-gradient(var(--teal), var(--teal)) left / 0 100% no-repeat, var(--aqua);
  transition: background-size 1.1s ease calc(var(--d, 0ms) + .5s);
}
.js .steps li.is-in::after, .steps li:last-child::after { background-size: 100% 100%; }
.steps li:last-child::after { display: none; }
.js .steps li::before { transform: scale(.4); transition: transform .7s var(--ease) calc(var(--d, 0ms) + .15s); }
.js .steps li.is-in::before { transform: none; }
.steps h3 { margin-bottom: .55rem; font-size: 1.3rem; }

/* Nosso cuidado */
.care { display: grid; gap: 2.2rem; }
.care > div { padding-left: 1.6rem; border-left: 3px solid var(--teal); }
.care h3 { margin-bottom: .4rem; }
.watermark {
  position: absolute; right: -6%; bottom: -22%;
  width: min(48vw, 520px); opacity: .07; pointer-events: none;
}
.watermark--contact { right: auto; left: -8%; top: -12%; bottom: auto; opacity: .13; width: min(46vw, 460px); }

/* Dúvidas */
.faq details { border-top: 1.5px solid var(--aqua); }
.faq details:last-child { border-bottom: 1.5px solid var(--aqua); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.4rem 0;
  font: 500 1.3rem/1.3 var(--font-display);
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--mist);
  transition: background-color .2s ease, transform .35s var(--ease);
}
.faq summary:hover::after { background-color: var(--aqua); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--aqua); }
.faq details p { padding: 0 3.3rem 1.5rem 0; max-width: 36em; }
.faq details[open] p { animation: faq-open .45s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }

/* Contato */
.contact {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact h2 { margin-bottom: 1.1rem; }
.contact .lead { margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1rem; }
.contact-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, .92);
  border-radius: 18px;
  color: var(--ink);
}
.contact-list .icon {
  width: 2.8rem; height: 2.8rem; padding: .65rem;
  background: var(--mist); color: var(--teal-deep); border-radius: 50%;
}
.contact-list span { display: grid; line-height: 1.3; }
.contact-list small { font-size: .9rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Rodapé */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-block: 3rem; }
.footer-inner {
  display: grid; gap: 1.6rem 3rem; align-items: center;
  grid-template-columns: 1fr auto auto;
}
.footer-brand { display: grid; gap: .6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-nav a { text-decoration: none; font-size: 1rem; padding-block: .3rem; }
.footer-nav a:hover { color: var(--teal); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--white);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .3s var(--ease);
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); transform: translateY(-3px); }
.footer-social :focus-visible, .footer-nav :focus-visible, .site-footer .brand:focus-visible { outline-color: var(--white); }
.site-footer .copy { grid-column: 1 / -1; font-size: .95rem; opacity: .8; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .16); }

/* Botão flutuante (computador) */
.fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(8, 55, 61, .55);
  transition: transform .2s ease, background-color .2s ease;
}
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: ping 2.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.fab:hover { transform: scale(1.06); background: var(--wa-dark); }
.fab .icon { width: 30px; height: 30px; }
.fab:focus-visible { outline-color: var(--ink); outline-offset: 4px; }

/* Barra fixa (celular) */
.mobile-bar { display: none; }

/* ---------- Fotos da clínica ---------- */

/* topo: foto da fachada no formato de folha, com a logo num selo */
.hero-panel { display: block; overflow: hidden; background: var(--teal); }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 0% 50%;
  animation: photo-in 2.4s var(--ease) .15s both;
}
@keyframes photo-in { from { transform: scale(1.16); } }

.hero-badge {
  position: absolute; z-index: 2; left: -1.6rem; top: 1.2rem;
  width: 6.6rem; height: 6.6rem; border-radius: 50%;
  background: var(--teal); display: grid; place-items: center;
  box-shadow: 0 0 0 7px var(--white), 0 22px 40px -16px rgba(8, 55, 61, .55);
  animation: chip-in .8s var(--ease) 1.1s both;
}
.hero-badge .hero-tooth { width: 62%; animation: reveal-logo 1.4s cubic-bezier(.65, 0, .25, 1) 1.5s both; }

/* galeria em mosaico */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 236px);
}
.gallery li { min-width: 0; }
.g1 { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.g2 { grid-column: 8 / span 5; grid-row: 1; }
.g3 { grid-column: 8 / span 5; grid-row: 2; }
.g4 { grid-column: 1 / span 4; grid-row: 3; }
.g5 { grid-column: 5 / span 4; grid-row: 3; }
.g6 { grid-column: 9 / span 4; grid-row: 3; }

.shot {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: var(--aqua); cursor: zoom-in; text-align: left;
}
.g1 .shot { border-radius: 110px 26px 26px 26px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g1 img { object-position: 22% 50%; }
.g4 img { object-position: 70% 50%; }

.shot::after {
  content: ""; position: absolute; top: .9rem; right: .9rem; z-index: 1;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--white);
  opacity: 0; transform: scale(.8);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .shot::after { opacity: .92; transform: none; width: 2.2rem; height: 2.2rem; } }

/* as fotos "desaceleram" quando entram na tela */
.js .shot img { transform: scale(1.14); }
.js .is-in .shot img { transform: none; transition-duration: 1.7s; transition-delay: var(--d, 0ms); }
.js .is-in .shot:hover img, .js .is-in .shot:focus-visible img { transform: scale(1.05); transition-duration: 1.2s; transition-delay: 0ms; }
.shot:hover img { transform: scale(1.05); }

/* foto ampliada */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 1rem; border: 0;
  background: rgba(5, 34, 38, .94); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in .3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: .9rem; justify-items: center; max-width: min(1100px, 100%); }
.lightbox img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 6rem);
  object-fit: contain; border-radius: 18px; background: #0b2d31;
  box-shadow: 0 30px 80px -30px #000;
}
.lb-btn {
  position: absolute; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.lb-btn svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--aqua); transform: scale(1.06); }
.lb-btn:focus-visible { outline-color: var(--white); outline-offset: 4px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; margin-top: -28px; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
body.lb-open { overflow: hidden; }

/* mapa */
.map-wrap { position: relative; z-index: 1; margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; justify-items: start; }
.map {
  width: 100%; height: clamp(260px, 36vw, 380px);
  border-radius: 32px 32px 32px 8px; overflow: hidden;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 30px 60px -36px rgba(8, 55, 61, .6);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* rodapé: endereço e responsável técnico */
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer .copy p + p { margin-top: .3rem; }

@media (max-width: 880px) {
  .hero-badge { width: 4.9rem; height: 4.9rem; left: -.5rem; top: 1.1rem; box-shadow: 0 0 0 5px var(--white), 0 16px 30px -14px rgba(8, 55, 61, .55); }
  .hero-photo { object-position: 4% 50%; }
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 42vw, 210px); gap: .75rem; }
  .gallery li { grid-column: auto; grid-row: auto; }
  .gallery > .g1, .gallery > .g6 { grid-column: 1 / -1; }
  .gallery > .g1 { grid-row: span 2; }
  .shot, .g1 .shot { border-radius: 22px; }
  .g1 .shot { border-radius: 80px 22px 22px 22px; }
}

/* ---------- Tablets ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
  .steps li:nth-child(2)::after { display: none; }
  .signs-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Notebook pequeno / tablet deitado: cabeçalho compacto para o menu caber numa linha ---------- */
@media (min-width: 881px) and (max-width: 1080px) {
  .nav { gap: .95rem; }
  .nav a { white-space: nowrap; }
  .nav a:not(.btn):not(.nav-phone) { font-size: .95rem; }
  .nav-cta { padding-inline: 1rem; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- Celular e tablet pequeno ---------- */
@media (max-width: 880px) {
  :root { --header-h: 68px; }

  /* o desfoque prenderia o menu em tela cheia dentro do cabeçalho; no celular o fundo é sólido */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }

  body { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .fab { display: none; }

  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .menu-toggle { display: block; }

  /* menu em tela cheia, com links grandes */
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--white);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

  .nav a:not(.btn):not(.nav-phone) {
    padding: 1.05rem 0; border-bottom: 1.5px solid var(--mist); background: none;
    font: 500 1.65rem/1.2 var(--font-display); font-variation-settings: "opsz" 48;
  }
  .nav-cta { margin-top: 1.6rem; min-height: 58px; font-size: 1.1rem; }
  .nav-phone {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    margin-top: 1rem; min-height: 54px; text-decoration: none; font-weight: 600; color: var(--ink);
  }

  /* hero: texto e botões primeiro, logo depois */
  .hero { padding-block: 1.75rem 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy h1 { max-width: none; }
  .hero-copy .lead { font-size: 1.15rem; margin-bottom: 1.8rem; }
  .hero-points { margin-top: 1.8rem; }
  .hero-visual { justify-self: center; width: min(88%, 380px); margin-bottom: 1.2rem; }
  .hero-panel { aspect-ratio: 1 / .9; border-radius: 130px 28px 130px 28px; }
  .hero-panel::after { border-radius: 118px 18px 118px 18px; inset: 12px; }
  .hero-chip--wa { left: -.9rem; bottom: -1.3rem; }
  .hero-chip--loc { right: -.6rem; top: 1.2rem; }
  .hero-ribbon { width: 130%; opacity: .8; }

  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .contact { grid-template-columns: 1fr; }

  /* barra fixa com os dois contatos principais */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: .7rem;
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -16px rgba(8, 55, 61, .45);
  }
  .mobile-bar .btn { min-height: 56px; padding-inline: 1rem; }
  body.menu-open .mobile-bar { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }

  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: .75rem; }
  .signs-card { border-radius: 32px 32px 32px 8px; }
  .signs-head .btn, .split-head .btn { width: 100%; }

  .treatments a { padding-block: 1.4rem; }
  .treatments h3 { font-size: 1.45rem; }
  .t-go { width: 2.6rem; height: 2.6rem; }
  .treatments a:hover, .treatments a:focus-visible { padding-left: .6rem; }

  /* linha do tempo na vertical */
  .steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .steps li { padding: .35rem 0 0 4.4rem; min-height: 3rem; }
  .steps li::after, .steps li:nth-child(2)::after {
    display: block; top: 3.2rem; left: calc(1.5rem - 1px); right: auto; width: 2px; height: auto; bottom: -2rem;
    background: linear-gradient(var(--teal), var(--teal)) top / 100% 0 no-repeat, var(--aqua);
  }
  .js .steps li.is-in::after { background-size: 100% 100%; }
  .steps li:last-child::after { display: none; }

  .faq summary { font-size: 1.18rem; }
  .faq details p { padding-right: 0; }
  .hero-chip { font-size: .88rem; padding: .75rem 1rem .75rem .8rem; }
  .hero-chip .icon { width: 1.9rem; height: 1.9rem; }
  .contact-list li { padding: 1rem 1.1rem; }
  .watermark--contact { opacity: .1; }
  .marquee-group li::after { margin-left: 2.4rem; }
}

/* ---------- Preferências de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .hero-ribbon path { stroke-dashoffset: 0; }
}
