/* Laboratório Oswaldo Cruz — estilos do site */

:root {
  --navy: #283360;
  --navy-dark: #1b2347;
  --sky: #73bfd8;
  --sky-light: #e8f5fa;
  --ink: #1f2937;
  --muted: #5b6475;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --whatsapp: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 51, 96, .10);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: #3c4c8c; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #1f7593; margin-bottom: .6em;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 10px; top: 10px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--sky { background: var(--sky); color: var(--navy-dark); }
.btn--sky:hover { background: #8fcde2; color: var(--navy-dark); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-light); color: var(--navy); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #166534; color: #fff; }
.btn--block { width: 100%; }

/* Topo */
.topbar { background: var(--navy); color: #d6dcf0; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sky); }
.topbar__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list .fa { color: var(--sky); margin-right: 6px; }
.topbar__social { display: flex; gap: 14px; }
.topbar .topbar__hl { background: var(--sky); color: var(--navy-dark); font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.topbar .topbar__hl .fa { color: var(--navy-dark); }
.topbar .topbar__hl:hover { background: #fff; color: var(--navy-dark); }
.topbar__social a { font-size: 1rem; }

.header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.header__logo img { width: 210px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a, .nav__sub-toggle {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__list a:hover, .nav__sub-toggle:hover { color: var(--navy); background: var(--sky-light); }
.nav__list a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 10px 10px 0 0; }
.nav__sub-toggle .fa { font-size: .8em; margin-left: 4px; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px;
  list-style: none; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub, .nav__has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { font-weight: 500; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer;
}

/* Banner principal */
.hero { position: relative; overflow: hidden; background: #dfe3e8; }
.hero__slide {
  display: none; min-height: clamp(420px, 42vw, 620px);
  background-size: cover; background-position: center right; align-items: center;
}
.hero__slide.is-active { display: flex; animation: fade .7s ease; }
.hero__slide { position: relative; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.hero__slide::before { z-index: 1; }
.hero__slide > .wrap { position: relative; z-index: 2; }
.hero__slide:not(.hero__slide--dark)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(233,236,240,.96) 0%, rgba(233,236,240,.9) 38%, rgba(233,236,240,0) 62%); }
.hero__slide--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,35,71,.85) 0%, rgba(27,35,71,.55) 45%, rgba(27,35,71,0) 80%); }
.hero__content { position: relative; max-width: 560px; padding: 60px 0; }
.hero__content h1, .hero__title { margin-bottom: .3em; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__content p { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.6em; }
.hero__slide--dark h1, .hero__slide--dark h2, .hero__slide--dark p, .hero__slide--dark .eyebrow { color: #fff; }
.hero__slide--dark .eyebrow { color: var(--sky); }
.hero__slide--plain { background: radial-gradient(circle at 85% 40%, #3b4f94 0%, var(--navy) 45%, var(--navy-dark) 100%); }
.hero__slide--plain::before { background: none; }
.hero__slide--plain::after {
  content: "\f2c3"; font-family: FontAwesome; position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  font-size: clamp(8rem, 22vw, 20rem); color: rgba(115,191,216,.12); z-index: 1;
}
.hero__dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; }
.hero__dots button[aria-current="true"] { background: #fff; width: 30px; border-radius: 99px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Atalhos abaixo do banner */
.quick { margin-top: -70px; position: relative; z-index: 5; }
.quick__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--line);
}
.card h2, .card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.card p { color: var(--muted); }
.card--navy { background: var(--navy); border-color: var(--navy); color: #d6dcf0; }
.card--navy h2, .card--navy h3 { color: #fff; }
.card--navy p { color: #c3cae6; }
.icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-light); color: var(--navy); font-size: 1.25rem;
}
.card--navy .icon { background: rgba(115,191,216,.18); color: var(--sky); }

.result-form { display: grid; gap: 10px; }
.result-form label { font-size: .8rem; font-weight: 600; color: #b9c2e0; }
.result-form input, .result-form select {
  width: 100%; padding: .75em 1em; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font: inherit;
}
.result-form select option { color: var(--ink); }
.result-form input::placeholder { color: #9aa5cc; }
.result-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Sobre */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; right: -18px; bottom: -22px; background: var(--sky); color: var(--navy-dark);
  border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); text-align: center;
}
.split__badge strong { display: block; font-size: 2rem; line-height: 1; }
.split__badge span { font-size: .8rem; font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--sky-light); color: var(--navy);
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
}

/* Grade de serviços / links */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile__more { margin-top: auto; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* Convênios */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600;
  transition: box-shadow .2s;
}
.logo-card:hover { box-shadow: var(--shadow); color: var(--navy); }
.logo-card img { height: 96px; width: auto; object-fit: contain; }

/* Faixa de chamada */
.cta { background: linear-gradient(120deg, var(--navy) 0%, #34457f 100%); color: #d6dcf0; }
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cta__item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 46px 40px; flex-wrap: wrap; }
.cta__item + .cta__item { border-left: 1px solid rgba(255,255,255,.15); }
.cta__item h3 { color: #fff; font-size: 1.5rem; margin: 0 0 .2em; }
.cta__item p { margin: 0; }

/* Cabeçalho das páginas internas */
.page-head { background: linear-gradient(120deg, var(--navy) 0%, #34457f 100%); color: #d6dcf0; padding: 56px 0 50px; }
.page-head h1 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* Texto corrido */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #374151; }
.prose ul { padding-left: 1.2em; }
.prose ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 1.4em; }
.prose .checks { margin-bottom: 1.4em; }
.lead { font-size: 1.12rem; }
.tiles--compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.4em; }
.tiles--compact .tile { padding: 20px; }
.tiles--compact .tile:hover { transform: none; box-shadow: none; border-color: var(--line); }
.prose .accordion { margin-bottom: 1.4em; }
.post-meta { color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.post-meta .fa { color: #2f8fb0; margin-right: 4px; }
.note { background: var(--sky-light); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin-top: 2em; }
.note .fa { color: var(--navy); margin-right: 6px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.aside { position: sticky; top: 110px; display: grid; gap: 20px; }

/* Acordeão (details/summary) */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion details[open] { box-shadow: var(--shadow); border-color: transparent; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--navy);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "\f107"; font-family: FontAwesome; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); transition: transform .2s; font-size: 1.2rem;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.accordion .accordion__body { padding: 0 22px 20px; color: #374151; }
.accordion .accordion__body p:last-child { margin-bottom: 0; }

/* Lista de instruções */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600;
}
.doc-list a:hover { border-color: var(--sky); background: var(--sky-light); color: var(--navy); }
.doc-list .fa { color: var(--navy); width: 20px; text-align: center; }
.doc-list small { display: block; font-weight: 500; color: var(--muted); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 14, 30, .85); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: fixed; top: 16px; right: 20px; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }

/* Contato */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list span { color: var(--muted); font-size: .92rem; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Rodapé */
.footer { background: var(--navy-dark); color: #b9c2e0; font-size: .93rem; }
.footer a { color: #e6eaf7; text-decoration: none; }
.footer a:hover { color: var(--sky); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .9fr 1.4fr .9fr; gap: 40px; padding: 64px 20px 48px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__brand img { width: 74px; height: 74px; padding: 10px; background: #fff; border-radius: 50%; margin-bottom: 16px; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.footer__social a:hover { background: var(--sky); color: var(--navy-dark); }
.footer__contact .fa { color: var(--sky); width: 18px; margin-right: 8px; }
.footer__contact li { display: flex; align-items: baseline; }
.footer__contact a { display: flex; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom img { height: 26px; width: auto; display: inline-block; vertical-align: middle; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Aviso de cookies */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.2);
  padding: 18px 20px; display: none; gap: 16px; align-items: center; font-size: .9rem;
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; flex: 1; }

/* Responsivo */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .quick__grid .card--navy { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 1140px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 22px;
    box-shadow: 0 20px 30px rgba(0,0,0,.08); display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .nav__has-sub.is-open .nav__sub { display: block; }
  .nav__has-sub:hover .nav__sub { display: none; }
  .nav__has-sub.is-open:hover .nav__sub { display: block; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .cta .wrap { grid-template-columns: 1fr; }
  .cta__item + .cta__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .topbar__hide-sm { display: none; }
  .header .wrap { min-height: 68px; }
  .header__logo img { width: 170px; }
  .hero__slide { min-height: 600px; }
  .hero__img { object-position: 70% center; }
  .hero__slide:not(.hero__slide--dark)::before { background: rgba(233,236,240,.85); }
  .quick { margin-top: -40px; }
  .quick__grid { grid-template-columns: 1fr; }
  .split__badge { right: 12px; }
  .cta__item { padding: 36px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .wa-float { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
