/* ==========================================================================
   Dra. Gabrielle Mendonça · Home
   Identidade derivada das três versões da logo (branca, cinza e rosa antigo).
   Sumário:
   1. Tokens          6. Serviços         11. FAQ
   2. Base            7. Apresentação     12. Contato
   3. Utilitários     8. Método GM        13. Rodapé
   4. Componentes     9. Tecnologias      14. Animações
   5. Cabeçalho/Hero 10. Prova social, Clínica, Localização
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Paleta de referência (extraída das logos) */
  --taupe: #7C7770;          /* títulos grandes, elementos institucionais */
  --rose-soft: #C1A8A8;      /* detalhes, linhas */
  --rose-light: #DDBFBF;     /* superfícies e destaques */
  --graphite: #666362;       /* áreas de contraste */
  --rose-deep: #897574;      /* interação */
  --white: #FFFFFF;

  /* Derivados (ajustados para contraste AA) */
  --paper: #FBF8F6;          /* fundo base, branco quente */
  --blush: #F4ECEA;          /* superfície secundária */
  --blush-2: #EFE3E1;
  --ink: #4A4643;            /* texto corrido (≈ 8.9:1 sobre --paper) */
  --ink-soft: #5F5A57;       /* texto secundário (≈ 6.5:1) */
  --btn: #6E6963;            /* fundo dos botões (≈ 5.4:1 com branco) */
  --rose-ink: #7A6766;       /* rosa fechado legível (≈ 5.3:1 com branco) */
  --night: #3F3B39;          /* rodapé */
  --line: rgba(124, 119, 112, .22);
  --line-strong: rgba(124, 119, 112, .45);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

/* 2. BASE ================================================================== */
*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; color: var(--taupe); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

::selection { background: var(--rose-light); color: var(--night); }

/* 3. UTILITÁRIOS =========================================================== */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--night); color: var(--white);
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  margin-bottom: 1.4rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--rose-ink);
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow--light { color: var(--rose-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 4.4rem);
  letter-spacing: -.01em;
  line-height: 1.04;
}

.section-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 300;
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .section-title { max-width: 16ch; }
.section-head .section-lead { margin-top: 1.5rem; }

/* Cabeçalho de seção em duas colunas (título à esquerda, apoio à direita) */
@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: 1fr minmax(0, 26rem);
    column-gap: 4rem;
    align-items: end;
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .section-head--split .section-lead { margin-top: 0; padding-bottom: .5rem; }
}

/* 4. COMPONENTES =========================================================== */

/* Botões: preenchimento deslizante + seta que avança */
.btn {
  --bg: var(--btn); --fg: var(--white); --fill: var(--rose-ink); --bd: var(--btn);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 3.4rem;
  padding: .95rem 1.75rem;
  border: 1px solid var(--bd);
  border-radius: 2px;
  background: var(--bg); color: var(--fg);
  font: 500 .8rem/1.2 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn__icon {
  width: 1.1rem; height: 1.1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--outline { --bg: transparent; --fg: var(--ink); --fill: var(--btn); --bd: var(--line-strong); }
.btn--outline:hover, .btn--outline:focus-visible { --fg: var(--white); --bd: var(--btn); }

.btn--light { --bg: var(--white); --fg: var(--night); --fill: var(--rose-light); --bd: var(--white); }
.btn--light:hover, .btn--light:focus-visible { --bd: var(--rose-light); }

.btn--sm { min-height: 2.75rem; padding: .7rem 1.25rem; font-size: .72rem; }
.btn--block { width: 100%; }

/* Link com seta e sublinhado animado */
.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 0;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--rose-ink);
}
.link-arrow::after {
  content: "";
  width: 1.6rem; height: 1px; background: currentColor;
  transition: width .5s var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { width: 3rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { background: var(--btn); border-color: var(--btn); color: var(--white); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* PLACEHOLDERS DE IMAGEM
   Enquanto não houver <img> dentro do <figure class="media">, exibe a etiqueta do data-placeholder.
   Ao inserir a foto real, a etiqueta e o padrão somem automaticamente. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--blush);
}
.media > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media:not(:has(img, picture, video)) {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(193, 168, 168, .14) 22px 23px),
    linear-gradient(160deg, var(--blush) 0%, var(--blush-2) 100%);
}
.media:not(:has(img, picture, video))::after {
  content: attr(data-placeholder);
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .45rem .7rem;
  background: rgba(255, 255, 255, .78);
  font: 600 .64rem/1.3 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose-ink);
}

/* 5. CABEÇALHO ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 246, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

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

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
/* O PNG tem fundo branco opaco: multiply faz o branco assumir a cor do fundo sem alterar a arte.
   O fundo do link dá ao multiply uma base dentro da camada do cabeçalho fixo. */
.site-header .brand { background: var(--paper); isolation: isolate; }
.brand__logo { height: 56px !important; mix-blend-mode: multiply; transition: height .5s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 48px !important; }
@media (max-width: 960px) {
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 46px !important; }
}

/* Logo no rodapé escuro: inverte a luminosidade mantendo os tons (hue-rotate)
   e "screen" faz o fundo, que vira preto, desaparecer sobre o fundo do rodapé */
.brand__logo-footer {
  height: 68px !important; width: auto;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a:not(.btn) {
  position: relative;
  font-size: .92rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--ink);
  padding-block: .4rem;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--rose-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after,
.main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav__cta-mobile { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 3rem; height: 3rem;
  margin-right: -.6rem;
  border: 0; background: transparent; cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  position: absolute; left: .8rem; right: .8rem;
  height: 1px; background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle__bars { top: 1.3rem; }
.menu-toggle__bars::before { content: ""; left: 0; right: 0; top: .45rem; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { top: 1.5rem; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
  .main-nav ul { gap: 1.4rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0;
    padding: 2.5rem var(--gutter) 3rem;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transform: translateY(-12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
  }
  .main-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) {
    display: block; padding: 1.1rem 0;
    font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0; color: var(--taupe);
  }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav__cta-mobile { display: block; border: 0 !important; padding-top: 2rem; }
  .main-nav__cta-mobile .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
}

/* HERO ===================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Desktop: texto à esquerda, foto em arco à direita (mesmo formato da seção da médica) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }

.hero-signature {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--rose-ink);
}
.hero-signature__line { width: 3rem; height: 1px; background: currentColor; opacity: .6; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.15rem + 3.1vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: none;   /* desktop: linhas definidas pelos <br class="br-desktop"> do H1 */
  overflow-wrap: break-word;
}

.hero-subtitle {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.3;
  color: var(--taupe);
}
.hero-subtitle em { color: var(--rose-ink); }

.hero-text {
  max-width: 33rem;
  margin-top: 1.25rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-actions .btn { padding-inline: 1.4rem; }
/* seta para baixo no botão que leva à seção de tratamentos */
.hero-actions .btn--outline:hover .btn__icon { transform: translateY(3px); }

/* Foto ampla e editorial, sem moldura: ocupa a coluna direita até a borda da tela.
   O fundo de estúdio da foto é estendido (tons amostrados da própria foto) para a esquerda
   e para cima, até o topo da página, atrás do cabeçalho, e se dissolve no fundo claro.
   A foto em si começa abaixo do cabeçalho: menu e botão nunca ficam sobre a médica.
   Altura: do topo do conteúdo até a base da primeira tela. */
.hero-visual {
  position: relative;
  justify-self: stretch;
  --hero-h: min(calc(100vh - var(--header-h) - 1.5rem), 58rem);
  --hero-up: calc(var(--header-h) + 1.5rem);   /* quanto o fundo sobe, atrás do cabeçalho */
  height: var(--hero-h);
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2));
  margin-bottom: calc(-1 * clamp(3rem, 6vw, 5rem));
}
.media--hero {
  position: absolute; inset: calc(-1 * var(--hero-up)) 0 0 0;
  z-index: 1;
  /* extensão do fundo de estúdio (tons da borda esquerda da foto, de cima para baixo) */
  background: linear-gradient(to bottom, #988C8C 0%, #9A8E8E 18%, #A39797 32%, #ADA2A0 46%, #AD9F9F 60%, #BBACAF 75%, #CBBCBF 89%, #D1C3C3 100%);
  /* máscara única: esquerda, topo e base se dissolvem no fundo claro */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.2) 10%, rgba(0,0,0,.65) 24%, #000 38%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 6%, #000 15%, #000 88%, rgba(0,0,0,.6) 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.2) 10%, rgba(0,0,0,.65) 24%, #000 38%),
    linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 6%, #000 15%, #000 88%, rgba(0,0,0,.6) 95%, transparent 100%);
  mask-composite: intersect;
}
/* A foto (4:5) fica encostada à direita, abaixo do cabeçalho; as bordas esquerda, superior
   e inferior fundem-se ao fundo estendido. Abaixo dela, uma faixa de "chão" (10%). */
.media--hero img {
  position: absolute; right: 0; bottom: calc(var(--hero-h) * .1);
  width: auto; height: calc(var(--hero-h) * .9);
  aspect-ratio: 4 / 5;
  object-position: 50% 100%;  /* pés preservados; o corte sai do fundo vazio acima da cabeça */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 22%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 22%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 95%, transparent 100%);
  mask-composite: intersect;
}
.hero-visual__caption {
  position: absolute; z-index: 2;
  left: -2.25rem; bottom: 3rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  margin: 0;
  font-size: .64rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--rose-ink);
}

@media (max-width: 900px) {
  /* Mobile/tablet: textos, depois a foto, depois os botões.
     .hero-copy vira "transparente" para a grade, e a ordem visual é ajustada com order. */
  .hero-grid { grid-template-columns: 1fr; row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { margin-bottom: 0; }   /* sem a soma de margens que a nova ordem causaria */
  .hero-copy > .hero-signature { margin-bottom: 1.5rem; }
  .hero-visual { order: 1; }
  .hero-actions { order: 2; }
  .hero-title { max-width: 14ch; }
  .hero-title .br-desktop { display: none; }   /* mobile: quebra natural */
  /* Mobile: foto de ponta a ponta, só o topo se dissolve no fundo claro */
  .hero-visual {
    justify-self: stretch; height: auto; aspect-ratio: 4 / 5; max-height: 85vh;
    margin: 2.5rem calc(var(--gutter) * -1) 0;
  }
  .media--hero {
    inset: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 5%, #000 12%);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 5%, #000 12%);
  }
  .media--hero img { bottom: 0; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-visual__caption { left: .9rem; bottom: 1.25rem; color: var(--white); }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-signature { font-size: .68rem; letter-spacing: .2em; }
}

/* 6. SERVIÇOS ============================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service { position: relative; border-bottom: 1px solid var(--line); }
.service:nth-child(1) { grid-column: span 7; border-right: 1px solid var(--line); }
.service:nth-child(2) { grid-column: span 5; }
.service:nth-child(3),
.service:nth-child(4),
.service:nth-child(5) { grid-column: span 4; }
.service:nth-child(3),
.service:nth-child(4) { border-right: 1px solid var(--line); }
.service:nth-child(6) { grid-column: 1 / -1; }

.service__link {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  height: 100%;
  padding: clamp(2rem, 3.5vw, 3rem);
  text-decoration: none; color: inherit;
  overflow: hidden;
}
/* Superfície que sobe no hover */
.service__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blush);
  transform: translateY(101%);
  transition: transform .7s var(--ease-out);
}
.service__link:hover::before,
.service__link:focus-visible::before { transform: none; }
.service__link:focus-visible { outline-offset: -3px; }

.service__num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--rose-deep);
  margin-bottom: 1.4rem;
}
.service__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  transition: color .4s var(--ease);
}
.service__text { color: var(--ink-soft); font-weight: 300; max-width: 34rem; }
/* "Saiba mais" dos cards com aparência de botão (o card inteiro já é o link) */
.service__more {
  position: relative; isolation: isolate; overflow: hidden;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .8rem;
  min-height: 2.75rem; padding: .7rem 1.25rem;
  border-radius: 2px;
  background: var(--btn); color: var(--white);
  font: 500 .72rem/1.2 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
}
.service__more::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rose-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.service__link:hover .service__more::before,
.service__link:focus-visible .service__more::before { transform: scaleX(1); transform-origin: left; }
.service__link:hover .service__more .btn__icon { transform: translateX(4px); }
.service__text { margin-bottom: 1.75rem; }
.service__link:hover .service__title { color: var(--rose-ink); }

/* Foto de cada card: acima do título (cards 2 a 5); ao lado no card 1; à esquerda na faixa do card 6 */
.media--service { aspect-ratio: 3 / 2; margin-bottom: 1.75rem; }

.service--feature .service__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 2.5rem; }
.service--feature .media--service { grid-row: 1 / -1; grid-column: 2; aspect-ratio: auto; min-height: 22rem; margin: 0; }
.service--feature .media--service img { position: absolute; inset: 0; object-position: 50% 40%; }  /* rostos no terço superior */
.service--feature .service__more { align-self: end; justify-self: start; }
.media--service img { transition: transform 1.2s var(--ease-out); }
.service__link:hover .media--service img { transform: scale(1.04); }

.service--tall .service__title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); }

/* Card 6 em faixa horizontal com monograma */
.service--band .service__link {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.3fr);
  grid-template-rows: 1fr auto;
  align-items: center; gap: 1.5rem 3rem;
}
.service--band .media--service { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
.service--band .service__num { margin: 0; }
.service--band .service__title { margin: 0; grid-column: 2; grid-row: 1 / span 2; }
/* texto e, logo abaixo dele, o botão "Saiba mais" */
.service--band .service__text { margin: 0; grid-column: 3; grid-row: 1; align-self: end; }
.service--band .service__more { margin: 0; grid-column: 3; grid-row: 2; justify-self: start; align-self: start; }
.service__monogram {
  position: absolute; right: -1rem; top: 50%; z-index: -1;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(8rem, 16vw, 15rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(193, 168, 168, .38);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
}
.service--band .service__link:hover .service__monogram { transform: translateY(-50%) translateX(-1.5rem); }

@media (max-width: 1080px) {
  .service:nth-child(1) { grid-column: 1 / -1; border-right: 0; }
  .service:nth-child(2) { grid-column: span 6; border-right: 1px solid var(--line); }
  .service:nth-child(3) { grid-column: span 6; border-right: 0; }
  .service:nth-child(4) { grid-column: span 6; }
  .service:nth-child(5) { grid-column: span 6; }
  .service--band .service__link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
  .service--band .media--service { grid-column: 1; grid-row: 1 / span 3; }
  .service--band .service__title,
  .service--band .service__text,
  .service--band .service__more { grid-column: 2; }
}
@media (max-width: 700px) {
  .services-grid { display: block; }
  .service { border-right: 0 !important; }
  .service--feature .service__link { display: flex; }
  .service--feature .media--service { aspect-ratio: 4 / 3; min-height: 0; margin-bottom: 1.75rem; order: -1; }
  .service--feature .service__more { align-self: flex-start; }
  .service__link { padding: 2rem 0; }
  .service__link::before { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); }
  .service__num { margin-bottom: .8rem; }
  .service--band .service__link { display: flex; align-items: stretch; }
  .service--band .media--service { margin-bottom: 1.75rem; }
  .service--band .service__more { align-self: flex-start; }
  .service--band .service__num { margin-bottom: .8rem; }
  .service__monogram { top: 1rem; right: 0; transform: none; font-size: 6.5rem; }
  .service--band .service__link:hover .service__monogram { transform: translateX(-1rem); }
  .service--band .service__title { margin-bottom: 1rem; }
}

/* 7. APRESENTAÇÃO DA MÉDICA ================================================ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about-visual { position: relative; padding: 2rem 2rem 0 0; }
.media--portrait {
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;   /* máscara em arco */
  z-index: 1;
}
.media--portrait img { object-position: 50% 100%; }  /* corta só o fundo vazio acima da cabeça */
.media--portrait:not(:has(img))::after { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.about-visual__frame {
  position: absolute; top: 0; right: 0; bottom: 2rem; left: 2rem;
  border: 1px solid var(--rose-soft);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.about-text { margin-top: 2rem; max-width: 36rem; color: var(--ink-soft); font-weight: 300; }

.credentials { margin: 2.5rem 0 2.75rem; border-top: 1px solid var(--line); }
.credential {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.credential__key {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--rose-ink);
  padding-top: .35rem;
}
.credential__value { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--taupe); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  /* Mobile: título e texto, depois o retrato, depois credenciais e botão.
     .about-copy vira "transparente" para a grade e a ordem é ajustada com order. */
  .about-grid { row-gap: 0; }
  .about-copy { display: contents; }
  .about-visual { order: 1; max-width: 26rem; width: 85%; margin-top: 2.5rem; }
  .about-copy .credentials { order: 2; }
  .about-copy > .btn { order: 3; justify-self: start; }
}
@media (max-width: 480px) {
  .credential { grid-template-columns: 1fr; gap: .2rem; }
  .credential__key { padding: 0; }
}

/* 8. MÉTODO GM ============================================================= */
.method { background: var(--paper); }
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.method-diagram {
  position: sticky; top: calc(var(--header-h) + 3rem);
  aspect-ratio: 1;
  max-width: 30rem;
  width: 100%;
}
.method-svg { width: 100%; height: 100%; overflow: visible; }
.ring-guide { fill: none; stroke: var(--line); stroke-width: 1; }
.ring-guide--inner { stroke-dasharray: 2 6; }
.axis { stroke: var(--line); stroke-width: 1; }
.pillar-arc {
  fill: none; stroke: var(--rose-light); stroke-width: 1.5;
  transition: stroke .8s var(--ease), stroke-width .8s var(--ease);
}
.pillar-arc.is-active { stroke: var(--rose-deep); stroke-width: 2.5; }
.pillar-dots circle { fill: var(--paper); stroke: var(--rose-soft); stroke-width: 1.2; transition: fill .6s var(--ease), r .6s var(--ease); }
.pillar-dots circle.is-active { fill: var(--rose-deep); stroke: var(--rose-deep); }
.method-core { fill: var(--paper); stroke: var(--rose-soft); stroke-width: 1; }
.method-mono { font-family: var(--serif); font-size: 44px; fill: var(--taupe); letter-spacing: .02em; }
.ring-guide--inner { transform-origin: 200px 200px; animation: slow-spin 120s linear infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }

/* Rótulos posicionados por dentro do círculo, junto ao ponto de cada pilar */
.method-labels li {
  position: absolute;
  font-size: .66rem; font-weight: 600; line-height: 1;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .6s var(--ease);
}
.method-labels li.is-active { color: var(--rose-ink); }
.method-labels [data-label="1"] { top: 10%; left: 50%; transform: translate(-50%, 1.1rem); }
.method-labels [data-label="2"] { top: 50%; right: 10%; transform: translate(-1.1rem, -50%); }
.method-labels [data-label="3"] { bottom: 10%; left: 50%; transform: translate(-50%, -1.1rem); }
.method-labels [data-label="4"] { top: 50%; left: 10%; transform: translate(1.1rem, -50%); }

.pillar {
  position: relative;
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar::before {
  /* linha que se desenha quando o pilar está ativo */
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--rose-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.pillar.is-active::before { transform: scaleX(1); }
.pillar__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem);
  margin-bottom: 1rem;
}
.pillar__title em { color: var(--rose-ink); }
.pillar p { max-width: 32rem; color: var(--ink-soft); font-weight: 300; }

.method-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  background: var(--white);
}
.extra {
  display: flex; flex-direction: column;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-right: 1px solid var(--line);
}
/* "Saiba mais" sempre na base do bloco, alinhado entre os blocos */
.extra .btn { margin-top: auto; align-self: flex-start; }
.extra__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 1.4rem 0 .9rem; }
.extra p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.25rem; }
/* Ícones com a mesma altura, para os títulos também alinharem */
.extra__layers { display: grid; align-content: end; gap: 5px; width: 3.2rem; height: 3rem; }
.extra__layers i { display: block; height: 1px; background: var(--rose-deep); transform-origin: left; animation: layer 4s var(--ease) infinite; }
.extra__layers i:nth-child(2) { width: 80%; animation-delay: .25s; opacity: .7; }
.extra__layers i:nth-child(3) { width: 60%; animation-delay: .5s; opacity: .45; }
@keyframes layer { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }
.extra__figure { display: block; height: 3rem; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--rose-deep); }
.extra__figure sup { font-size: .5em; }
.method-cta { display: flex; align-items: center; padding: 2rem clamp(2rem, 3.5vw, 3rem); }

@media (max-width: 1080px) {
  .method-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-cta { grid-column: 1 / -1; border-top: 1px solid var(--line); justify-content: flex-start; }
}
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-diagram {
    position: relative; top: auto;
    max-width: 19rem; margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .method-extra { grid-template-columns: 1fr; }
  .extra { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-cta { border-top: 0; }
  .method-cta .btn { width: 100%; }
  .method-labels li { font-size: .58rem; letter-spacing: .16em; }
}

/* 9. TECNOLOGIAS =========================================================== */
.tech { background: var(--blush); overflow: hidden; padding-top: calc(var(--section) * .6); isolation: isolate; }

/* Fundo em parallax (desktop): imagem mais alta que a seção, movida pelo script (data-parallax).
   Camada clara por cima mantém o texto legível e a paleta da seção. */
.tech-parallax {
  position: absolute; inset: -14rem 0; z-index: -1;
  pointer-events: none;
}
.tech-parallax picture { display: block; width: 100%; height: 100%; }
.tech-parallax img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.tech-parallax::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,236,234,.9) 0%, rgba(244,236,234,.8) 45%, rgba(244,236,234,.9) 100%);
}
@media (max-width: 900px) {
  .tech-parallax { inset: -8rem 0; }   /* mobile: versão vertical da imagem, movimento menor */
  .tech-parallax img { object-position: 55% 40%; }
}

.strata { position: relative; height: 3.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.strata span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-deep) 20%, var(--rose-deep) 80%, transparent);
  transform-origin: left;
}
.strata span:nth-child(1) { top: 0; opacity: .9; }
.strata span:nth-child(2) { top: 33%; opacity: .6; }
.strata span:nth-child(3) { top: 66%; opacity: .38; }
.strata span:nth-child(4) { top: 100%; opacity: .2; }
.strata span::after {
  /* ponto de luz que percorre cada camada */
  content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose-deep);
  animation: travel 9s var(--ease) infinite;
}
.strata span:nth-child(2)::after { animation-delay: 1.2s; }
.strata span:nth-child(3)::after { animation-delay: 2.4s; }
.strata span:nth-child(4)::after { animation-delay: 3.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line-strong);
}
.tech-item {
  position: relative;
  display: flex; flex-direction: column;
  padding: .5rem clamp(1.5rem, 3vw, 2.75rem) 0;
  border-right: 1px solid var(--line-strong);
  transition: background .6s var(--ease);
}
.tech-item__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem);
  margin: 0 0 1.25rem;
  transition: transform .6s var(--ease-out), color .4s var(--ease);
}
.tech-item:hover .tech-item__title { transform: translateX(.4rem); color: var(--rose-ink); }
.tech-item p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.5rem; }
.tech-item .btn { margin-top: auto; align-self: flex-start; }

/* Faixa Protocolos GM */
.protocols {
  position: relative; overflow: hidden;
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--rose-ink);
  color: var(--white);
}
.protocols__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2rem 4rem; align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.protocols__head { position: relative; }
.protocols__mono {
  position: absolute; left: -.5rem; top: 50%; transform: translateY(-55%);
  font-family: var(--serif); font-size: clamp(7rem, 14vw, 12rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  pointer-events: none;
}
.protocols__title { position: relative; font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); color: var(--white); }
.protocols__body p { font-weight: 300; font-size: 1.08rem; margin-bottom: 2rem; }

@media (max-width: 900px) {
  /* Mobile: linhas das camadas logo abaixo do "Tecnologias", antes do título.
     O cabeçalho da seção vira "transparente" e a ordem é ajustada com order. */
  .tech > .container { display: flex; flex-direction: column; }
  .tech .section-head { display: contents; }
  .tech .section-head .eyebrow { order: 0; align-self: flex-start; margin-bottom: 1rem; }
  .tech .strata { order: 1; margin: 0 0 2rem; }
  .tech .section-head .section-title { order: 2; }
  .tech .section-head .section-lead { order: 3; margin-bottom: clamp(3rem, 6vw, 5rem); }
  .tech-grid { order: 4; }
  .tech .protocols { order: 5; }
  .tech-grid { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line-strong); }
  .tech-item { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 2rem 0 2.25rem; }
  .tech-item__title { margin: 0 0 1rem; }
  .protocols__inner { grid-template-columns: 1fr; }
  .protocols { margin-inline: calc(var(--gutter) * -1); }
  .protocols__inner { padding-inline: var(--gutter); }
  .protocols__mono { left: auto; right: -.5rem; top: -1.5rem; transform: none; font-size: 7.5rem; }
}
@media (max-width: 560px) {
  .protocols__body .btn { width: 100%; }
}

/* 10. PROVA SOCIAL ========================================================= */
.reviews { background: var(--white); text-align: center; overflow: hidden; }
.reviews-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.reviews__quote {
  font-family: var(--serif); font-size: clamp(10rem, 22vw, 18rem); line-height: .6;
  height: .45em;
  color: var(--rose-light);
  user-select: none;
}
.reviews .section-title { max-width: 14ch; }
.reviews .section-lead { margin: 1.5rem auto 2.5rem; }

/* CLÍNICA · CARROSSEL ====================================================== */
.clinic { padding-bottom: calc(var(--section) * .8); }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-bottom: .5rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.carousel__slide {
  flex: 0 0 auto;
  width: clamp(15rem, 28vw, 24rem);
  scroll-snap-align: start;
}
.carousel__slide--wide { width: clamp(20rem, 44vw, 38rem); }
.media--slide { height: clamp(22rem, 36vw, 32rem); }
.media--slide img { transition: transform 1.4s var(--ease-out); }
.carousel__slide:hover .media--slide img { transform: scale(1.03); }

.carousel__controls {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.25rem;
}
.carousel__controls[hidden] { display: none; }
.carousel__progress { position: relative; flex: 1; height: 1px; background: var(--line); }
.carousel__progress span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--rose-deep);
  transition: width .5s var(--ease);
}
.carousel__count { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--taupe); font-variant-numeric: tabular-nums; min-width: 3.5rem; text-align: center; }
.carousel__buttons { display: flex; gap: .6rem; }

@media (max-width: 600px) {
  .carousel__slide { width: 78vw; }
  .carousel__slide--wide { width: 88vw; }
  .media--slide { height: 26rem; }
}

/* LOCALIZAÇÃO ============================================================= */
.location { background: var(--paper); padding-top: calc(var(--section) * .6); }
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.location-address {
  margin-top: 2rem; padding-left: 1.5rem;
  border-left: 1px solid var(--rose-soft);
  color: var(--ink-soft); font-weight: 300;
}
.location-link { margin-top: 2rem; }
.location-address strong { display: block; margin-bottom: .35rem; font-weight: 500; color: var(--ink); }
.location-map { position: relative; aspect-ratio: 4 / 3; background: var(--blush); }
.location-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.55) sepia(.12) contrast(.95);
  transition: filter .6s var(--ease);
}
.location-map:hover iframe, .location-map:focus-within iframe { filter: none; }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { aspect-ratio: 1 / 1; max-height: 70vh; }
}

/* 11. FAQ ================================================================= */
.faq { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 3rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
  transition: color .35s var(--ease), transform .5s var(--ease-out);
}
.faq-item summary:hover h3 { color: var(--rose-ink); transform: translateX(.3rem); }
.faq-item summary:focus-visible { outline-offset: 4px; }
/* aberto: a resposta começa logo abaixo da pergunta */
.faq-item[open] summary { padding-bottom: .5rem; }

.faq-icon {
  position: relative; flex: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: .8rem; height: 1px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease-out), background .4s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--btn); border-color: var(--btn); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer { overflow: hidden; }
.faq-answer p {
  max-width: none;
  padding: 0 4rem 1.5rem 0;   /* ocupa a largura até perto do ícone */
  color: var(--ink-soft); font-weight: 300;
}
.faq-answer a { color: var(--rose-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq-answer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-answer p { padding-right: 0; }
}

/* 12. CONTATO ============================================================== */
.contact { background: var(--graphite); color: var(--white); overflow: hidden; }
.contact::before {
  /* arco decorativo fino, eco do retrato */
  content: ""; position: absolute; right: -10vw; top: -20vw;
  width: 46vw; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact .section-title { color: var(--white); }
.contact-lead { margin-top: 1.75rem; font-size: 1.15rem; font-weight: 300; max-width: 34rem; }
.contact-text { color: rgba(255, 255, 255, .82); font-weight: 300; max-width: 34rem; margin-bottom: 2.5rem; }

/* Painel claro com os canais de contato */
.contact-panel { background: var(--paper); color: var(--ink); padding: clamp(1.75rem, 4vw, 3rem); }
.channels { margin: 0; }
.channels div { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.channels div:first-child { padding-top: 0; }
.channels div:last-child { border-bottom: 0; padding-bottom: 0; }
.channels dt {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--rose-ink); margin-bottom: .4rem;
}
.channels dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--taupe); font-variant-numeric: lining-nums; overflow-wrap: break-word; }
.channels a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .3s var(--ease); }
.channels a:hover, .channels a:focus-visible { background-size: 100% 1px; color: var(--rose-ink); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact .btn--light { width: 100%; }
  .contact-panel { margin-inline: calc(var(--gutter) * -1); }
  .channels dd { font-size: 1.4rem; }
}

/* 13. RODAPÉ =============================================================== */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .78); padding: clamp(4rem, 8vw, 6rem) 0 2.25rem; font-size: 1.02rem; }
/* Logo + identificação médica */
.footer-id { max-width: 26rem; }
.footer-id .brand { margin-bottom: 1.25rem; }
.footer-id p { margin: 0 0 .45rem; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .7); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.4fr; gap: 2.5rem 3rem;
  padding-bottom: 3.5rem;
}
.footer-title {
  margin-bottom: 1.1rem;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose-light);
}
.footer-col li { margin-bottom: .65rem; }
.footer-col a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-col address { margin-bottom: 1rem; }
/* Nome, endereço e telefone clicáveis: sublinhado discreto para indicar o link */
.footer-nap a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-nap a:hover, .footer-nap a:focus-visible { text-decoration-color: currentColor; }
.footer-col p { margin-bottom: .4rem; }
.footer-legal {
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem; color: rgba(255, 255, 255, .7);
}
.footer-legal { text-align: center; }
.footer-legal p { margin-bottom: .3rem; }
.footer-copy { margin: 0 0 .35rem; }
.footer-credit { margin: 0; }
/* Crédito em rosa claro da paleta, com sublinhado ao passar o mouse */
.footer-credit a { color: var(--rose-light); font-weight: 600; text-decoration: none; transition: color .3s var(--ease); }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-id, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--btn); color: var(--white);
  box-shadow: 0 10px 30px -12px rgba(63, 59, 57, .55);
  opacity: 0; transform: translateY(1rem) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease-out), background .35s var(--ease);
}
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--rose-ink); }

/* TRANSIÇÃO ENTRE SEÇÕES ===================================================
   Criada pelo script.js em cada divisa (exceto o hero):
   .flow__band: a cor da seção de cima se dissolve no topo da seção de baixo. */
.flow { position: relative; height: 0; z-index: 4; pointer-events: none; }
.flow__band {
  position: absolute; left: 0; right: 0; top: 0;
  height: clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(to bottom, var(--flow-from), transparent);
}
/* passagem para a seção escura: em vez do claro descer sobre o escuro (ficaria acinzentado),
   uma penumbra suave do grafite sobe pelo fim da seção de cima */
.flow--dark .flow__band {
  top: auto; bottom: 0;
  height: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(to bottom, rgba(102, 99, 98, 0), rgba(102, 99, 98, .07) 55%, rgba(102, 99, 98, .2));
}
/* base da foto de fundo das Tecnologias também se dissolve na cor da seção */
.tech::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(to bottom, rgba(244, 236, 234, 0), var(--blush));
  pointer-events: none;
}

/* 14. ANIMAÇÕES ============================================================
   Ativadas apenas com JS (classe .js no <html>) e sem prefers-reduced-motion.
   Sem JS, todo o conteúdo fica visível. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-mask {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-out);
  transition-delay: var(--d, .1s);
}
.js .reveal-mask.is-in { clip-path: inset(0 0 0 0); }
.js .media--portrait.reveal-mask { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
.js .media--portrait.reveal-mask.is-in { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
/* Títulos revelados palavra por palavra (data-split) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.is-in .split-word > span, .split-word.is-in > span { transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-mask { opacity: 1; transform: none; clip-path: none; }
  .split-word > span { transform: none; }
  [data-parallax] { transform: none !important; }
}
