/* ==========================================================================
   Extra Large · Estética Íntima Masculina
   Tokens
   ========================================================================== */
:root {
  /* Chumbo: base do site, do mais escuro ao mais claro */
  --chumbo-950: #131416;
  --chumbo-900: #17191C;
  --chumbo-850: #1C1E21;
  --chumbo-800: #222428;
  --chumbo-700: #2C2F34;
  --chumbo-600: #3A3E44;

  /* Azul da marca (fundo do logo) e as misturas dele com o chumbo */
  --azul: #0100A3;
  --azul-vivo: #1A17D0;
  --azul-chumbo-10: #191B2E;   /* 10% azul + 90% chumbo */
  --azul-chumbo-20: #17183B;   /* 20% azul */
  --azul-chumbo-35: #13144F;   /* 35% azul */
  --azul-linha: rgb(120 126 255 / .55);

  /* Aço: textos secundários e linhas claras */
  --aco-500: #727982;
  --aco-400: #9097A0;
  --aco-300: #B9BEC5;
  --branco: #ECEEF0;

  /* Archivo larga nos títulos (wdth 125), normal na interface; Red Hat Text no texto corrido */
  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --section-y: clamp(96px, 10vw, 152px);

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--chumbo-850);
  color: var(--aco-300);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grão fino sobre todo o site, como textura de material */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
p a, dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
p a:hover, dd a:hover { color: var(--branco); }

:focus-visible {
  outline: 2px solid var(--branco);
  outline-offset: 4px;
}

::selection { background: var(--azul); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: .75em 1.2em;
  background: var(--branco);
  color: var(--chumbo-900);
  font: 500 .9375rem/1 var(--f-ui);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   Tipografia
   ========================================================================== */
.h2 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--branco);
  text-wrap: balance;
}

h3 {
  font-family: var(--f-ui);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--branco);
}

/* ==========================================================================
   Fotos com tratamento da marca
   Foto em tons de cinza + camada azul em modo "color" (mistura o azul ao cinza)
   + degradê de saída para o fundo. Cada bloco ajusta --tone-blue e --tone-fade.
   ========================================================================== */
.tone {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--azul-chumbo-10);
}
.tone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.9);
}
.tone::before,
.tone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Azul acinzentado (menos saturado que o azul do logo) para a foto ficar cinza-azulada, não roxa */
.tone::before {
  z-index: 1;
  background: linear-gradient(160deg, #4E569F 0%, #2E3366 55%, #24263F 100%);
  mix-blend-mode: color;
  opacity: var(--tone-blue, .6);
}
.tone::after {
  z-index: 2;
  background: var(--tone-fade, linear-gradient(180deg, transparent 50%, rgb(23 24 59 / .6)));
}

/* Retrato do médico: cor mais natural */
.tone-soft { --tone-blue: .3; }
.tone-soft img { filter: grayscale(.55) contrast(1.02) brightness(.94); }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 1.05em 1.65em;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 1rem/1 var(--f-ui);
  font-stretch: 105%;
  letter-spacing: .005em;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .3s, color .25s, border-color .25s, background-color .25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azul-vivo) 0%, var(--azul) 65%);
  color: #fff;
  border-color: rgb(255 255 255 / .08);
  box-shadow: 0 10px 28px -12px rgb(1 0 163 / .9);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2B28E4 0%, #0A08B8 65%);
  box-shadow: 0 14px 36px -10px rgb(26 23 208 / .85);
}

.btn-outline {
  border-color: rgb(185 190 197 / .35);
  background: rgb(255 255 255 / .02);
  color: var(--branco);
}
.btn-outline:hover { border-color: var(--branco); background: rgb(1 0 163 / .25); }

.btn-light { background: #fff; color: var(--azul); }
.btn-light:hover { background: var(--branco); box-shadow: 0 14px 36px -12px rgb(0 0 0 / .5); }

.btn-sm { padding: .85em 1.3em; font-size: .9375rem; }

.link-quiet {
  font: 500 1rem/1 var(--f-ui);
  font-stretch: 105%;
  color: var(--aco-300);
  padding-block: .4em;
  border-bottom: 1px solid var(--chumbo-600);
  transition: color .25s, border-color .25s;
}
.link-quiet:hover { color: var(--branco); border-color: var(--branco); }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, height .35s;
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgb(25 27 46 / .82);
  border-color: rgb(120 126 255 / .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 11px; width: auto; }

.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font: 500 .9375rem/1 var(--f-ui);
  font-stretch: 105%;
}
.nav a {
  position: relative;
  padding-block: .5em;
  color: var(--aco-300);
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--branco); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Abertura
   Texto à esquerda, foto à direita, separados pelo traço vertical do logo (X | L).
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 60% at 0% 100%, rgb(1 0 163 / .20), transparent 70%),
    linear-gradient(100deg, var(--chumbo-850) 0%, var(--chumbo-850) 35%, var(--azul-chumbo-10) 100%);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  --tone-blue: .7;
  --tone-fade:
    radial-gradient(ellipse 70% 55% at 65% 30%, rgb(78 86 159 / .18), transparent 70%),
    linear-gradient(90deg, rgb(28 30 33 / .6) 0%, transparent 30%),
    linear-gradient(0deg, rgb(23 24 59 / .9) 0%, transparent 45%);
}
.hero-media img { object-position: 50% 22%; }

/* Traço vertical: fio fino na altura toda e segmento mais forte no centro */
.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 4px;
  margin-left: -2px;
}
.hero-line::before,
.hero-line::after {
  content: "";
  position: absolute;
  left: 50%;
}
.hero-line::before {
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -.5px;
  background: linear-gradient(to bottom, transparent, rgb(236 238 240 / .35) 15%, rgb(236 238 240 / .35) 85%, transparent);
}
.hero-line::after {
  top: 50%;
  width: 100%;
  height: 46%;
  translate: -50% -50%;
  background: var(--branco);
}

.hero-inner { position: relative; z-index: 3; }

.hero-copy {
  max-width: min(36rem, calc(50vw - var(--gutter) - 72px));
  padding-block: calc(var(--header-h) + 48px) 72px;
}

.hero-title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.1vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--branco);
  text-wrap: balance;
}

.hero-lead {
  max-width: 30rem;
  margin-top: 32px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--aco-300);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 44px;
}

.hero-note {
  margin-top: 28px;
  font: 400 .9375rem/1.5 var(--f-ui);
  color: var(--aco-500);
}

/* Sequência de abertura (só com JS e sem "reduzir movimento") */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-line::before,
  .js .hero-line::after,
  .js .hero-media,
  .js .hero [data-intro],
  .js .site-header { visibility: hidden; }

  .is-ready .hero-line::before,
  .is-ready .hero-line::after,
  .is-ready .hero-media,
  .is-ready .hero [data-intro],
  .is-ready .site-header { visibility: visible; }

  .is-ready .hero-line::before {
    transform-origin: top;
    animation: draw-y 1.1s var(--ease) both;
  }
  .is-ready .hero-line::after { animation: grow-y .9s var(--ease) .3s both; }
  .is-ready .hero-media { animation: open-right 1.3s var(--ease) .6s both; }
  .is-ready .hero-media img { animation: settle 2.2s var(--ease-out) .6s both; }

  .is-ready .hero [data-intro] { animation: rise .9s var(--ease-out) both; }
  .is-ready .hero-title { animation-delay: .7s; }
  .is-ready .hero-lead { animation-delay: .85s; }
  .is-ready .hero-actions { animation-delay: 1s; }
  .is-ready .hero-note { animation-delay: 1.1s; }
  .is-ready .site-header { animation: fade .8s ease .9s both; }
}

@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes open-right {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.section-head .h2 { grid-column: 1 / span 6; }
.section-head p {
  grid-column: 8 / span 5;
  max-width: 34rem;
  color: var(--aco-400);
}

/* Sigilo ----------------------------------------------------------------- */
.sigilo {
  background:
    radial-gradient(ellipse 40% 50% at 15% 50%, rgb(1 0 163 / .16), transparent 70%),
    linear-gradient(180deg, var(--chumbo-850) 0%, var(--azul-chumbo-10) 100%);
}

.sigilo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}

.sigilo-media {
  grid-column: 1 / span 6;
  aspect-ratio: 4 / 5;
  --tone-blue: .6;
  --tone-fade:
    linear-gradient(180deg, transparent 45%, rgb(23 24 59 / .7)),
    linear-gradient(90deg, transparent 70%, rgb(25 27 46 / .5));
}
.sigilo-media img { object-position: 70% 50%; }

.sigilo-body { grid-column: 8 / span 5; }

.sigilo-lead {
  max-width: 30rem;
  margin-top: 24px;
  color: var(--aco-400);
}

.sigilo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  margin-top: 56px;
}
.sigilo-list li {
  padding-left: 24px;
  border-left: 1px solid;
  border-image: linear-gradient(180deg, var(--azul-linha), rgb(58 62 68 / .2)) 1;
}
.sigilo-list p {
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--aco-400);
}

/* Procedimentos ---------------------------------------------------------- */
.proc {
  background:
    radial-gradient(ellipse 45% 40% at 100% 0%, rgb(1 0 163 / .22), transparent 70%),
    radial-gradient(ellipse 35% 40% at 0% 100%, rgb(1 0 163 / .10), transparent 70%),
    var(--chumbo-900);
}

.proc-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}

.proc-list {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--azul-linha), rgb(44 47 52 / .6)) 1;
}

.proc-tab {
  position: relative;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 28px 32px;
  border: 0;
  border-bottom: 1px solid var(--chumbo-700);
  background: none;
  color: var(--aco-500);
  text-align: left;
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.proc-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, var(--branco), var(--azul-vivo));
  transform: scaleY(0);
  transition: transform .45s var(--ease);
}
.proc-tab:hover { color: var(--aco-300); }
.proc-tab[aria-selected="true"] {
  color: var(--branco);
  background: linear-gradient(90deg, rgb(1 0 163 / .18), transparent 70%);
}
.proc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.proc-tab:focus-visible { outline-offset: -2px; }

.proc-name {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.proc-tag {
  flex: none;
  font: 500 .8125rem/1 var(--f-ui);
  font-stretch: 105%;
  color: var(--aco-500);
}
.proc-tab[aria-selected="true"] .proc-tag { color: var(--aco-400); }

.proc-panels {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.proc-media {
  aspect-ratio: 16 / 9;
  --tone-blue: .65;
  --tone-fade: linear-gradient(180deg, transparent 35%, rgb(30 32 40 / .95) 100%);
}
.proc-media img { object-position: 50% 48%; filter: grayscale(1) contrast(1.1) brightness(.72); }

.proc-panel {
  padding: 8px 40px 44px;
  background: linear-gradient(180deg, #1E2028 0%, var(--azul-chumbo-10) 100%);
}
.proc-panel:focus-visible { outline-offset: 4px; }
.proc-panel h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.proc-panel > p {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--aco-300);
}

.proc-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-block: 32px 36px;
  padding-top: 24px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--azul-linha), rgb(58 62 68 / .3)) 1;
}
.proc-facts dt {
  font: 500 .8125rem/1.2 var(--f-ui);
  color: var(--aco-500);
}
.proc-facts dd {
  margin-top: 8px;
  font: 500 .9375rem/1.35 var(--f-ui);
  color: var(--branco);
}

.proc-panel.is-entering { animation: panel-in .5s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.proc-note {
  max-width: 44rem;
  margin-top: 48px;
  font-size: .9375rem;
  color: var(--aco-500);
}

/* Como funciona: vídeo de fundo, com degradês por cima para o texto ficar legível */
.steps {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--chumbo-900);
}

.steps-video {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.steps-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
  /* vídeo de fundo claro: escurecido para o texto continuar legível por cima */
  filter: grayscale(1) contrast(1.15) brightness(.55);
}
/* Mesmo cinza-azulado das fotos */
.steps-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #4E569F 0%, #2E3366 55%, #24263F 100%);
  mix-blend-mode: color;
  opacity: .6;
}

/* inset negativo: sem isso, a última linha de pixels do vídeo vaza por baixo dos degradês */
.steps::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--chumbo-900) 0%, transparent 14%, transparent 86%, var(--chumbo-900) 100%),
    linear-gradient(90deg, rgb(23 25 28 / .94) 0%, rgb(23 25 28 / .76) 34%, rgb(25 27 46 / .28) 64%, rgb(25 27 46 / .45) 100%),
    linear-gradient(0deg, rgb(19 20 30 / .96) 0%, rgb(23 24 59 / .62) 36%, transparent 62%);
}

.steps-inner {
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 96px;
}

.steps-head { max-width: 34rem; }
.steps-head p {
  margin-top: 24px;
  color: var(--aco-300);
}

/* Margem negativa: o texto das etapas fica alinhado ao título, e o fundo do hover sobra para os lados */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-inline: -24px;
}
.steps-list li {
  position: relative;
  isolation: isolate;
  padding: 32px 24px 36px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--azul-linha), rgb(58 62 68 / .2)) 1;
  transition: transform .6s var(--ease-out), opacity .5s;
}

/* Hover: a etapa sobe, acende um vidro azul por trás, a linha de cima se completa
   e as outras etapas recuam um pouco para destacar a escolhida */
.steps-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(26 23 208 / .28) 0%, rgb(25 27 46 / .6) 55%, rgb(25 27 46 / .2) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--branco), var(--azul-vivo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
/* Enquanto a entrada animada (motion.js) roda, a transição do CSS ficaria brigando com ela */
.has-motion .steps-list li:not(.is-in) { transition: none; }
.steps-list li:hover { transform: translateY(-10px); }
.steps-list li:hover::after { opacity: 1; }
.steps-list li:hover::before { transform: scaleX(1); }
.steps-list:hover li:not(:hover) { opacity: .5; }

.step-n {
  display: block;
  width: fit-content;
  margin-bottom: 32px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 200;
  font-size: 4.25rem;
  line-height: .85;
  background: linear-gradient(180deg, var(--aco-300) 15%, rgb(90 94 230 / .35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .6s var(--ease-out), filter .6s;
}
.steps-list li:hover .step-n { transform: translateX(8px); filter: brightness(1.8); }

.steps-list p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--aco-300);
  transition: color .4s;
}
.steps-list li:hover p { color: var(--branco); }

/* Médico ----------------------------------------------------------------- */
.doctor {
  background:
    radial-gradient(ellipse 40% 60% at 22% 50%, rgb(1 0 163 / .22), transparent 70%),
    var(--chumbo-900);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}

.doctor-photo {
  grid-column: 1 / span 5;
  aspect-ratio: 4 / 5;
  --tone-blue: .55;
  --tone-fade: linear-gradient(180deg, transparent 55%, rgb(23 24 59 / .65));
}
.doctor-photo img { object-position: 50% 22%; }

.doctor-copy { grid-column: 7 / span 6; }

.doctor-name {
  margin-top: 40px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--branco);
}
.doctor-reg {
  margin-top: 8px;
  font: 400 .9375rem/1.55 var(--f-ui);
  color: var(--aco-400);
}
.doctor-bio {
  max-width: 34rem;
  margin-top: 28px;
}
.doctor-creds {
  max-width: 34rem;
  margin-top: 32px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--azul-linha), rgb(58 62 68 / .3)) 1;
}
.doctor-creds li {
  padding-block: 14px;
  border-bottom: 1px solid var(--chumbo-700);
  font: 400 .9375rem/1.45 var(--f-ui);
  color: var(--aco-300);
}

/* Dúvidas ---------------------------------------------------------------- */
.faq {
  background: linear-gradient(180deg, var(--chumbo-850) 0%, var(--azul-chumbo-10) 100%);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}
.faq-head { grid-column: 1 / span 4; }
.faq-head p {
  max-width: 22rem;
  margin-top: 28px;
  color: var(--aco-400);
}

.faq-list {
  grid-column: 6 / span 7;
  align-self: start;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--azul-linha), rgb(58 62 68 / .5)) 1;
}

.faq-list details { border-bottom: 1px solid var(--chumbo-600); }

.faq-list summary {
  position: relative;
  display: block;
  padding: 26px 56px 26px 0;
  font: 500 1.1875rem/1.35 var(--f-ui);
  font-stretch: 105%;
  color: var(--branco);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: -2px; }

/* Ícone + que vira − */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--aco-300);
  transition: transform .35s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }

.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

.faq-list details p {
  max-width: 40rem;
  padding: 0 56px 28px 0;
  color: var(--aco-400);
}

/* Instagram ---------------------------------------------------------------- */
.insta {
  background:
    radial-gradient(ellipse 45% 50% at 0% 40%, rgb(1 0 163 / .14), transparent 70%),
    linear-gradient(180deg, var(--chumbo-900) 0%, var(--azul-chumbo-10) 55%, var(--chumbo-900) 100%);
}

.insta-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.insta-head p {
  max-width: 32rem;
  margin-top: 20px;
  color: var(--aco-400);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* Mesmo tom das fotos do site; a cor original volta ao passar o mouse */
.insta-post {
  display: block;
  aspect-ratio: 4 / 5;
  --tone-blue: .55;
  --tone-fade: linear-gradient(180deg, transparent 60%, rgb(23 24 59 / .45));
}
.insta-post img { transition: transform .8s var(--ease-out), filter .5s; }
.insta-post::before,
.insta-post::after { transition: opacity .5s; }
.insta-post:hover img { transform: scale(1.06); filter: none; }
.insta-post:hover::before,
.insta-post:hover::after { opacity: 0; }

/* Contato: degradê do azul da marca para o chumbo ---------------------------- */
.contato {
  position: relative;
  padding-block: clamp(96px, 10vw, 144px);
  background: linear-gradient(120deg, var(--azul) 0%, #0A0B7A 35%, var(--azul-chumbo-20) 70%, var(--chumbo-850) 100%);
  color: rgb(255 255 255 / .82);
  overflow: hidden;
  isolation: isolate;
}
.contato::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 45% 60% at 10% 0%, rgb(255 255 255 / .10), transparent 70%);
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: stretch;
}

.contato-copy { grid-column: 1 / span 6; }
.contato-copy .h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.5rem);
  color: #fff;
}
.contato-copy > p {
  max-width: 30rem;
  margin-block: 28px 44px;
  font-size: 1.1875rem;
}

.contato-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, rgb(255 255 255 / .35), rgb(255 255 255 / .05)) 1;
}
.contato-info dt {
  font: 500 .875rem/1.2 var(--f-ui);
  color: rgb(255 255 255 / .6);
}
.contato-info dd {
  margin-top: 10px;
  font: 400 1rem/1.6 var(--f-ui);
  color: #fff;
}
.contato-info a:hover { color: #fff; opacity: .8; }

/* Mapa com as cores padrão do Google Maps */
.contato-map {
  grid-column: 8 / span 5;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .16);
  background: var(--chumbo-800);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55);
}
.contato-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contato :focus-visible { outline-color: #fff; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  padding-block: 72px 32px;
  background:
    linear-gradient(90deg, transparent, var(--azul-linha), transparent) top / 100% 1px no-repeat,
    linear-gradient(180deg, var(--azul-chumbo-10) 0%, var(--chumbo-950) 45%);
  font: 400 .9375rem/1.6 var(--f-ui);
  color: var(--aco-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: start;
}
.footer-grid .brand { grid-column: 1 / span 3; }
.footer-nav {
  grid-column: 5 / span 2;
  display: grid;
  gap: 10px;
}
.footer-nav a { width: fit-content; transition: color .25s; }
.footer-nav a:hover { color: var(--branco); }

.footer-contact {
  grid-column: 7 / span 3;
  display: grid;
  gap: 12px;
  color: var(--aco-300);
}
.footer-contact a { transition: color .25s; }
.footer-contact a:hover { color: var(--branco); }

.footer-rt { grid-column: 10 / span 3; }
.footer-label { color: var(--aco-500); margin-bottom: 6px; }
.footer-rt p:last-child { color: var(--aco-300); }

.footer-legal {
  margin-top: 64px;
  font-size: .875rem;
  color: var(--aco-500);
}

/* A linha de cima é um fundo de 1px (e não border) para respeitar o recuo lateral do .wrap */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  background: linear-gradient(var(--chumbo-700), var(--chumbo-700)) no-repeat top / calc(100% - var(--gutter) * 2) 1px;
  font-size: .875rem;
  color: var(--aco-500);
}
.credit a {
  color: var(--aco-300);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: color .25s;
}
.credit a:hover { color: var(--branco); }

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-vivo), var(--azul) 70%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / .18);
  box-shadow: 0 12px 32px rgb(0 0 0 / .4), 0 0 0 6px rgb(1 0 163 / .18);
  transition: opacity .4s, transform .4s var(--ease-out), box-shadow .25s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { box-shadow: 0 12px 32px rgb(0 0 0 / .4), 0 0 0 10px rgb(1 0 163 / .25); }

.js .wa-float { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .past-hero .wa-float { opacity: 1; transform: none; pointer-events: auto; }
.js .past-hero.near-end .wa-float { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ==========================================================================
   Menu do celular e do tablet
   ========================================================================== */
.menu-btn {
  display: none;
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--branco);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 28px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23.5px; transform: rotate(-45deg); }

/* Fechado, fica invisível e fora da navegação por teclado (visibility: hidden) */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 90% 45% at 100% 0%, rgb(1 0 163 / .38), transparent 70%),
    linear-gradient(170deg, var(--azul-chumbo-20) 0%, var(--chumbo-900) 55%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.menu-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease-out);
}

.menu-mobile-nav { display: grid; }
.menu-mobile-nav a {
  padding-block: 18px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(1.5rem, 6.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--branco);
}

.menu-mobile-foot {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  font: 400 .9375rem/1.5 var(--f-ui);
  color: var(--aco-400);
}
.menu-mobile-foot .btn { justify-content: center; white-space: normal; text-align: center; }

/* Itens entram subindo, um depois do outro */
.menu-mobile-nav a,
.menu-mobile-foot {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.menu-mobile.is-open .menu-mobile-nav a,
.menu-mobile.is-open .menu-mobile-foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 60ms + 120ms);
}

html.menu-open { overflow: hidden; }
html.menu-open .site-header {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ==========================================================================
   Tablet e celular
   ========================================================================== */
@media (min-width: 1101px) {
  .menu-mobile { display: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .js .menu-btn { display: block; }
  .header-inner { gap: 16px; }
  .header-inner .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
    --section-y: clamp(72px, 12vw, 104px);
  }

  /* As grades de 12 colunas viram uma coluna. Os seletores repetem a especificidade
     das regras do desktop para conseguir sobrescrevê-las. */
  .section-head,
  .sigilo-grid,
  .doctor-grid,
  .faq-grid,
  .contato-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }

  .section-head .h2,
  .section-head p,
  .sigilo-media,
  .sigilo-body,
  .doctor-photo,
  .doctor-copy,
  .faq-head,
  .faq-list,
  .contato-copy,
  .contato-map,
  .footer-grid .brand,
  .footer-nav,
  .footer-contact,
  .footer-rt { grid-column: 1 / -1; }

  .section-head { margin-bottom: 40px; }

  /* Abertura: foto em cima, texto embaixo sobre o degradê */
  .hero {
    align-items: flex-end;
    min-height: max(640px, 100svh);
  }
  .hero-media {
    width: 100%;
    height: 68%;
    bottom: auto;
    --tone-fade:
      linear-gradient(0deg, var(--chumbo-850) 0%, rgb(28 30 33 / .6) 30%, transparent 62%),
      linear-gradient(180deg, rgb(19 20 30 / .6) 0%, transparent 26%);
  }
  .hero-media img { object-position: 62% 18%; }
  .hero-line { display: none; }
  .hero-copy {
    max-width: 34rem;
    padding-block: 0 56px;
  }
  .hero-title { font-size: clamp(2.125rem, 8.6vw, 3.25rem); }
  .hero-lead { margin-top: 20px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 32px; }

  /* Sigilo */
  .sigilo-media { aspect-ratio: 4 / 3; }
  .sigilo-list { margin-top: 40px; }

  /* Procedimentos: os nomes viram abas que deslizam para o lado */
  .proc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .proc-list {
    display: flex;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    border: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .proc-list::-webkit-scrollbar { display: none; }
  .proc-tab {
    flex: none;
    width: auto;
    padding: 12px 18px;
    border: 1px solid var(--chumbo-600);
    border-radius: 999px;
    scroll-snap-align: start;
  }
  .proc-tab::before { display: none; }
  .proc-tab[aria-selected="true"] {
    background: linear-gradient(135deg, var(--azul-vivo), var(--azul) 70%);
    border-color: transparent;
  }
  .proc-name {
    font-size: .9375rem;
    font-stretch: 110%;
    white-space: nowrap;
  }
  .proc-tag { display: none; }
  .proc-panels { position: static; }

  /* Como funciona: vídeo só na parte de cima; as etapas seguem sobre o chumbo */
  .steps-video {
    bottom: auto;
    height: min(640px, 80svh);
  }
  .steps-video video { object-position: 72% 50%; }
  .steps::before {
    background: linear-gradient(180deg, var(--chumbo-900) 0, rgb(23 25 28 / .5) 90px, rgb(25 27 46 / .5) 300px, var(--chumbo-900) min(600px, 75svh));
  }
  .steps-inner { min-height: 0; gap: 64px; }
  .steps-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-inline: 0;
  }
  .steps-list li { padding: 28px 0 32px; }

  /* Médico */
  .doctor-photo { max-width: 520px; }
  .doctor-name { margin-top: 28px; }

  /* Dúvidas */
  .faq-list summary {
    padding: 22px 44px 22px 0;
    font-size: 1.0625rem;
  }
  .faq-list details p { padding-right: 0; }

  /* Instagram */
  .insta-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* Contato */
  .contato-info { margin-top: 48px; }
  .contato-map { min-height: 340px; }

  /* Rodapé */
  .footer-nav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .footer-legal { margin-top: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .btn-sm { display: none; }
  .brand { gap: 14px; }
  .brand-mark { height: 32px; }
  .brand-word { height: 9px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .hero-actions .btn,
  .contato-copy .btn,
  .proc-panel .btn {
    justify-content: center;
    padding-inline: 18px;
    font-size: .9375rem;
    white-space: normal;
    text-align: center;
  }
  .hero-actions .link-quiet { align-self: flex-start; }
  .contato-copy .btn,
  .proc-panel .btn { width: 100%; }

  .sigilo-list { grid-template-columns: 1fr; gap: 28px; }

  .proc-panel { padding: 4px 20px 28px; }
  .proc-panel h3 { font-size: 1.375rem; }
  .proc-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-block: 24px 28px;
    padding-top: 4px;
  }
  .proc-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--chumbo-700);
  }
  .proc-facts dd { margin-top: 0; text-align: right; }

  /* Etapas em linhas: número à esquerda, texto à direita */
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    padding: 24px 0 28px;
  }
  .step-n {
    grid-row: span 2;
    margin: 0;
    font-size: 2.75rem;
  }

  .contato-copy .h2 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .contato-info { grid-template-columns: 1fr; gap: 20px; }

  .menu-mobile-foot .btn { padding-inline: 18px; font-size: .9375rem; }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

/* Telas de toque não têm hover: sem isso a etapa tocada ficaria "presa" levantada */
@media (hover: none) {
  .steps-list li:hover { transform: none; }
  .steps-list li:hover::after { opacity: 0; }
  .steps-list li:hover::before { transform: scaleX(0); }
  .steps-list:hover li:not(:hover) { opacity: 1; }
  .steps-list li:hover .step-n { transform: none; filter: none; }
  .steps-list li:hover p { color: var(--aco-300); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
