/* =====================================================================
   Dr Daniel Vasconcelos — Cirurgia Vascular
   Conceito "Fluxo": base escura cinematográfica, azul-marinho + café,
   títulos em Litera, o símbolo entrelaçado como elemento gráfico.
   ===================================================================== */

@font-face { font-family: 'Litera'; src: url('/fonts/litera.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'The Seasons'; src: url('/fonts/the-seasons.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #0A0E18;
  --ink-2: #111727;
  --ink-3: #182036;
  --navy: #1F3473;
  --royal: #5274D9;
  --sky: #9DB3F2;
  --cafe: #4E3A2F;
  --cafe-2: #6B5244;
  --sand: #ECE7E1;
  --stone: #F5F3EF;
  --paper: #FFFFFF;
  --text: #1B1E26;
  --muted: #5C6170;
  --on-dark: #F2F3F7;
  --on-dark-2: rgba(242, 243, 247, .68);
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(10, 14, 24, .12);
  --grad: linear-gradient(264deg, #1F3473, #5274D9, #1F3473);
  --display: 'Litera', 'Montserrat', sans-serif;
  --serif: 'The Seasons', 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --r: 26px;
  --r-sm: 16px;
  --rail: 88px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--ink); color: var(--on-dark);
  font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .35em 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--royal); color: #fff; }

.wrap { width: min(1320px, 100% - var(--pad) * 2); margin-inline: auto; }
main { padding-right: var(--rail); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia ---------- */
.display { font-family: var(--display); font-weight: 300; line-height: .95; letter-spacing: -.01em; margin: 0; }
.h1 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; margin: 0; letter-spacing: -.015em; }
.h2 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 5vw, 76px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin: 0 0 .7em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sky); margin: 0 0 22px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.accent { font-family: var(--serif); font-weight: 400; color: var(--sky); letter-spacing: 0; }
.on-light .accent { color: var(--royal); }
.prose { color: var(--on-dark-2); font-size: 16.5px; }
.prose strong { color: var(--on-dark); }
.on-light .prose { color: var(--muted); }
.on-light .prose strong { color: var(--text); }
.prose ul { list-style: none; padding: 0; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--royal); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- botões ---------- */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; gap: 12px; height: var(--h);
  padding: 0 10px 0 26px; border-radius: 999px; font: 500 14.5px/1 var(--sans); letter-spacing: .02em;
  background: var(--grad); background-size: 200% 100%; color: #fff; isolation: isolate; overflow: hidden;
  transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 10px 30px -12px rgba(82, 116, 217, .7);
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .4s var(--ease); }
.btn__ico svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover .btn__ico { transform: rotate(-45deg); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }
.on-light .btn--ghost { box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--text); }
.on-light .btn--ghost .btn__ico { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--light .btn__ico { background: var(--ink); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 'Montserrat'; letter-spacing: .18em; text-transform: uppercase; }
.round { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background .3s, color .3s, transform .4s var(--ease); }
.round svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- monograma do logo (PNG branco usado como máscara, pode ter qualquer cor) ---------- */
.mono { display: block; aspect-ratio: 204 / 300; background: currentColor; -webkit-mask: url('/img/monograma.png') center / contain no-repeat; mask: url('/img/monograma.png') center / contain no-repeat; }

/* =====================================================================
   MENU — trilho vertical fixo à direita + índice em tela cheia
   ===================================================================== */
.brand { position: fixed; z-index: 60; top: 26px; left: var(--pad); width: 196px; transition: opacity .4s, transform .5s var(--ease); }
.brand img { width: 100%; height: auto; }
.brand.is-hidden { opacity: 0; transform: translateY(-20px); pointer-events: none; }

.rail {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0;
  background: rgba(10, 14, 24, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-left: 1px solid var(--line);
}
.rail__toggle { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); background-size: 200% 100%; box-shadow: 0 8px 26px -8px rgba(82, 116, 217, .8); transition: background-position .6s var(--ease); }
.rail__toggle:hover { background-position: 100% 0; }
.rail__toggle .mono { width: 19px; color: #fff; transition: transform .6s var(--ease), opacity .3s; }
.rail__toggle:hover .mono { transform: scale(1.12); }
.rail__toggle .x { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.rail__toggle .x::before, .rail__toggle .x::after { content: ''; position: absolute; width: 20px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.rail__toggle .x::after { transform: rotate(-45deg); }
.menu-open .rail__toggle .mono { opacity: 0; transform: scale(.6); }
.menu-open .rail__toggle .x { opacity: 1; }
.rail__progress { position: relative; flex: 1; width: 1px; margin: 26px 0; background: var(--line); }
.rail__progress i { position: absolute; left: -1px; top: 0; width: 3px; height: var(--p, 0%); background: var(--grad); border-radius: 3px; }
.rail__cta { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark); padding: 6px 0; transition: color .3s; }
.rail__cta:hover { color: var(--sky); }
.rail__cta svg { width: 18px; height: 18px; fill: currentColor; transform: rotate(90deg); }
.rail__ig { margin-top: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .3s; }
.rail__ig:hover { background: rgba(255, 255, 255, .08); }
.rail__ig svg { width: 17px; height: 17px; fill: currentColor; }

/* índice em tela cheia */
.index {
  position: fixed; z-index: 65; inset: 0; right: var(--rail); background: var(--ink-2);
  clip-path: circle(0 at calc(100% + 44px) 50px); transition: clip-path .9s var(--ease); overflow: hidden auto; visibility: hidden;
}
/* rola se precisar (telas baixas), mas sem mostrar a barra */
.index { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.index::-webkit-scrollbar { display: none; }
.menu-open .index { clip-path: circle(160% at calc(100% + 44px) 50px); visibility: visible; }
.menu-open { overflow: hidden; }
.index__grid { min-height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.index__visual { position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: start; overflow: hidden; background: var(--ink); } /* sempre a altura da tela: a foto fica centralizada no que se vê */
.index__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s, transform 1.4s var(--ease); filter: saturate(.85) brightness(.75); }
.index__visual img.is-on { opacity: 1; transform: scale(1); }
.index__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 24, .1), rgba(10, 14, 24, .85)); }
.index__cap { position: absolute; z-index: 3; left: 40px; bottom: 36px; right: 40px; font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.index__nav { padding: clamp(90px, 12vh, 140px) clamp(28px, 6vw, 90px) 48px; display: flex; flex-direction: column; }
.index__main { list-style: none; margin: 0; padding: 0; counter-reset: i; }
.index__main li { margin: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.index__main a { display: flex; align-items: baseline; gap: 22px; padding: 14px 0; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.05; transform: translateY(105%); transition: transform .8s var(--ease), color .3s, padding .4s var(--ease); }
.menu-open .index__main a { transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.index__main a::before { counter-increment: i; content: counter(i, decimal-leading-zero); font: 500 12px/1 var(--sans); letter-spacing: .1em; color: var(--sky); }
.index__main a:hover, .index__main a.is-active { color: var(--sky); padding-left: 14px; }
.index__sub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; opacity: 0; transform: translateY(20px); transition: .7s var(--ease) .1s; }
.menu-open .index__sub { opacity: 1; transform: none; transition-delay: .45s; }
.index__sub h3 { font: 500 11px/1 var(--sans); letter-spacing: .22em; color: var(--sky); margin: 0 0 14px; }
.index__sub h3 a:hover { color: #fff; }
.index__sub ul { list-style: none; padding: 0; margin: 0; }
.index__sub li { margin: 0 0 9px; font-size: 13.5px; line-height: 1.35; color: var(--on-dark-2); }
.index__sub li a:hover { color: #fff; }
.index__foot { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; color: var(--on-dark-2); }
.index__foot a:hover { color: #fff; }

/* WhatsApp flutuante (mobile) */
.wa-float { position: fixed; z-index: 55; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: none; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* =====================================================================
   HERO (vídeo de capa)
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero__media picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s; }
.hero__video.is-ready { opacity: 1; }
/* iframe 16:9 sempre cobrindo a tela (desktop e mobile) */
.hero__video iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); min-height: 100svh; min-width: 177.78svh; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(10, 14, 24, .55) 0%, rgba(10, 14, 24, 0) 26%, rgba(10, 14, 24, 0) 46%, rgba(10, 14, 24, .92) 100%),
  linear-gradient(90deg, rgba(10, 14, 24, .55), rgba(10, 14, 24, 0) 60%); }
.hero__lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__lines i { border-right: 1px solid rgba(255, 255, 255, .06); }
.hero__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 0 var(--pad) clamp(36px, 6vh, 64px); margin-top: auto; }
.hero__title { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.02; margin: 0 0 30px; max-width: 13ch; }
.hero__meta { text-align: right; display: grid; justify-items: end; gap: 16px; }
.hero__crm { font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--on-dark-2); }
.hero__scroll { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* =====================================================================
   SOBRE (home) — seção clara
   ===================================================================== */
.on-light { background: var(--stone); color: var(--text); }
.about { padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.portrait { position: relative; border-radius: var(--r); overflow: hidden; background: #8d939c; min-height: 560px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.4s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait__tag { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(10, 14, 24, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 13px; line-height: 1.35; }
.portrait__tag .mono { width: 20px; flex: none; color: #fff; }
.portrait__tag strong { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .02em; }
.about__main { display: flex; flex-direction: column; gap: 26px; }
.about__head { display: flex; flex-direction: column; gap: 6px; }
.about__head .h2 { color: var(--ink); }
.crm-pill { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--navy); margin-top: 16px; }
.crm-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px rgba(82, 116, 217, .2); }
.voice { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--ink); color: var(--on-dark); overflow: hidden; }
.voice .prose { color: var(--on-dark-2); font-size: 17px; }
.voice .btn { margin-top: 24px; }
/* trajetória: linha do tempo editorial — foto fixa à esquerda, etapas numeradas à direita,
   linha vertical que se preenche conforme a rolagem */
.journey { margin-top: clamp(60px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.journey__photo { position: sticky; top: 40px; margin: 0; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #c9ccd2; }
.journey__photo img { width: 100%; height: 100%; object-fit: cover; }
.journey__body { position: relative; }
.journey__list { list-style: none; padding: 0 0 0 34px; margin: 0; position: relative; }
.journey__list::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-dark); }
.journey__list::after { content: ''; position: absolute; left: 0; top: 10px; width: 1px; height: calc((100% - 20px) * var(--fill, 0)); background: var(--grad); transition: height .25s linear; }
.journey__step { position: relative; display: grid; grid-template-columns: clamp(64px, 7vw, 104px) minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 30px); align-items: start; margin: 0; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-dark); }
.journey__step:first-child { padding-top: 0; }
.journey__step::before { content: ''; position: absolute; left: -39px; top: clamp(34px, 3.4vw, 50px); width: 11px; height: 11px; border-radius: 50%; background: var(--stone); border: 1.5px solid var(--line-dark); transition: border-color .8s ease, background .8s ease, box-shadow .8s ease; }
.journey__step:first-child::before { top: 8px; }
.journey__n { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 4.6vw, 72px); line-height: .9; color: rgba(31, 52, 115, .16); transition: color 1s ease; }
.journey__txt { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.75; color: var(--muted); opacity: .55; transform: translateY(12px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.journey__txt p { margin: 0; }
.journey__step.is-on .journey__n { color: var(--navy); }
.journey__step.is-on .journey__txt { opacity: 1; transform: none; }
.journey__step.is-on::before { border-color: var(--royal); background: var(--royal); box-shadow: 0 0 0 5px rgba(82, 116, 217, .18); }
.journey__cta { margin-top: 34px; padding-left: 34px; }

/* =====================================================================
   ÁREAS: DOENÇAS / TRATAMENTOS / CIRURGIAS
   ===================================================================== */
.areas { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink); }
.areas__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.area { position: relative; display: block; min-height: 620px; border-radius: var(--r); overflow: hidden; isolation: isolate; color: #fff; }
.area > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease), filter .6s; filter: saturate(.8) brightness(.85); }
.area::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 24, .15) 20%, rgba(10, 14, 24, .92)); transition: background .6s; }
.area:hover > img { transform: scale(1.06); filter: saturate(1) brightness(.75); }
.area__n { position: absolute; top: 22px; left: 24px; font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.area__body { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.area__title { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; margin: 0 0 18px; }
.area__list { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease), margin .5s; }
.area__list li { margin: 0; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.area:hover .area__list, .area:focus-within .area__list { max-height: 260px; margin-bottom: 18px; }
.area__row { display: flex; justify-content: space-between; align-items: center; }
.area:hover .round { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* =====================================================================
   TECNOLOGIAS — bento
   ===================================================================== */
.tech { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(80% 60% at 85% 10%, rgba(82, 116, 217, .18), transparent 60%), var(--ink-2); }
.tech__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.tech__head .h2 { font-size: clamp(48px, 9vw, 150px); line-height: .85; }
.tech__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr 1fr; gap: 18px; }
.tech__photo { grid-row: span 2; position: relative; min-height: 560px; border-radius: var(--r); overflow: hidden; }
.tech__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 24% 30%; }
.tech__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 23, 39, 0) 40%, rgba(17, 23, 39, .35)); }
.tcard { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); overflow: hidden; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.tcard::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 116, 217, .55), transparent 70%); opacity: .5; transition: opacity .5s, transform .8s var(--ease); }
.tcard:hover { background: rgba(255, 255, 255, .07); border-color: rgba(157, 179, 242, .4); transform: translateY(-4px); }
.tcard:hover::before { opacity: 1; transform: scale(1.2); }
.tcard__n { font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--sky); margin-bottom: auto; }
.tcard h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; margin: 34px 0 14px; }
.tcard p { color: var(--on-dark-2); font-size: 15px; margin: 0 0 22px; max-width: 42ch; }
.tcard .round { align-self: flex-end; margin-top: auto; }
.tcard:hover .round { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* =====================================================================
   PROCEDIMENTOS — painéis que expandem
   ===================================================================== */
.procs { padding: clamp(80px, 10vw, 140px) 0; }
.procs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.procs__head .h2 { color: var(--ink); }
.panels { display: flex; gap: 14px; height: 600px; --soft: cubic-bezier(.45, .05, .25, 1); container-type: inline-size; }
/* expansão lenta e simétrica (abre e fecha no mesmo ritmo) */
.panel { position: relative; flex: 1; min-width: 0; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate; transition: flex 1.1s var(--soft); display: block; will-change: flex-grow; }
.panel.is-open { flex: 1.9; }
/* a foto tem sempre a largura do card aberto e fica centralizada: o card só revela mais ou menos dela,
   sem redimensionar a imagem durante a troca (nada estica) */
.panel img { position: absolute; top: 0; left: 50%; translate: -50% 0; width: calc((100cqw - 42px) * 1.9 / 4.9); max-width: none; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85) brightness(.9); transition: filter 1.8s var(--soft); }
.panel.is-open img { filter: none; }
.panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 24, .05) 30%, rgba(10, 14, 24, .9)); }
.panel__n { position: absolute; top: 22px; left: 24px; right: 70px; display: flex; gap: 12px; font: 500 12px/1.35 var(--sans); letter-spacing: .14em; }
.panel__n i { font-style: normal; font-size: 10.5px; letter-spacing: .18em; color: rgba(255, 255, 255, .7); opacity: 0; transition: opacity .45s ease; }
.panel.is-open .panel__n i { opacity: 1; transition: opacity .7s ease .5s; }
.panel__body { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.panel h3 { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 1.8vw, 29px); line-height: 1.08; margin: 0; }
/* texto: ao fechar some rápido; ao abrir entra depois que o card já abriu */
.panel p { margin: 0; max-height: 0; opacity: 0; transform: translateY(10px); overflow: hidden; font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 46ch; transition: opacity .3s ease, transform .4s ease, max-height .9s var(--soft), margin .9s var(--soft); }
.panel.is-open p { max-height: 180px; opacity: 1; transform: none; margin-top: 14px; transition: max-height 1s var(--soft) .15s, margin 1s var(--soft) .15s, opacity .7s ease .5s, transform .8s var(--soft) .5s; }
.panel .round { position: absolute; top: 14px; right: 14px; opacity: 0; transition: opacity .4s ease, transform .9s var(--soft), background .7s ease, color .7s ease; }
.panel.is-open .round { opacity: 1; transition: opacity .7s ease .5s, transform .9s var(--soft), background .7s ease, color .7s ease; }
a.panel:hover .round { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* =====================================================================
   BLOG
   ===================================================================== */
.blog { padding: clamp(80px, 10vw, 140px) 0; background: var(--sand); color: var(--text); }
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; }
.blog__head .h2 { color: var(--ink); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r); background: var(--paper); transition: transform .5s var(--ease), box-shadow .5s; }
.post:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(10, 14, 24, .4); }
.post__img { aspect-ratio: 4 / 3; border-radius: calc(var(--r) - 8px); overflow: hidden; background: var(--sand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 20px 12px 10px; display: flex; flex-direction: column; flex: 1; }
.post time { font: 500 11.5px/1 var(--sans); letter-spacing: .16em; color: var(--royal); text-transform: uppercase; margin-bottom: 14px; }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; margin: 0 0 12px; color: var(--ink); }
.post p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { margin-top: auto; color: var(--navy); padding-top: 8px; }
.post .more::after { content: '→'; transition: transform .4s var(--ease); }
.post:hover .more::after { transform: translateX(6px); }

/* =====================================================================
   CONTATO
   ===================================================================== */
.contact { position: relative; padding: clamp(80px, 10vw, 140px) 0; isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.32) saturate(.7); }
.contact__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 14, 24, .55) 30%, rgba(10, 14, 24, .7) 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.contact__info { display: flex; flex-direction: column; gap: 26px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: rgba(10, 14, 24, .55); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.contact__info .h2 { font-size: clamp(44px, 5vw, 80px); }
.contact__info .prose { margin: 0; }
.clist h3 { font: 500 11.5px/1 var(--sans); letter-spacing: .2em; color: var(--sky); margin: 0 0 12px; }
.clist ul { list-style: none; padding: 0; margin: 0; }
.clist li { display: flex; gap: 14px; align-items: center; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.clist li svg { width: 18px; height: 18px; fill: var(--sky); flex: none; }
.clist a:hover { color: var(--sky); }
.form { padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: var(--paper); color: var(--text); display: flex; flex-direction: column; }
.form h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; margin: 0 0 28px; color: var(--ink); }
.form h3 strong { font-weight: 300; color: var(--royal); font-family: var(--serif); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field { position: relative; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; padding: 26px 0 10px; font: 400 16px/1.4 var(--sans); color: var(--text); border-radius: 0; resize: vertical; transition: border-color .3s; }
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--royal); }
.field label { position: absolute; left: 0; top: 26px; font: 500 12px/1 var(--sans); letter-spacing: .16em; color: var(--muted); pointer-events: none; transition: .3s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 4px; font-size: 10.5px; color: var(--royal); }
.form .btn { align-self: flex-start; margin-top: 10px; }
.map { margin-top: 18px; border-radius: var(--r); overflow: hidden; height: 380px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(190deg); }

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.footer { position: relative; overflow: hidden; padding: 80px 0 30px; background: var(--ink); border-top: 1px solid var(--line); margin-right: var(--rail); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.footer__logo { width: 196px; height: auto; } /* mesmo tamanho e proporção do logo do topo */
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 34px; font: 500 12.5px/1 var(--sans); letter-spacing: .18em; }
.footer__nav a { position: relative; padding: 6px 0; }
.footer__nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s; }
.footer__social a:hover { background: rgba(255, 255, 255, .08); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--on-dark-2); }

/* =====================================================================
   PÁGINAS INTERNAS
   ===================================================================== */
.phero { position: relative; min-height: 86svh; display: flex; align-items: flex-end; padding: 150px 0 clamp(40px, 6vw, 70px); isolation: isolate; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 24, .6), rgba(10, 14, 24, .25) 40%, rgba(10, 14, 24, .95)), linear-gradient(90deg, rgba(10, 14, 24, .7), transparent 70%); }
.phero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.phero__title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6.2vw, 100px); line-height: .98; margin: 0 0 30px; text-transform: uppercase; letter-spacing: -.01em; max-width: 16ch; }
.phero__title--long { font-size: clamp(34px, 4.6vw, 74px); }
.crumb { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font: 500 12px/1 var(--sans); letter-spacing: .22em; color: var(--sky); }
.crumb a:hover { color: #fff; }
.crumb i { width: 28px; height: 1px; background: currentColor; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: t; width: min(380px, 100%); }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; padding: 12px 0; font-size: 13.5px; line-height: 1.35; color: var(--on-dark-2); transition: color .3s, padding .4s var(--ease); }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font: 500 11px/1.6 var(--sans); color: var(--sky); }
.toc a:hover { color: #fff; padding-left: 8px; }

.article { padding: clamp(70px, 9vw, 130px) 0; }
.article__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.stick { position: sticky; top: 30px; }
.stick__frame { position: relative; aspect-ratio: 910 / 1024; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.stick__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .8s, transform 1.2s var(--ease); }
.stick__frame img.is-on { opacity: 1; transform: none; }
.stick__dots { display: flex; gap: 8px; margin-top: 16px; }
.stick__dots i { height: 3px; flex: 1; border-radius: 3px; background: var(--line-dark); transition: background .4s; }
.stick__dots i.is-on { background: var(--royal); }
.secs { display: flex; flex-direction: column; gap: 18px; }
.sec { position: relative; padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-dark); scroll-margin-top: 30px; }
.sec__n { display: block; font: 500 12px/1 var(--sans); letter-spacing: .16em; color: var(--royal); margin-bottom: 18px; }
.sec .h3 { color: var(--ink); font-size: clamp(24px, 2.4vw, 34px); }
.sec .btn { margin-top: 26px; }
.sec__img { display: none; }
.acc { margin-top: 22px; border-top: 1px solid var(--line-dark); }
.acc details { border-bottom: 1px solid var(--line-dark); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-dark); flex: none; transition: transform .4s var(--ease), background .3s; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.4px; background: var(--ink); translate: -50% -50%; }
.acc summary i::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.acc details[open] summary i { background: var(--ink); }
.acc details[open] summary i::before, .acc details[open] summary i::after { background: #fff; }
.acc details[open] summary i::after { rotate: 0deg; }
.acc .prose { padding: 0 0 20px; }

.endcta { position: relative; padding: clamp(70px, 9vw, 120px) 0; text-align: center; overflow: hidden; background: var(--ink); }

/* hubs (Doenças, Tratamentos, Cirurgias) */
.hub { padding: 150px 0 clamp(70px, 9vw, 120px); }
.hub__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.hub__head .h1 { text-transform: uppercase; }
/* todos os cards do hub na mesma linha (4, 2 ou 1) */
.hub .areas__grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.hub .area__title { font-size: clamp(24px, 2.2vw, 36px); }
.hub .area { min-height: 560px; }

/* sobre */
.bio { padding: 150px 0 clamp(70px, 9vw, 120px); }
.bio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.bio__media { position: sticky; top: 30px; display: grid; gap: 14px; }
.bio__media .portrait { min-height: 0; aspect-ratio: 4 / 5; }
.bio__media .portrait img { object-position: 50% 4%; }
.bio__title { text-transform: uppercase; margin-bottom: 26px; }
.bio__role { font: 500 13px/1.5 var(--sans); letter-spacing: .14em; color: var(--sky); margin-bottom: 34px; }
.bio__role strong { color: #fff; font-weight: 500; }
.bio .prose { font-size: 17.5px; }
.bio .prose p { padding-left: 26px; border-left: 1px solid var(--line); margin-bottom: 1.4em; }
.bio .btn { margin-top: 18px; }

/* contato (página) */
.cpage { padding: 150px 0 clamp(70px, 9vw, 120px); }
.cpage__head { margin-bottom: 44px; max-width: 760px; }
.cpage__head .h1 { margin-bottom: 26px; }

/* blog / post */
.bpage { padding: 150px 0 clamp(70px, 9vw, 120px); }
.bpage .posts { margin-top: 44px; }
.article-post { padding: 150px 0 clamp(70px, 9vw, 120px); }
.article-post__head { max-width: 900px; }
.article-post__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; margin: 0 0 26px; }
.article-post__meta { display: flex; gap: 22px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.article-post__cover { margin: 44px 0 60px; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; }
.article-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.article-post__body { max-width: 760px; margin-inline: auto; }
.article-post__body .prose { font-size: 17.5px; }
.article-post__body .prose ul { margin-bottom: 1.4em; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 70px; }
.pnav a { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); transition: background .3s; }
.pnav a:hover { background: rgba(255, 255, 255, .05); }
.pnav small { display: block; font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--sky); margin-bottom: 12px; }
.pnav span { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.pnav a:last-child { text-align: right; }

/* link na bio */
.linktree { min-height: 100svh; display: grid; place-items: center; padding: 50px 20px; background: radial-gradient(70% 50% at 50% 0%, rgba(82, 116, 217, .35), transparent 70%), var(--ink); }
.linktree main { padding: 0; width: min(440px, 100%); text-align: center; }
.linktree__photo { width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 50%; overflow: hidden; padding: 3px; background: var(--grad); }
.linktree__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.linktree__logo { width: 230px; height: auto; margin: 0 auto 26px; }
.linktree h1 { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.15; margin: 0 0 14px; }
.linktree p { color: var(--on-dark-2); font-size: 15px; margin: 0 0 30px; }
.linktree__links { display: grid; gap: 12px; }
.linktree__links a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 8px 8px 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 500; transition: background .3s, transform .4s var(--ease); }
.linktree__links a:first-child { background: var(--grad); border: 0; }
.linktree__links a:hover { transform: translateY(-2px); background-color: rgba(255, 255, 255, .08); }
.linktree__links .btn__ico { background: rgba(255, 255, 255, .14); }
.linktree__ig { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-top: 26px; border-radius: 50%; border: 1px solid var(--line); }
.linktree__ig svg { width: 18px; height: 18px; fill: currentColor; }

/* =====================================================================
   ANIMAÇÕES DE ENTRADA
   ===================================================================== */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
/* elementos que têm transição própria E entrada ao rolar: junta as duas (senão a da entrada apaga a outra) */
.panel.rv { transition: flex 1.1s var(--soft), opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.tcard.rv { transition: background .6s ease, border-color .6s ease, opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.tcard.rv.in:hover { transition: background .6s ease, border-color .6s ease, transform .8s var(--ease); }
.post.rv { transition: box-shadow .8s ease, opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.post.rv.in:hover { transition: box-shadow .8s ease, transform .8s var(--ease); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .045s + var(--d, 0s)); }
.split.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .split .w > span { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
  .index__sub { grid-template-columns: 1fr 1fr; }
  .panels { height: 520px; }
  .hub .areas__grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .brand { top: 16px; width: 150px; }
  .rail { top: 12px; right: 12px; bottom: auto; width: auto; height: auto; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .rail__progress, .rail__cta, .rail__ig { display: none; }
  .rail__toggle { width: 52px; height: 52px; }
  .index { right: 0; clip-path: circle(0 at calc(100% - 38px) 38px); }
  .menu-open .index { clip-path: circle(160% at calc(100% - 38px) 38px); }
  .index__grid { grid-template-columns: 1fr; }
  .index__visual { display: none; }
  .index__nav { padding: 96px 24px 36px; }
  .index__sub { gap: 22px; margin-top: 32px; }
  .wa-float { display: grid; }
  .footer { margin-right: 0; padding-bottom: 96px; }

  .panel__n i { opacity: 1; }
  .hero__lines { grid-template-columns: repeat(2, 1fr); }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__meta { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; }
  .hero__scroll { display: none; }

  .journey { grid-template-columns: 1fr; }
  .journey__photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .journey__step { grid-template-columns: 1fr; }
  .journey__n { margin-bottom: 10px; }
  .about__grid, .contact__grid, .article__grid, .bio__grid, .tech__grid { grid-template-columns: 1fr; }
  .portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .areas__grid, .hub .areas__grid { grid-template-columns: 1fr; }
  .area { min-height: 440px; }
  .area__list { max-height: 260px; margin-bottom: 18px; }
  .tech__grid { grid-template-rows: auto; }
  .tech__photo { grid-row: auto; min-height: 380px; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; min-height: 340px; }
  .panel img { left: 0; translate: none; width: 100%; }
  .panel p { max-height: 200px; opacity: 1; margin-top: 12px; }
  .panel .round { opacity: 1; }
  .posts { grid-template-columns: 1fr; }
  .phero__inner { grid-template-columns: 1fr; }
  .stick { position: static; }
  .stick__frame, .stick__dots { display: none; }
  .sec__img { display: block; margin: -4px 0 24px; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; }
  .sec__img img { width: 100%; height: 100%; object-fit: cover; }
  .bio__media { position: static; }
  .form__grid { grid-template-columns: 1fr; }
  .pnav { grid-template-columns: 1fr; }
  .pnav a:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .index__sub { grid-template-columns: 1fr; }
  .tech__head, .procs__head, .hub__head, .blog__head { flex-direction: column; align-items: flex-start; }
  .map { height: 300px; }
}
