/* ============================================================================
   Dr. Antonio Heinisch — Cirurgia e Urologia Pediátrica
   Rebuild fiel ao site original (WordPress/Themify) — identidade preservada,
   design/layout/estrutura elevados. Fonte: Poppins.
   Paleta original: teal #6ba098 · verde-claro #add5ba · ardósia #424960 ·
                    amarelo #ffd91c · branco #ffffff
   ---------------------------------------------------------------------------
   SUMÁRIO
   0.  Design tokens (:root)
   1.  Reset & base
   2.  Tipografia & utilitários
   3.  Botões
   4.  Layout helpers (container, section, eyebrow)
   5.  Topbar
   6.  Header / Nav / Mobile menu
   7.  Hero
   8.  Bookbar (barra de agendamento)
   9.  Sobre / Timeline / Stats
   10. Split (especialidades)
   11. Diagnósticos (cards)
   12. Hospitais (logos)
   13. CTA
   14. Contato (clínicas)
   15. Footer
   16. Floating (WhatsApp + back-to-top)
   17. Animações (reveal)
   18. Responsivo (breakpoints)
   19. Acessibilidade / motion
   ========================================================================== */

/* ============================================================
   0. DESIGN TOKENS
============================================================ */
:root {
  /* Cores de marca (extraídas do site original) */
  --brand:            #6ba098;
  --brand-600:        #5a8d85;
  --brand-700:        #4c7a72;
  --brand-800:        #3e655f;
  --brand-light:      #add5ba;
  --brand-lighter:    #d7ebdf;
  --brand-wash:       #eef6f2;

  --ink:              #424960;   /* azul-ardósia — títulos e nav */
  --ink-700:          #373d52;
  --ink-900:          #2b3042;
  --body:             #55606b;   /* texto corrido */
  --muted:            #8a94a0;

  --accent:           #ffd91c;   /* amarelo dos CTAs originais */
  --accent-600:       #f2c800;
  --wa:               #22c15e;   /* verde WhatsApp */
  --wa-600:           #1aa94f;

  --white:            #ffffff;
  --bg:               #ffffff;
  --bg-soft:          #f5f8f7;
  --bg-mint:          #eef6f2;
  --line:             #e6ece9;
  --line-soft:        #eef2f0;

  /* Tipografia */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala fluida */
  --fs-hero:   clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  --fs-h2:     clamp(1.7rem, 1.25rem + 2vw, 2.5rem);
  --fs-h3:     clamp(1.1rem, 1rem + .5vw, 1.3rem);
  --fs-lead:   clamp(1.02rem, .96rem + .4vw, 1.18rem);
  --fs-body:   1rem;
  --fs-sm:     .875rem;
  --fs-xs:     .78rem;

  /* Espaçamento */
  --gutter:    clamp(1.1rem, .6rem + 2vw, 2rem);
  --sec-pad:   clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --maxw:      1180px;

  /* Formas & sombras */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(66, 73, 96, .06);
  --shadow-sm: 0 6px 18px rgba(66, 73, 96, .08);
  --shadow:    0 14px 40px rgba(66, 73, 96, .12);
  --shadow-lg: 0 28px 64px rgba(66, 73, 96, .18);
  --shadow-brand: 0 16px 36px rgba(107, 160, 152, .34);

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  --header-h:  84px;
}

/* ============================================================
   1. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

input, textarea, select { font-family: inherit; }

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

::selection { background: var(--brand-light); color: var(--ink-900); }

/* ============================================================
   2. TIPOGRAFIA
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink-700); font-weight: 600; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  font-weight: 400;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-light);
  border-radius: 2px;
}

/* ============================================================
   3. BOTÕES
============================================================ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.8rem;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 20px 42px rgba(76,122,114,.4); }

.btn--ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--brand-700); border-color: #fff; }

.btn--cta {
  background: var(--accent);
  color: var(--ink-900);
  box-shadow: 0 14px 32px rgba(255,217,28,.4);
}
.btn--cta:hover { background: var(--accent-600); }

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 32px rgba(34,193,94,.36);
}
.btn--wa:hover { background: var(--wa-600); }

.btn--block { width: 100%; }

/* ============================================================
   4. LAYOUT HELPERS
============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-pad); position: relative; }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 1.5rem + 2vw, 3.6rem);
  text-align: center;
}
.section__title { font-size: var(--fs-h2); }
.section__sub {
  margin-top: .9rem;
  font-size: var(--fs-lead);
  color: var(--body);
}

/* ============================================================
   5. TOPBAR
============================================================ */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1rem;
}
.topbar__contacts { display: flex; align-items: center; gap: 1.4rem; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.82);
  font-weight: 400;
}
.topbar__item svg { color: var(--brand-light); }
.topbar__item:hover { color: #fff; }

.topbar__social { display: flex; align-items: center; gap: 1rem; }
.topbar__crm {
  letter-spacing: .04em;
  color: rgba(255,255,255,.62);
}
.topbar__social-link {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.topbar__social-link:hover { background: var(--wa); transform: translateY(-2px); }

/* ============================================================
   6. HEADER / NAV
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.2rem;
}

.header__logo img {
  height: 56px;
  width: auto;
  transition: height .3s var(--ease);
}
.header.is-stuck .header__logo img { height: 48px; }

.nav__list { display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: .6rem .9rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .32rem;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--brand-700); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: translateX(-50%) scaleX(1); }
.nav__link.is-active { color: var(--brand-700); }

.nav__cta-item { margin-left: .5rem; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: .62rem 1.5rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(255,217,28,.34);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); background: var(--accent-600); box-shadow: 0 12px 26px rgba(255,217,28,.45); }
.nav__cta::after { display: none; }

/* Toggle hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-wash);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,48,66,.5);
  opacity: 0;
  visibility: hidden;
  z-index: 98;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   7. HERO
============================================================ */
.hero {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-800);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
/* Desktop: mantém a foto INTEIRA (médico e criança sem corte). Em vez de mover
   a imagem, o texto fica numa coluna estreita à esquerda, sobre a área de fundo
   vazia — assim não cobre a criança e o médico continua todo visível. */
@media (min-width: 1024px) {
  .hero__media img { object-position: center 25%; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(43,48,66,.78) 0%, rgba(62,101,95,.5) 42%, rgba(62,101,95,.12) 72%);
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: clamp(60px, 8vw, 120px); }
.hero__wave path { fill: var(--bg); }

.hero__content {
  position: relative;
  z-index: 3;
  /* usa a largura do container (1180) centrado como o resto da página,
     mas o conteúdo flui à ESQUERDA — não é mais um bloco de 680px centralizado */
  max-width: var(--maxw);
  text-align: left;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero__badge, .hero__actions { max-width: 560px; }
/* Desktop: reforça o escurecimento à esquerda p/ leitura do texto sobre a
   área de fundo vazia (as larguras do texto ficam nas regras base/desktop
   junto a .hero__title/.hero__quote, mais abaixo, p/ vencer o cascade). */
@media (min-width: 1024px) {
  .hero__scrim {
    background:
      linear-gradient(100deg, rgba(43,48,66,.82) 0%, rgba(43,48,66,.6) 30%, rgba(62,101,95,.28) 50%, rgba(62,101,95,0) 68%);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  margin-bottom: 1.4rem;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 0 rgba(173,213,186,.7);
  animation: pulse 2.4s infinite;
}

.hero__title {
  color: #fff;
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: 1.1rem;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(43,48,66,.35);
}

.hero__quote {
  color: rgba(255,255,255,.94);
  font-size: clamp(1rem, .95rem + .5vw, 1.18rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  max-width: 460px;
  padding-left: 1.1rem;
  border-left: 3px solid var(--brand-light);
  margin-bottom: 1.9rem;
}

/* Desktop: coluna de texto estreita à esquerda (cabe na área de fundo vazia
   da foto, sem alcançar a criança que fica ao centro). Fica DEPOIS das regras
   base para vencer o cascade. */
@media (min-width: 1024px) {
  .hero__title { max-width: 12ch; }
  .hero__quote { max-width: 400px; font-size: 1.02rem; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============================================================
   8. BOOKBAR
============================================================ */
.bookbar {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand));
  color: #fff;
}
.bookbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.15rem;
}
.bookbar__title {
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.bookbar__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bookbar__phone {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.15rem;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 600;
  font-size: .96rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.bookbar__phone svg { color: var(--brand-light); flex-shrink: 0; }
.bookbar__phone span { display: flex; flex-direction: column; line-height: 1.15; }
.bookbar__phone small { font-size: .68rem; font-weight: 400; opacity: .78; letter-spacing: .02em; }
.bookbar__phone:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ============================================================
   9. SOBRE / TIMELINE / STATS
============================================================ */
.sobre { background: var(--bg); }
.sobre__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.sobre__intro .lead { margin-bottom: 1.1rem; }

.sobre__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 2rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  color: var(--brand-700);
  line-height: 1;
}
.stat__label {
  margin-top: .35rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 140px;
}

/* Card de formação / timeline */
.card-formacao {
  background: linear-gradient(180deg, var(--brand-wash), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.card-formacao__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-h3);
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.card-formacao__title svg { color: var(--brand); }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--brand-light), var(--line));
}
.timeline__item { position: relative; padding-bottom: 1.15rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.5rem; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-wash);
}
.timeline__year {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  color: var(--brand-700);
  letter-spacing: .04em;
}
.timeline__item p { font-size: .92rem; color: var(--body); margin: .1rem 0 0; }

/* ============================================================
   9b. TRAJETÓRIA PROFISSIONAL
============================================================ */
.trajetoria { background: var(--bg-soft); }
.traj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.6rem);
}
.traj-card {
  position: relative;
  padding: 1.7rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-left-color .3s var(--ease);
}
.traj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-left-color: var(--accent);
}
.traj-card__period {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-wash);
  padding: .28rem .7rem;
  border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}
.traj-card h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: .4rem; line-height: 1.3; }
.traj-card p { font-size: .88rem; color: var(--body); line-height: 1.6; }

/* ============================================================
   10. SPLIT (especialidades)
============================================================ */
.split { background: var(--bg); }
.split--alt { background: var(--bg-soft); }
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: inherit;
  pointer-events: none;
}
.split__media img {
  width: 100%;
  aspect-ratio: 600 / 350;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }

.split__body .section__title { margin-bottom: 1rem; }
.split__body p { color: var(--body); }

.checklist { margin: 1.4rem 0 1.8rem; display: grid; gap: .65rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  color: var(--ink-700);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234c7a72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   11. DIAGNÓSTICOS (cards)
============================================================ */
.diagnosticos { background: var(--bg-mint); }

/* ---- Carrossel de patologias (setas + arrasto + scroll-snap) ---- */
.diag-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.diag-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.diag-viewport::-webkit-scrollbar { display: none; }
.diag-carousel.is-dragging .diag-viewport { cursor: grabbing; }
.diag-track {
  display: flex;
  gap: clamp(1rem, .6rem + 1vw, 1.4rem);
  width: max-content;
  padding: .5rem .3rem;
}
.diag-card {
  flex: 0 0 clamp(240px, 26vw, 290px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.diag-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.diag-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 20px rgba(107,160,152,.28);
}
.diag-card h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.diag-card p { font-size: .87rem; color: var(--body); line-height: 1.55; }

/* setas genéricas de carrossel (patologias) */
.car-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.car-nav:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.car-nav:active { transform: translateY(0); }
.car-nav.is-disabled { opacity: .35; pointer-events: none; }
@media (max-width: 560px) {
  .car-nav { display: none; }
}

/* ============================================================
   12. HOSPITAIS (logos)
============================================================ */
.hospitais { background: var(--bg); }

/* ---- Carrossel (marquee infinito) ---- */
.logos-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logos-viewport {
  position: relative;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  /* NÃO usar scroll-behavior:smooth aqui: o Chrome animaria cada
     atribuição de scrollLeft (inclusive o passo do auto-scroll), travando-o.
     As setas passam behavior:'smooth' direto no scrollBy(). */
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge legado */
  /* fade nas bordas */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.logos-viewport::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.logos-carousel.is-dragging .logos-viewport { scroll-behavior: auto; cursor: grabbing; }

.logos-marquee {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, .5rem + 1.5vw, 1.8rem);
  width: max-content;
  padding: .4rem .2rem;
}

.logo-item {
  flex: 0 0 auto;
  width: clamp(150px, 20vw, 190px);
  display: grid;
  place-items: center;
  padding: 1.3rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-item img {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.7);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.logo-item:hover img { filter: none; transform: scale(1.03); }

/* setas de navegação */
.logos-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.logos-nav:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.logos-nav:active { transform: translateY(0); }

@media (max-width: 560px) {
  .logos-nav { display: none; }   /* no mobile o auto-scroll basta */
}

/* ============================================================
   12b. ABORDAGEM HUMANIZADA (features)
============================================================ */
.humaniza { background: var(--bg); }
.humaniza__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.6rem);
}
.feature {
  position: relative;
  padding: 2rem 1.6rem;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  color: var(--brand-700);
  background: var(--brand-wash);
  margin-bottom: 1.1rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.feature:hover .feature__icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}
.feature h3 { font-size: 1.06rem; color: var(--ink); margin-bottom: .5rem; }
.feature p { font-size: .9rem; color: var(--body); line-height: 1.6; }

/* ============================================================
   12c. ETAPAS DA CONSULTA
============================================================ */
.etapas { background: var(--bg-mint); }
.etapas__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
  counter-reset: etapa;
}
.etapa {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.etapa:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
/* linha conectora entre etapas (desktop) */
.etapa:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.1rem; right: -.9rem;
  width: 1.8rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-light) 0 6px, transparent 6px 11px);
  z-index: 1;
}
.etapa__num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 20px rgba(107,160,152,.3);
}
.etapa__body h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: .4rem; }
.etapa__body p { font-size: .88rem; color: var(--body); line-height: 1.6; }

/* ============================================================
   12d. FAQ (accordion)
============================================================ */
.faq { background: var(--bg); }
.faq__wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__intro .section__title { margin-bottom: .8rem; }
.faq__intro .section__sub { margin-bottom: 1.6rem; }

.faq__list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq-item[open] { border-color: var(--brand-light); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-700); }
.faq-item__chevron {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand-700);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-item__content {
  padding: 0 1.4rem 1.3rem;
  color: var(--body);
  font-size: .93rem;
  line-height: 1.7;
}
.faq-item__content p { max-width: 60ch; }
/* animação de abertura */
.faq-item[open] .faq-item__content { animation: faqIn .35s var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   13. CTA
============================================================ */
.cta {
  padding-block: var(--sec-pad);
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(173,213,186,.35), transparent 60%),
    var(--bg-soft);
}
.cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 2.5rem;
  padding: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 70%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta__card::after {
  content: "";
  position: absolute;
  left: -40px; bottom: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(173,213,186,.16);
}
.cta__text { position: relative; z-index: 1; max-width: 560px; }
.cta__text h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: .5rem; }
.cta__text p { color: rgba(255,255,255,.92); font-size: var(--fs-lead); }
.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 240px;
}
.cta__actions .btn { width: 100%; }

/* ============================================================
   14. CONTATO (clínicas)
============================================================ */
.contato { background: var(--bg); }
.clinicas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, .6rem + 1.5vw, 2rem);
}
.clinica {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.clinica:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.clinica__name {
  font-size: 1.18rem;
  color: var(--ink);
  padding-bottom: .9rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-wash);
}
.clinica__addr {
  display: flex;
  gap: .6rem;
  font-size: .92rem;
  color: var(--body);
  margin-bottom: 1.1rem;
}
.clinica__addr svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.clinica__contacts { display: grid; gap: .5rem; margin-bottom: 1.3rem; }
.clinica__contacts li a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--brand-700);
  word-break: break-word;
}
.clinica__contacts li a:hover { color: var(--brand-800); text-decoration: underline; }
.clinica__map {
  margin-top: auto;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.clinica__map:hover { color: var(--brand-700); }

/* ============================================================
   15. FOOTER
============================================================ */
.footer { background: #eef2f0; color: var(--body); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
.footer__brand img { height: 120px; width: auto; margin-bottom: 1rem; }
.footer__tagline {
  font-size: .95rem;
  color: var(--body);
  max-width: 260px;
  margin-bottom: 1rem;
}
.footer__crm {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-700);
}
.footer__col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer__col p { font-size: .9rem; margin-bottom: .8rem; line-height: 1.6; }
.footer__col a { color: var(--body); }
.footer__col a:hover { color: var(--brand-700); }

.footer__links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.footer__links a { font-size: .9rem; font-weight: 500; }

.footer__legal {
  border-top: 1px solid #dde5e2;
  background: #e6ece9;
}
.footer__legal .container { padding-block: 1.6rem; }
.footer__disclaimer {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  max-width: 820px;
  margin: 0 auto .6rem;
  line-height: 1.6;
}
.footer__copy {
  font-size: var(--fs-xs);
  text-align: center;
  color: var(--muted);
}

/* ============================================================
   16. FLOATING
============================================================ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 15px;
  background: var(--wa);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(34,193,94,.42);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.wa-float svg { flex-shrink: 0; }
.wa-float__label {
  max-width: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: .95rem;
  overflow: hidden;
  transition: max-width .4s var(--ease), margin-left .4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(34,193,94,.5); }
.wa-float:hover .wa-float__label { max-width: 220px; margin-left: 10px; }

.to-top {
  position: fixed;
  right: 26px; bottom: 92px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); }

/* ============================================================
   17. ANIMAÇÕES
============================================================ */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(173,213,186,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(173,213,186,0); }
  100% { box-shadow: 0 0 0 0 rgba(173,213,186,0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger dentro de grids */
.humaniza__grid .reveal:nth-child(2),
.clinicas-grid .reveal:nth-child(2) { transition-delay: .08s; }
.humaniza__grid .reveal:nth-child(3),
.clinicas-grid .reveal:nth-child(3) { transition-delay: .16s; }
.humaniza__grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   18. RESPONSIVO
============================================================ */
@media (max-width: 1024px) {
  .traj-grid { grid-template-columns: repeat(2, 1fr); }
  .humaniza__grid { grid-template-columns: repeat(2, 1fr); }
  .etapas__list { grid-template-columns: repeat(2, 1fr); }
  .etapa:not(:last-child)::after { display: none; }
  .faq__wrap { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; text-align: center; }
  .footer__brand img { margin-inline: auto; }
  .footer__tagline { margin-inline: auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  /* Nav vira drawer */
  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 99;
    width: min(320px, 84vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -20px 0 60px rgba(43,48,66,.2);
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    padding: calc(var(--header-h) + 1.5rem) 1.4rem 2rem;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link {
    display: block;
    padding: .95rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--brand-wash); }
  .nav__cta-item { margin: .8rem 0 0; }
  .nav__cta { width: 100%; justify-content: center; padding: .95rem; }

  .nav-toggle { display: flex; }

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__aside { order: -1; }

  .split__grid { grid-template-columns: 1fr; }
  .split--alt .split__media { order: -1; }
  /* imagem sempre acima do texto no mobile */
  .split .split__media { order: -1; }
}

@media (max-width: 760px) {
  .topbar__item--email { display: none; }
  .topbar__crm { display: none; }
  .topbar__contacts { gap: 1rem; }

  .clinicas-grid { grid-template-columns: 1fr; }

  .bookbar__inner { flex-direction: column; align-items: flex-start; }
  .bookbar__actions { width: 100%; }
  .bookbar__phone { flex: 1; }

  .cta__card { flex-direction: column; align-items: flex-start; }
  .cta__actions { width: 100%; }

  .hero { min-height: 78vh; }
  .hero__media img { object-position: 68% 24%; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(43,48,66,.5) 0%, rgba(62,101,95,.68) 100%);
  }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 44px; }
  .header.is-stuck .header__logo img { height: 40px; }

  .traj-grid { grid-template-columns: 1fr; }
  .humaniza__grid { grid-template-columns: 1fr; }
  .etapas__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__col { text-align: center; }
  .footer__links { align-items: center; }
  .clinica__addr { justify-content: center; text-align: left; }

  .logo-item { width: clamp(140px, 42vw, 170px); }

  .sobre__stats { justify-content: space-between; gap: 1rem; }
  .stat { flex: 1 1 40%; }

  .wa-float__label { display: none; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }

  .btn { width: 100%; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .topbar__contacts .topbar__item span,
  .topbar { font-size: .72rem; }
  .logo-item { width: clamp(140px, 60vw, 200px); }
}

/* ============================================================
   19. ACESSIBILIDADE / MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .logos-viewport { scroll-behavior: auto; }
}

/* Impressão */
@media print {
  .topbar, .header, .wa-float, .to-top, .bookbar, .hero__actions, .cta__actions { display: none !important; }
  body { color: #000; }
  .hero { min-height: auto; }
}
