/* ==========================================================================
   Clínica Eleva Dourados — direção "clínico e claro"
   Referências: Floema (SOTD mai/2026) + Institute of Health (HM fev/2026).
   ========================================================================== */
:root {
  --bg: #f2efea;
  --bg-2: #e7e3dc;
  --paper: #ffffff;
  --ink: #232220;
  --ink-2: #4b4844;
  --muted: #7a756d;
  --line: rgba(35, 34, 32, .14);
  --line-strong: rgba(35, 34, 32, .8);
  --ochre: #b8893e;           /* dourado do logo, em versão sóbria */

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; padding: 0 var(--gutter); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 4px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* imagem com fundo neutro enquanto carrega/ausente */
.media { position: relative; overflow: hidden; background: linear-gradient(160deg, #e6e1d8, #d9d3c8); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tipografia ---------- */
.h2 { font-size: clamp(36px, 4.3vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.h3 { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.lead { font-size: clamp(19px, 1.6vw, 25px); line-height: 1.38; letter-spacing: -.02em; color: var(--ink); }
.small { font-size: 14px; color: var(--ink-2); }
.muted { color: var(--muted); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- Botões ---------- */
/* Retângulo escuro com seta no canto (Institute of Health) */
.btn {
  position: relative; display: inline-grid; grid-template-columns: 1fr auto; gap: 18px;
  min-width: 220px; height: 64px; padding: 12px 14px 12px 16px;
  background: var(--ink); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  overflow: hidden; isolation: isolate; transition: background .4s var(--ease);
}
.btn span { align-self: start; }
.btn svg { width: 15px; height: 15px; align-self: end; transition: transform .5s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.btn:hover::after { transform: scaleX(1); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--sm { min-width: 0; height: 40px; padding: 0 12px 0 14px; align-items: center; gap: 14px; }
.btn--sm span, .btn--sm svg { align-self: center; }
.btn--light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn--light::after { background: #fff; }

/* Pílula branca (Floema) */
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px;
  background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  transition: background .3s, transform .4s var(--ease);
}
.pill:hover { background: #faf8f5; }
.pill--icon { padding: 0; gap: 3px; background: transparent; }
.pill--icon i { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; transition: transform .5s var(--ease); }
.pill--icon i svg { width: 14px; height: 14px; }
.pill--icon span { height: 40px; display: flex; align-items: center; padding: 0 18px; border-radius: 99px; background: var(--paper); }
.pill--icon:hover i { transform: rotate(-90deg); }

.tag, .tags li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; background: var(--paper); font-size: 12px; color: var(--ink-2); }
.tag--light { background: rgba(255,255,255,.88); color: var(--ink); border-radius: 99px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--paper); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; transition: background .3s, color .3s; }
.chip-link:hover { background: var(--ink); color: #fff; }
.sq { width: 36px; height: 36px; border-radius: 4px; background: var(--paper); display: inline-grid; place-items: center; font-size: 15px; transition: background .3s, color .3s; }
.sq:hover { background: var(--ink); color: #fff; }
.sq--sm { width: 28px; height: 28px; background: var(--bg-2); flex: none; transition: transform .5s var(--ease), background .3s; }

/* ---------- Sombra de folhas (Floema) ---------- */
.leafshade {
  position: absolute; z-index: 0; pointer-events: none; color: #2a2a22; opacity: .085;
  filter: blur(9px); mix-blend-mode: multiply; transform-origin: 0% 100%;
  animation: sway 9s ease-in-out infinite alternate;
}
.leafshade--hero { width: min(78vw, 1100px); height: min(78vw, 1100px); right: -16vw; top: -22vh; transform: rotate(8deg); }
.leafshade--foot { width: min(70vw, 900px); height: min(70vw, 900px); left: -12vw; top: -20%; transform: rotate(-30deg) scaleX(-1); }
@keyframes sway { from { rotate: 0deg; translate: 0 0; } to { rotate: 2.4deg; translate: 1.2vw .8vw; } }

/* ---------- Header ---------- */
.nav {
  position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); transition: transform .6s var(--ease), background .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(242,239,234,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.on-dark:not(.is-solid) .brand__word { color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: auto; color: var(--ochre); }
.brand__word { font-size: 22px; font-weight: 500; letter-spacing: -.05em; line-height: 1; transition: color .3s; }
.brand__word sup { font-size: 9px; letter-spacing: 0; margin-left: 1px; vertical-align: 10px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 4px; background: var(--paper); position: relative; }
.nav__toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__toggle i:first-child { top: 16px; } .nav__toggle i:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 96px var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(36px, 10vw, 56px); letter-spacing: -.05em; line-height: 1.05; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.cloud { position: absolute; inset: 0; z-index: 1; }
.cloud__item { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 3 / 4; border-radius: 3px; will-change: transform; box-shadow: 0 30px 60px -30px rgba(35,34,32,.4); }
.cloud__item.is-far { filter: blur(1.6px) saturate(.85); box-shadow: none; }
.hero__center { position: relative; z-index: 2; flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 90px var(--gutter) 24px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px rgba(184,137,62,.18); }
.hero__title { font-size: clamp(44px, 6.3vw, 112px); line-height: .98; letter-spacing: -.055em; max-width: 20ch; }
.hero__lead { max-width: 470px; margin-top: 24px; font-size: 17px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.hero__foot { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.hero__scroll i { display: inline-block; font-style: normal; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- STATS (IOH) ---------- */
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gutter); padding: 0 var(--gutter) 22px; }
.stat { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid var(--line-strong); padding-top: 12px; }
.stat__label { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.stat__n { font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.05em; }
.stat__dots { display: flex; gap: 3px; padding-bottom: 10px; }
.stat__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: .25; animation: blink 2.4s infinite; }
.stat__dots i:nth-child(2) { animation-delay: .3s; } .stat__dots i:nth-child(3) { animation-delay: .6s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- SIDES (IOH) ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sides__col { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(40px, 5vw, 72px) var(--gutter); min-height: min(70vh, 640px); }
.sides__col + .sides__col { border-left: 1px solid var(--line); justify-content: flex-start; }
.sides__col .btn { margin-top: 28px; align-self: flex-start; }
.sides .lead { max-width: 30ch; }
.sides__img { margin-top: auto; align-self: flex-end; width: min(46%, 380px); aspect-ratio: 4 / 5; border-radius: 4px; }

/* ---------- SLIDES (Floema) ---------- */
.slides { position: relative; height: 420vh; }
.slides__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; }
.slides__media { position: absolute; inset: 0; z-index: 0; }
.slides__shade, .slides__line, .slides__rail, .slides__texts { z-index: 1; }
.slide-img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.slide-img.is-on { clip-path: inset(0 0 0 0); }
.slide-img img { transform: scale(1.12); }
.slides__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,17,.68), rgba(20,19,17,.38) 55%, rgba(20,19,17,.12) 85%), linear-gradient(0deg, rgba(20,19,17,.4), transparent 45%); }
.slides__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.3); }
.slides__line i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.slides__rail { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 30px; font-size: 13px; }
.slides__rail span:first-child { transform: translateY(-6px); }
.slides__count b { font-weight: 500; }
.slides__texts { position: absolute; left: 25vw; right: var(--gutter); top: 50%; }
.slide { position: absolute; left: 0; top: 0; width: min(760px, 100%); opacity: 0; visibility: hidden; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide .tag { position: absolute; top: -40px; }
.slide h3 { padding-top: 22px; font-size: clamp(32px, 3.6vw, 60px); line-height: 1.04; letter-spacing: -.045em; }
.slide p { margin-top: 18px; max-width: 46ch; color: rgba(255,255,255,.86); }
.slide .pill--icon { margin-top: 28px; color: var(--ink); }

/* ---------- TEAM: carrossel (IOH) ---------- */
.team { background: var(--bg-2); padding: clamp(90px, 10vw, 150px) 0 clamp(90px, 10vw, 140px); overflow: hidden; }
.team__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.team__ctrl { display: flex; align-items: center; gap: 6px; padding: 4px; background: rgba(255,255,255,.5); border-radius: 6px; }
.team__label { min-width: 200px; text-align: center; font-size: 13px; }
.carousel { position: relative; touch-action: pan-y; cursor: grab; }
.carousel.is-drag { cursor: grabbing; }
.carousel__track { display: flex; align-items: flex-start; gap: 16px; will-change: transform; }
.card { flex: none; width: clamp(260px, 25vw, 400px); background: var(--paper); border-radius: var(--radius); padding: 8px; opacity: .62; transition: opacity .6s var(--ease), box-shadow .6s var(--ease); user-select: none; }
.card:not(.is-active) .card__img img { filter: saturate(.6); }
.card.is-active { opacity: 1; box-shadow: 0 30px 60px -40px rgba(35,34,32,.45); }
.card__img { aspect-ratio: 4 / 5; border-radius: 4px; }
.card__img img { pointer-events: none; transition: transform 1.2s var(--ease); }
.card.is-active .card__img img { transform: scale(1.04); }
.card__top { display: flex; justify-content: space-between; padding: 10px 4px 2px; font-size: 13px; }
.card__top span:last-child { color: var(--muted); }
.card__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.card__body > * { overflow: hidden; }
.card.is-active .card__body { grid-template-rows: 1fr; }
.card__body { padding: 0 4px; }
.card__body h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.1; padding-top: 14px; }
.card__body p { font-size: 14px; color: var(--ink-2); padding-top: 8px; }
.card__body a { font-size: 13px; color: var(--ochre); padding: 12px 0 8px; }
.card__body > div, .card__body { min-height: 0; }

/* ---------- STATEMENT (IOH) ---------- */
.statement { position: relative; min-height: 110svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.statement__bg { position: absolute; inset: 0; z-index: -2; }
.statement__shade { position: absolute; inset: 0; z-index: -1; background: rgba(28,26,23,.5); }
.statement__text { max-width: 22ch; padding: 0 var(--gutter); text-align: center; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.12; letter-spacing: -.04em; }
.statement__text .w { opacity: .2; }

/* ---------- FAQ (IOH) ---------- */
.faq { padding: clamp(90px, 10vw, 150px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); }
.faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.faq__intro .small { margin-top: 12px; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; cursor: pointer; font-size: 17px; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .sq--sm { background: var(--ink); color: #fff; }
.qa[open] .sq--sm { transform: rotate(45deg); }
.qa p { padding: 0 48px 20px 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- LOCAL ---------- */
.local { background: var(--bg-2); padding: clamp(80px, 9vw, 130px) 0; }
.local__grid { display: grid; grid-template-columns: minmax(300px, 1fr) 1.6fr; gap: var(--gutter); align-items: stretch; }
.local__card { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.local__card .h3 { margin-top: 16px; }
.local__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; }
.local__map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: #ddd8cf; }
.local__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(.92) brightness(1.04); }

/* ---------- FINAL (IOH) ---------- */
.final { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: -2; }
.final__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(28,26,23,.5), rgba(28,26,23,.28)); }
.final__inner { display: grid; justify-items: center; gap: 28px; padding: 0 var(--gutter); }
.final__kicker { font-size: 14px; max-width: 34ch; }
.final__title { font-size: clamp(44px, 6vw, 108px); line-height: .98; letter-spacing: -.055em; }

/* ---------- FOOTER (Floema) ---------- */
.footer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 10vw, 150px) 0 22px; }
.footer .wrap { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px var(--gutter); }
.footer__claim { font-size: clamp(32px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; color: var(--ink-2); }
.footer h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin-bottom: 10px; }
.footer__cols a:hover { color: var(--ochre); }
.footer__brand { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; margin-top: clamp(80px, 10vw, 160px); }
.footer__brand svg { width: 13vw; height: auto; color: var(--ochre); flex: none; }
.footer__brand span { font-size: 19.5vw; font-weight: 300; letter-spacing: .02em; line-height: .74; margin-right: -.04em; }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* ---------- Estados iniciais ---------- */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .cloud__item { opacity: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px var(--gutter); }
  .faq__grid, .local__grid, .footer__top { grid-template-columns: 1fr; }
  .slides__texts { left: var(--gutter); }
  .slides__rail { top: auto; bottom: 28px; transform: none; display: flex; gap: 12px; }
  .slides__rail span:first-child { transform: none; }
}
@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; }
  /* no celular: 3 fotos numa faixa acima do texto, sem as desfocadas */
  .cloud__item.is-far, .cloud__item:nth-child(6) { display: none; }
  .cloud__item:nth-child(1) { --x: 5% !important; --y: 84px !important; --w: 27vw !important; }
  .cloud__item:nth-child(8) { --x: 38% !important; --y: 64px !important; --w: 22vw !important; }
  .cloud__item:nth-child(4) { --x: 65% !important; --y: 96px !important; --w: 30vw !important; }
  .hero__center { flex: none; padding-top: 270px; padding-bottom: 48px; }
  .sides__img { width: 100%; aspect-ratio: 4 / 3; margin-top: 8px; }
  .hero__title { font-size: clamp(42px, 11.5vw, 60px); }
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta .btn { width: 100%; }
  .sides { grid-template-columns: 1fr; }
  .sides__col { min-height: 0; }
  .sides__col + .sides__col { border-left: 0; border-top: 1px solid var(--line); }
  .slides { height: 380vh; }
  .slide h3 { font-size: clamp(28px, 8vw, 40px); }
  .slide .pill--icon span { font-size: 11px; padding: 0 14px; }
  .stat__n { font-size: clamp(30px, 9vw, 44px); }
  .stat__dots { display: none; }
  .team__label { min-width: 0; flex: 1; }
  .team__ctrl { width: 100%; }
  .card { width: 74vw; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .qa summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv, .js .cloud__item { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
}
