/* ============================================================
   INCOR Manaus — Landing page
   Brand: azul #2563eb / #4E8DF8 · vermelho #e2271b / #dc2626
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-bright: #4e8df8;
  --blue-dark: #1d4ed8;
  --red: #e2271b;
  --red-dark: #b91c1c;

  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;

  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-blue: #eff6ff;
  --border: #e6ecf5;

  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 40px -18px rgba(37, 99, 235, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(37, 99, 235, 0.35);

  --max: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: #fbfcff; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Fundo animado (ECG discreto) ---------- */
.bg-ecg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-ecg__line { position: absolute; left: 0; width: 200%; height: 200px; display: flex; will-change: transform; }
.bg-ecg__line svg { width: 50%; height: 100%; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bg-ecg__line--1 { top: 30%; color: var(--red); opacity: .06; animation: ecg-scroll 34s linear infinite; }
.bg-ecg__line--2 { top: 60%; color: var(--blue); opacity: .05; animation: ecg-scroll 52s linear infinite reverse; }
@keyframes ecg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Coração grande pulsando ao fundo */
.bg-heart { position: absolute; top: 50%; left: 50%; width: min(640px, 78vw); height: min(640px, 78vw); transform: translate(-50%, -50%); display: grid; place-items: center; }
.bg-heart svg { width: 100%; height: 100%; fill: var(--red); opacity: .05; transform-origin: center; transform-box: fill-box; animation: heartbeat-soft 2.4s ease-in-out infinite; will-change: transform; }
@keyframes heartbeat-soft {
  0%, 60%, 100% { transform: scale(1); }
  15% { transform: scale(1.055); }
  30% { transform: scale(1); }
  45% { transform: scale(1.035); }
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

.text-red { color: var(--red); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn__icon { width: 19px; height: 19px; fill: currentColor; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); background: var(--bg-blue); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: #eaf1ff; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; gap: 26px; height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; fill: #bcd3ff; }
.topbar__phone { margin-left: auto; font-weight: 600; color: #fff; transition: opacity .2s; }
.topbar__phone:hover { opacity: .85; }
.topbar__social svg { width: 17px; height: 17px; fill: #fff; }
.topbar__social { transition: opacity .2s; }
.topbar__social:hover { opacity: .82; }
@media (max-width: 760px) {
  .topbar__item--hours, .topbar__item:first-child { display: none; }
  .topbar__phone { margin-left: 0; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); background: rgba(255,255,255,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand__logo { height: 62px; width: auto; max-width: none; flex-shrink: 0; display: block; }
.nav { display: flex; align-items: center; gap: 3px; }
.nav > a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: .94rem; color: #334155;
  padding: 9px 12px; border-radius: 999px; transition: color .2s, background .2s; position: relative; white-space: nowrap;
}
.nav > a:not(.btn):hover, .nav > a.is-active { color: var(--blue); background: var(--bg-blue); }
.nav__cta { margin-left: 6px; }
.nav__portal { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--blue); border: 1.5px solid var(--border); padding: 8px 13px; border-radius: 999px; transition: border-color .2s, background .2s; white-space: nowrap; }
.nav__portal svg { width: 16px; height: 16px; fill: currentColor; }
.nav__portal:hover { border-color: var(--blue); background: var(--bg-blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .topbar + .header .nav { top: var(--header-h); }
  .nav.is-open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .nav__cta { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 110px); overflow: hidden; background: linear-gradient(180deg, var(--bg-blue), #fff 75%); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--blue { width: 460px; height: 460px; background: #93c0ff; top: -140px; right: -120px; }
.blob--red { width: 360px; height: 360px; background: #ffb3ad; bottom: -160px; left: -120px; opacity: .35; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--bg-blue); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.hero__text { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--body); margin: 20px 0 30px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.hero__badges li { font-size: .92rem; color: var(--muted); }
.hero__badges strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); font-weight: 700; }

/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.pulse-card {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--r-xl);
  padding: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}
.pulse-card__top { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(226,39,27,.5); animation: blip 1.6s infinite; }
.ecg { width: 100%; height: 110px; margin: 18px 0 6px; color: var(--red); }
.ecg__line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 3s ease forwards .4s; }
.pulse-card__heart {
  position: absolute; top: -30px; right: -22px; width: 78px; height: 78px; border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue)); display: grid; place-items: center;
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite reverse;
}
.pulse-card__heart svg { width: 40px; height: 40px; fill: #fff; }
.pulse-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pulse-card__chips span { font-size: .8rem; font-weight: 600; color: var(--blue); background: var(--bg-blue); padding: 6px 12px; border-radius: 999px; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(226,39,27,.5);} 70% { box-shadow: 0 0 0 12px rgba(226,39,27,0);} 100% { box-shadow:0 0 0 0 rgba(226,39,27,0);} }

/* Batimento cardíaco suave (lub-dub) — aplicado em alguns ícones de coração */
@keyframes heartbeat {
  0%, 55%, 100% { transform: scale(1); }
  12% { transform: scale(1.13); }
  24% { transform: scale(1); }
  36% { transform: scale(1.08); }
}
.beat { animation: heartbeat 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; will-change: transform; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__text { margin-inline: auto; }
  .hero__content { text-align: center; }
  .hero__actions, .hero__badges { justify-content: center; }
}

/* ---------- Strip / diferenciais ---------- */
.strip { margin-top: -46px; position: relative; z-index: 2; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.strip__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.strip__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--bg-blue); color: var(--blue); margin-bottom: 14px; }
.strip__icon svg { width: 26px; height: 26px; fill: currentColor; }
.strip__item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.strip__item p { font-size: .92rem; color: var(--muted); }
@media (max-width: 880px) { .strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip__grid { grid-template-columns: 1fr; } .strip { margin-top: -30px; } }

/* ---------- App promo (Baixe nosso app) ---------- */
.app-promo { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 92px) 0; background: linear-gradient(135deg, #3b6ef5, var(--blue) 55%, #5b86f7); color: #fff; }
.app-promo::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,255,255,.08); top: -180px; left: -120px; }
.app-promo::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(226,39,27,.16); bottom: -160px; right: 20%; }
.app-promo__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.app-promo__eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; color: #cfe0ff; letter-spacing: .03em; margin-bottom: 10px; }
.app-promo__title { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.02em; }
.app-promo__text { color: #e3ecff; margin: 16px 0 28px; max-width: 480px; font-size: 1.05rem; }
.app-promo__badges { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge { display: inline-flex; align-items: center; gap: 11px; background: #0b1220; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 10px 20px; transition: transform .2s, box-shadow .25s; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.6); }
.store-badge__icon { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge__text small { font-size: .62rem; opacity: .85; }
.store-badge__text strong { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; }

/* Phones mockup */
.app-promo__visual { position: relative; min-height: 460px; }
.phone { position: absolute; width: 212px; height: 432px; background: #fff; border-radius: 34px; border: 9px solid #0b1220; box-shadow: 0 44px 80px -34px rgba(0,0,0,.6); overflow: hidden; }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 76px; height: 18px; background: #0b1220; border-radius: 0 0 13px 13px; z-index: 3; }
.phone--front { left: 4%; top: 26px; z-index: 2; animation: phone-front 6s ease-in-out infinite; }
.phone--back { right: 2%; top: -4px; z-index: 1; animation: phone-back 7s ease-in-out infinite; }
@keyframes phone-front { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-14px); } }
@keyframes phone-back { 0%,100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-17px); } }

.phone__screen { position: absolute; inset: 0; background: #f4f7ff; padding: 26px 13px 10px; display: flex; flex-direction: column; gap: 9px; }
.phone__logo { width: 56px; height: auto; margin: 6px auto 2px; display: block; }
.phone__card { border-radius: 14px; padding: 12px 13px; color: #fff; position: relative; }
.phone__card strong { display: block; font-family: var(--font-head); font-size: .82rem; }
.phone__card span { font-size: .62rem; opacity: .92; }
.phone__card--blue { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); }
.phone__card--red { background: linear-gradient(135deg, #f4796f, var(--red)); padding-bottom: 30px; }
.phone__btn { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--red); font-size: .6rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.phone__nav { margin-top: auto; display: flex; justify-content: space-around; padding: 9px 4px 2px; border-top: 1px solid #e6ecf5; }
.phone__nav i { width: 16px; height: 16px; border-radius: 5px; background: #cdd8ea; }
.phone__nav i:first-child { background: var(--blue); }

.phone__screen--alt { background: #fff; padding-top: 26px; }
.phone__months { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: .62rem; color: #94a3b8; padding: 2px 4px 4px; }
.phone__months .is-on { color: var(--red); font-weight: 700; }
.phone__days { display: flex; gap: 4px; margin-bottom: 8px; }
.phone__days i { flex: 1; text-align: center; font-size: .6rem; color: #475569; padding: 6px 0; border-radius: 8px; background: #f1f5fb; font-style: normal; }
.phone__days .is-on { background: var(--blue); color: #fff; font-weight: 700; }
.phone__appt { display: flex; gap: 8px; align-items: center; background: #f7faff; border: 1px solid #e6ecf5; border-radius: 10px; padding: 8px 9px; margin-bottom: 6px; }
.phone__appt .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--blue { background: var(--blue); } .dot--red { background: var(--red); }
.phone__appt strong { display: block; font-size: .64rem; color: var(--ink); font-family: var(--font-head); }
.phone__appt small { font-size: .56rem; color: #94a3b8; }
.phone__cta { margin-top: auto; background: var(--red); color: #fff; text-align: center; font-size: .66rem; font-weight: 700; padding: 9px; border-radius: 10px; }

@media (max-width: 880px) {
  .app-promo__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .app-promo__text { margin-inline: auto; }
  .app-promo__badges { justify-content: center; }
  .app-promo__visual { min-height: 420px; }
  .phone--front { left: calc(50% - 200px); }
  .phone--back { right: calc(50% - 200px); }
}
@media (max-width: 420px) {
  .phone { width: 178px; height: 366px; }
  .phone--front { left: calc(50% - 168px); top: 18px; }
  .phone--back { right: calc(50% - 168px); }
  .app-promo__visual { min-height: 360px; }
}
@media (max-width: 1080px) { .nav__portal { justify-content: center; } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--soft { background: rgba(241, 246, 255, 0.72); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head .eyebrow { margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.section__sub { font-size: 1.05rem; color: var(--muted); margin-top: 12px; }
.section__note { text-align: center; color: var(--muted); margin-top: 34px; font-size: .96rem; }
.section__note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Specialty cards */
.spec-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 36px 22px 46px; text-align: center; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.spec-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
/* arco azul no rodapé (estilo da referência, refinado) */
.spec-card::after {
  content: ""; position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  transition: bottom .3s ease, box-shadow .3s ease;
}
.spec-card:hover::after { bottom: -19px; box-shadow: 0 -8px 20px -6px rgba(37, 99, 235, .55); }
.spec-card__icon {
  width: 80px; height: 80px; margin: 2px auto 18px; display: grid; place-items: center;
  border-radius: 50%; color: var(--red); background: color-mix(in srgb, var(--red) 11%, #fff);
  transition: transform .28s ease;
}
.spec-card:hover .spec-card__icon { transform: scale(1.07); }
.spec-card__icon svg { width: 36px; height: 36px; fill: currentColor; }
.spec-card h3 { font-size: 1.22rem; color: var(--blue); margin-bottom: 8px; }
.spec-card p { font-size: .95rem; color: var(--muted); }

/* Especialidades: as 5 numa única linha no desktop (responsivo abaixo) */
#especialidades .cards { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (min-width: 1081px) {
  #especialidades .spec-card { padding: 32px 15px 42px; }
  #especialidades .spec-card__icon { width: 72px; height: 72px; margin-bottom: 16px; }
  #especialidades .spec-card__icon svg { width: 33px; height: 33px; }
  #especialidades .spec-card h3 { font-size: 1.06rem; }
  #especialidades .spec-card p { font-size: .87rem; }
}
@media (max-width: 1080px) { #especialidades .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 680px)  { #especialidades .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { #especialidades .cards { grid-template-columns: 1fr; } }

/* Exam cards */
.exam-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; transition: transform .25s, box-shadow .25s; }
.exam-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.exam-card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(135deg, var(--bg-blue), #fff); color: var(--blue); border: 1px solid var(--border); }
.exam-card__icon svg { width: 32px; height: 32px; fill: currentColor; stroke: currentColor; }
.exam-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.exam-card p { font-size: .92rem; color: var(--muted); }

/* ---------- Corpo clínico ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: #475569;
  background: #fff; border: 1.5px solid var(--border); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .doctors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .doctors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .doctors { grid-template-columns: 1fr; } }

.doc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 22px;
  text-align: center; transition: transform .25s, box-shadow .25s; }
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doc-card.is-hidden { display: none; }
.doc-card__avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; box-shadow: var(--shadow); overflow: hidden;
}
.doc-card__avatar::after { content: attr(data-initials); }
.doc-card:nth-child(odd) .doc-card__avatar { background: linear-gradient(135deg, #f4796f, var(--red)); }
.doc-card__avatar--photo { background: #eef2f7; }
.doc-card__avatar--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.doc-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.doc-card__spec { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--blue); background: var(--bg-blue); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.doc-card__crm { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .01em; }

/* Carousel (corpo clínico — modo "Todos") */
.carousel { position: relative; }
.doctors.is-carousel {
  display: flex; grid-template-columns: none; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 16px; scrollbar-width: none; -ms-overflow-style: none;
}
.doctors.is-carousel::-webkit-scrollbar { display: none; }
.doctors.is-carousel .doc-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
@media (max-width: 980px) { .doctors.is-carousel .doc-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 720px) { .doctors.is-carousel .doc-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 460px) { .doctors.is-carousel .doc-card { flex-basis: 100%; } }

.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s, opacity .2s;
}
.carousel__btn svg { width: 24px; height: 24px; }
.carousel__btn--prev { left: -16px; }
.carousel__btn--next { right: -16px; }
.carousel__btn:hover:not(:disabled) { background: var(--blue); color: #fff; transform: translateY(-50%) scale(1.07); }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel.carousel--static .carousel__btn { display: none; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel.carousel--static + .carousel__dots, .carousel__dots:empty { display: none; }
.carousel__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #cdd8ea; cursor: pointer; transition: background .25s, width .25s; }
.carousel__dots button:hover { background: var(--blue-bright); }
.carousel__dots button.is-active { background: var(--blue); width: 26px; }
@media (max-width: 560px) { .carousel__btn { display: none !important; } }

/* ---------- Convênios ---------- */
.conv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.conv__item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 24px 18px;
  text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; min-height: 84px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.conv__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--blue-bright); color: var(--blue); }
@media (max-width: 820px) { .conv { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .conv { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.about__media { position: relative; aspect-ratio: 1/1; border-radius: var(--r-xl); background:
  radial-gradient(120% 120% at 0% 0%, #dbe9ff 0%, transparent 55%),
  linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 55%, var(--red) 130%);
  box-shadow: var(--shadow-lg); overflow: hidden; }

/* Carrossel de fotos da clínica (seção Sobre) */
.about-carousel { position: absolute; inset: 0; z-index: 1; }
.about-carousel__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.about-slide { flex: 0 0 100%; height: 100%; margin: 0; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.about-slide--contain { background: linear-gradient(140deg, #eaf1ff, #fff 70%); }
.about-slide--contain img { object-fit: contain; padding: 11%; }
.about-carousel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(transparent, rgba(15, 23, 42, .28)); z-index: 2; pointer-events: none; }
.about-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--blue); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .2s, transform .2s, opacity .2s; opacity: 0;
}
.about-carousel__btn svg { width: 22px; height: 22px; }
.about-carousel__btn--prev { left: 12px; } .about-carousel__btn--next { right: 12px; }
.about-carousel:hover .about-carousel__btn { opacity: 1; }
.about-carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.about-carousel__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; justify-content: center; gap: 7px; }
.about-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s, background .25s; }
.about-carousel__dots button.is-active { background: #fff; width: 22px; }
@media (max-width: 560px) { .about-carousel__btn { opacity: 1; width: 38px; height: 38px; } }
.about__media::before, .about__media::after { content: ""; position: absolute; border-radius: 50%; }
.about__media::before { width: 220px; height: 220px; border: 30px solid rgba(255,255,255,.12); top: -60px; right: -50px; }
.about__media::after { width: 130px; height: 130px; background: rgba(255,255,255,.1); bottom: 30px; left: -30px; }
.about__badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px; background: rgba(255,255,255,.96); border-radius: var(--r);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.about__badge svg { width: 30px; height: 30px; fill: var(--red); flex: none; }
.about__content .eyebrow { margin-bottom: 14px; }
.about__content > p { margin-top: 16px; color: var(--body); }
.about__list { margin: 22px 0 28px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-blue); color: var(--blue); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) { .about__inner { grid-template-columns: 1fr; gap: 36px; } .about__media { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s; }
a.contact__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--bg-blue); color: var(--blue); margin-bottom: 16px; }
.contact__icon svg { width: 27px; height: 27px; fill: currentColor; }
.contact__card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.contact__card p { font-size: .95rem; color: var(--body); }
.contact__link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--blue); font-size: .9rem; }
.contact__social { text-align: center; margin-top: 34px; }
.contact__social .btn__icon { width: 20px; height: 20px; }
@media (max-width: 860px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .contact { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { padding: clamp(56px, 8vw, 96px) 0; background: linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, var(--blue-bright)); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); top: -160px; right: -100px; }
.cta-final::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(226,39,27,.18); bottom: -150px; left: -80px; }
.cta-final__inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-final p { color: #dbe7ff; margin: 14px 0 30px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer { background: #0b1424; color: #aab6c9; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding: 60px 24px 44px; }
.footer__brand img { background: #fff; border-radius: 18px; padding: 10px; height: 84px; width: auto; }
.footer__brand p { margin-top: 16px; font-family: var(--font-head); color: #e2e8f0; }
.footer__social { display: inline-flex; align-items: center; gap: 11px; margin-top: 18px; color: #cdd8ea; transition: color .2s; }
.footer__social:hover { color: #fff; }
.footer__social-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5); box-shadow: var(--shadow-sm); }
.footer__social-icon svg { width: 22px; height: 22px; fill: #fff; }
.footer__social span:last-child { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .footer__social { justify-content: center; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { color: #aab6c9; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--blue-bright); }
.footer__contact p { margin-bottom: 10px; line-height: 1.7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom .container { padding-top: 20px; padding-bottom: 20px; font-size: .86rem; text-align: center; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; } .footer__nav { align-items: center; } }

/* ---------- WhatsApp floating ---------- */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s; animation: fab-in .4s ease both .8s;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 32px; height: 32px; fill: #fff; }
@keyframes fab-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Cookie consent ---------- */
.cookie { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; }
.cookie.is-open { display: block; animation: cookie-up .4s ease both; }
@keyframes cookie-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie__body {
  max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 26px;
}
.cookie__text strong { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie__text p { font-size: .9rem; color: var(--muted); margin: 0; }
.cookie__text a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex: none; }
.cookie__btn { padding: 11px 18px; font-size: .9rem; }
@media (max-width: 820px) {
  .cookie__body { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie__actions { flex-wrap: wrap; }
  .cookie__actions .btn { flex: 1 1 auto; }
}
body.cookie-open .whatsapp-fab { opacity: 0; pointer-events: none; transform: scale(.4); }

/* Cookie modal */
.cookie-modal { display: none; position: fixed; inset: 0; z-index: 140; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.is-open { display: flex; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal__box { position: relative; z-index: 1; width: min(520px, 100%); background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); animation: cookie-up .3s ease both; max-height: 90vh; overflow-y: auto; }
.cookie-modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s; }
.cookie-modal__close svg { width: 20px; height: 20px; }
.cookie-modal__close:hover { color: var(--red); border-color: var(--red); }
.cookie-modal__box h3 { font-size: 1.4rem; margin-bottom: 8px; }
.cookie-modal__intro { font-size: .94rem; color: var(--muted); margin-bottom: 22px; }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.cookie-opt__info strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 3px; }
.cookie-opt__info span { font-size: .86rem; color: var(--muted); }
.cookie-modal__actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-modal__actions .btn { flex: 1; }
@media (max-width: 480px) { .cookie-modal__box { padding: 24px; } .cookie-modal__actions { flex-direction: column; } }

/* Switch toggle */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: default; }
.switch input:disabled + span { opacity: .55; }

/* Footer cookie link */
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__cookie-link { background: none; border: 0; color: #aab6c9; font-size: .86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; font-family: var(--font-body); }
.footer__cookie-link:hover { color: var(--blue-bright); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a, .footer__legal button { background: none; border: 0; cursor: pointer; font-family: var(--font-body); color: #aab6c9; font-size: .86rem; transition: color .2s; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--blue-bright); }
@media (max-width: 620px) { .footer__bottom-inner { justify-content: center; text-align: center; } .footer__legal { justify-content: center; } }

/* ---------- Páginas legais (política / termos) ---------- */
.legal-top { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.legal-top .brand__logo { height: 48px; width: auto; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.legal-back:hover { background: var(--bg-blue); }
.legal-back svg { width: 18px; height: 18px; }

.legal-hero { background: linear-gradient(180deg, var(--bg-blue), #fff); padding: clamp(38px, 7vw, 70px) 0 32px; text-align: center; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); letter-spacing: -.02em; }
.legal-hero p { color: var(--muted); margin-top: 12px; font-size: .95rem; }

.legal-doc { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-doc h2 { font-size: 1.4rem; margin: 40px 0 14px; scroll-margin-top: 90px; }
.legal-doc h3 { font-size: 1.08rem; margin: 24px 0 10px; }
.legal-doc p { margin-bottom: 14px; color: var(--body); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.legal-doc > ul { margin: 0 0 16px; display: grid; gap: 10px; }
.legal-doc > ul li, .legal-callout ul li { position: relative; padding-left: 26px; color: var(--body); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.legal-callout { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.legal-doc > ul li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.legal-doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc strong { color: var(--ink); }

.legal-meta, .legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 18px; }
.legal-meta { font-size: .88rem; }
.legal-table th, .legal-table td, .legal-meta th, .legal-meta td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table thead th, .legal-meta thead th { background: var(--bg-blue); color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.legal-table tbody th { background: var(--bg-blue); color: var(--ink); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.legal-table tbody tr:nth-child(even) td { background: #fbfcff; }
.legal-table__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal-callout { background: var(--bg-blue); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 18px; margin: 20px 0; color: var(--ink); }
.legal-callout--warn { background: #fff7ed; border-left-color: #f59e0b; }
.legal-callout a { color: var(--blue); }

.legal-contact { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.legal-contact strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 6px; font-size: 1.05rem; }

.legal-toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 26px; margin-bottom: 28px; }
.legal-toc h2 { margin: 0 0 12px; font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--body); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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