/* ==========================================================================
   LP Dr. Giovanni Pinto — Cardiologia
   Paleta: cartão virtual (azul petróleo-marinho + degradê vermelho do coração)
   ========================================================================== */

:root {
  --navy-950: #04263F;
  --navy-900: #073B62;
  --navy-800: #0C4F80;
  --navy-700: #1463A0;
  --navy-100: #E4EDF5;
  --red-600: #C1272D;
  --red-700: #A4161F;
  --red-400: #E4575C;
  --red-300: #F08A8D;
  --red-100: #FBE9EA;
  --brown: #5B3B3A;

  --ink: #0E2A4C;
  --muted: #5B6679;
  --line: #E2E6EC;
  --bg: #FFFFFF;
  --bg-soft: #F3F4F6;

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

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 59, 98, .06), 0 2px 8px rgba(7, 59, 98, .04);
  --shadow-md: 0 10px 30px -12px rgba(7, 59, 98, .22);
  --container: 1200px;
  --trust-h: 68px;
  --header-h: 76px;
}

/* 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-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; color: var(--navy-900); }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
h1, h2, h3, summary, .eyebrow, .section-head p, .cta-final p { text-wrap: balance; }
p, li, address, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

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

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); line-height: 1.4; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--red-300); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .9375rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-red { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(193, 39, 45, .55); }
.btn-red:hover { background: var(--red-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: rgba(7, 59, 98, .22); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-white { background: #fff; color: var(--red-600); }
.btn-white:hover { background: var(--red-100); color: var(--red-700); }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--red-600);
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy-900); color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; color: var(--red-400); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; }
.brand-text small { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy-900); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(193, 39, 45, .07), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero .eyebrow { letter-spacing: .1em; white-space: nowrap; }
.hero-media { justify-self: end; width: 100%; max-width: 440px; }
.hero-title { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; color: var(--navy-900); text-wrap: balance; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.1; margin-bottom: 20px; max-width: 13em; }
.hero-title em { font-style: italic; color: var(--red-600); }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-facts { display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.875rem; color: var(--navy-900); line-height: 1.1; }
.hero-facts span { font-size: .875rem; color: var(--muted); }

.hero-media { position: relative; margin: 0; }
.hero-media::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px;
  border-radius: var(--radius-lg); background: var(--navy-900); z-index: 0;
}
.hero-media > * { position: relative; z-index: 1; }
.hero-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; width: 100%; background: var(--navy-800); }


/* Trust strip ------------------------------------------------------------ */
.trust { background: var(--navy-900); color: #fff; padding: 20px 0; }
.trust-inner { display: flex; align-items: center; gap: 32px; }
.trust-label {
  flex-shrink: 0; margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-300); white-space: nowrap;
}
/* Letreiro rolante: duas cópias da lista andam juntas e se emendam */
.trust-marquee {
  flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.trust-list {
  display: flex; flex-shrink: 0; align-items: center;
  animation: marquee 38s linear infinite;
}
.trust-marquee:hover .trust-list { animation-play-state: paused; }
.trust-list li { display: flex; align-items: center; font-family: var(--font-serif); font-size: 1.0625rem; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.trust-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red-400); margin: 0 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .trust-list { animation: none; }
  .trust-list[aria-hidden="true"] { display: none; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, .82); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head .eyebrow { justify-content: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-head--left { text-align: left; margin: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--left p:not(.eyebrow) { color: var(--muted); }

.icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--red-100); color: var(--red-600); margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }

/* Sintomas --------------------------------------------------------------- */
.symptom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.symptom {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.symptom:hover { border-color: rgba(193, 39, 45, .3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.symptom { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 24px 26px; }
.symptom .icon { grid-row: span 2; margin: 0; }
.symptom h3 { margin-bottom: 2px; align-self: end; }
.symptom p { align-self: start; font-size: .9375rem; }
.symptom p { color: var(--muted); font-size: .9875rem; margin: 0; }

.split-body p { margin-bottom: 28px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .9875rem; }
.checklist svg { width: 20px; height: 20px; color: var(--red-600); margin-top: 3px; }

.emergency {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 32px 0 0; font-size: .875rem; color: var(--muted); text-align: center;
}
.emergency svg { width: 16px; height: 16px; color: var(--red-600); }
.emergency a { font-weight: 600; }

/* Atendimentos ----------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column;
  padding: 30px 26px; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service p { color: var(--muted); font-size: .9375rem; margin: 0; }
.service--feature { background: var(--navy-900); border-color: var(--navy-900); }
.service--feature h3 { color: #fff; }
.service--feature p { color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.service--feature .icon { background: rgba(228, 87, 92, .15); color: var(--red-400); }
.service--feature .link-arrow { margin-top: auto; color: var(--red-300); }

/* Cardio-oncologia ------------------------------------------------------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.split h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.split-body p { font-size: 1.0625rem; }

/* Condições -------------------------------------------------------------- */
.condition-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.condition-grid li {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--navy-900); transition: background-color .2s;
}
.condition-grid li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }
.condition-grid li:hover { background: var(--bg-soft); }

/* Procedimentos ---------------------------------------------------------- */
.proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.proc { padding: 36px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.proc h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 20px; }
.checklist--single { grid-template-columns: 1fr; gap: 12px; }
.checklist--single li { color: #3E4A5E; }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-n { display: block; font-family: var(--font-serif); font-size: 2.25rem; color: var(--red-600); line-height: 1; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* Sobre ------------------------------------------------------------------ */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about-media { margin: 0; position: relative; }
.about-media::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -20px; top: -20px; z-index: -1;
  border-radius: 24px; background: var(--red-600); opacity: .9;
}
.about-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; width: 100%; background: var(--bg-soft); }
.about-copy h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); margin-bottom: 6px; }
.about-reg { font-size: .875rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 28px; }
.about-copy > div p { color: #3E4A5E; }


.timeline-wrap { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.timeline-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 28px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 36px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red-600);
}
.tl-year { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--red-600); }
.timeline strong { color: var(--navy-900); line-height: 1.35; }
.timeline li > span:last-child { font-size: .9375rem; color: var(--muted); }

/* Diferenciais ----------------------------------------------------------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.diff-n { display: block; font-family: var(--font-serif); color: var(--red-400); font-size: 1.125rem; margin-bottom: 14px; }
.diff h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; }
.diff p { margin: 0; }

/* Locais ----------------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.location {
  display: flex; flex-direction: column;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.location:hover { box-shadow: var(--shadow-md); border-color: rgba(193, 39, 45, .3); }
.location address { color: var(--muted); font-size: .9875rem; margin-bottom: 24px; }
.location-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; }
.location { align-items: center; text-align: center; }

/* CTA final -------------------------------------------------------------- */
.cta-final {
  padding: 80px 0; text-align: center; color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(135deg, var(--red-600), var(--red-700));
}
.cta-inner { max-width: 760px; }
.cta-final h2 { color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cta-final p { font-size: 1.125rem; margin-bottom: 32px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .9375rem; padding: 64px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid p { margin: 0 0 6px; }
.footer-brand { font-family: var(--font-serif); font-size: 1.375rem; color: #fff; }
.footer-reg { margin-top: 12px !important; font-size: .8125rem; letter-spacing: .03em; }
.footer-h { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-300); margin-bottom: 12px !important; }
.footer-bottom { padding-top: 24px; font-size: .8125rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0 0 4px; }

/* WhatsApp flutuante ----------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
  transform: translateY(120px); opacity: 0; transition: transform .35s, opacity .35s, background-color .2s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float.is-visible:hover { background: #1EBE5A; color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .6s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.js .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .trust-label { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 32px; background: #fff;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 24px; padding: 16px 24px; }

  .hero { padding: 48px 0 72px; }
  .hero-grid, .split, .about, .faq-wrap, .proc-grid { grid-template-columns: 1fr; gap: 48px; }
  .proc-grid { gap: 20px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; justify-self: center; }
  .hero .eyebrow { white-space: normal; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .about-media { max-width: 440px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .diff-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .btn { white-space: normal; text-align: center; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p:last-child { font-size: 1.0625rem; }
  h2 { font-size: 1.875rem; }
  .brand-text small { display: none; }
  .brand-mark { width: 38px; height: 38px; }

  .hero { padding: 36px 0 56px; }
  .hero-title { font-size: 2.375rem; margin-bottom: 18px; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .1em; }
  .lede { font-size: 1.0625rem; margin-bottom: 28px; }
  .hero-actions { gap: 12px; margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; padding: 16px 24px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-facts strong { font-size: 1.375rem; }
  .hero-facts span { font-size: .8125rem; line-height: 1.35; }
  .hero-grid { gap: 40px; }

  .symptom-grid, .service-grid, .steps, .location-grid { gap: 14px; }
  .icon { width: 44px; height: 44px; margin-bottom: 16px; }
  .split, .about, .faq-wrap { gap: 36px; }
  .timeline-wrap { margin-top: 48px; padding-top: 40px; }
  .cta-final { padding: 64px 0; }
  .site-footer { padding-top: 48px; }
  .hero-media::before { inset: 16px -12px -16px 16px; }

  .symptom-grid, .service-grid, .steps, .location-grid, .condition-grid { grid-template-columns: 1fr; }
  .symptom, .service, .step, .location, .proc { padding: 22px 20px; }
  .trust { padding: 14px 0; }
  .trust-list { gap: 4px 0; }
  .trust-list li { font-size: .9375rem; }
  .trust-list li::before { margin: 0 16px; }
  .condition-grid li { padding: 15px 20px; }
  .checklist { grid-template-columns: 1fr; }
  .split-body .btn { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .about-media::after { right: -4px; top: -10px; width: 72px; height: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { padding-top: 22px; }

  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}


/* Seções com a altura da tela (desktop) ----------------------------------- */
@media (min-width: 961px) {
  .hero {
    display: flex; align-items: center;
    min-height: calc(100vh - var(--header-h) - var(--trust-h));
    min-height: calc(100svh - var(--header-h) - var(--trust-h));
  }
  .section, .cta-final {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .hero > .container, .section > .container, .cta-final > .container { width: 100%; }

  /* com a altura garantida pela tela, o respiro vertical pode ser menor */
  .hero { padding: 40px 0; }
  .section { padding: 56px 0; }
  .section-tight { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .timeline-wrap { margin-top: 40px; padding-top: 36px; }
  .location { padding: 26px; }
}

/* telas baixas: foto do topo menor para a faixa de credenciais aparecer */
@media (min-width: 961px) and (max-height: 820px) {
  .hero-media { max-width: 380px; }
}

/* Seções que ficam na altura do conteúdo (Cardio-Oncologia, Diferenciais e chamada final) */
@media (min-width: 961px) {
  .section.section-auto, .cta-final.section-auto { min-height: 0; padding: 72px 0; }
}

/* ==========================================================================
   Efeitos
   ========================================================================== */

/* Barra de progresso de leitura */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Header compacto ao rolar */
.header-inner { transition: height .3s ease; }
@media (min-width: 961px) {
  .site-header.is-scrolled .header-inner { height: 64px; }
}
.brand-mark { transition: transform .3s ease; }
.brand:hover .brand-mark { transform: scale(1.06); }
.brand-mark svg { animation: heartbeat 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(.96); }
  30% { transform: scale(1.1); }
}

/* Linha de eletrocardiograma no topo */
.hero-ecg {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -60px; width: 100%; height: 120px;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 44%, #000 58%); mask-image: linear-gradient(90deg, transparent 44%, #000 58%);
}
.hero-ecg path {
  fill: none; stroke: var(--red-600); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round;
  opacity: .3; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ecg-draw 5s cubic-bezier(.65, 0, .35, 1) .4s infinite;
}
@keyframes ecg-draw {
  0% { stroke-dashoffset: 100; opacity: .3; }
  55% { stroke-dashoffset: 0; opacity: .3; }
  85% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}
.hero-grid { position: relative; z-index: 1; }

/* Entrada em sequência do topo */
.js .hero-copy > *, .js .hero-media { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js .hero-copy > :nth-child(3) { animation-delay: .25s; }
.js .hero-copy > :nth-child(4) { animation-delay: .35s; }
.js .hero-copy > :nth-child(5) { animation-delay: .45s; }
.js .hero-media { animation-name: rise-photo; animation-duration: 1s; animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-photo { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

/* Moldura da foto se desloca levemente no hover */
.hero-media::before { transition: transform .5s ease; }
.hero-media:hover::before { transform: translate(6px, 6px); }
.hero-media img { box-shadow: 0 30px 60px -30px rgba(7, 59, 98, .45); }

/* Botões: brilho ao passar o mouse */
.btn-red, .btn-white { position: relative; overflow: hidden; isolation: isolate; }
.btn-red::after, .btn-white::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn-red:hover::after, .btn-white:hover::after { transform: translateX(120%); }
.btn-red:hover { box-shadow: 0 12px 26px -10px rgba(193, 39, 45, .6); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

/* Cartões: ícone muda de cor e linha de destaque */
.icon { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.symptom:hover .icon, .service:not(.service--feature):hover .icon, .location:hover .icon {
  background: var(--red-600); color: #fff; transform: scale(1.05);
}
.service--feature:hover .icon { background: var(--red-400); color: #fff; }
.service, .location { position: relative; overflow: hidden; }
.service::before, .location::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service:hover::before, .location:hover::before { transform: scaleX(1); }
.service { transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.service:hover { transform: translateY(-4px); }
.service--feature { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); }

/* Patologias: marcador cresce no hover */
.condition-grid li::before { transition: transform .25s ease, box-shadow .25s ease; }
.condition-grid li:hover::before { transform: scale(1.5); box-shadow: 0 0 0 4px var(--red-100); }

/* Procedimentos */
.proc { transition: box-shadow .3s ease, transform .3s ease; }
.proc:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.checklist--single li { transition: transform .2s ease, color .2s ease; }
.checklist--single li:hover { transform: translateX(4px); color: var(--navy-900); }

/* Seções escuras: brilho de fundo */
.section-navy { position: relative; overflow: hidden; }
.section-navy::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(228, 87, 92, .16), transparent 65%);
  pointer-events: none;
}
.section-navy::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(30, 120, 190, .24), transparent 65%);
  pointer-events: none;
}
.section-navy > .container { position: relative; z-index: 1; }
.diff { transition: transform .3s ease; }
.diff:hover { transform: translateY(-3px); }
.diff-n { font-size: 2.25rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--red-400); }

/* Sobre: foto com sombra e leve zoom */
.about-media img { box-shadow: 0 30px 60px -30px rgba(7, 59, 98, .4); transition: transform .6s ease; }
.about-media:hover img { transform: scale(1.015); }

/* Linha do tempo se desenha ao aparecer */
.js .timeline::before { background: var(--red-600); opacity: .25; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .timeline-wrap.is-visible .timeline::before { transform: scaleX(1); }
.js .timeline li::before { transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.js .timeline-wrap.is-visible .timeline li::before { transform: scale(1); }
.js .timeline-wrap.is-visible .timeline li:nth-child(1)::before { transition-delay: .3s; }
.js .timeline-wrap.is-visible .timeline li:nth-child(2)::before { transition-delay: .6s; }
.js .timeline-wrap.is-visible .timeline li:nth-child(3)::before { transition-delay: .9s; }
.js .timeline-wrap.is-visible .timeline li:nth-child(4)::before { transition-delay: 1.2s; }

/* Faixa de credenciais */
.trust-list li { transition: color .2s ease; }
.trust-list li:hover { color: #fff; }

/* Chamada final: ondas suaves no fundo */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; margin: -350px 0 0 -350px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  animation: ripple 4s ease-out infinite; pointer-events: none;
}
.cta-final > .container { position: relative; z-index: 1; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* WhatsApp flutuante: pulso */
.wa-float { isolation: isolate; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(1.35); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-ecg, .cta-final::before, .wa-float::before { display: none; }
  .brand-mark svg { animation: none; }
  .js .hero-copy > *, .js .hero-media { opacity: 1; animation: none; }
  .js .timeline::before, .js .timeline li::before { transform: none; }
}

/* ==========================================================================
   Ajustes finos para tablet e celular
   ========================================================================== */
@media (max-width: 960px) {
  /* a linha de eletrocardiograma cruzaria o texto em telas estreitas */
  .hero-ecg { display: none; }
}

@media (max-width: 640px) {
  /* Topo mais curto: foto quadrada, enquadrada no rosto */
  .hero-grid { gap: 32px; }
  .hero-media { max-width: 100%; }
  .hero-media::before { inset: 12px -10px -12px 12px; }
  .hero-media img { aspect-ratio: 1 / 1; object-position: 50% 32%; }
  .hero-facts { padding-top: 20px; }

  /* Sintomas em 2 colunas, com ícone em cima */
  .symptom-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .symptom { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .symptom .icon { margin: 0 0 12px; width: 40px; height: 40px; }
  .symptom .icon svg { width: 22px; height: 22px; }
  .symptom h3 { font-size: 1rem; line-height: 1.25; align-self: stretch; }
  .symptom p { font-size: .8125rem; line-height: 1.4; align-self: stretch; }

  /* Atendimentos em cartões horizontais compactos */
  .service-grid { gap: 12px; }
  .service {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
    padding: 18px 18px;
  }
  .service .icon { grid-row: span 2; margin: 2px 0 0; width: 42px; height: 42px; }
  .service .icon svg { width: 22px; height: 22px; }
  .service h3 { font-size: 1rem; margin-bottom: 4px; }
  .service p { font-size: .875rem; line-height: 1.5; }

  /* Patologias em 2 colunas */
  .condition-grid { grid-template-columns: 1fr 1fr; }
  .condition-grid li { padding: 13px 14px; gap: 10px; font-size: .875rem; line-height: 1.3; }
  .condition-grid li::before { width: 6px; height: 6px; }
  .condition-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Procedimentos */
  .proc h3 { font-size: 1.25rem; margin-bottom: 16px; }
  .checklist--single { gap: 10px; }
  .checklist--single li { font-size: .9375rem; }

  /* Sobre: linha do tempo vertical */
  .about-media img { aspect-ratio: 4 / 4.4; object-position: 50% 12%; }
  .timeline { grid-template-columns: 1fr; row-gap: 22px; padding-left: 26px; border-left: 2px solid var(--red-100); }
  .timeline li { padding: 0; }
  .timeline li::before { top: 3px; left: -35px; }

  /* Diferenciais */
  .diff-grid { gap: 26px; }
  .diff-n { font-size: 1.75rem; margin-bottom: 8px; }

  /* Locais */
  .location { padding: 24px 20px; }
  .location address { margin-bottom: 18px; }

  /* Áreas de toque de pelo menos 44 px */
  .link-arrow { min-height: 44px; padding: 0 6px; }
  .btn-sm { min-height: 44px; }
  .emergency { display: block; line-height: 1.6; padding: 0 8px; }
  .emergency svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
  .emergency a, .section-head a[href^="https://wa.me"] { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .location-actions { gap: 8px 14px; }
  .location .btn-sm { padding: 9px 14px; }
  .location .link-arrow { padding: 0; }

  /* Chamada final */
  .cta-final .btn { width: 100%; }
  .site-footer a { display: inline-block; padding: 12px 0; margin: -8px 0; }
  .brand { padding: 6px 0; }
}

/* Identidade do cartão virtual ------------------------------------------- */
.btn-red { background: linear-gradient(135deg, var(--red-400) 0%, var(--red-600) 45%, var(--red-700) 100%); }
.btn-red:hover { background: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%); }
.brand-text small { color: var(--brown); }
.brand-mark svg { color: var(--red-400); }
.trust, .section-navy {
  background-color: var(--navy-900);
  background-image:
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px);
}
.scroll-progress { background: linear-gradient(90deg, var(--red-400), var(--red-700)); }

/* Logotipo ---------------------------------------------------------------- */
.brand { flex-shrink: 0; }
.brand-logo { display: block; height: 50px; width: auto; transition: height .3s ease; }
@media (min-width: 961px) {
  .site-header.is-scrolled .brand-logo { height: 42px; }
}
@media (max-width: 960px) {
  .brand-logo { height: 36px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 32px; }
}
@media (min-width: 961px) {
  .hero-title em { white-space: nowrap; }
}

/* Título do topo em dois níveis: pergunta + resposta */
.hero-title { max-width: none; }
.hero-title .hero-q { display: block; font-size: .56em; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .25em; }
.hero-title em { display: block; }

/* Mantém "palpitação ou pressão alta?" junto só quando cabe na tela */
.hero-q .keep { white-space: normal; }
@media (min-width: 360px) {
  .hero-q .keep { white-space: nowrap; }
}
/* Proteção: nada no topo pode ficar mais largo que a tela */
.hero-copy { min-width: 0; }
.hero-title { overflow-wrap: break-word; }

/* Topo centralizado no celular */
@media (max-width: 640px) {
  .hero-copy { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .eyebrow::before { display: none; }
  .hero-title { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-facts li { align-items: center; }
}

/* Topo no celular: foto primeiro, depois o conteúdo */
@media (max-width: 960px) {
  .hero-media { order: -1; }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero-grid { gap: 36px; }
  .hero-media img { aspect-ratio: 5 / 4; object-position: 50% 38%; }
}

/* Menu do celular: ancorado logo abaixo do cabeçalho, com a altura da tela.
   O desfoque do cabeçalho faria um menu "fixed" ficar preso à altura do próprio cabeçalho. */
@media (max-width: 960px) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: absolute; top: 100%; bottom: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(7, 59, 98, .25);
    overscroll-behavior: contain;
  }
  .nav a.is-active { color: var(--red-600); }
  .nav-cta { justify-content: center; }
}

/* Locais: com número ímpar de cards, o último fica centralizado */
@media (min-width: 641px) {
  .location-grid > .location:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
