/* =============================================================================
   Oneo Clinic - design system
   Tokens → reset → layout → componentes → utilitários
   Escrito mobile-first. Suporta tema claro/escuro e prefers-reduced-motion.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Cor derivada do logo: cinza-chumbo #515251 e o dourado do arco do "O".
     O dourado de texto e escurecido para passar AA; o claro fica so em area. */
  --ink:            #1e1e1c;
  --ink-soft:       #56564f;
  --ink-mute:       #6c6c63;
  --bg:             #fbfaf7;
  --bg-alt:         #f2f0ea;
  --surface:        #ffffff;
  --surface-alt:    #f8f6f1;
  --line:           #e5e1d8;
  --line-strong:    #cec8ba;

  --brand:          #515251;
  --brand-hover:    #383937;
  --brand-soft:     #eeeeeb;
  --brand-ink:      #ffffff;
  --accent:         #82621a;
  --accent-bright:  #d9ab52;
  --accent-soft:    #f6efdd;

  --danger:         #b3261e;
  --focus:          #515251;
  --shadow-sm:      0 1px 2px rgba(18, 33, 31, .06), 0 2px 8px rgba(18, 33, 31, .04);
  --shadow-md:      0 4px 12px rgba(18, 33, 31, .07), 0 16px 40px rgba(18, 33, 31, .07);
  --shadow-lg:      0 8px 24px rgba(18, 33, 31, .1), 0 32px 64px rgba(18, 33, 31, .1);

  /* Tipografia fluida: escala 1.2 no mobile, 1.25 no desktop */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.09rem + .3vw, 1.33rem);
  --step-2:  clamp(1.38rem, 1.26rem + .58vw, 1.78rem);
  --step-3:  clamp(1.65rem, 1.44rem + 1.05vw, 2.37rem);
  --step-4:  clamp(1.98rem, 1.61vw + 1.58rem, 3.16rem);
  --step-5:  clamp(2.38rem, 1.72rem + 3.3vw, 4.21rem);

  /* Espaço e forma */
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: 5rem;
  --space-3xl: clamp(4rem, 10vw, 8rem);

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --wrap: 74rem;
  --wrap-narrow: 46rem;
  --header-h: 4.5rem;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink:         #ecebe7;
    --ink-soft:    #b6b5ad;
    --ink-mute:    #8d8c84;
    --bg:          #16161a;
    --bg-alt:      #1c1c20;
    --surface:     #1c1c21;
    --surface-alt: #232328;
    --line:        #2e2e34;
    --line-strong: #45454d;

    --brand:       #d9d8d2;
    --brand-hover: #ffffff;
    --brand-soft:  #26262c;
    --brand-ink:   #1a1a1d;
    --accent:      #e3b759;
    --accent-bright: #e3b759;
    --accent-soft: #2a2419;

    --danger:      #ff8a80;
    --focus:       #e3b759;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg:   0 12px 40px rgba(0, 0, 0, .5);
  }
}

:root[data-theme='dark'] {
--ink:         #ecebe7;
  --ink-soft:    #b6b5ad;
  --ink-mute:    #8d8c84;
  --bg:          #16161a;
  --bg-alt:      #1c1c20;
  --surface:     #1c1c21;
  --surface-alt: #232328;
  --line:        #2e2e34;
  --line-strong: #45454d;

  --brand:       #d9d8d2;
  --brand-hover: #ffffff;
  --brand-soft:  #26262c;
  --brand-ink:   #1a1a1d;
  --accent:      #e3b759;
  --accent-bright: #e3b759;
  --accent-soft: #2a2419;

  --danger:      #ff8a80;
  --focus:       #e3b759;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, .45);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, .5);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

::selection { background: var(--brand); color: var(--brand-ink); }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--alt { position: relative; background: var(--bg-alt); }

/* Ritmo de tom, nao de matiz: areia, branco e um leve banho dourado. Cor por
   secao (uma para cada especialidade, como no site antigo) envelhece rapido e
   tira a seriedade de um site de saude. */
.section--tint {
  position: relative;
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 70%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 4. Tipografia de apoio --------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 46ch;
}

.section-head { max-width: 52rem; margin-bottom: var(--space-xl); }
.section-head > * + * { margin-top: var(--space-s); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); max-width: 68ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); font-weight: 500; }

/* ---------- 5. Botões ---------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
/* `display: inline-flex` no .btn vence o `display: none` que o navegador aplica
   ao atributo hidden - sem esta linha, botao escondido continua ocupando espaco. */
.btn[hidden] { display: none; }
.btn:hover { --btn-bg: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--brand); color: var(--brand); }

.btn--light {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: #12211f; border-color: #fff; }

.btn--sm { padding: .6rem 1.1rem; min-height: 2.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brand);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Cabeçalho ------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

/* Sobre o herói o cabeçalho é transparente; ao rolar, ganha fundo sólido. */
.header--over { color: #fff; }
.header--solid,
.header--open {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  color: var(--ink);
}
@supports not (backdrop-filter: blur(1px)) {
  .header--solid, .header--open { background: var(--bg); }
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: auto;
  text-decoration: none;
}
.logo img { height: 1.9rem; width: auto; }
.footer .logo img { height: 2.4rem; }

/* Trocamos o arquivo, nao a cor: o desenho tem uma versao propria por fundo. */
.logo__dark { display: none; }
:root[data-theme='dark'] .logo__light { display: none; }
:root[data-theme='dark'] .logo__dark { display: block; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brand); background: var(--surface); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle__moon { display: none; }
:root[data-theme='dark'] .theme-toggle__sun { display: none; }
:root[data-theme='dark'] .theme-toggle__moon { display: block; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-m); }
.nav__link {
  position: relative;
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  padding-block: .35rem;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { opacity: 1; font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 .6rem;
  background: none;
  border: 0;
  border-radius: var(--radius-s);
}
.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(2) { width: 70%; }
.header--open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header--open .burger span:nth-child(2) { opacity: 0; }
.header--open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu móvel */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-m) 0 var(--space-l);
  color: var(--ink);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.drawer[data-open='true'] { opacity: 1; transform: none; visibility: visible; }
.drawer__list { display: grid; gap: .25rem; }
.drawer__link {
  display: block;
  padding: .85rem 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer__foot { margin-top: var(--space-m); display: grid; gap: .75rem; }
.drawer__foot .btn { width: 100%; }

@media (min-width: 62rem) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none; }
}

/* ---------- 7. Herói ----------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 46rem);
  padding-block: calc(var(--header-h) + var(--space-2xl)) var(--space-2xl);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero--page { min-height: min(62svh, 32rem); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 18s var(--ease) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 24, 22, .55) 0%, rgba(9, 24, 22, .18) 35%, rgba(9, 24, 22, .82) 100%),
    linear-gradient(90deg, rgba(9, 24, 22, .55) 0%, rgba(9, 24, 22, 0) 60%);
}

.hero__content { max-width: 44rem; }
.hero__content > * + * { margin-top: var(--space-s); }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { color: #fff; }
.hero__lead { font-size: var(--step-1); color: rgba(255, 255, 255, .88); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-l);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .82);
}
.hero__meta div { display: flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 1.1em; height: 1.1em; opacity: .8; flex: none; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .75);
  margin-bottom: var(--space-s);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li::after { content: '/'; margin-left: .45rem; opacity: .5; }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li:last-child { color: #fff; }

/* ---------- 8. Grids e cartões ------------------------------------------- */
.grid { display: grid; gap: var(--space-m); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--space-m); display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.card__title { font-size: var(--step-2); }
.card__text { color: var(--ink-soft); font-size: var(--step--1); flex: 1; }
.card__link { position: static; margin-top: auto; }
/* Área clicável cobre o cartão inteiro sem aninhar links. */
.card__link::before { content: ''; position: absolute; inset: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Diferenciais */
.feature { display: grid; gap: .85rem; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature__icon svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--ink-soft); font-size: var(--step--1); }

/* Equipe */
.person { display: flex; flex-direction: column; }
.person__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: var(--space-s);
}
.person__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.92);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.person:hover .person__media img { transform: scale(1.03); filter: saturate(1); }
.person__name { font-size: var(--step-1); }
.person__role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: .3rem;
}
.person__text { color: var(--ink-soft); font-size: var(--step--1); margin-top: .55rem; }
.person__link { margin-top: .75rem; }

/* Bloco editorial 2 colunas */
.split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .split--wide-text { grid-template-columns: 1.1fr .9fr; }
}
.split__media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.stats { display: flex; flex-wrap: wrap; gap: var(--space-l); margin-top: var(--space-l); }
.stat__value { font-family: var(--font-display); font-size: var(--step-3); color: var(--brand); line-height: 1; }
.stat__label { font-size: var(--step--1); color: var(--ink-mute); margin-top: .35rem; }

/* ---------- 9. Acordeão (FAQ) -------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-m) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .3rem;
  background: currentColor;
  color: var(--brand);
  transition: transform .3s var(--ease);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.accordion__item[open] .accordion__q::after { transform: rotate(135deg); }
.accordion__a { padding-bottom: var(--space-m); color: var(--ink-soft); max-width: 68ch; }

/* ---------- 10. Contato -------------------------------------------------- */
.info-list { display: grid; gap: var(--space-m); }
.info-list__item { display: flex; gap: var(--space-s); }
.info-list__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-m);
  background: var(--brand-soft);
  color: var(--brand);
}
.info-list__icon svg { width: 1.15rem; height: 1.15rem; }
.info-list__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.info-list__value { margin-top: .15rem; }
.info-list__value a { color: inherit; text-decoration: none; }
.info-list__value a:hover { color: var(--brand); text-decoration: underline; }

.form { display: grid; gap: var(--space-s); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--ink-mute); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .error { font-size: .8rem; color: var(--danger, #c0392b); min-height: 1.1em; }
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--danger, #c0392b); }
.form__note { font-size: .8rem; color: var(--ink-mute); }
.form__status { font-size: var(--step--1); font-weight: 600; }
.form__status[data-state='ok'] { color: var(--brand); }
.form__status[data-state='err'] { color: var(--danger); }

.map {
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.map img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: var(--step--1);
  font-weight: 600;
}
.map__badge svg { width: 1em; height: 1em; color: var(--brand); }

/* ---------- 11. Faixa de chamada ----------------------------------------- */
.cta-band {
  position: relative;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--radius-l);
  padding: var(--space-xl) var(--space-m);
  text-align: center;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: auto -10% -60% auto;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: .85; max-width: 48ch; margin: var(--space-s) auto 0; }
.cta-band .btn--light { --btn-fg: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); }
.cta-band .btn--light:hover { --btn-bg: var(--brand-ink); --btn-fg: var(--brand); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--space-m); }

/* ---------- 12. Rodapé --------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: var(--space-2xl) var(--space-m);
  margin-top: var(--space-3xl);
}
.footer__grid { display: grid; gap: var(--space-l); }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 62rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer h2 {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--space-s);
}
.footer__links { display: grid; gap: .55rem; font-size: var(--step--1); }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--brand); text-decoration: underline; }
.footer__brand p { color: var(--ink-soft); font-size: var(--step--1); margin-top: var(--space-s); max-width: 34ch; }
.social { display: flex; gap: .5rem; margin-top: var(--space-s); }
.social a {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.social svg { width: 1.05rem; height: 1.05rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem var(--space-m);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-mute);
}

/* ---------- 13. Botão flutuante do WhatsApp ------------------------------ */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.15rem;
  border-radius: var(--radius-pill);
  background: #1fa855;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fab svg { width: 1.35rem; height: 1.35rem; flex: none; }
.fab span { display: none; }
@media (min-width: 48rem) { .fab span { display: inline; } }

/* ---------- 14. Utilitários e movimento ---------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* A revelação só existe quando o JS esta ativo (classe .js posta no <head>).
   Sem JS, ou se o script falhar, o conteudo ja nasce visivel. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.figure { margin: var(--space-m) 0; }
.figure img { border-radius: var(--radius-m); width: 100%; }
.figure figcaption { font-size: .82rem; color: var(--ink-mute); margin-top: .6rem; }
.figure-row { display: grid; gap: var(--space-s); }
@media (min-width: 40rem) { .figure-row { grid-template-columns: 1fr 1fr; } }

.checklist { display: grid; gap: .7rem; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-soft);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: .3rem; top: .58em;
  width: .55rem; height: .3rem;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: none;
}
.toc__label {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .75rem;
}
.toc a {
  display: block;
  padding: .4rem 0 .4rem .85rem;
  border-left: 2px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-decoration: none;
}
.toc a:hover, .toc a.is-active { color: var(--brand); border-color: var(--brand); }
@media (min-width: 62rem) {
  .toc { display: block; }
  .article-layout { display: grid; grid-template-columns: 15rem 1fr; gap: var(--space-2xl); }
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

@media print {
  .header, .drawer, .fab, .cta-band, .footer__links, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; padding-block: 0; }
  .hero__media { display: none; }
  .hero h1, .hero__lead { color: #000; }
}

/* <picture> não deve criar caixa própria: o layout continua no <img>. */
picture { display: contents; }

/* ---------- 15. Blocos editoriais ---------------------------------------- */

/* Herói tipográfico. O acervo de fotos não tem uma imagem que represente a
   clínica, e stock genérico mente sobre o lugar - então o herói é texto. */
.hero-type {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) var(--space-2xl);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-type::after {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hero-type__grid { display: grid; gap: var(--space-xl); }
@media (min-width: 62rem) {
  .hero-type__grid { grid-template-columns: 1.25fr .75fr; gap: var(--space-2xl); align-items: end; }
}
.hero-type__text > * + * { margin-top: var(--space-s); }
.hero-type h1 { margin-top: var(--space-xs); }
/* O eixo variável da Fraunces dá ênfase sem trocar de peso. */
.hero-type h1 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  color: var(--accent);
}
.hero-type .lead { max-width: 44ch; }
.hero-type__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }

/* Cartão de informação prática, ao lado do título. */
.fact-card {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.fact-card__row { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--step--1); }
.fact-card__row svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; margin-top: .15rem; }
.fact-card__row a { color: inherit; text-decoration: none; }
.fact-card__row a:hover { color: var(--brand); text-decoration: underline; }
.fact-card__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fact-card__value { color: var(--ink-soft); margin-top: .1rem; }
.fact-card__value strong { color: var(--ink); font-weight: 600; }

/* Cabeçalho das páginas internas: claro, legível, sem overlay escuro. */
.page-header {
  padding-block: calc(var(--header-h) + var(--space-l)) var(--space-l);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-header__inner { max-width: 54rem; }
.page-header__inner > * + * { margin-top: var(--space-s); }
.page-header .breadcrumb { color: var(--ink-mute); margin-bottom: var(--space-s); }
.page-header .breadcrumb li:last-child { color: var(--ink); }
.page-band { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-band img { width: 100%; aspect-ratio: 21 / 8; max-height: 26rem; object-fit: cover; }

/* Faixa de instituições: credibilidade que estava escondida nos perfis. */
.institutions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
}
.institutions li { display: flex; align-items: center; gap: 1.25rem; }
.institutions li::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.institutions li:last-child::after { display: none; }

/* Entrada por queixa, na linguagem do paciente. */
.needs { display: grid; gap: 0 var(--space-2xl); }
@media (min-width: 48rem) { .needs { grid-template-columns: 1fr 1fr; } }
.need {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 1.15rem .25rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s var(--ease), padding-left .25s var(--ease);
}
.need:hover { border-color: var(--accent-bright); padding-left: .5rem; }
.need__q { font-size: var(--step-0); }
.need__a {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.need__a svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.need:hover .need__a svg { transform: translateX(3px); }

/* As quatro etapas do atendimento. */
.steps { display: grid; gap: var(--space-l); }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); } }
.step { border-top: 2px solid var(--accent-bright); padding-top: var(--space-s); }
.step__n { font-family: var(--font-display); font-size: var(--step-2); color: var(--accent); line-height: 1; }
.step h3 { font-size: var(--step-1); margin-top: .55rem; }
.step p { color: var(--ink-soft); font-size: var(--step--1); margin-top: .5rem; }

/* Lista editorial de especialidades, no lugar da grade de cards. */
.entry-list { border-top: 1px solid var(--line); }
.entry {
  position: relative;
  display: grid;
  gap: var(--space-s);
  padding-block: var(--space-l);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
@media (min-width: 56rem) {
  .entry {
    grid-template-columns: 2.75rem 1fr 15rem;
    gap: var(--space-l);
    align-items: center;
  }
}
.entry:hover { background: var(--surface-alt); }
.entry__n { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-mute); }
.entry__title { font-size: var(--step-3); }
.entry__text { color: var(--ink-soft); font-size: var(--step--1); margin-top: .55rem; max-width: 62ch; }
.entry__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem; }
.entry__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--brand-soft);
}
.entry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.entry:hover .entry__media img { transform: scale(1.05); }
/* Sem foto própria, um painel da marca no lugar - melhor que stock alheio. */
.entry__media--blank {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-alt));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--step-3);
}
.entry__link::before { content: ''; position: absolute; inset: 0; }

/* Equipe: as fotos originais são pequenas, então o retrato é um avatar. */
.people { display: grid; gap: var(--space-m); }
@media (min-width: 40rem) { .people { grid-template-columns: 1fr 1fr; gap: var(--space-m) var(--space-2xl); } }
@media (min-width: 62rem) { .people { grid-template-columns: repeat(3, 1fr); } }
.who {
  position: relative;
  display: flex;
  gap: var(--space-s);
  padding-block: var(--space-s);
  border-top: 1px solid var(--line);
}
.who__avatar {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
}
.who__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.who__name { font-size: var(--step-1); }
.who__role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .3rem;
}
.who__text { font-size: var(--step--1); color: var(--ink-soft); margin-top: .5rem; }
.who__link { margin-top: .6rem; }
.who__link::before { content: ''; position: absolute; inset: 0; }
.who:hover .who__name { text-decoration: underline; text-underline-offset: .2em; }

/* Perfil: avatar maior no topo da página do profissional. */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.profile-head__avatar {
  flex: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.profile-head__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Endereço em bloco tipográfico - substitui o print do mapa. */
.place {
  display: grid;
  gap: var(--space-m);
  padding: var(--space-l);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.place__address { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; font-style: normal; }
.place__meta { display: grid; gap: .5rem; font-size: var(--step--1); color: var(--ink-soft); }
.place__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Barra de ação fixa no celular: as três coisas que o paciente realmente faz. */
.actionbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@supports not (backdrop-filter: blur(1px)) { .actionbar { background: var(--surface); } }
.actionbar a {
  display: grid;
  place-items: center;
  gap: .3rem;
  min-height: 3.75rem;
  padding: .5rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.actionbar a svg { width: 1.15rem; height: 1.15rem; }
.actionbar a:first-child { color: var(--brand); }
.actionbar a + a { border-left: 1px solid var(--line); }

body { padding-bottom: 3.75rem; }
.fab { display: none; }
@media (min-width: 48rem) {
  .actionbar { display: none; }
  body { padding-bottom: 0; }
  /* O botão flutuante é o par de desktop da barra - nunca os dois juntos. */
  .fab { display: inline-flex; }
}

/* ---------- 16. Composicao visual ---------------------------------------- */

/* Grao sutil: tira o aspecto chapado das areas grandes de cor. Fica em
   ::after para nao competir com o fundo proprio de cada bloco. */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/art/grain.png');
  background-size: 160px 160px;
  opacity: .5;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
:root[data-theme='dark'] .grain::after { mix-blend-mode: screen; opacity: .28; }
.grain > * { position: relative; z-index: 1; }

/* --- Heroi com composicao ------------------------------------------------ */
.hero-rich {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) var(--space-2xl);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 40rem at 88% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, var(--surface-alt) 0%, transparent 55%);
}
.hero-rich__grid { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 62rem) {
  .hero-rich__grid { grid-template-columns: 1.08fr .92fr; gap: var(--space-2xl); }
}

.hero-rich__text > * + * { margin-top: var(--space-s); }
.hero-rich h1 { margin-top: var(--space-xs); }
.hero-rich h1 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  color: var(--accent);
}
.hero-rich .lead { max-width: 42ch; }
.hero-rich__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }

/* Numeros de apoio, logo abaixo da chamada. */
.hero-rich__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m) var(--space-l);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}
.hero-rich__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.hero-rich__stat span {
  display: block;
  margin-top: .3rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

/* A composicao: foto em moldura alta, arco da marca atras e cartao flutuante. */
.compo { position: relative; }
.compo__frame {
  position: relative;
  /* A foto de origem tem 559px de largura: acima disso ela amolece. */
  max-width: 30rem;
  margin-inline: auto;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.compo__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* O "O" do logo, ampliado, servindo de moldura grafica. */
.compo__arc {
  position: absolute;
  z-index: 0;
  width: min(78%, 24rem);
  aspect-ratio: 1;
  right: -14%;
  top: -9%;
  background: url('../img/logo-mark.svg') no-repeat center / contain;
  opacity: .16;
  pointer-events: none;
}
.compo__badge {
  position: absolute;
  z-index: 2;
  left: -1rem;
  bottom: 1.75rem;
  display: grid;
  gap: .15rem;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 15rem;
}
.compo__badge strong { font-family: var(--font-display); font-size: var(--step-1); }
.compo__badge span { font-size: .78rem; color: var(--ink-mute); line-height: 1.45; }
@media (max-width: 40rem) {
  .compo__badge { left: .75rem; right: .75rem; max-width: none; }
  .compo__arc { display: none; }
}

/* --- Mosaico de imagens --------------------------------------------------- */
.mosaic {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 12rem 12rem;
  }
  .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic__item:nth-child(4) { grid-column: span 2; }
}
.mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--bg-alt);
  min-height: 9rem;
}
.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(20, 20, 18, .72));
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* --- Faixa panoramica ----------------------------------------------------- */
.band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(48svh, 26rem);
  padding-block: var(--space-2xl);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 24, 22, .88) 0%, rgba(24, 24, 22, .55) 55%, rgba(24, 24, 22, .3) 100%);
}
.band__content { max-width: 34rem; }
.band__content h2 { color: #fff; }
.band__content p { color: rgba(255, 255, 255, .82); margin-top: var(--space-s); }
.band .eyebrow { color: var(--accent-bright); }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }

/* --- Marca d'agua do arco em secoes -------------------------------------- */
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 34rem;
  aspect-ratio: 1;
  right: -10rem;
  top: -8rem;
  background: url('../img/logo-mark.svg') no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
.watermark > * { position: relative; z-index: 1; }

/* --- Equipe com anel dourado --------------------------------------------- */
.who__avatar {
  width: 5.5rem;
  height: 5.5rem;
  padding: 3px;
  background: linear-gradient(150deg, var(--accent-bright), var(--line-strong));
}
.who__avatar picture,
.who__avatar img { border-radius: 50%; }

/* --- Mapa com carregamento sob demanda ----------------------------------- */
.map-embed {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  min-height: 16rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-l);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__pitch { display: grid; gap: .75rem; justify-items: center; max-width: 24rem; }
.map-embed__pitch p { font-size: var(--step--1); color: var(--ink-soft); }
.map-embed__pitch svg { width: 1.75rem; height: 1.75rem; color: var(--accent); }

/* ---------- 17. Heroi de tela cheia -------------------------------------- */
.hero-banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 50rem);
  padding-block: calc(var(--header-h) + var(--space-2xl)) var(--space-xl);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-banner__media { position: absolute; inset: 0; z-index: -2; }
.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: hero-in 20s var(--ease) forwards;
}
@keyframes hero-in {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* Duas camadas: uma vertical, que assenta o texto, e uma lateral, que abre
   espaco a esquerda sem apagar a imagem do lado direito. */
.hero-banner__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 16, .62) 0%, rgba(18, 18, 16, .28) 32%, rgba(18, 18, 16, .9) 100%),
    linear-gradient(96deg, rgba(18, 18, 16, .8) 0%, rgba(18, 18, 16, .35) 52%, rgba(18, 18, 16, .12) 100%);
}
.hero-banner__glow {
  position: absolute;
  z-index: -1;
  right: -12%;
  top: -18%;
  width: 46rem;
  aspect-ratio: 1;
  background: url('../img/logo-mark.svg') no-repeat center / contain;
  opacity: .1;
  pointer-events: none;
}

.hero-banner__content { max-width: 46rem; }
.hero-banner__content > * + * { margin-top: var(--space-s); }
.hero-banner .eyebrow { color: var(--accent-bright); }
.hero-banner h1 { color: #fff; }
.hero-banner h1 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  color: var(--accent-bright);
}
.hero-banner__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  max-width: 40ch;
}
.hero-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }

.hero-banner__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m) var(--space-xl);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-banner__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.hero-banner__stat span {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}

/* Cartao de informacao pratica, ancorado no canto do heroi. */
.hero-banner__card {
  display: none;
  position: absolute;
  right: max(1.25rem, calc(50vw - var(--wrap) / 2));
  bottom: var(--space-xl);
  z-index: 2;
  width: 17rem;
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
@supports not (backdrop-filter: blur(1px)) { .hero-banner__card { background: var(--surface); } }
@media (min-width: 62rem) { .hero-banner__card { display: grid; gap: .55rem; } }
.hero-banner__card strong { font-family: var(--font-display); font-size: var(--step-1); }
.hero-banner__card p { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.hero-banner__card a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.hero-banner__card a:hover { text-decoration: underline; }

/* Cabecalho sobre o heroi: marca clara, controles em vidro. */
.header--over .logo__light { display: none; }
.header--over .logo__dark { display: block; }
.header--over .theme-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}
.header--over .theme-toggle:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.header--over .header__cta {
  --btn-bg: rgba(255, 255, 255, .14);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}
.header--over .header__cta:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }

/* No celular o heroi precisa caber na tela: menos respiro e numeros menores. */
@media (max-width: 47.99rem) {
  .hero-banner {
    min-height: 100svh;
    padding-block: calc(var(--header-h) + var(--space-m)) var(--space-l);
  }
  .hero-banner__lead { font-size: var(--step-0); }
  .hero-banner__actions { gap: .6rem; }
  .hero-banner__stats { gap: var(--space-s) var(--space-m); margin-top: var(--space-m); }
  .hero-banner__stat strong { font-size: var(--step-1); }
  .hero-banner__stat span { font-size: .72rem; }
}

/* Sobre a foto do heroi os botoes trocam de logica: o principal fica solido em
   branco e o secundario vira contorno claro. Herdar a cor do tema claro deixava
   o texto escuro sobre a imagem escura. */
.hero-banner .btn {
  --btn-bg: #fff;
  --btn-fg: #1e1e1c;
}
.hero-banner .btn:hover { --btn-bg: var(--accent-bright); --btn-fg: #1e1e1c; }
.hero-banner .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  /* A regra base do fantasma define `color` direto no hover, entao aqui tambem
     precisa ser `color` - so trocar a variavel nao vence a cascata. */
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.hero-banner .btn--ghost:hover {
  --btn-bg: #fff;
  --btn-fg: #1e1e1c;
  color: #1e1e1c;
  border-color: #fff;
}

/* ---------- 18. Slideshow do heroi --------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
/* Sem JS, o primeiro slide fica visivel e os demais nao atrapalham. */
html:not(.js) .hero-slide:not(.is-active) { display: none; }

/* O zoom lento so corre no slide visivel. */
.hero-slide.is-active img { animation: hero-in 14s var(--ease) forwards; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(1.25rem, calc(50vw - var(--wrap) / 2));
  bottom: var(--space-m);
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 2.25rem;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active { background: var(--accent-bright); transform: scaleY(1.6); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 47.99rem) {
  .hero-dots { bottom: var(--space-s); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
}

/* ---------- 19. Ajustes de marca e rodape -------------------------------- */

/* A palavra "clinic" e miuda no logotipo: abaixo de 2,4rem de altura ela some.
   O cabecalho tem 4,5rem, entao ha folga de sobra. */
.logo img { height: 2.6rem; }
.footer .logo img { height: 3rem; }
@media (max-width: 47.99rem) {
  .logo img { height: 2.2rem; }
}

.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form__actions .btn { flex: 1 1 auto; }

.footer__legal { display: flex; gap: .6rem; }
.footer__legal a { color: var(--ink-mute); }
.footer__legal a:hover { color: var(--brand); }

/* Registros profissionais: exigencia de publicidade em saude, entao fica
   legivel - discreto nao quer dizer escondido. */
.footer__registry {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- 20. Voltar ao topo ------------------------------------------- */

/* Aparece so depois de duas telas de rolagem, e no desktop fica acima do botao
   do WhatsApp; no celular, acima da barra de acoes. */
.to-top {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(3.75rem + max(1rem, env(safe-area-inset-bottom)));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .2s var(--ease);
}
.to-top svg { width: 1.1rem; height: 1.1rem; transform: rotate(-90deg); }
.to-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.to-top[hidden] { display: none; }
.to-top.is-fading { opacity: 0; transform: translateY(8px); }

@media (min-width: 48rem) {
  .to-top { bottom: calc(4.75rem + max(1rem, env(safe-area-inset-bottom))); }
}

/* ---------- 21. Faixa de chamada, revisada ------------------------------- */

/* O chumbo chapado da marca funciona em botao, mas num bloco grande fica sem
   vida. Aqui ele vira profundidade: grafite quente em degrade, brilho dourado
   no canto e o anel do logo ao fundo - a mesma linguagem do cartao digital. */
.cta-band {
  background:
    radial-gradient(38rem 26rem at 88% -20%, rgba(227, 183, 89, .3) 0%, transparent 62%),
    radial-gradient(30rem 24rem at 8% 120%, rgba(227, 183, 89, .12) 0%, transparent 60%),
    linear-gradient(145deg, #2b2b30 0%, #1c1c21 55%, #141417 100%);
  color: #f4f3ef;
  border: 1px solid rgba(227, 183, 89, .22);
  padding: var(--space-2xl) var(--space-m);
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: auto -6rem -10rem auto;
  width: 26rem;
  aspect-ratio: 1;
  background: url('../img/logo-mark.svg') no-repeat center / contain;
  opacity: .08;
  border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(244, 243, 239, .78); opacity: 1; }

/* Dourado no botao principal: e o unico lugar do site onde ele preenche uma
   area grande, e sobre grafite o contraste sobra. */
.cta-band__actions .btn--light:first-child {
  --btn-bg: var(--accent-bright);
  --btn-fg: #1c1c21;
  color: #1c1c21;
  border-color: transparent;
}
.cta-band__actions .btn--light:first-child:hover {
  --btn-bg: #f0c977;
  --btn-fg: #1c1c21;
  color: #1c1c21;
}
.cta-band__actions .btn--light {
  --btn-bg: transparent;
  --btn-fg: #f4f3ef;
  color: #f4f3ef;
  border-color: rgba(255, 255, 255, .42);
}
.cta-band__actions .btn--light:hover {
  --btn-bg: rgba(255, 255, 255, .14);
  --btn-fg: #fff;
  color: #fff;
  border-color: #fff;
}

/* ---------- 22. Entrada por queixa, em telas medias ---------------------- */

/* Lado a lado, o rotulo longo espremia a pergunta em coluna estreita e ela
   quebrava em cinco linhas. Abaixo do desktop a dupla empilha; a divisao em
   duas colunas so entra quando ha largura para as duas partes conviverem. */
.needs { grid-template-columns: 1fr; }
.need {
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding-block: 1rem;
}
.need__q { min-width: 0; text-wrap: pretty; }
.need__a { white-space: nowrap; }

@media (min-width: 62rem) {
  .needs { grid-template-columns: 1fr 1fr; }
  .need {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding-block: 1.15rem;
  }
}
