/* Identidade do cartão: branco + vermelho, traçado de ECG que vira coração, nome condensado.
   Layout: cabeçalho com nome, abertura com o traçado, serviços, preparo, sobre, contato. */
:root {
  --paper: #ffffff;
  --wash: #f8f3f3;
  --ink: #1c1a1d;
  --muted: #5f5a5e;
  --red: #c4313b;
  --red-deep: #9f2630;
  --red-soft: #f1d3d5;
  --line: #ebe2e3;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Montserrat", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Cabeçalho */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { text-decoration: none; display: grid; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 26px; letter-spacing: .01em; text-transform: uppercase; }
.brand-name .dr { font-weight: 300; }
.brand-name .nm { font-weight: 600; }
.brand-role { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 6px;
  font: 600 15px/1 var(--body); text-decoration: none;
  border: 2px solid var(--red); transition: background .15s, color .15s;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 10px 16px; font-size: 14px; color: #fff; }

/* Abertura */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.hero h1 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: .005em;
  margin: 14px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: 8px; padding: 26px 26px 22px; box-shadow: 0 18px 40px -28px rgba(80,20,25,.35);
}
.card dl { margin: 0; display: grid; gap: 16px; }
.card dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card dd { margin: 2px 0 0; font-weight: 500; }
.card dd a { text-decoration: none; }
.card dd a:hover { color: var(--red); }
.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rating .stars { color: #e3a008; letter-spacing: .08em; font-size: 17px; }
.rating .go { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--red); }
.rating:hover .go { text-decoration: underline; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: var(--wash); border: 1px solid var(--line); }

.ecg { display: block; width: 100%; height: auto; margin-top: 28px; }
.ecg path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; opacity: .55;
  stroke-dasharray: 2600; stroke-dashoffset: 0; animation: trace 2.4s ease-out both; }
@keyframes trace { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ecg path { animation: none; } }

/* Faixa vermelha (como o rodapé do cartão) */
.band { background: var(--red); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding-top: 18px; padding-bottom: 18px; font-weight: 500; font-size: 15px; }
.band span + span::before { content: "|"; margin-right: 28px; opacity: .55; }

/* Seções */
section.block { padding: 84px 0; }
section.alt { background: var(--wash); }
.sec-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 640px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.sec-head p { margin: 0; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.svc { background: var(--paper); padding: 28px 26px 30px; display: grid; gap: 10px; align-content: start; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc h3 { font-family: var(--display); font-weight: 500; font-size: 23px; text-transform: uppercase; letter-spacing: .01em; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }

.prep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prep article { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.prep h3 { font-family: var(--display); font-weight: 500; font-size: 22px; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--red-soft); }
.prep ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.prep li { padding-left: 20px; position: relative; }
.prep li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.note { margin-top: 24px; font-size: 14px; color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 56px; align-items: center; }
.about-side { display: grid; gap: 24px; }
.portrait { margin: 0; position: relative; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 22px 44px -30px rgba(80,20,25,.5); }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); border-radius: 0 0 8px 8px; }
.about-id { border-left: 4px solid var(--red); padding: 6px 0 6px 24px; }
.about-id .n { font-family: var(--display); font-size: clamp(30px, 3.4vw, 40px); text-transform: uppercase; line-height: 1.08; font-weight: 500; }
.about-id .r { font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.about-id .reg { margin-top: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.about p { margin: 0 0 14px; max-width: 36em; }
.about p:last-child { margin-bottom: 0; }
.cv { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 36em; }
.cv li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv li span:first-child { font-weight: 600; }
.cv li span:last-child { color: var(--muted); font-size: 15px; }

.contact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.c-item { display: grid; gap: 6px; align-content: start; }
.c-item .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.c-item .v { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.c-item a.v { text-decoration: none; }
.c-item a.v:hover { color: var(--red); }
.c-item .s { font-size: 14px; color: var(--muted); }
.contact-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

footer { background: var(--ink); color: #d9d4d6; font-size: 14px; }
footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
footer strong { color: #fff; font-weight: 600; }

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

@media (max-width: 900px) {
  .hero-grid, .about { grid-template-columns: 1fr; gap: 36px; }
  .services, .prep { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .top .wrap { min-height: 64px; }
  .brand-name { font-size: 21px; }
  .brand-role { letter-spacing: .32em; font-size: 10px; }
  .nav { display: none; }
  .hero { padding-top: 40px; }
  .services, .prep, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
  section.block { padding: 60px 0; }
  .band .wrap { justify-content: flex-start; }
  .band span + span::before { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { justify-content: center; padding: 12px; font-size: 14px; }
  body { padding-bottom: 72px; }
}

/* Páginas de exames */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 6px; opacity: .6; }
.page-hero { padding: 18px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 12px 0 16px; }
.page-hero h1 em { font-style: normal; color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 28px; }
.facts div { background: var(--paper); padding: 16px 18px; }
.facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 48px 0 72px; align-items: start; }
.prose h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 28px; line-height: 1.15; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { max-width: 40em; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--red); }
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq div { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq h3 { margin: 0 0 6px; }
.faq p { margin: 0; color: var(--muted); }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.cta { background: var(--wash); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; padding: 22px; display: grid; gap: 12px; }
.cta h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 22px; margin: 0; }
.cta p { margin: 0; font-size: 15px; color: var(--muted); }
.cta .btn { justify-content: center; }
.related h2 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-family: var(--body); }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.related li a:hover { color: var(--red); }
.note-box { font-size: 14px; color: var(--muted); border-left: 3px solid var(--red-soft); padding: 4px 0 4px 14px; margin-top: 28px; }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { color: var(--red); }
.svc .more { font-size: 14px; font-weight: 600; color: var(--red); text-decoration: none; margin-top: 4px; }
.svc .more:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-bottom: 6px; border-bottom: 1px solid #3a3639; margin-bottom: 6px; }
.foot-links a { color: #d9d4d6; text-decoration: none; }
.foot-links a:hover { color: #fff; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .aside { position: static; } .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
