/* ==========================================================================
   Gineco Onco, folha de estilos
   --------------------------------------------------------------------------
   1. Tokens            5. Cabeçalho            9. Rodapé
   2. Base              6. Seções               10. Camada de movimento
   3. Tipografia        7. Responsivo           11. Movimento reduzido
   4. Componentes       8. Marcadores a preencher
   ========================================================================== */


/* 1. TOKENS ================================================================ */
:root {
  /* cores da marca */
  --blush: #F6E7E4;
  --mauve: #D8B6C3;
  --lavender: #CFCBEF;
  --peri: #A9B8EC;
  --sage: #A9C9BE;
  --royal: #2B5BD7;
  --royal-deep: #1E3FA0;
  --ink: #1A2140;
  --ink-soft: #4A5272;
  --paper: #FFFFFF;
  --mist: #F7F5F8;

  /* tipografia */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* raios, ritmo e movimento */
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
}


/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }


/* 3. TIPOGRAFIA ============================================================ */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
h2 { font-weight: 400; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; max-width: 18ch; }
h3 { font-weight: 500; letter-spacing: -0.01em; }
.sub { max-width: 52ch; margin-top: 18px; color: var(--ink-soft); }


/* 4. COMPONENTES =========================================================== */

/* Layout */
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Revelação: o estado oculto só existe com JS (ver seção 10). Componentes com
   transições próprias reutilizam --reveal-t em suas listas de transition. */
.reveal { --reveal-t: opacity 1s var(--ease) calc(var(--d, 0) * 110ms), translate 1.1s var(--ease) calc(var(--d, 0) * 110ms); transition: var(--reveal-t); }

/* Botões: o hover só troca a cor, de forma suave */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn-sm { padding: 10px 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--royal); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ECE8FA; }
.btn-royal { background: var(--royal); color: #fff; }
.btn-royal:hover { background: var(--royal-deep); }

/* Vidro */
.glass {
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.65);
}

/* Fundo em malha de gradiente (hero, banda e CTA) */
.mesh { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(135deg, var(--blush), #EDE6F5 55%, #DDE4F7); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.b1 { width: 46%; aspect-ratio: 1; left: -10%; top: -14%; background: var(--sage); opacity: .75; }
.b2 { width: 44%; aspect-ratio: 1; right: -8%; top: -10%; background: var(--peri); animation-duration: 28s; animation-delay: -6s; }
.b3 { width: 40%; aspect-ratio: 1; left: 30%; bottom: -26%; background: var(--mauve); animation-duration: 26s; animation-delay: -12s; }
.b4 { width: 26%; aspect-ratio: 1; right: 20%; bottom: 0; background: var(--lavender); animation-duration: 32s; animation-delay: -3s; }
.mesh-dark { background: linear-gradient(135deg, #2A3A8C, #3B4DB8 50%, #5B6FD6); }
.mesh-dark .b1 { background: #5E82F0; opacity: .6; }
.mesh-dark .b2 { background: var(--mauve); opacity: .5; }
.mesh-dark .b3 { background: var(--sage); opacity: .45; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5%, 7%, 0) scale(1.12); }
}

/* Marca d'água do logo (parallax e giro lento) */
.mark {
  position: absolute; z-index: 0; width: var(--s, 560px); height: auto; aspect-ratio: 1;
  opacity: var(--o, .14); pointer-events: none; user-select: none; will-change: transform;
  filter: blur(var(--b, 1px)) drop-shadow(0 30px 40px rgba(75,44,79,.22));
  animation: spin 90s linear infinite;
}
.mark-steps { --s: 760px; --o: .16; right: -260px; top: 6%; }
.mark-band { --s: 720px; --o: .34; --b: 1.2px; left: 30%; bottom: -330px; mix-blend-mode: screen; animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }


/* 5. CABEÇALHO ============================================================= */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.7);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.88); box-shadow: 0 10px 40px -20px rgba(26,33,64,.35); }
.nav::after { /* progresso de rolagem */
  content: ""; position: absolute; left: 34px; right: 34px; bottom: 2px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--sage), var(--peri), var(--mauve));
  transform: scaleX(var(--sp, 0)); transform-origin: left; opacity: .85;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 72px; width: auto; max-width: none; }

.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(26,33,64,.06); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-mobile { position: fixed; inset: 108px var(--gutter) auto; z-index: 49; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(26,33,64,.4); }
.menu-mobile[hidden] { display: none; }
.menu-mobile a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.menu-mobile a:not(.btn):hover { background: var(--mist); }
.menu-mobile .btn { margin-top: 8px; }


/* 6. SEÇÕES ================================================================ */

/* ---- Hero ---- */
.hero { padding: 124px var(--gutter) 0; }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1360px; min-height: min(820px, 100svh - 140px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: clamp(56px, 7vw, 88px) clamp(24px, 6vw, 88px) clamp(120px, 11vw, 150px);
  border-radius: var(--r-xl);
}
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px rgba(43,91,215,.18); }
.hero h1 { margin: 26px 0 24px; font-weight: 300; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.045em; }
.lead { max-width: 46ch; margin-bottom: 36px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); }

.hero-arch { position: relative; z-index: 2; justify-self: end; width: min(100%, 460px); aspect-ratio: 1199/1560; }
.hero-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(26,33,64,.28)); transform-origin: 50% 60%; animation: breathe 14s ease-in-out infinite alternate; }
.chip { position: absolute; left: -48px; bottom: 96px; max-width: 250px; display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--r-md); font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.chip strong { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink); }
.float { animation: bob 7s ease-in-out infinite alternate; }

.hero-facts { position: absolute; z-index: 2; left: clamp(24px, 6vw, 88px); right: clamp(24px, 6vw, 88px); bottom: clamp(28px, 4vw, 44px); display: flex; gap: clamp(24px, 4vw, 56px); }
.hero-facts li { display: grid; }
.hero-facts li + li { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid rgba(26,33,64,.14); }
.hero-facts strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: -0.02em; line-height: 1.25; }
.hero-facts span { font-size: 13px; color: var(--ink-soft); }

@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.03); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---- Jornada (carrossel) ---- */
.arrows { display: flex; gap: 10px; }
.arrow { display: grid; place-items: center; width: 52px; height: 72px; border-radius: 999px; border: 1px solid rgba(26,33,64,.15); transition: background-color .4s var(--ease), color .4s, border-color .4s; }
.arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.rail {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--edge) 8px;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--edge); scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.pic { position: relative; flex: 0 0 clamp(250px, 24vw, 300px); aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pic:hover img { transform: scale(1.05); }
.pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(30,63,160,.85), rgba(30,63,160,.25) 42%, transparent 62%); }
.pic-text { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.pic-text h3 { margin-bottom: 6px; font-size: 18px; }
.pic-text p { font-size: 13.5px; line-height: 1.5; opacity: .9; }

/* ---- Especialidades ---- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-grid li { display: flex; }
.spec {
  flex: 1; display: grid; align-content: start; gap: 44px; min-height: 210px; padding: 22px;
  border-radius: var(--r-lg); background: var(--mist);
  transition: var(--reveal-t, none), background-color .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.spec:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(26,33,64,.35), 0 0 0 1px rgba(26,33,64,.06); }
.spec .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; transition: background-color .5s var(--ease); }
.spec:hover .ico { background: var(--blush); }
.spec .ico svg { width: 30px; height: 30px; fill: none; stroke: var(--royal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spec h3 { font-size: 18px; letter-spacing: -0.02em; }
.spec small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }

/* ---- Como cuidamos ---- */
.steps-sec { position: relative; overflow: clip; background: linear-gradient(180deg, #fff, var(--mist) 30%, var(--mist) 70%, #fff); }
.steps-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.steps-intro { position: sticky; top: 110px; }
.steps-photo { margin-top: 40px; aspect-ratio: 3/2; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 80px -48px rgba(26,33,64,.45); }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.steps-photo:hover img { transform: scale(1.03); }
.steps { display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 28px;
  border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px rgba(26,33,64,.05);
  transition: var(--reveal-t, none), box-shadow .8s var(--ease);
}
.step .n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--font-display); font-weight: 500; color: var(--royal); background: linear-gradient(135deg, var(--lavender), var(--blush)); transition: background .6s var(--ease), color .6s var(--ease), transform .8s var(--ease); }
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p { max-width: 48ch; color: var(--ink-soft); }
.step.active { box-shadow: 0 34px 60px -38px rgba(43,91,215,.45), 0 0 0 1px rgba(43,91,215,.22); }
.step.active .n { background: var(--royal); color: #fff; transform: scale(1.1); }

/* ---- Prevenção (banda) ---- */
.band { padding: 0 var(--gutter); }
.band-card { position: relative; isolation: isolate; overflow: hidden; max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px); border-radius: var(--r-xl); color: #fff; }
.band-copy, .band-list, .cta-copy { position: relative; z-index: 2; }
.band-copy h2 { font-weight: 300; max-width: 16ch; }
.band-copy p { max-width: 46ch; margin: 22px 0 32px; color: rgba(255,255,255,.85); }
.band-card { align-items: stretch; }
.band-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
/* os cards ocupam a altura toda da coluna, acompanhando o bloco de texto */
.band-list { display: grid; grid-auto-rows: 1fr; gap: 16px; }
.band-list li { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 22px; padding: 28px 32px; border-radius: var(--r-lg); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transition: var(--reveal-t, none), transform .8s var(--ease), background-color .6s; }
.band-list li:hover { transform: translateX(-8px); background: rgba(255,255,255,.22); }
.band-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.band-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.band-list h3 { font-size: clamp(18px, 1.7vw, 22px); }
.band-list p { margin-top: 4px; font-size: 15px; color: rgba(255,255,255,.82); }

/* ---- Equipe ---- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-photo { aspect-ratio: 1000/1363; margin-bottom: 16px; border-radius: 34px; overflow: hidden; background: linear-gradient(170deg, var(--lavender), var(--blush)); transition: border-radius .9s var(--ease); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.4s var(--ease); }
.doc:hover .doc-photo { border-radius: 999px 999px 34px 34px; }
.doc:hover .doc-photo img { transform: scale(1.04); }
.doc h3 { font-size: 18px; }
/* mini currículo embaixo do nome (no lugar da especialidade, para não restringir a demanda) */
.doc-cv { display: grid; gap: 7px; margin: 10px 0 18px; }
.doc-cv li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.doc-cv li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--peri), var(--mauve)); }

/* ---- Dúvidas ---- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 110px); }
.faq-wrap .head { margin: 0; }
.faq details { border-bottom: 1px solid rgba(26,33,64,.12); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231A2140' stroke-width='1.6'%3E%3Cpath d='M7 1v12M1 7h12'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .5s var(--ease), background-color .4s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blush); }
.faq p { max-width: 60ch; padding: 0 60px 24px 0; color: var(--ink-soft); animation: open .6s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---- CTA final ---- */
.cta { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(60px, 8vw, 100px); }
.cta-card { position: relative; isolation: isolate; max-width: 1360px; margin-inline: auto; padding: clamp(56px, 9vw, 130px) clamp(24px, 6vw, 88px); border-radius: var(--r-xl); }
.cta-building { position: absolute; z-index: 1; right: 8%; bottom: 0; height: 126%; aspect-ratio: 392/753; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(26,33,64,.35)); clip-path: inset(-30% -40% 0 -40%); }
.cta-building img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.cta-copy h2 { font-weight: 300; max-width: 16ch; }
.cta-copy p { margin: 20px 0 32px; color: var(--ink-soft); }


/* 9. RODAPÉ ================================================================ */
.foot { padding: 56px 0 28px; border-top: 1px solid rgba(26,33,64,.08); }
.foot-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.4fr; gap: 40px; }
.foot .brand img { height: 84px; }
.foot-note { max-width: 32ch; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.foot-col { display: grid; align-content: start; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.foot-col address { display: grid; gap: 14px; }
.contact-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.5; }
.contact-row svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--royal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-col a:hover { color: var(--royal); }
.foot-title { margin-bottom: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(26,33,64,.08); font-size: 12.5px; color: var(--ink-soft); }


/* 10. CAMADA DE MOVIMENTO ===================================================
   Tudo que depende de JS fica sob .js, então sem JS o conteúdo aparece normal. */

/* Revelação ao rolar (usa translate, assim não briga com o transform do hover) */
.js .reveal { opacity: 0; translate: 0 26px; }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .cta-building.reveal:not(.in) { translate: 0 90px; }

/* Entrada do hero (momento orquestrado, só CSS) */
.hero-copy > *, .hero-arch, .hero-facts { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .22s; }
.hero-copy > :nth-child(3) { animation-delay: .36s; }
.hero-copy > :nth-child(4) { animation-delay: .5s; }
.hero-arch { animation-delay: .35s; animation-duration: 1.4s; }
.hero-facts { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Títulos em palavras, com máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--base, 0ms)); }
.split.in .w > span { transform: none; }
.hero-copy > h1.split { opacity: 1; transform: none; animation: none; }

/* Hero: brilho do mouse, parallax, recuo ao rolar */
.spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 30%), rgba(255,255,255,.55), transparent 62%); }
.hero-card:hover .spot { opacity: 1; }
@media (min-width: 1021px) {
  .hero-copy { translate: 0 calc(var(--sy, 0) * 0.1px); }
  .hero-arch { translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 12px + var(--sy, 0) * -0.05px); transition: translate .9s var(--ease); }
  .chip { translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -16px); transition: translate .9s var(--ease); }
  .hero-card { transform: scale(var(--hs, 1)); transform-origin: 50% 0; will-change: transform; }
}

/* Fotos entram com zoom suave; carrossel ganha parallax interno via JS (translate) */
.js .pic img { scale: 1.4; transition: scale 2s var(--ease), transform 1.4s var(--ease); }
.js .pic.in img { scale: 1.14; }
.js .doc-photo img { scale: 1.3; transition: scale 2s var(--ease), transform 1.4s var(--ease); }
.js .doc.in .doc-photo img { scale: 1; }
.js .steps-photo img { clip-path: inset(0 0 100% 0); scale: 1.3; transition: clip-path 1.5s var(--ease) .15s, scale 2.2s var(--ease), transform 1.6s var(--ease); }
.js .steps-photo.in img { clip-path: inset(0 0 0 0); scale: 1; }
.rail img, .doc img { -webkit-user-drag: none; user-select: none; }

/* Ícones se desenham ao entrar (JS define pathLength e a classe js-ready) */
.js-ready .spec .ico svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .35s; }
.js-ready .spec.in .ico svg * { stroke-dashoffset: 0; }


/* 7. RESPONSIVO ============================================================ */
/* notebooks pequenos: o cartão não pode invadir a coluna do texto */
@media (min-width: 1021px) and (max-width: 1180px) {
  .brand img { height: 62px; }
}
@media (min-width: 1021px) and (max-width: 1100px) {
  .brand img { height: 56px; }
  .nav-links { gap: 22px; }
}
@media (min-width: 1021px) and (max-width: 1240px) {
  .chip { left: -10px; max-width: 220px; }
  .hero-card { gap: 24px; }
}

@media (max-width: 1020px) {
  .brand img { height: 70px; }
  .nav { padding-right: 8px; }
  .nav-links, .nav > .btn { display: none; }
  .burger { display: block; }

  .hero-card { grid-template-columns: 1fr; padding-bottom: 150px; }
  .hero-arch { justify-self: center; width: min(78%, 380px); margin-top: 8px; }
  .chip { left: -12px; }
  .hero-facts { flex-wrap: wrap; row-gap: 14px; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap, .faq-wrap, .band-card { grid-template-columns: 1fr; }
  .steps-intro { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .cta-building { right: 4%; height: 118%; }
  .cta-copy { max-width: 54%; }
  .mark-steps { --s: 460px; right: -200px; }
  .mark-band { --s: 460px; left: 20%; bottom: -220px; }
}

@media (max-width: 620px) {
  .cta-card { display: flex; flex-direction: column; padding-bottom: 0; }
  .cta-copy { max-width: none; }
  .cta-building { order: 2; position: relative; right: auto; bottom: auto; height: auto; width: min(72%, 320px); margin: 36px auto 0; }
}

@media (max-width: 560px) {
  .brand img { height: 62px; }
  /* os 3 dados viram um painel de vidro com divisórias */
  .hero-facts { flex-direction: column; flex-wrap: nowrap; gap: 0; left: 16px; right: 16px; bottom: 16px; padding: 4px 20px; border-radius: 22px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero-facts li, .hero-facts li + li { position: relative; padding: 13px 0 13px 22px; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid rgba(26,33,64,.09); }
  .hero-facts li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px rgba(43,91,215,.14); }
  .hero-facts strong { font-size: 15.5px; }
  .hero-facts span { font-size: 12.5px; }
  .arrows { display: none; }
  .spec { min-height: 170px; gap: 24px; padding: 18px; }
  .spec small { display: none; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .band-list li { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
  .band-ico { width: 48px; height: 48px; border-radius: 14px; }
  .band-ico svg { width: 24px; height: 24px; }
  /* equipe vira faixa deslizante, em vez de 3 fotos gigantes empilhadas */
  .team { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .team::-webkit-scrollbar { display: none; }
  .doc { flex: 0 0 78%; scroll-snap-align: start; }
  .chip { left: -4px; bottom: -14px; max-width: 200px; padding: 12px 14px; font-size: 12px; }
  .chip strong { font-size: 14px; }
  .hero-card { padding-bottom: 250px; }
  .hero-arch { margin-bottom: 18px; }
  .faq p { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* celulares pequenos: o logo mais largo precisa caber ao lado do botão do menu */
@media (max-width: 360px) {
  .brand img { height: 52px; }
  .foot .brand img { height: 64px; }
}


/* 8. MARCADORES A PREENCHER (remover quando houver conteúdo real) ========== */
.todo { padding: 0 6px; border-radius: 6px; font-style: normal; background: repeating-linear-gradient(45deg, rgba(255,214,102,.35) 0 8px, rgba(255,214,102,.2) 8px 16px); }


/* 11. MOVIMENTO REDUZIDO =================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .hero-copy > *, .hero-arch, .hero-facts { opacity: 1; translate: none; transform: none; }
  .w > span { transform: none; }
  .js .pic img, .js .doc-photo img, .js .steps-photo img { scale: 1; }
  .js .steps-photo img { clip-path: none; }
  .js-ready .spec .ico svg * { stroke-dashoffset: 0; }
  .hero-card { transform: none; }
}

/* 12. BOTÃO FLUTUANTE DE ATENDIMENTO ======================================
   Bolinha com o símbolo do logo; no hover (ou foco) ela se abre na pílula
   "Atendimento ao Paciente". Cresce da direita para a esquerda. */
.chat-fab {
  --d: 58px; /* diâmetro da bolinha; a pílula tem d * 1235/239 de largura */
  position: fixed; z-index: 40; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px);
  animation: fab-in .8s var(--ease) 1.2s both, fab-float 6s ease-in-out 2s infinite alternate;
}
.chat-fab-inner {
  position: relative; display: block; width: var(--d); height: var(--d); border-radius: 999px; overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(75,44,79,.5), 0 0 0 1px rgba(255,255,255,.6);
  transition: width .7s var(--ease), box-shadow .5s var(--ease);
}
.chat-fab::before { /* anel pulsante discreto, some quando abre */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(143,121,200,.5); animation: fab-pulse 3.2s ease-out 2.6s infinite; transition: opacity .3s;
}
.chat-bubble, .chat-pill { position: absolute; top: 0; right: 0; height: var(--d); max-width: none; }
.chat-bubble { width: var(--d); transition: opacity .25s var(--ease); }
.chat-pill { width: calc(var(--d) * 1235 / 239); opacity: 0; transition: opacity .45s var(--ease) .15s; }

@media (hover: hover) {
  .chat-fab:hover .chat-fab-inner, .chat-fab:focus-visible .chat-fab-inner { width: calc(var(--d) * 1235 / 239); box-shadow: 0 20px 44px -12px rgba(75,44,79,.55), 0 0 0 1px rgba(255,255,255,.7); }
  .chat-fab:hover .chat-bubble, .chat-fab:focus-visible .chat-bubble { opacity: 0; }
  .chat-fab:hover .chat-pill, .chat-fab:focus-visible .chat-pill { opacity: 1; }
  .chat-fab:hover, .chat-fab:focus-visible { animation-play-state: running, paused; }
  .chat-fab:hover::before, .chat-fab:focus-visible::before { opacity: 0; }
}
.chat-fab:focus-visible { outline: 2px solid var(--royal); outline-offset: 5px; border-radius: 999px; }

@keyframes fab-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes fab-float { from { translate: 0 0; } to { translate: 0 -9px; } }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(143,121,200,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(143,121,200,0); } }

@media (max-width: 560px) { .chat-fab { --d: 50px; } }
@media print { .chat-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-fab::before { animation: none !important; } }


/* 13. BIOGRAFIAS DOS MÉDICOS ===============================================
   Botão "Ver biografia" no card abre um <dialog> com foto e currículo. */
/* card em coluna: o botão fica sempre alinhado na base, mesmo com textos de tamanhos diferentes */
.doc { display: flex; flex-direction: column; }
.bio-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 9px 16px;
  border-radius: 999px; border: 1px solid rgba(43,91,215,.28); color: var(--royal);
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.bio-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); margin-left: 2px; }
.bio-btn:hover { background: var(--royal); border-color: var(--royal); color: #fff; }

.bio { width: min(960px, 100% - 32px); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(26,33,64,.55); overflow: hidden; }
.bio::backdrop { background: rgba(26,33,64,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bio[open] { animation: bio-in .5s var(--ease); }
.bio[open]::backdrop { animation: bio-fade .4s var(--ease); }
@keyframes bio-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes bio-fade { from { opacity: 0; } }
html:has(.bio[open]) { overflow: hidden; }

.bio-card { position: relative; display: grid; grid-template-columns: 340px 1fr; max-height: inherit; }
.bio-photo { background: linear-gradient(170deg, var(--lavender), var(--blush)); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-body { padding: 44px 48px 40px; overflow-y: auto; max-height: min(88vh, 860px); }
.bio-body h3 { margin: 0 0 26px; font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.bio-body h4 { margin: 26px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.bio-body h3 + h4 { margin-top: 0; }
.bio-list { display: grid; gap: 10px; }
.bio-list li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.bio-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--peri), var(--mauve)); }
.bio-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mist); transition: background-color .3s var(--ease); }
.bio-close:hover { background: var(--blush); }
.bio-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 760px) {
  .bio { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .bio-card { display: block; height: 100%; overflow-y: auto; }
  .bio-photo { height: 280px; }
  .bio-body { max-height: none; overflow: visible; padding: 28px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) { .bio[open], .bio[open]::backdrop { animation: none; } }
