/* =========================================================
   Dr. Mário Sérgio Correa — Saúde Hormonal e Metabólica
   Folha de estilos da Home
   Sumário:
   01. Tokens e base
   02. Utilitários (container, botões, links, tipografia)
   03. Header e navegação
   04. Hero
   05. Áreas de atendimento
   06. Como funciona a consulta
   07. Consulta online
   08. Bioimpedância
   09. Outras condições
   10. Sobre o médico
   11. Diferenciais
   12. Avaliações
   13. FAQ
   14. Contato
   15. Rodapé e CTA flutuante
   16. Espaços reservados (fotos e copy pendente)
   17. Animações
   18. Responsividade
   19. Movimento reduzido
   ========================================================= */

/* ---------- 01. Tokens e base ---------- */
:root {
  --navy: #1B2F50;
  --navy-deep: #13233D;
  --white: #FFFFFF;
  --mist: #F5F6F8;
  --line: #DCE2EA;
  --text: #3B475A;
  --muted: #5B6779;
  --on-navy: #C9D3E1;
  --on-navy-soft: rgba(255, 255, 255, 0.62);
  --line-on-navy: rgba(255, 255, 255, 0.14);

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-soft: 0 24px 48px -32px rgba(27, 47, 80, 0.35);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Recorta o deslocamento lateral das animações de entrada (sem criar rolagem horizontal) */
main { overflow-x: clip; }

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

h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 500; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.icon-sm { width: 0.95rem; height: 0.95rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* ---------- 02. Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-navy); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--on-navy-soft); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section--navy .section-title,
.contact-card .section-title { color: var(--white); }

.section-intro { font-size: 1.0625rem; max-width: 48ch; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 4rem;
  align-items: end;
}
.section-head.narrow { max-width: 760px; }
.section-head.narrow .section-title { margin-bottom: 1.25rem; }

.item-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

/* Botões */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-sm { min-height: 44px; padding: 0.65rem 1.2rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 28px -16px rgba(27, 47, 80, 0.7);
}
/* Preenchimento que sobe no hover */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-deep);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(27, 47, 80, 0.75); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-link {
  min-height: 48px;
  padding-inline: 0.25rem;
  color: var(--navy);
  border-radius: 6px;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.7rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  transition: opacity 0.35s var(--ease);
}
.btn-link .icon { transition: transform 0.35s var(--ease); }
.btn-link:hover::after { opacity: 1; }
.btn-link:hover .icon { transform: translateX(4px); }

/* Botão secundário: contorno arredondado, preenche em azul no hover */
.btn-outline {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline .icon { transition: transform 0.35s var(--ease); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline:hover .icon { transform: translateX(4px); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); transform: translateY(-2px); }

.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

.section--navy :focus-visible,
.contact-card :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

/* Link contextual com sublinhado animado */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.35rem) / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.text-link .icon { transition: transform 0.35s var(--ease); }
.text-link:hover { background-size: calc(100% - 1.6rem) 1px; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- 03. Header e navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(27, 47, 80, 0.45);
}

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

.brand { display: block; border-radius: 50%; }
/* Altura do header é fixa; ao rolar só a logo reduz via transform (não altera o layout, evita "tremer") */
.brand img { width: 80px; height: 80px; transform-origin: left center; transition: transform 0.4s var(--ease); }
.is-scrolled .brand img { transform: scale(0.85); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 500;
}
.main-nav .nav-cta { font-size: 0.95rem; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after,
.has-dropdown.is-open > .nav-link::after { transform: scaleX(1); }

.dropdown-toggle .icon { transition: transform 0.35s var(--ease); }
.has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.5rem;
  min-width: 330px;
  padding: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(27, 47, 80, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
/* Ponte invisível para o hover não se perder no espaço entre botão e menu */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.9rem;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.dropdown a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.dropdown a:hover { background: var(--mist); }
.dropdown a:hover::after { opacity: 1; transform: translateX(0); }

.header-mobile-actions { display: none; align-items: center; gap: 0.6rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: background-color 0.3s var(--ease);
}
.icon-btn-wa { background: var(--navy); border-color: var(--navy); color: var(--white); }

.menu-bars { position: relative; width: 20px; height: 10px; }
.menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---------- 04. Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}
/* Bloco off-white assimétrico atrás da fotografia */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 88%;
  background: var(--mist);
  border-bottom-left-radius: 240px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-id-name { color: var(--navy); font-weight: 600; }
.hero-id-sep { color: var(--line); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title .accent { font-style: italic; font-weight: 500; }

.hero-text { max-width: 54ch; font-size: 1.0625rem; margin-bottom: 1.75rem; }

.seals { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }
.seals li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}
.seals li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
}
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 148%;
  max-width: none;
  /* --py é atualizado pelo script.js (parallax sutil, desligado no mobile e em movimento reduzido) */
  transform: translate(-50%, calc(-50% + var(--py, 0px)));
  pointer-events: none;
}
.hero-rings circle,
.hero-rings path { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.22; }

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 22px 22px;
  overflow: hidden;
  background: var(--line);
}
/* Enquadramento priorizando o rosto, que fica à direita da foto */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero-photo .placeholder { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(27, 47, 80, 0.06) 14px 15px), #E7ECF2; }

.hero-badge {
  position: absolute;
  left: -2rem;
  bottom: -1.25rem;
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-badge-line { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-badge .icon { width: 1rem; height: 1rem; opacity: 0.8; }

/* ---------- 05. Áreas de atendimento ---------- */
.areas::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  height: 1px;
  background: var(--line);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.area-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 2.25rem 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.area-card--wide { grid-column: span 3; background: var(--mist); border-color: transparent; min-height: 300px; }

.area-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 47, 80, 0.3);
  box-shadow: var(--shadow-soft);
}

/* Arcos concêntricos no canto, ecoando o monograma */
.area-arc {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: scaleY(-1);
  z-index: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
}
.area-arc circle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1;
  opacity: 0.14;
  stroke-dasharray: 660;
  stroke-dashoffset: 0;
  transition: opacity 0.5s var(--ease), stroke-dashoffset 0.9s var(--ease);
}
.area-card:hover .area-arc circle { opacity: 0.45; animation: arc-redraw 1.1s var(--ease); }
@keyframes arc-redraw { from { stroke-dashoffset: 660; } to { stroke-dashoffset: 0; } }

.area-title {
  position: relative;
  max-width: 17ch;
  margin-bottom: 0.9rem;
  padding-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}
.area-card--wide .area-title { font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.1rem); max-width: 18ch; }
.area-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--navy);
  transition: width 0.5s var(--ease);
}
.area-card:hover .area-title::before { width: 56px; }

.area-card > p { font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Fotografia no topo do card, sangrando até as bordas */
.area-media {
  margin: -2.25rem -2rem 1.75rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
}
.area-card--wide .area-media { aspect-ratio: 16 / 8; }
.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.area-card:hover .area-media img { transform: scale(1.04); }
.area-card .btn { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; }
/* Card inteiro clicável: cursor de link e o botão reage ao passar o mouse em qualquer parte do card */
.area-card { cursor: pointer; }
.area-card:hover .btn-outline { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.area-card:hover .btn-outline .icon { transform: translateX(4px); }
.area-card:hover .btn-outline::after { animation: btn-shine 0.9s var(--ease) 0.1s; }

/* Botões dos cards: brilho deslizante no hover */
.area-card .btn { text-align: left; }
.area-card .btn-outline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.area-card .btn-outline:hover::after { animation: btn-shine 0.9s var(--ease) 0.1s; }
@keyframes btn-shine {
  from { left: -60%; }
  to { left: 130%; }
}

/* ---------- 06. Como funciona a consulta ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2.75rem;
}
/* Linha fina que conecta as etapas */
.steps::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(27, 47, 80, 0.25) 70%, transparent 100%);
  transform-origin: left;
  transform: scaleX(1);
}
.js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.2s; }
.js .steps.is-visible::before { transform: scaleX(1); }

.step { position: relative; padding-right: 1rem; }
.step-node {
  position: absolute;
  top: calc(-2.75rem + 1px);
  left: 0;
  width: 21px;
  height: 21px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--mist);
}
.step-node::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Cabeçalho da seção com imagem em parallax à direita */
.steps-intro {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.steps-intro .section-head { margin-bottom: 0; }
.steps-intro .section-title { margin-bottom: 1.25rem; }
.steps-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px 160px 24px 24px;
  background: var(--line);
}
/* Imagem maior que a moldura para ter margem de deslocamento no parallax */
.steps-media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translate3d(0, var(--my, 0px), 0);
  will-change: transform;
}

/* ---------- 07. Consulta online ---------- */
.online-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.online-photo {
  grid-column: 1 / 8;
  grid-row: 1;
  aspect-ratio: 4 / 3;
  border-radius: 200px 24px 24px 24px;
  overflow: hidden;
  background: var(--line);
}
/* Mantém médico e tela do notebook dentro do recorte */
.online-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

.online-panel {
  position: relative;
  z-index: 1;
  grid-column: 8 / 13;
  margin-left: -2.5rem;
  grid-row: 1;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--mist);
  border: 1px solid var(--white);
  border-radius: 28px;
  box-shadow: 0 30px 60px -45px rgba(27, 47, 80, 0.45);
}
.online-panel .section-title { margin-bottom: 1.25rem; }
.online-photo-mobile { display: none; }

.online-items { display: grid; gap: 1.5rem; margin: 2rem 0 2.25rem; }
.online-item { padding-top: 1.5rem; border-top: 1px solid var(--line); }
/* Destaque discreto: a teleconsulta depende de adequação clínica */
.online-item--note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--navy);
  border-radius: 4px 16px 16px 4px;
  background: var(--white);
}
.online-item--note > .icon { margin-top: 0.3rem; color: var(--navy); }

/* ---------- 08. Bioimpedância ---------- */
.bio { padding-top: 0; }
.bio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}
.bio-content .section-title { margin-bottom: 1.25rem; }

.bio-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0 2.25rem; }
.bio-point {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.bio-point:hover { border-color: rgba(27, 47, 80, 0.3); background: var(--mist); }
.bio-point .icon { color: var(--navy); margin-bottom: 1rem; }
.bio-point .item-title { font-size: 1.3rem; }

.bio-visual { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-left: auto; }
.bio-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.bio-rings circle { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.2; }
.bio-photo {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 09. Outras condições ---------- */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); }
.column { padding: 0.25rem 2.25rem 0.5rem; border-left: 1px solid var(--line); }
.column:first-child { padding-left: 0; border-left: 0; }
.column:last-child { padding-right: 0; }

.column-title {
  position: relative;
  padding-top: 1.75rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}
.column-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--navy);
  border-radius: 50%;
}

/* ---------- 10. Sobre o médico ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}
.about-visual { position: relative; max-width: 460px; }
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 230px 230px 20px 20px;
  overflow: hidden;
  background: var(--line);
}
/* Enquadramento priorizando o rosto dentro do arco */
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
/* Contorno deslocado em arco, detalhe gráfico discreto */
.about-visual::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: -1.25rem;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(27, 47, 80, 0.28);
  border-radius: 230px 230px 20px 20px;
  pointer-events: none;
}
.about-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.about-caption::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.nowrap { white-space: nowrap; }

.about-content .section-title { margin-bottom: 1.5rem; }
.about-block { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- 11. Diferenciais ---------- */
.features { overflow: clip; }
.features-rings {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 640px;
  pointer-events: none;
}
.features-rings circle { fill: none; stroke: var(--white); stroke-width: 1; opacity: 0.08; }

.features-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.features-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.features-head .section-title { margin-bottom: 1.25rem; }

.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-on-navy);
}
.feature:last-child { border-bottom: 1px solid var(--line-on-navy); }

.feature-title {
  position: relative;
  padding-left: 1.5rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  transition: transform 0.45s var(--ease);
}
.feature-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--on-navy);
  border-radius: 50%;
  transition: background-color 0.45s var(--ease);
}
.feature:hover .feature-title { transform: translateX(6px); }
.feature:hover .feature-title::before { background: var(--on-navy); }

/* ---------- 12. Avaliações ---------- */
.reviews .section-head.split { align-items: end; }
.reviews-intro .text-link { margin-top: 0.5rem; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.review-stars { margin: 0; color: var(--navy); letter-spacing: 0.15em; }
.review-text { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.4; color: var(--navy); }
.review-author { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--muted); }

.review-card--placeholder {
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 220px;
  text-align: center;
  border-style: dashed;
  background: var(--mist);
}

/* ---------- 13. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-heading { font: inherit; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 64px;
  padding: 1.4rem 0;
  text-align: left;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger:hover .acc-icon { border-color: var(--navy); }
.acc-item.is-open .acc-icon { background: var(--navy); border-color: var(--navy); }
.acc-item.is-open .acc-icon::before,
.acc-item.is-open .acc-icon::after { background: var(--white); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Painel: conteúdo sempre no HTML (indexável); abertura animada por grid-rows */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0.45s;
}
.acc-trigger > span:first-child { flex: 1; }
.acc-inner { overflow: hidden; }
.acc-inner > * { max-width: 62ch; }
.acc-inner > :last-child { padding-bottom: 1.5rem; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; }
/* Sem JavaScript, as respostas ficam visíveis */
html:not(.js) .acc-panel { grid-template-rows: 1fr; visibility: visible; }

/* ---------- 14. Contato ---------- */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 32px;
  overflow: hidden;
}
/* Arco fino decorativo no canto */
.contact-card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -180px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.contact-content { position: relative; padding: clamp(2rem, 5vw, 4.5rem); }
.contact-content .section-title { margin-bottom: 1.25rem; }
/* Título em uma única linha no desktop: avança sobre a coluna do mapa, que começa mais abaixo */
@media (min-width: 861px) {
  .contact-content .section-title { white-space: nowrap; position: relative; z-index: 1; }
  /* Introdução acompanha a largura do título */
  .contact-intro { position: relative; z-index: 1; width: 66ch; }
  /* Mapa alinhado à lista de contatos (base sobe acima da área dos botões) */
  .contact-card .contact-map { align-self: end; padding: 1.25rem 1.25rem calc(clamp(2rem, 5vw, 4.5rem) + 11rem); }
}

.contact-list { margin-top: 2rem; }
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line-on-navy);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line-on-navy); }
.contact-list > li > .icon { color: var(--on-navy); opacity: 0.85; }
.contact-label {
  display: block;
  color: var(--on-navy-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-value { color: var(--white); font-size: 1rem; line-height: 1.5; }
a.contact-value { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; transition: text-decoration-color 0.3s; }
a.contact-value:hover { text-decoration-color: var(--white); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.copy-btn.is-copied { background: var(--white); color: var(--navy); }

.copy-status { min-height: 1.5em; margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--on-navy); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* Mapa com altura fixa, centralizado na coluna (não estica com o texto) */
.contact-map { position: relative; align-self: center; padding: 1.25rem; }
.contact-map iframe {
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: 22px;
  background: var(--navy-deep);
  filter: grayscale(0.25);
}

/* ---------- 15. Rodapé e CTA flutuante ---------- */
.site-footer {
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.2fr 1.1fr;
  gap: 2.5rem;
}
.footer-logo {
  width: 104px;
  height: 104px;
  margin-bottom: 1.25rem;
  /* Mesma logo oficial, apenas convertida para branco sobre o fundo escuro */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-id { color: var(--white); font-weight: 500; max-width: 28ch; }
/* Instagram: ícone em círculo de contorno fino, ecoando o monograma */
.site-footer .footer-social { display: inline-flex; align-items: center; gap: 0.65rem; margin-top: 0.25rem; color: var(--on-navy); }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.site-footer .footer-social:hover { color: var(--white); }
.footer-social:hover .footer-social-icon { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.footer-title {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* Contatos do rodapé: uma linha clicável por item */
.footer-contact { display: grid; justify-items: start; gap: 0.5rem; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.35rem; }
/* Desktop: nomes das áreas sempre em uma linha */
.footer-links span { display: inline-block; padding-block: 0.2rem; }
@media (min-width: 861px) { .footer-links a, .footer-links span { white-space: nowrap; } }
/* Links do rodapé: no hover só clareiam, sem sublinhado */
.site-footer a {
  display: inline-block;
  padding-block: 0.2rem;
  transition: color 0.3s var(--ease);
}
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-navy);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
/* Links inline nas linhas finais (sem o espaçamento vertical dos links das colunas) */
.footer-bottom a { display: inline; padding-block: 0; }
.footer-bottom a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
/* Crédito: tom azul-claro derivado do azul-marinho da marca */
.footer-bottom .footer-credit a { color: #9DB4D6; font-weight: 600; text-decoration: none; }
.footer-bottom .footer-credit a:hover { color: var(--white); }

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(19, 35, 61, 0.6);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.wa-float .icon { width: 1.5rem; height: 1.5rem; }
.wa-float:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- 16. Espaços reservados ---------- */
/* Fotos: remover a div .placeholder e inserir a <img> indicada no comentário do HTML */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(27, 47, 80, 0.045) 14px 15px),
    var(--mist);
}
.placeholder-label { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.placeholder-hint { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- 17. Animações ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Entrada do hero */
.hero-content > * { animation: fade-up 0.9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }
.hero-content > :nth-child(5) { animation-delay: 0.32s; }
.hero-photo, .hero-badge { animation: fade-up 1.1s var(--ease) 0.2s both; }
.hero-badge { animation-delay: 0.55s; }

/* Linhas circulares que se desenham */
.ring-draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.hero-rings .ring-draw { animation: draw 2.6s var(--ease) 0.3s forwards; }
.bio-rings .ring-draw { stroke-dashoffset: 0; }
.js .bio-rings .ring-draw { stroke-dashoffset: 1600; }
.js .bio-visual.is-visible .ring-draw { animation: draw 2.4s var(--ease) 0.2s forwards; }

/* Revelação na rolagem (só ativa com JavaScript) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Variações: entrada pelas laterais e aproximação suave */
.js [data-reveal="left"] { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }

/* Fotos: cortina da cor do fundo que se recolhe para cima, revelando a imagem.
   (Uma camada por cima, e não clip-path na foto, para não bloquear o carregamento lazy) */
.js [data-reveal="media"] { opacity: 1; transform: none; }
.js [data-reveal="media"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--curtain, var(--white));
  transform-origin: top;
  transition: transform 1.3s var(--ease) var(--reveal-delay, 0s);
  pointer-events: none;
}
.js [data-reveal="media"].is-visible::after { transform: scaleY(0); }
.steps-media { --curtain: var(--mist); }

/* Listas: o bloco fica parado e os itens entram em sequência */
.js [data-reveal="stagger"] { opacity: 1; transform: none; }
.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.12s + 0.1s);
}
.js [data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }

/* Linha fina antes dos títulos se desenha quando a seção entra */
.js [data-reveal] .eyebrow::before { width: 0; transition: width 0.9s var(--ease) 0.35s; }
.js [data-reveal].is-visible .eyebrow::before { width: 28px; }

/* Parallax de foto dentro da moldura (deslocamento calculado no script.js) */
.js img[data-parallax-media] {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translate3d(0, var(--my, 0px), 0);
  will-change: transform;
}
.online-photo, .online-photo-mobile { position: relative; }

/* ---------- 18. Responsividade ---------- */
@media (hover: hover) and (min-width: 1025px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-dropdown:hover .dropdown-toggle .icon { transform: rotate(180deg); }
}

@media (max-width: 1180px) {
  .main-nav { gap: 1rem; }
  .nav-link { padding-inline: 0.6rem; }
  .nav-link::after { left: 0.6rem; right: 0.6rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .header-inner { height: var(--header-h); }
  .brand img { width: 62px; height: 62px; }
  .is-scrolled .brand img { transform: none; }
  .header-mobile-actions { display: flex; }

  /* Menu mobile em painel */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 60px;
    padding: 0.9rem 0;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
  }
  .nav-link::after { display: none; }
  .dropdown-toggle .icon { width: 1.25rem; height: 1.25rem; }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { min-height: 48px; padding: 0.75rem 0.25rem; font-size: 1rem; }

  .nav-cta { width: 100%; min-height: 54px; font-size: 0.95rem; }

  body.menu-open { overflow: hidden; }

  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-card, .area-card--wide { grid-column: span 1; }
  .area-card:last-child { grid-column: span 2; }

  .features-grid, .faq-grid { grid-template-columns: 1fr; }
  .features-head, .faq-head { position: static; }

  .wa-float { display: inline-flex; }
}

@media (max-width: 860px) {
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 0; }
  /* No mobile: título e texto primeiro, imagem logo após o texto, depois selos e botões */
  .hero-content { display: contents; }
  .hero-id { order: 1; }
  .hero-title { order: 2; }
  .hero-text { order: 3; }
  .hero-visual { order: 4; max-width: 300px; margin: 0.75rem auto 2.75rem; }
  .seals { order: 5; }
  .hero-actions { order: 6; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-rings { width: 118%; }
  .hero-badge { left: -0.75rem; bottom: -1.25rem; padding: 0.8rem 1rem; font-size: 0.78rem; }

  .section-head.split { grid-template-columns: 1fr; gap: 1.25rem; }

  .steps-intro { grid-template-columns: 1fr; }
  .steps-media { aspect-ratio: 4 / 3.3; border-radius: 20px 110px 20px 20px; }
  .steps-media img { object-position: 28% 50%; }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 0; padding-left: 2.5rem; }
  .steps::before {
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--navy), rgba(27, 47, 80, 0.2));
    transform-origin: top;
  }
  .js .steps::before { transform: scaleY(0); }
  .js .steps.is-visible::before { transform: scaleY(1); }
  .step-node { top: 0.3rem; left: -2.5rem; }

  .online-grid { grid-template-columns: 1fr; }
  /* Mobile: a foto entra dentro do painel, logo após a introdução */
  .online-photo { display: none; }
  .online-panel { grid-column: 1; grid-row: 1; margin: 0; }
  .online-photo-mobile {
    display: block;
    margin: 1.75rem 0 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 90px 18px 18px 18px;
    background: var(--line);
  }
  .online-photo-mobile img { width: 100%; height: 100%; object-fit: cover; }

  /* Mobile: imagem logo após a introdução, antes dos dois cards */
  .bio-grid { grid-template-columns: 1fr; row-gap: 0; }
  .bio-content { display: contents; }
  .bio-content > .eyebrow { order: 1; justify-self: start; }
  .bio-content > .section-title { order: 2; }
  .bio-content > p { order: 3; }
  .bio-visual { order: 4; max-width: 320px; margin: 2rem auto 0.5rem; }
  .bio-points { order: 5; }
  .bio-content > .btn { order: 6; }

  .columns { grid-template-columns: 1fr; gap: 2rem; }
  .column, .column:first-child { padding: 1.75rem 0 0; border-left: 0; border-top: 1px solid var(--line); }

  /* Mobile: foto entre "Formação médica" e "Atendimento humanizado" */
  .about-grid { grid-template-columns: 1fr; row-gap: 0; }
  .about-content { display: contents; }
  .about-content > .eyebrow { order: 1; justify-self: start; }
  .about-content > .section-title { order: 2; }
  .about-content > .about-block:nth-child(3) { order: 3; }
  .about-visual { order: 4; max-width: 340px; margin: 2.25rem auto 0.5rem; width: calc(100% - 1.25rem); }
  .about-content > .about-block:nth-child(4) { order: 5; }

  .review-grid { grid-template-columns: 1fr; }
  .review-card--placeholder { min-height: 150px; }

  .contact-card { grid-template-columns: 1fr; border-radius: 24px; }
  .contact-map { padding: 0 0.75rem 0.75rem; }
  .contact-map iframe { height: 300px; border-radius: 18px; }

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

@media (max-width: 560px) {
  .about-caption { font-size: 0.8rem; gap: 0.6rem; }
  .about-caption::before { width: 18px; flex-shrink: 0; }
  .hero-id-sep { display: none; }
  .hero-id { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .hero-actions .btn-outline { justify-content: center; }
  .seals li { font-size: 0.78rem; padding: 0.45rem 0.8rem; }

  .area-grid { grid-template-columns: 1fr; }
  .area-card, .area-card--wide, .area-card:last-child { grid-column: 1; min-height: 0; }
  .area-card { padding: 2rem 1.5rem 1.25rem; }
  .area-media { margin: -2rem -1.5rem 1.5rem; }
  .area-card--wide .area-media { aspect-ratio: 16 / 10; }

  .bio-points { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature p { padding-left: 1.5rem; }

  .online-panel { margin-inline: 0; }

  .contact-list li { gap: 0.85rem; }
  .contact-actions .btn { width: 100%; }

  .section-cta .btn,
  .online-panel > .btn,
  .bio-content > .btn { width: 100%; }

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

/* ---------- 19. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-reveal="stagger"] > * { opacity: 1; transform: none; }
  .js [data-reveal="media"]::after { display: none; }
  .js [data-reveal] .eyebrow::before { width: 28px; }
  .ring-draw, .js .bio-rings .ring-draw { stroke-dashoffset: 0; }
  .js .steps::before { transform: none; }
}

/* =========================================================
   20. Página interna — Emagrecimento e Obesidade (/emagrecimento/)
   Classes com prefixo "em-" para não interferir na Home
   ========================================================= */

/* Item da página atual no menu e no rodapé */
.dropdown a[aria-current="page"] { font-weight: 600; background: var(--mist); }
.site-footer .footer-links a[aria-current="page"] { color: var(--white); }

/* ---------- Hero ---------- */
.em-hero {
  position: relative;
  overflow: clip;
  min-height: 660px;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}
.em-hero-inner { position: relative; z-index: 1; }
.em-hero-content { width: 52%; max-width: 620px; }

.em-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.em-breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; opacity: 0.6; }
.em-breadcrumb a {
  color: var(--navy);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.em-breadcrumb a:hover { background-size: 100% 1px; }
.em-breadcrumb [aria-current="page"] { color: var(--muted); }

.em-hero-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.35rem + 3.3vw, 4.3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.em-hero-title .accent { font-style: italic; }

/* Frase de apoio com fio azul à esquerda */
.em-hero-lede {
  max-width: 100%;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
}
.em-hero-text { max-width: 54ch; margin-bottom: 2rem; font-size: 1.0625rem; }
.em-hero-actions { margin-bottom: 2rem; }
.em-hero .seals { margin-bottom: 0; }

/* Fotografia sangrando até a borda direita, com curva ampla no canto inferior */
.em-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: clamp(4rem, 8vw, 7rem);
  width: 42%;
}
.em-hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-bottom-left-radius: 280px;
  background: var(--line);
}
/* Enquadramento priorizando o rosto, no alto à direita da foto */
.em-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 18%; }
.em-hero-photo .placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(27, 47, 80, 0.06) 14px 15px),
    #E7ECF2;
}
/* Anéis do monograma atravessando a borda da foto */
.em-hero-rings {
  position: absolute;
  top: 50%;
  left: -170px;
  z-index: 1;
  width: 340px;
  max-width: none;
  transform: translateY(-50%);
  pointer-events: none;
}
.em-hero-rings circle { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.25; }
.em-hero-rings .ring-draw { animation: draw 2.6s var(--ease) 0.4s forwards; }

.em-hero-content > * { animation: fade-up 0.9s var(--ease) both; }
.em-hero-content > :nth-child(2) { animation-delay: 0.06s; }
.em-hero-content > :nth-child(3) { animation-delay: 0.12s; }
.em-hero-content > :nth-child(4) { animation-delay: 0.18s; }
.em-hero-content > :nth-child(5) { animation-delay: 0.24s; }
.em-hero-content > :nth-child(6) { animation-delay: 0.3s; }
.em-hero-content > :nth-child(7) { animation-delay: 0.36s; }
.em-hero-photo { animation: fade-up 1.1s var(--ease) 0.2s both; }

/* ---------- Quando buscar acompanhamento ---------- */
.em-when-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
}
.em-when-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.em-when-head .section-title { margin-bottom: 1.25rem; }

.em-when-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.75rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.em-when-item:last-child { border-bottom: 1px solid var(--line); }
/* Blocos em degrau: cada um começa um pouco mais à direita */
.em-when-item:nth-child(2) { margin-left: 3rem; }
.em-when-item:nth-child(3) { margin-left: 6rem; }

.em-motif { width: 56px; height: 56px; transition: transform 0.7s var(--ease); }
.em-motif circle { fill: none; stroke: var(--navy); stroke-width: 1; }
.em-motif .fill { fill: var(--navy); stroke: none; }
.em-when-item:hover .em-motif { transform: rotate(90deg) scale(1.06); }

.em-when-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Tratamento da obesidade (azul-marinho) ---------- */
.em-treat { overflow: clip; }
.em-treat-rings {
  position: absolute;
  bottom: -220px;
  left: -200px;
  width: 620px;
  max-width: none;
  pointer-events: none;
}
.em-treat-rings circle { fill: none; stroke: var(--white); stroke-width: 1; opacity: 0.07; }

.em-treat-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
}
.em-treat-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.em-treat-head .section-title { margin-bottom: 1.25rem; }

/* Linha do tempo vertical, sem números */
.em-timeline { position: relative; padding-left: 3rem; }
.em-timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--on-navy), rgba(201, 211, 225, 0.15));
  transform-origin: top;
}
.js .em-timeline::before { transform: scaleY(0); transition: transform 1.6s var(--ease) 0.2s; }
.js .em-timeline.is-visible::before { transform: scaleY(1); }

.em-timeline-item { position: relative; padding-bottom: 2.75rem; }
.em-timeline-item:last-child { padding-bottom: 0; }
.em-timeline-node {
  position: absolute;
  top: 0.4rem;
  left: -3rem;
  width: 21px;
  height: 21px;
  border: 1px solid var(--on-navy);
  border-radius: 50%;
  background: var(--navy);
}
.em-timeline-node::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--white);
}
.em-timeline-title {
  margin-bottom: 0.7rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}
.em-treat-cta { margin-top: 2.75rem; padding-left: 3rem; }

/* ---------- Resistência à insulina e síndrome metabólica ---------- */
.em-meta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
.em-meta-graphic { width: 100%; max-width: 320px; margin-top: 2.5rem; }
.em-meta-graphic circle { fill: rgba(27, 47, 80, 0.03); stroke: var(--navy); stroke-width: 1; opacity: 0.45; }
.em-meta-graphic .ring-draw { stroke-dashoffset: 0; }
.js .em-meta-graphic .ring-draw { stroke-dashoffset: 1600; }
.js .em-meta-head.is-visible .ring-draw { animation: draw 2.4s var(--ease) 0.3s forwards; }

.em-meta-body p { max-width: 60ch; font-size: 1.0625rem; }
.em-meta-body .em-meta-lead {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.65rem);
  line-height: 1.38;
}

/* Link contextual: o fio inferior sobe e preenche o termo no hover */
.em-inline-link {
  padding-inline: 0.1em;
  color: var(--navy);
  font-weight: 600;
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.45s var(--ease);
}
.em-inline-link:hover,
.em-inline-link:focus-visible { background-size: 100% 100%; color: var(--white); }

/* ---------- Bioimpedância e composição corporal ---------- */
.em-bio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}
.em-bio-visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; }
.em-bio-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.em-bio-rings circle { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.2; }
.em-bio-rings .ring-draw { stroke-dashoffset: 0; }
.js .em-bio-rings .ring-draw { stroke-dashoffset: 1600; }
.js .em-bio-visual.is-visible .ring-draw { animation: draw 2.4s var(--ease) 0.2s forwards; }
.em-bio-photo {
  position: absolute;
  inset: 9%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--line);
}
.em-bio-photo img { width: 100%; height: 100%; object-fit: cover; }

.em-bio-content .section-title { margin-bottom: 1.5rem; }
/* Destaque: composição corporal (o que muda) x peso (quanto varia) */
.em-bio-lead {
  margin-bottom: 2rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  line-height: 1.42;
}
.em-bio-lead em:first-of-type {
  font-style: italic;
  background: linear-gradient(transparent 60%, var(--line) 60%);
}
.em-bio-lead em:last-of-type { font-style: italic; color: var(--muted); }

.em-bio-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.em-bio-item:last-child { border-bottom: 1px solid var(--line); }
.em-bio-item .icon { color: var(--navy); margin-top: 0.2rem; }

/* ---------- Consulta online ---------- */
.em-online-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.em-online-panel {
  position: relative;
  z-index: 1;
  grid-column: 1 / 7;
  grid-row: 1;
  margin-right: -2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 30px 60px -45px rgba(27, 47, 80, 0.45);
}
.em-online-panel .section-title { margin-bottom: 1.25rem; }
.em-online-panel .online-item--note { background: var(--mist); }
.em-online-photo {
  position: relative;
  grid-column: 7 / 13;
  grid-row: 1;
  aspect-ratio: 1448 / 1086;
  overflow: hidden;
  border-radius: 24px 24px 24px 160px;
  background: var(--line);
  --curtain: var(--mist);
}
/* Foto inteira na proporção original (sem cortar o mapa do Brasil) */
.em-online-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- O cuidado médico do Dr. Mário ---------- */
.em-doc .about-block { margin-top: 0; }
.em-doc-link { margin-top: 1.75rem; }

/* ---------- Agendamento (encerramento) ---------- */
.em-book-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border-radius: 32px;
  background: var(--navy);
  color: var(--on-navy);
}
.em-book-card::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.em-book-intro { position: relative; }
.em-book-intro .section-title { margin-bottom: 1.25rem; color: var(--white); }
.em-book-intro p { margin-bottom: 2rem; font-size: 1.0625rem; }
.em-book-card :focus-visible { outline-color: var(--white); }
.em-book-list { position: relative; margin-top: 0; }

/* ---------- Responsividade da página ---------- */
@media (max-width: 1024px) {
  .em-when-grid,
  .em-treat-grid { grid-template-columns: 1fr; }
  .em-when-head,
  .em-treat-head { position: static; }
}

@media (max-width: 860px) {
  /* Hero: título e textos antes da imagem */
  .em-hero { min-height: 0; padding-bottom: clamp(3.5rem, 8vw, 5rem); }
  .em-hero-content { width: 100%; }
  .em-hero-media {
    position: relative;
    inset: auto;
    width: auto;
    margin: 2.75rem var(--gutter) 0;
    aspect-ratio: 4 / 3.4;
  }
  .em-hero-photo { border-radius: 140px 20px 20px 20px; }
  .em-hero-rings { display: none; }

  .em-when-item:nth-child(2),
  .em-when-item:nth-child(3) { margin-left: 0; }

  .em-meta-grid,
  .em-bio-grid { grid-template-columns: 1fr; }
  .em-meta-graphic { max-width: 240px; }

  .em-bio-content { order: 1; }
  .em-bio-visual { order: 2; max-width: 340px; margin-inline: auto; }

  .em-online-grid { grid-template-columns: 1fr; }
  .em-online-panel { grid-column: 1; grid-row: 1; margin-right: 0; }
  .em-online-photo { grid-column: 1; grid-row: 2; margin-top: 1.5rem; border-radius: 20px 20px 20px 90px; }

  .em-book-card { grid-template-columns: 1fr; border-radius: 24px; }
}

@media (max-width: 560px) {
  .em-when-item { grid-template-columns: 1fr; gap: 1rem; }
  .em-motif { width: 44px; height: 44px; }
  .em-timeline { padding-left: 2.5rem; }
  .em-timeline-node { left: -2.5rem; }
  .em-treat-cta { padding-left: 0; }
  .em-hero-actions .btn,
  .em-treat-cta .btn,
  .em-online-panel > .btn,
  .em-book-intro .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .em-timeline::before { transform: none; }
  .js .em-meta-graphic .ring-draw,
  .js .em-bio-rings .ring-draw,
  .em-hero-rings .ring-draw { stroke-dashoffset: 0; }
}
