/* ============================================================
   Dr. Rogério Leal · styles.css
   BEM · paleta do Manual de Identidade Visual 2026
   Display: Obviously · Texto: Instrument Sans
   ============================================================ */

/* ------------------------------------------------------------
   1. Fontes (self-hosted)
------------------------------------------------------------ */
@font-face {
  font-family: 'Obviously';
  src: url('../assets/fonts/woff2/Obviously-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obviously';
  src: url('../assets/fonts/woff2/Obviously-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Obviously';
  src: url('../assets/fonts/woff2/Obviously-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obviously Wide';
  src: url('../assets/fonts/woff2/ObviouslyWide-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obviously Wide';
  src: url('../assets/fonts/woff2/ObviouslyWide-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Instrument Sans (variável 400-500) · texto corrido e interface */
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/woff2/InstrumentSans-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/woff2/InstrumentSans-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/woff2/InstrumentSans-Italic-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. Tokens
   z-index: whats 90 · header 100 · drawer 200 · loader 300
------------------------------------------------------------ */
:root {
  --soberania: #1F110C;
  --profundo: #241E1A;       /* tom próprio do rodapé, fora da paleta oficial */
  --distincao: #5C3327;
  --humanidade: #86431E;
  --serenidade: #C0B0A3;
  --clareza: #FFFFFF;

  --areia: #F7F4F2;          /* superfície clara tintada */
  --linha: rgba(31, 17, 12, 0.12);
  --texto-suave: #7A6E64;
  --neon: #39FF14;

  --font-display: 'Obviously', 'Helvetica Neue', Arial, sans-serif;
  --font-wide: 'Obviously Wide', 'Obviously', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 76px;
  --section: clamp(5rem, 11vh, 8.5rem);
  --r-sm: 6px;
  --r-md: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   3. Base
------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--soberania);
  background: var(--soberania);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
address { font-style: normal; }
em { font-style: italic; }

/* A Obviously é larga: títulos pedem entrelinha generosa para respirar */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

::selection { background: var(--humanidade); color: var(--clareza); }
:focus-visible { outline: 2px solid var(--humanidade); outline-offset: 3px; }

html.is-locked,
html.is-locked body { overflow: hidden; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 400;
  padding: 0.75rem 1.25rem;
  background: var(--clareza);
  color: var(--soberania);
  font-size: 0.875rem;
  border-radius: var(--r-sm);
}
.skip-link:focus-visible { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   4. Utilitários
------------------------------------------------------------ */
.brand-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.brand-mask--wordmark {
  -webkit-mask-image: url('../assets/brand/wordmark-horizontal.svg');
  mask-image: url('../assets/brand/wordmark-horizontal.svg');
  aspect-ratio: 1493.2 / 102.44;
}
.brand-mask--symbol {
  -webkit-mask-image: url('../assets/brand/simbolo.svg');
  mask-image: url('../assets/brand/simbolo.svg');
  aspect-ratio: 520.31 / 260.14;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Placeholder de imagem a produzir */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--neon);
  color: var(--soberania);
  text-align: center;
  padding: 1rem;
}
.ph__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------
   5. Botões e links
------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.button:active { transform: scale(0.98); }

.button--primary { background: var(--humanidade); color: var(--clareza); }
.button--primary:hover { background: #6F3717; transform: translateY(-2px); }

.button--light { background: var(--clareza); color: var(--soberania); }
.button--light:hover { background: var(--serenidade); transform: translateY(-2px); }

.button--header {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  background: var(--humanidade);
  color: var(--clareza);
}
.button--header:hover { background: #6F3717; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--humanidade);
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ------------------------------------------------------------
   6. Loader
------------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: var(--soberania);
}
html.js .loader { display: block; }
@media (prefers-reduced-motion: reduce) { .loader { display: none !important; } }

.loader__band {
  position: absolute;
  inset: 0;
  display: block;
}
.loader__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Cortinas que abrem do centro: a faixa de luz vira a foto */
.loader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.2%;
  background: var(--soberania);
}
.loader__curtain--top { top: 0; transform-origin: top center; }
.loader__curtain--bottom { bottom: 0; transform-origin: bottom center; }

.loader__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 1100px);
  height: 1px;
  background: linear-gradient(to right, rgba(192, 176, 163, 0) 0%, var(--serenidade) 50%, rgba(192, 176, 163, 0) 100%);
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0;
}

.loader__symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(90px, 11vw, 140px);
  color: var(--serenidade);
  opacity: 0;
}

/* ------------------------------------------------------------
   7. Header
------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--clareza);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header--solid {
  background: rgba(31, 17, 12, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(192, 176, 163, 0.14);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__wordmark { display: inline-flex; }
.header__wordmark .brand-mask--wordmark { width: clamp(150px, 13vw, 190px); }

.header__symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  transition: opacity 0.3s var(--ease);
}
.header__symbol:hover { opacity: 0.7; }
.header__symbol .brand-mask--symbol { width: 46px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--clareza);
}
.burger__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 18px;
}
.burger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.burger:hover .burger__line:nth-child(2) { width: 70%; }

/* ------------------------------------------------------------
   8. Drawer (menu lateral)
------------------------------------------------------------ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear 0.6s;
}
.drawer--open { visibility: visible; transition-delay: 0s; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 14, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.drawer--open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3rem);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--soberania);
  color: var(--clareza);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
.drawer--open .drawer__panel { transform: none; }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
}

.drawer__symbol {
  width: 54px;
  color: var(--serenidade);
}

.drawer__close {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.drawer__close span {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 1.5px;
  background: var(--clareza);
  transition: background-color 0.3s var(--ease);
}
.drawer__close span:first-child { transform: rotate(45deg); }
.drawer__close span:last-child { transform: rotate(-45deg); }
.drawer__close:hover span { background: var(--serenidade); }

.drawer__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 1.95rem);
  font-weight: 300;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    color 0.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.drawer--open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--serenidade); }
.drawer__link span { position: relative; }
.drawer__link span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.drawer__link:hover span::after { transform: scaleX(1); transform-origin: left; }

.drawer__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.drawer__cta { align-self: stretch; }

.drawer__address {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--serenidade);
}

.drawer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}
.drawer__social a { transition: color 0.3s var(--ease); }
.drawer__social a:hover { color: var(--clareza); }

/* ------------------------------------------------------------
   9. Hero
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clareza);
}

.hero__media {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform;
}
/* A própria foto já reserva a esquerda para o texto: sem véu sobre a imagem. */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--header-h);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.14;
  margin-bottom: 1.5rem;
}

.hero__sub {
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------------------
   10. Manifesto
------------------------------------------------------------ */
.manifesto {
  background: var(--humanidade);
  color: var(--clareza);
  padding-block: clamp(6rem, 16vh, 10rem);
}

.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: -0.005em;
  max-width: 26ch;
}

.manifesto__word {
  display: inline-block;
  opacity: 0.22;
  filter: blur(5px);
  will-change: filter, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .manifesto__word { opacity: 1; filter: none; }
}

/* ------------------------------------------------------------
   11. Procedimentos
------------------------------------------------------------ */
.procedures {
  background: var(--clareza);
  padding-block: var(--section);
}

/* Mote: tipografia grande com fotos flutuando por cima */
.mote {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
}

.mote__inner { position: relative; }

/* Camadas: o tipo grande fica atrás das fotos, o texto de leitura fica à frente */
.mote__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 10vw, 8.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #9A8578;
}

.mote__lede {
  position: relative;
  z-index: 3;
  max-width: 38ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--texto-suave);
}

.mote__float {
  position: absolute;
  z-index: 2;
  width: clamp(120px, 14vw, 220px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--serenidade);
  will-change: transform;
}
.mote__float img,
.mote__float .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mote__float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31, 17, 12, 0.06);
}

/* As fotos cruzam o fim das linhas: nenhuma inicial do mote fica encoberta */
/* As fotos ocupam apenas a coluna livre à direita do tipo e a faixa abaixo dele */
.mote__float--a { top: 56%; right: 12%; }
.mote__float--b { top: 7%; right: 2%; }
.mote__float--c { top: 66%; left: 52%; width: clamp(100px, 11vw, 170px); }

.family + .family { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.family__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--linha);
}

.family__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.family__text {
  max-width: 48ch;
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--areia);
  transition: background-color 0.4s var(--ease);
}
.card:hover { background: #F0EAE6; }

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--serenidade);
}
.card__media img,
.card__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__media img,
.card:hover .card__media .ph { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem 2.9rem;
}

.card__title {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--texto-suave);
}

.card__arrow {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--humanidade);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card__arrow,
.card:focus-visible .card__arrow { opacity: 1; transform: none; }

/* Em telas sem hover (touch) a seta nunca apareceria: mostra sempre. */
@media (hover: none) {
  .card__arrow { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   12. O método
------------------------------------------------------------ */
.method {
  background: var(--areia);
}

/* Divisão exata: metade foto (altura cheia da seção), metade conteúdo */
.method__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.method__figure {
  position: relative;
  overflow: hidden;
  min-height: clamp(30rem, 46vw, 46rem);
}
.method__figure img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 22% 50%;
  will-change: transform;
}

.method__body {
  align-self: center;
  padding-block: var(--section);
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.method__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.26;
  max-width: 18ch;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.method__step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--linha);
}

.method__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 0.85rem;
  color: var(--humanidade);
}
.method__icon svg { width: 100%; height: 100%; }

.method__step-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.method__step-text {
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

/* ------------------------------------------------------------
   13. O médico
------------------------------------------------------------ */
.doctor {
  background: var(--clareza);
  padding-block: var(--section);
}

.doctor__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.doctor__media { position: relative; }

.doctor__figure {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 3 / 4;
  background: var(--areia);
}
.doctor__figure img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* Símbolo cruzando a moldura como elemento de composição */
.doctor__symbol {
  position: absolute;
  left: -13%;
  top: 30%;
  width: 50%;
  color: var(--serenidade);
  pointer-events: none;
}

.doctor__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.26;
  max-width: 16ch;
  margin-bottom: 1.35rem;
}

.doctor__text {
  max-width: 56ch;
  color: var(--texto-suave);
}
.doctor__text + .doctor__text { margin-top: 0.9rem; }

.doctor__credentials { margin: 1.75rem 0; }

.doctor__credential {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
  font-size: 0.9375rem;
}
.doctor__credential-link {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: opacity 0.3s var(--ease);
}
.doctor__credential-link:hover { opacity: 0.65; }
.doctor__credential-sep { opacity: 0.4; padding-inline: 0.15em; }

.doctor__credential::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 1px;
  background: var(--humanidade);
}

/* ------------------------------------------------------------
   14. Prova social
------------------------------------------------------------ */
.proof {
  background: var(--soberania);
  color: var(--clareza);
  padding-block: var(--section);
}

.proof__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.proof__title {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.32;
  max-width: 18ch;
  margin-bottom: 2rem;
}

.proof__rating {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.proof__score {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
}

.proof__stars { width: 110px; color: var(--serenidade); }
.proof__stars svg { display: block; width: 100%; fill: currentColor; }

.proof__count {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Carrossel de depoimentos */
.testimonials { position: relative; }

.testimonials__track {
  position: relative;
  display: grid;
}
.testimonial {
  grid-area: 1 / 1;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r-md);
  background: var(--clareza);
  color: var(--soberania); /* o card permanece claro: não herda a cor da seção */
  box-shadow: 0 30px 60px -45px rgba(31, 17, 12, 0.55);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.testimonial.is-active { opacity: 1; transform: none; pointer-events: auto; }

.testimonial__text {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 46ch;
}

.testimonial__name {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--texto-suave);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonials__dot {
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.4s var(--ease);
}
.testimonials__dot[aria-current="true"] { background: var(--clareza); }

/* ------------------------------------------------------------
   15. Antes e depois
------------------------------------------------------------ */
.cases {
  background: var(--clareza);
  padding-block: var(--section);
}

.cases__head {
  max-width: 56ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.cases__title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.24;
  margin-bottom: 0.9rem;
}

.cases__lede {
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.cases__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cases__viewport::-webkit-scrollbar { display: none; }

.cases__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.cases__item { scroll-snap-align: start; }

.cases__media {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 3 / 2;
  background: var(--areia);
  margin-bottom: 1.1rem;
}
.cases__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases__name {
  font-size: 1.125rem;
  margin-bottom: 0.3rem;
}

.cases__note {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--texto-suave);
  max-width: 40ch;
}

.cases__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cases__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--soberania);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cases__arrow:hover {
  background: var(--soberania);
  border-color: var(--soberania);
  color: var(--clareza);
}
.cases__arrow[disabled] { opacity: 0.35; pointer-events: none; }
.cases__controls[hidden] { display: none; }

/* ------------------------------------------------------------
   16. Artigos
------------------------------------------------------------ */
.journal {
  background: var(--areia);
  padding-block: var(--section);
}

.journal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.journal__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.26;
  max-width: 20ch;
}

.journal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post__media {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 3 / 2;
  background: var(--serenidade);
  margin-bottom: 1.1rem;
}
.post__media img,
.post__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* as capas são paisagens ~4/3 em uma moldura 3/2: corte central */
  object-position: 50% 50%;
  transition: transform 0.8s var(--ease);
}
.post:hover .post__media img,
.post:hover .post__media .ph { transform: scale(1.05); }

.post__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-bottom: 0.5rem;
}
.post__dot { color: var(--serenidade); }

.post__title {
  font-size: 1.125rem;
  line-height: 1.42;
  max-width: 26ch;
  margin-bottom: 1rem;
  transition: color 0.3s var(--ease);
}
.post:hover .post__title { color: var(--humanidade); }

.post__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--humanidade);
}
.post__cta span { transition: transform 0.3s var(--ease); }
.post:hover .post__cta span { transform: translateX(6px); }

/* ------------------------------------------------------------
   17. Consultório + CTA
------------------------------------------------------------ */
.visit {
  background: var(--distincao);
  color: var(--clareza);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.visit__body {
  align-self: center;
  padding-block: var(--section);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.visit__title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.24;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.visit__text {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.visit__address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--serenidade);
  margin-bottom: 2rem;
}

.visit__figure {
  position: relative;
  overflow: hidden;
  min-height: clamp(30rem, 46vw, 46rem);
}
.visit__figure img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* ------------------------------------------------------------
   18. FAQ
------------------------------------------------------------ */
.faq {
  background: var(--soberania);
  color: var(--clareza);
  padding-block: var(--section);
}

.faq__inner { max-width: 900px; }

.faq__title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faq__item { border-top: 1px solid rgba(192, 176, 163, 0.18); }
.faq__item:last-child { border-bottom: 1px solid rgba(192, 176, 163, 0.18); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding-block: 1.35rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq__question:hover { color: var(--serenidade); }

.faq__marker {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq__marker::before,
.faq__marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--serenidade);
  transition: transform 0.4s var(--ease);
}
.faq__marker::after { transform: rotate(90deg); }
.faq__item--open .faq__marker::after { transform: rotate(0deg); }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq__item--open .faq__body { grid-template-rows: 1fr; }

.faq__answer { overflow: hidden; }
.faq__answer p {
  max-width: 64ch;
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--serenidade);
}

@media (prefers-reduced-motion: reduce) {
  .faq__body { transition: none; }
}

/* ------------------------------------------------------------
   19. Footer
------------------------------------------------------------ */
.footer {
  position: relative;
  background: var(--profundo);
  color: var(--clareza);
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/brand/pattern.svg') center / cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.footer__mark {
  position: relative;
  width: 100%;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.footer__mark .brand-mask--wordmark {
  width: min(100%, 320px);
  color: var(--serenidade);
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr 1.3fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; }

.footer__symbol {
  width: 60px;
  color: var(--serenidade);
  margin-bottom: 1.1rem;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--serenidade);
}

.footer__heading {
  font-family: var(--font-wide);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--serenidade);
  margin-bottom: 1rem;
}

.footer__link {
  padding-block: 0.26rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s var(--ease);
}
.footer__link:hover { color: var(--clareza); }

.footer__address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(192, 176, 163, 0.14);
}

.footer__legal {
  font-size: 0.8125rem;
  color: rgba(192, 176, 163, 0.75);
}
.footer__legal--link:hover { color: var(--clareza); }

.footer__end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  color: rgba(192, 176, 163, 0.6);
  transition: color 0.3s var(--ease);
}
.footer__credit:hover { color: var(--clareza); }

.footer__elleven {
  -webkit-mask-image: url('../assets/elleven-header.svg');
  mask-image: url('../assets/elleven-header.svg');
  width: 48px;
  aspect-ratio: 119.61 / 28;
}

/* ------------------------------------------------------------
   20. WhatsApp flutuante
------------------------------------------------------------ */
.whats {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--humanidade);
  color: var(--clareza);
  box-shadow: 0 10px 30px rgba(31, 17, 12, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.whats--visible { opacity: 1; transform: none; pointer-events: auto; }
.whats:hover { background: #6F3717; }
.whats svg { position: relative; z-index: 1; width: 26px; height: 26px; }

/* Ondas atrás do botão: sinalizam que a conversa está aberta */
.whats::before,
.whats::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--humanidade);
  opacity: 0;
  pointer-events: none;
}
.whats--visible::before,
.whats--visible::after {
  animation: whats-pulse 2.8s var(--ease) infinite;
}
.whats--visible::after { animation-delay: 1.4s; }

@keyframes whats-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whats--visible::before,
  .whats--visible::after { animation: none; }
}

/* ------------------------------------------------------------
   21. Responsivo
------------------------------------------------------------ */
@media (max-width: 1100px) {
  .header__symbol { display: none; }

  .mote__float--a { top: 58%; right: 6%; }
  .mote__float--c { top: 68%; left: 48%; }

  .method__grid { grid-template-columns: 1fr; }
  .method__figure { min-height: 0; aspect-ratio: 16 / 10; }
  .method__body { padding-inline: var(--gutter); }

  .doctor__grid { grid-template-columns: 1fr; }
  .doctor__media { max-width: 420px; }

  .proof__inner { grid-template-columns: 1fr; }

  .visit__grid { grid-template-columns: 1fr; }
  .visit__figure { min-height: 0; aspect-ratio: 16 / 10; }
  .visit__body { padding-inline: var(--gutter); }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header__actions .button--header { display: none; }
  .burger__label { display: none; }

  .cases__track { grid-auto-columns: 62%; }
  .journal__grid { grid-template-columns: 1fr; }
  .journal__grid .post__title { max-width: 34ch; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  .header__wordmark .brand-mask--wordmark { width: 200px; }

  /* As fotos deixam de flutuar e viram uma tira sob o mote */
  .mote {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    align-items: start;
    padding-inline: var(--gutter);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }
  .mote__inner {
    grid-column: 1 / -1;
    padding-inline: 0;
    margin-bottom: 1.75rem;
  }
  .mote__title { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .mote__float,
  .mote__float--a,
  .mote__float--b,
  .mote__float--c {
    position: static;
    width: auto;
    aspect-ratio: 3 / 4;
  }
  .mote__float--b { margin-top: 1.25rem; }
  .mote__float--c { margin-top: 2.5rem; }

  .hero { align-items: flex-end; }
  .hero__media img { object-position: 93% 50%; }
  .hero__content {
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 8vh, 4rem);
  }
  .hero__title { font-size: clamp(1.9rem, 9.2vw, 2.75rem); }
  .hero__sub { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero__actions .button { width: 100%; }

  .manifesto__text { max-width: none; }

  .cards { grid-template-columns: 1fr; }

  .method__steps { grid-template-columns: 1fr; }

  .proof__title { max-width: none; }

  .cases__track { grid-auto-columns: 88%; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__mark .brand-mask--wordmark { width: min(100%, 230px); }
}

/* ------------------------------------------------------------
   21. Páginas internas
   .page-hero · .crumbs · .chapter · .marks · .steps · .related
   .prose · .cv · .legal
------------------------------------------------------------ */
.page-interna .header { background: var(--soberania); }

/* Abertura ------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--areia);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.page-hero--wide .page-hero__grid { grid-template-columns: 1fr 0.8fr; }

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--humanidade);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--soberania);
  max-width: 16ch;
}

.page-hero__lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--texto-suave);
}
.page-hero__lede sub { font-size: 0.7em; }

.page-hero__actions { margin-top: 2rem; }

/* A capa do artigo é entregue em 393px de largura: a moldura não passa
   disso para não ampliar o arquivo. */
.page-artigo .page-hero__figure {
  max-width: 520px;
  margin-inline-start: auto;
  /* capas do blog são paisagem: moldura 3/2 evita corte agressivo */
  aspect-ratio: 3 / 2;
}

.page-hero__figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 5;
}
.page-hero__figure img,
.page-hero__figure .ph {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* Migalhas -------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--humanidade); }
.crumbs span[aria-hidden] { opacity: 0.4; }
.crumbs [aria-current] { color: var(--soberania); }

/* Capítulos ------------------------------------------------- */
.chapter { padding-block: var(--section); }
.chapter--areia { background: var(--areia); }
.chapter--dark { background: var(--soberania); color: var(--clareza); }

.chapter__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.chapter__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  max-width: 18ch;
}
.chapter--dark .chapter__title { color: var(--clareza); }
.chapter__title--wide {
  max-width: 24ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.chapter__text {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.75;
  max-width: 62ch;
}
.chapter__text + .chapter__text { margin-top: 1.25rem; }
.chapter--dark .chapter__text { color: rgba(255, 255, 255, 0.82); }

.chapter__note {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--linha);
  font-size: 0.875rem;
  color: var(--texto-suave);
  max-width: 56ch;
}
.chapter--dark .chapter__note {
  border-left-color: rgba(192, 176, 163, 0.3);
  color: var(--serenidade);
}

.chapter__actions { margin-top: 2rem; }

/* Lista de indicações --------------------------------------- */
.marks { list-style: none; display: grid; gap: 0.9rem; }
.marks__item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}
.marks__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--humanidade);
}

/* Etapas ---------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.steps__item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--linha);
}
.steps__title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.steps__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--texto-suave);
  max-width: 46ch;
}

/* Relacionados ---------------------------------------------- */
.related { background: var(--areia); padding-block: var(--section); }
.related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.related__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.related .card { background: var(--clareza); }
.related .card:hover { background: #F0EAE6; }

.link-arrow--light { color: var(--serenidade); }
.link-arrow--light:hover { color: var(--clareza); }

/* Texto corrido (artigos e páginas legais) ------------------- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.5rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.6rem; }
/* o reset do topo tira o marcador de toda ul; no texto corrido (artigos e
   política de privacidade) a lista mostra o marcador, como nos documentos */
.prose ul { list-style: disc; }
.prose li { line-height: 1.7; }
.prose strong { font-weight: 500; }
.prose a {
  color: var(--humanidade);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.prose__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem;
  background: var(--areia);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--texto-suave);
}
/* Vídeo do YouTube no texto: o link sozinho num parágrafo vira o player
   (rl_corpo em functions.php). */
.prose__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--areia);
}
.prose__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Currículo ------------------------------------------------- */
.cv { padding-block: var(--section); }
.cv__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.cv__group + .cv__group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cv__label {
  font-family: var(--font-wide);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--humanidade);
  margin-bottom: 1.25rem;
}
.cv__list { list-style: none; display: grid; gap: 1.1rem; }
.cv__item {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--linha);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}
.cv__item:last-child { border-bottom: 0; padding-bottom: 0; }
.cv__item strong { font-weight: 500; }
.cv__item span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* Card de perfil (LinkedIn) --------------------------------- */
.cv__profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--linha);
  border-radius: var(--r-md);
  background: var(--clareza);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.cv__profile:hover,
.cv__profile:focus-visible {
  border-color: rgba(31, 17, 12, 0.28);
  background: #FBF9F8;
  transform: translateY(-2px);
}
.cv__profile-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
}
.cv__profile-body { display: block; min-width: 0; }
.cv__profile-name {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}
.cv__profile-role {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.cv__profile-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--humanidade);
}
.cv__profile-cta span { transition: transform 0.4s var(--ease); }
.cv__profile:hover .cv__profile-cta span { transform: translateX(4px); }
.cv__profile-brand {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: auto;
  align-self: flex-start;
  fill: var(--humanidade);
  transition: fill 0.4s var(--ease);
}
.cv__profile:hover .cv__profile-brand { fill: var(--soberania); }

/* Artigos: filtro por categoria ------------------------------ */
.filtros { margin-bottom: clamp(2rem, 4vw, 3rem); }
.filtros__label {
  font-family: var(--font-wide);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--humanidade);
  margin-bottom: 1rem;
}
.filtros__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filtros__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soberania);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.filtros__item:hover,
.filtros__item:focus-visible { border-color: rgba(31, 17, 12, 0.32); }
.filtros__item.is-ativo {
  background: var(--soberania);
  border-color: var(--soberania);
  color: var(--clareza);
}
.filtros__contagem {
  font-size: 0.75rem;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.filtros__item.is-ativo .filtros__contagem { color: rgba(255, 255, 255, 0.65); }
.filtros__status {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  min-height: 1.2em;
}
.journal__vazio {
  padding-block: clamp(2rem, 6vw, 3.5rem);
  font-size: 1rem;
  color: var(--texto-suave);
}
.journal__vazio a { color: var(--soberania); }

@media (max-width: 767px) {
  /* a fila de filtros rola na horizontal em vez de quebrar em várias linhas */
  .filtros__lista {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .filtros__lista::-webkit-scrollbar { display: none; }
  .filtros__item { scroll-snap-align: start; }
}

/* Artigos: paginação (mesma pílula dos filtros) ----------------- */
.paginacao {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.paginacao__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--soberania);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
a.paginacao__item:hover,
a.paginacao__item:focus-visible { border-color: rgba(31, 17, 12, 0.32); }
.paginacao__item.is-ativo {
  background: var(--soberania);
  border-color: var(--soberania);
  color: var(--clareza);
}
.paginacao__reticencias { padding-inline: 0.125rem; color: var(--texto-suave); }

@media (max-width: 767px) {
  .paginacao { gap: 0.375rem; }
  .paginacao__item { min-width: 2.25rem; height: 2.25rem; padding-inline: 0.6rem; }
}

/* Artigos: cabeçalho e listagem ------------------------------ */
.article__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-top: 1.5rem;
}
.article__body { padding-block: var(--section); }

.journal--page { background: transparent; padding-block: var(--section); }

/* ------------------------------------------------------------
   22. Páginas internas · responsivo
------------------------------------------------------------ */
@media (max-width: 1100px) {
  .chapter__grid,
  .cv__grid { grid-template-columns: 1fr; }
  .chapter__title { max-width: none; }
}

@media (max-width: 900px) {
  .page-hero__grid,
  .page-hero--wide .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__figure {
    order: -1;
    aspect-ratio: 3 / 2;
    max-height: 46vh;
  }
  .page-hero__title { max-width: none; }
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; }
}

/* Abertura sem imagem (artigos e listagens) ------------------ */
.page-hero--texto { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero--texto .page-hero__lede { margin-top: 1.25rem; }
.page-hero__title--texto { max-width: 24ch; }

/* Superfícies claras das páginas internas -------------------- */
.chapter,
.article__body,
.journal--page { background: var(--clareza); }
.chapter--areia { background: var(--areia); }
.chapter--dark { background: var(--soberania); }
.page-interna .procedures { background: var(--clareza); }

/* ------------------------------------------------------------
   23. Páginas internas · abertura em divisão exata
   Mesmo tratamento do método na home, com a foto à direita:
   metade da largura, altura cheia da seção, sangrando na borda.
------------------------------------------------------------ */
.page-hero--split {
  padding: var(--header-h) 0 0;
}
.page-hero--split .page-hero__grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  max-width: none;
  padding-inline: 0;
}
.page-hero--split .page-hero__body {
  align-self: center;
  padding-block: var(--section);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: clamp(1.25rem, 4vw, 4rem);
}
.page-hero--split .page-hero__figure {
  border-radius: 0;
  aspect-ratio: auto;
  max-width: none;
  margin-inline-start: 0;
  min-height: clamp(30rem, 46vw, 46rem);
}
.page-hero--split .page-hero__figure img,
.page-hero--split .page-hero__figure .ph {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   24. Sinais de indicação em cards
------------------------------------------------------------ */
.signs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.signs--quatro { grid-template-columns: repeat(4, 1fr); }
.signs__item {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--clareza);
  border-radius: var(--r-md);
}
.signs__num {
  font-family: var(--font-wide);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--humanidade);
}
.signs__text {
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   25. Ícones genéricos (partials/icones.php)
------------------------------------------------------------ */
.icone {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--humanidade);
}
.icone svg { display: block; width: 100%; height: 100%; }

/* Etapas: só o ícone abre o item ------------------------------ */
.steps__icon { margin-bottom: 1.35rem; }

/* ------------------------------------------------------------
   26. FAQ em superfície clara
   Usada nas páginas de procedimento, para não colar na seção
   escura de recuperação.
------------------------------------------------------------ */
.faq--claro {
  background: var(--clareza);
  color: var(--soberania);
}
.faq--claro .faq__item { border-top-color: var(--linha); }
.faq--claro .faq__item:last-child { border-bottom-color: var(--linha); }
.faq--claro .faq__question:hover { color: var(--humanidade); }
.faq--claro .faq__marker::before,
.faq--claro .faq__marker::after { background: var(--humanidade); }
.faq--claro .faq__answer p { color: var(--texto-suave); }

/* ------------------------------------------------------------
   27. Ajustes finos
------------------------------------------------------------ */
/* O CTA da seção do médico não encosta no parágrafo quando não há
   lista de credenciais entre os dois (página /sobre). */
.doctor__text + .button { margin-top: 2rem; }

/* ------------------------------------------------------------
   28. Páginas internas · responsivo (continuação)
------------------------------------------------------------ */
@media (max-width: 1100px) {
  .page-hero--split .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero--split .page-hero__body { padding-inline: var(--gutter); }
  .page-hero--split .page-hero__figure {
    order: -1;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1100px) {
  .signs--quatro { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .signs { grid-template-columns: repeat(2, 1fr); }
  .page-hero--split .page-hero__figure { aspect-ratio: 16 / 10; max-height: none; }
}

@media (max-width: 640px) {
  .signs,
  .signs--quatro { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   29. Página do método
------------------------------------------------------------ */
/* As quatro etapas do método ocupam a linha inteira. */
.steps--metodo { grid-template-columns: repeat(4, 1fr); }
.steps__note {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--linha);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--texto-suave);
}

/* Cards de apoio: mesma caixa dos sinais, em superfície areia. */
.signs__item--areia { background: var(--areia); }
.signs__icon { margin-bottom: 0.35rem; }
.signs__titulo {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.signs__item--areia .signs__text {
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.chapter--dark .chapter__text strong { color: var(--clareza); font-weight: 500; }

@media (max-width: 1100px) {
  .steps--metodo { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps--metodo { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   30. Landing page comercial (subdomínio, fora do sitemap)
   Reaproveita page-hero--split, method, doctor, cards, signs e
   faq. Só os modificadores escuros e as faixas de conversão são
   novos.
------------------------------------------------------------ */
.page-lp { background: var(--areia); }


/* Abertura escura --------------------------------------------- */
.page-hero--escuro {
  background: var(--soberania);
  color: var(--clareza);
}
.page-hero--escuro .page-hero__eyebrow { color: var(--serenidade); }
.page-hero--escuro .page-hero__title { color: var(--clareza); }
.page-hero--escuro .page-hero__lede { color: var(--serenidade); }

.page-hero__nota {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--serenidade);
}

/* Abertura: foto espelhada, para o olhar apontar na direção do texto. */
.page-hero__figure--espelhada { transform: scaleX(-1); }

/* Pilares, na continuidade da abertura ------------------------ */
.pilares {
  background: var(--soberania);
  color: var(--clareza);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.pilar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pilar__icone { color: var(--serenidade); }
.pilar__titulo {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.pilar__texto {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--serenidade);
}

/* Faixa genérica de seção ------------------------------------- */
.faixa { padding-block: var(--section); }
.faixa--clara { background: var(--clareza); }
.faixa--areia { background: var(--areia); }
.faixa--escura { background: var(--soberania); color: var(--clareza); }

.faixa__head {
  max-width: 46ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.faixa__titulo {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.26;
}
.faixa__lede {
  margin-top: 1rem;
  color: var(--texto-suave);
}
.faixa--escura .faixa__lede { color: var(--serenidade); }

/* Cartelas de procedimento com CTA próprio -------------------- */
.oferta .card__body { padding-bottom: 1.25rem; }
.oferta__cta {
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
}
.oferta__cta .button { width: 100%; }

/* O método, em superfície escura ------------------------------ */
.method--escuro { background: var(--soberania); color: var(--clareza); }
.method--escuro .method__figure img { object-position: 50% 26%; }
.method--escuro .method__step { border-top-color: rgba(255, 255, 255, 0.16); }
.method--escuro .method__icon { color: var(--serenidade); }
.method--escuro .method__step-text { color: var(--serenidade); }

/* Sinais em superfície escura --------------------------------- */
.signs--escuro .signs__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.signs--escuro .signs__icon { color: var(--serenidade); }
.signs--escuro .signs__titulo { color: var(--clareza); }
.signs--escuro .signs__text { color: var(--serenidade); }

/* Passo a passo ----------------------------------------------- */
.passos .signs__num { font-size: 0.75rem; }

/* Responsivo --------------------------------------------------- */
/* O rodapé mínimo tem três colunas em vez de cinco. Abaixo de 1100px
   valem as quebras do rodapé padrão. */
@media (min-width: 1101px) {
  .footer--minimo .footer__grid { grid-template-columns: 2fr 1.5fr 0.9fr; }
}

/* Sem menu lateral, o CTA do cabeçalho precisa aparecer no mobile. */
@media (max-width: 900px) {
  .page-lp .header__actions .button--header { display: inline-flex; }
}

@media (max-width: 520px) {
  .page-lp .header__wordmark { width: 150px; }
  .page-lp .header__actions .button--header { padding: 0.5rem 0.85rem; font-size: 0.75rem; }
}

@media (max-width: 1100px) {
  .pilares__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pilares__grid { grid-template-columns: 1fr; }
}
