:root {
  --azul: #2c6fb5;
  --azul-esc: #1d4f86;
  --verm: #e63338;
  --verde: #17804a;
  --tinta: #1d2733;
  --suave: #5a6675;
  --linha: #e3e8ee;
  --fundo: #f5f8fb;
  --raio: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--azul); }
a:hover { color: var(--azul-esc); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--tinta); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.secao { padding: 3.5rem 0; }
.secao-fundo { background: var(--fundo); }
.centro { text-align: center; }
.lead { font-size: 1.15rem; color: var(--suave); max-width: 46rem; }
.centro .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }

/* botões */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; transition: filter .15s, background .15s;
  white-space: nowrap;
}
.bt-wa { background: var(--verde); color: #fff; }
.bt-wa:hover { filter: brightness(1.08); color: #fff; }
.bt-azul { background: var(--azul); color: #fff; }
.bt-azul:hover { background: var(--azul-esc); color: #fff; }
.bt-claro { background: #fff; color: var(--azul); border-color: var(--azul); }
.bt-claro:hover { background: var(--fundo); }
.bts { display: flex; flex-wrap: wrap; gap: .75rem; }

/* topo */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.marca { display: block; padding: 6px 0; }
.marca img { width: 104px; height: auto; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.bt) { color: var(--tinta); text-decoration: none; font-weight: 500; }
.menu a:not(.bt):hover { color: var(--azul); }
.menu-tg, .menu-bt { display: none; }

@media (max-width: 760px) {
  .menu-bt { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-bt span, .menu-bt span::before, .menu-bt span::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--tinta); content: ""; transition: .2s;
  }
  .menu-bt span { top: 21px; }
  .menu-bt span::before { left: 0; top: -7px; }
  .menu-bt span::after { left: 0; top: 7px; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--linha); padding: .5rem 1.25rem 1rem;
  }
  .menu a:not(.bt) { padding: .8rem 0; border-bottom: 1px solid var(--linha); }
  .menu .bt { margin-top: 1rem; }
  .menu-tg:checked ~ .menu { display: flex; }
  .menu-tg:checked + .menu-bt span { background: transparent; }
  .menu-tg:checked + .menu-bt span::before { top: 0; transform: rotate(45deg); }
  .menu-tg:checked + .menu-bt span::after { top: 0; transform: rotate(-45deg); }
}

/* capa da home */
.capa { position: relative; color: #fff; background: #13243a url(/img/fachada.jpg) center/cover no-repeat; }
.capa { background-image: image-set(url(/img/fachada-1000.webp) type("image/webp"), url(/img/fachada.jpg) type("image/jpeg")); }
@media (min-width: 1001px) { .capa { background-image: image-set(url(/img/fachada-1600.webp) type("image/webp"), url(/img/fachada.jpg) type("image/jpeg")); } }
.capa::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,30,52,.92) 0%, rgba(14,30,52,.75) 55%, rgba(14,30,52,.35) 100%); }
.capa .wrap { position: relative; padding: 5.5rem 0 5rem; }
.capa h1 { color: #fff; max-width: 34rem; }
.capa p { color: #dbe5f0; font-size: 1.15rem; max-width: 36rem; }
.capa .bt-claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.capa .bt-claro:hover { background: rgba(255,255,255,.1); }
.selos { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; color: #c9d6e4; font-size: .95rem; }
.selos li::before { content: "✓ "; color: #7fd1a1; font-weight: 700; }

/* cartões de exames */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(29,39,51,.1); transform: translateY(-2px); color: inherit; }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card div { padding: 1.1rem 1.25rem 1.3rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--suave); font-size: .97rem; margin: 0; }
.card .mais { display: inline-block; margin-top: .7rem; color: var(--azul); font-weight: 600; font-size: .95rem; }

/* convênios */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.logos li { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; }
.logos img { max-height: 64px; width: auto; }
.logos span { font-size: .85rem; color: var(--suave); }

/* contato */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contato .bloco { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.5rem; }
.contato dl { margin: 0; }
.contato dt { font-weight: 600; margin-top: 1rem; }
.contato dt:first-child { margin-top: 0; }
.contato dd { margin: 0; color: var(--suave); }
.mapa { border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); }
.mapa img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 760px) { .contato { grid-template-columns: 1fr; } }

/* páginas internas */
.cabeca { background: var(--fundo); border-bottom: 1px solid var(--linha); padding: 2.5rem 0 2rem; }
.cabeca p { color: var(--suave); margin: 0; max-width: 46rem; }
.trilha { font-size: .9rem; margin-bottom: .6rem; color: var(--suave); }
.trilha a { color: var(--suave); }
.texto { max-width: 46rem; }
.texto h2 { margin-top: 1.8rem; }
.texto ul { padding-left: 1.2rem; }
.texto li { margin-bottom: .35rem; }
.texto details { border: 1px solid var(--linha); border-radius: var(--raio); padding: .8rem 1rem; margin: .6rem 0; background: #fff; }
.texto summary { cursor: pointer; font-weight: 600; }
.texto details p { margin: .6rem 0 0; }
.nota { font-size: .92rem; opacity: .8; margin-top: 1.4rem; }
.convenios-exame { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.convenios-exame li { border: 1px solid var(--linha); border-radius: 999px; padding: .3rem .9rem; background: #fff; }
.exame { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.exame img { border-radius: var(--raio); }
@media (max-width: 860px) { .exame { grid-template-columns: 1fr; } .exame > picture { order: -1; } }
.lista-exames { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.lista-exames a { display: block; padding: .5rem 1rem; border: 1px solid var(--linha); border-radius: 999px; text-decoration: none; color: var(--tinta); }
.lista-exames a:hover { border-color: var(--azul); color: var(--azul); }
.bloco-exame { display: grid; grid-template-columns: 280px 1fr; gap: 1.75rem; padding: 2rem 0; border-top: 1px solid var(--linha); }
.bloco-exame:first-child { border-top: 0; }
.bloco-exame img { border-radius: var(--raio); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 700px) { .bloco-exame { grid-template-columns: 1fr; } }
.checks { padding-left: 1.2rem; }
.checks li { margin-bottom: .3rem; }

/* faixa de chamada */
.faixa { background: var(--azul); color: #fff; }
.cta-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; }
.cta-linha p { margin: 0; font-size: 1.1rem; }
.faixa .bt-claro { border-color: #fff; }

/* rodapé */
.rodape { background: #13243a; color: #c3cfdc; font-size: .95rem; margin-top: 0; }
.rodape a { color: #fff; }
.rodape h2 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.rodape-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.rodape-logo { background: #fff; border-radius: 8px; padding: 6px 10px; width: 130px; margin-bottom: .8rem; }
.rodape-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 1.5rem; font-size: .88rem; }
.rodape-legal p { margin: .2rem 0; }
@media (max-width: 760px) { .rodape-in { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s;
}
.wa-flutuante:hover { transform: scale(1.07); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.conv-nome { font-size: 1.35rem; color: var(--azul); min-height: 64px; display: flex; align-items: center; }
section[id] { scroll-margin-top: 90px; }
.selo { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: #fdecec; color: #a3191e; font-size: .78rem; font-weight: 700; vertical-align: middle; }
