/* =============================================================
   Cardioclínica Caxias
   Papel clínico + carmim. O calor vem das fotos e da marca,
   nunca de um fundo bege.
   ============================================================= */

/* --- 1. Tokens -------------------------------------------- */

:root {
  /* Cor. Croma mínimo puxado para o hue da própria marca (27°),
     não para "quente por default". */
  --base:          oklch(0.985 0.004 25);
  --base-fundo:    oklch(0.962 0.006 27);
  --tinta:         oklch(0.22 0.015 25);
  --tinta-suave:   oklch(0.44 0.014 25);
  --carmim:        oklch(0.462 0.176 27.5);   /* #B51E1F, o vermelho do logo */
  --carmim-vivo:   oklch(0.58 0.213 28);
  --carmim-fundo:  oklch(0.355 0.132 27);
  --fio:           oklch(0.895 0.008 30);
  --fio-forte:     oklch(0.80 0.012 30);
  --sobre-carmim:  oklch(0.98 0.008 40);

  /* Tipografia */
  --display: 'Young Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --texto: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: clamp(1.0625rem, 0.99rem + 0.31vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.11rem + 0.6vw, 1.5rem);
  --t-h3:   clamp(1.5rem, 1.3rem + 0.85vw, 2rem);
  --t-h2:   clamp(2.125rem, 1.72rem + 1.75vw, 3.375rem);
  --t-h1:   clamp(2.75rem, 1.7rem + 3.1vw, 5rem);

  /* Espaço */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --maxw: 78rem;
  --secao-y: clamp(4.5rem, 2.75rem + 7vw, 8.5rem);
  --curva: clamp(1.25rem, 0.5rem + 2.4vw, 3rem);

  /* Camadas */
  --z-fundo: 0;
  --z-media: 1;
  --z-conteudo: 2;
  --z-cabecalho: 100;
  --z-sobreposto: 200;

  /* Movimento */
  --saida: cubic-bezier(0.16, 1, 0.3, 1);      /* ease-out-expo */
  --saida-curta: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Base ---------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--carmim); color: var(--sobre-carmim); }

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

.pular-para-conteudo {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: var(--z-sobreposto);
  background: var(--carmim);
  color: var(--sobre-carmim);
  padding: 0.75rem 1.25rem;
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: translate 200ms var(--saida-curta);
}
.pular-para-conteudo:focus-visible { translate: -50% 0; }

.so-leitor-de-tela {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- 3. Layout -------------------------------------------- */

.envoltorio {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.secao { padding-block: var(--secao-y); }

.prosa > * + * { margin-top: 1.35em; }
.prosa { max-width: 62ch; font-size: var(--t-lead); line-height: 1.55; color: var(--tinta-suave); }
.prosa strong { color: var(--tinta); font-weight: 600; }

.etiqueta {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tinta-suave);
}

/* --- 4. Botões -------------------------------------------- */

.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--texto);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 220ms var(--saida-curta),
              color 220ms var(--saida-curta),
              border-color 220ms var(--saida-curta);
}

.botao svg { width: 1.125em; height: 1.125em; flex: none; }

.botao--cheio {
  background: var(--carmim);
  color: var(--sobre-carmim);
}
.botao--cheio:hover { background: oklch(0.40 0.166 27.5); }

.botao--contorno {
  border-color: var(--fio-forte);
  color: var(--tinta);
}
.botao--contorno:hover { border-color: var(--tinta); background: var(--base-fundo); }

.botao--claro {
  background: var(--sobre-carmim);
  color: var(--carmim-fundo);
}
.botao--claro:hover { background: #fff; }

/* --- 5. Cabeçalho ----------------------------------------- */

.cabecalho {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-cabecalho);
  background: color-mix(in oklab, var(--base) 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--saida-curta),
              background-color 260ms var(--saida-curta);
}
.cabecalho[data-rolado='sim'] {
  border-bottom-color: var(--fio);
  background: color-mix(in oklab, var(--base) 96%, transparent);
}

.cabecalho__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
  transition: min-height 260ms var(--saida-curta);
}
.cabecalho[data-rolado='sim'] .cabecalho__interno { min-height: 4.25rem; }

.cabecalho__logo { display: flex; align-items: center; flex: none; padding-block: 0.5rem; }
.cabecalho__logo img {
  width: clamp(9.5rem, 18vw, 12.5rem);
  transition: width 260ms var(--saida-curta);
}
.cabecalho[data-rolado='sim'] .cabecalho__logo img { width: clamp(8.5rem, 16vw, 11rem); }

.navegacao { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.navegacao a {
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--tinta-suave);
  padding-block: 0.35rem;
  position: relative;
  transition: color 200ms var(--saida-curta);
}
.navegacao a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1.5px;
  background: var(--carmim);
  scale: 0 1;
  transform-origin: left;
  transition: scale 300ms var(--saida);
}
.navegacao a:hover { color: var(--tinta); }
.navegacao a:hover::after { scale: 1 1; }

.cabecalho__acoes { display: flex; align-items: center; gap: 0.5rem; }

/* Em tela estreita o número não cabe ao lado do logo, mas ligar é a ação mais
   direta que existe para este público — então o botão vira só o ícone, com
   aria-label carregando o número. */
.cabecalho__telefone { padding-inline: 1.125rem; }
@media (max-width: 60rem) {
  .cabecalho__telefone {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
  }
  .cabecalho__telefone span { display: none; }
}

.menu-gatilho {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--fio-forte);
  border-radius: 999px;
  color: var(--tinta);
  cursor: pointer;
}
.menu-gatilho svg { width: 1.25rem; height: 1.25rem; }
.menu-gatilho .icone-fechar { display: none; }
.menu-gatilho[aria-expanded='true'] .icone-abrir { display: none; }
.menu-gatilho[aria-expanded='true'] .icone-fechar { display: block; }

@media (max-width: 60rem) {
  .navegacao--principal { display: none; }
  .cabecalho__acoes .botao--cheio { display: none; }
  .menu-gatilho { display: inline-flex; }
}

.menu-movel {
  display: none;
  padding-bottom: 2rem;
  border-top: 1px solid var(--fio);
  background: var(--base);
}
.menu-movel[data-aberto='sim'] { display: block; }
.menu-movel ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 2rem;
  display: grid;
  gap: 0.25rem;
}
.menu-movel ul a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.25rem;
  font-family: var(--display);
  text-decoration: none;
  border-bottom: 1px solid var(--fio);
}
.menu-movel .botao { margin-top: 0.75rem; width: 100%; justify-content: center; }
.menu-movel .botao--cheio { margin-top: 1.5rem; }

/* --- 6. Hero ---------------------------------------------- */

/* A foto da recepção é o fundo do hero. O texto é escuro sobre uma foto
   clara, então o véu é CLARO — um degradê da própria cor da página que
   se abre para a direita. Nada de scrim escuro: a página é de luz. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  min-height: clamp(37rem, 92vh, 44rem);
  padding-top: clamp(7.5rem, 5rem + 7vw, 10rem);
  padding-bottom: clamp(10.5rem, 30vh, 16rem);
  border-end-start-radius: var(--curva);
  border-end-end-radius: var(--curva);
  overflow: hidden;
}

/* Camadas todas positivas de propósito: com z-index negativo dentro deste
   hero (grid + isolation) a foto simplesmente não pintava — saía um retângulo
   creme. Foto 0, véu 1, texto 2. */
.hero__fundo { position: absolute; inset: 0; z-index: 0; }
.hero__fundo picture { display: block; width: 100%; height: 100%; }
.hero__fundo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 64rem) {
  .hero__fundo img { object-position: 57% center; }
}

/* Dois regimes de véu, porque a geometria do problema muda.

   Até 64rem o texto ocupa praticamente toda a largura: não há "direita" para
   revelar, então o véu é vertical — forte em cima, onde está o texto, e
   abrindo embaixo, onde a foto aparece.

   De 64rem para cima sobra espaço à direita do bloco de texto, e aí o véu é
   uma faixa ancorada no PRÓPRIO CONTAINER (não na viewport): o texto é
   centrado com o resto da página, então o véu tem que andar junto com ele.
   Um degradê preso à borda da tela cobre demais em 1024 e de menos em 1920. */

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(252 249 248 / 0.14);
}

/* O véu está ancorado no `.envoltorio`, cuja altura é exatamente a do bloco
   de texto. Por isso `100%` aqui SEGUE o texto: o degradê começa a abrir no
   ponto em que a última linha termina, não numa porcentagem chutada da
   altura do hero — que era o que deixava o endereço em 1,9:1 no celular. */
.hero__veu {
  display: block;
  position: absolute;
  z-index: 0;
  left: -50vw;
  right: -50vw;
  top: -100vh;
  height: calc(100vh + 100% + 5rem);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(252 249 248 / 0.96) 0,
    rgb(252 249 248 / 0.96) calc(100vh + 100% - 0.5rem),
    rgb(252 249 248 / 0.5) calc(100vh + 100% + 2rem),
    rgb(252 249 248 / 0) 100%
  );
}

@media (min-width: 64rem) {
  .hero {
    align-content: center;
    min-height: clamp(31rem, 80vh, 43rem);
    padding-bottom: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  }

  /* o véu geral vira só um leve levantamento da foto inteira */
  .hero::before {
    background: rgb(252 249 248 / 0.16);
  }

  .hero__veu {
    inset-block: -100vh;
    inset-inline-start: -50vw;
    inset-inline-end: auto;
    top: -100vh;
    height: auto;
    width: calc(50vw + var(--gutter) + 46rem + 7rem);
    background: linear-gradient(
      to right,
      rgb(252 249 248 / 0.97) 0,
      rgb(252 249 248 / 0.97) calc(50vw + var(--gutter) + 40rem),
      rgb(252 249 248 / 0.86) calc(50vw + var(--gutter) + 45rem),
      rgb(252 249 248 / 0) 100%
    );
  }
}

.hero .envoltorio { position: relative; z-index: 2; }
.hero__texto { position: relative; z-index: 1; max-width: 46rem; }

.hero h1 { margin-bottom: 1.5rem; }
.hero__lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--tinta-suave);
  max-width: 36ch;
  margin-bottom: 2.25rem;
}

.hero__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero__endereco {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--fio-forte) 70%, transparent);
  font-size: var(--t-sm);
  color: var(--tinta-suave);
  max-width: 34rem;
}
.hero__endereco svg { width: 1rem; height: 1rem; flex: none; translate: 0 0.15rem; color: var(--carmim); }

/* O coração-pincel entra por máscara CSS, não como SVG inline: um arquivo
   só, cacheado, recolorível por currentColor, e o HTML não engorda 40 KB. */
.pincel {
  aspect-ratio: 680 / 600;
  background-color: currentColor;
  -webkit-mask: url('../brand/marca-flat.svg') no-repeat center / contain;
  mask: url('../brand/marca-flat.svg') no-repeat center / contain;
}

/* --- 7. Sobre --------------------------------------------- */

.sobre__grade {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .sobre__grade { grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); }
  .sobre__foto { margin-top: clamp(3rem, 9vw, 8rem); }
}

.sobre h2 { max-width: 18ch; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.sobre__foto figure { margin: 0; }
.sobre__foto img { width: 100%; border-radius: 2px; }
.sobre__foto figcaption {
  margin-top: 0.875rem;
  font-size: var(--t-xs);
  color: var(--tinta-suave);
}

/* --- 8. Exames -------------------------------------------- */

.exames__cabeca {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
@media (min-width: 64rem) {
  .exames__cabeca {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: end;
    gap: 4rem;
  }
}
.exames__cabeca p { color: var(--tinta-suave); }

.lista-exames { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fio); }

.exame { position: relative; border-bottom: 1px solid var(--fio); }

/* O traço carmim que cresce da esquerda no hover — o único
   ornamento da lista, e ele responde à intenção do usuário. */
.exame::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--carmim);
  scale: 0 1;
  transform-origin: left;
  transition: scale 480ms var(--saida);
}
.exame:hover::after, .exame:focus-within::after { scale: 1 1; }

.exame__linha {
  display: grid;
  gap: 0.5rem 3rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  align-items: baseline;
}
@media (min-width: 48rem) {
  .exame__linha { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); }
}

.exame__nome {
  font-family: var(--display);
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color 300ms var(--saida-curta);
}
.exame:hover .exame__nome { color: var(--carmim); }

.exame__descricao { color: var(--tinta-suave); max-width: 56ch; }

.exames__rodape {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.exames__rodape p { font-size: var(--t-sm); color: var(--tinta-suave); max-width: 44ch; }

/* --- 9. Convênios ----------------------------------------- */

.convenios {
  background: var(--base-fundo);
  border-block: 1px solid var(--fio);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.convenios__grade { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 56rem) {
  .convenios__grade { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
}
.convenios h2 { font-size: var(--t-h3); }
.convenios p { color: var(--tinta-suave); max-width: 58ch; }
.convenios__acao { margin-top: 1.75rem; }

.planos {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.625rem;
}
.planos li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--fio-forte);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
}

/* --- 10. Estrutura ---------------------------------------- */

.estrutura__cabeca { max-width: 44rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.estrutura__cabeca p { margin-top: 1.5rem; color: var(--tinta-suave); font-size: var(--t-lead); }

/* Carrossel: grade de células iguais que corre na horizontal. É grid de
   verdade (grid-auto-flow: column) dentro de um scroller com scroll-snap —
   o dedo arrasta, a roda do mouse rola, o teclado navega, e as setas
   avançam uma página. Nenhuma biblioteca. */

.carrossel { position: relative; }

/* O trilho sangra até a borda direita da tela, mas a primeira foto começa
   alinhada com o título — daí o padding e o scroll-padding usarem a mesma
   conta do envoltório. Sangrar é o que deixa a foto crescer sem espremer o
   resto da página. */
.carrossel__trilho {
  --entrada: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter));

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84vw;
  gap: clamp(0.875rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) 0.5rem var(--entrada);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--entrada);
  scrollbar-width: none;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }

@media (min-width: 40rem) { .carrossel__trilho { grid-auto-columns: min(58vw, 30rem); } }
@media (min-width: 64rem) { .carrossel__trilho { grid-auto-columns: min(44vw, 46rem); } }

.carrossel__item { scroll-snap-align: start; }
.carrossel__item figure { margin: 0; }

.carrossel__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--base-fundo);
}

.carrossel__item figcaption {
  margin-top: 0.875rem;
  font-size: var(--t-xs);
  color: var(--tinta-suave);
}

.carrossel .envoltorio { margin-top: 0; }

.carrossel__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--fio);
}

.carrossel__contador {
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  color: var(--tinta-suave);
}
.carrossel__contador [data-atual] { color: var(--tinta); font-weight: 600; }

.carrossel__setas { display: flex; gap: 0.5rem; }

.seta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 1px solid var(--fio-forte);
  border-radius: 999px;
  background: none;
  color: var(--tinta);
  cursor: pointer;
  transition: background-color 220ms var(--saida-curta),
              border-color 220ms var(--saida-curta),
              opacity 220ms var(--saida-curta);
}
.seta svg { width: 1.125rem; height: 1.125rem; }
.seta:hover:not(:disabled) { background: var(--tinta); border-color: var(--tinta); color: var(--base); }
.seta:disabled { opacity: 0.3; cursor: default; }

/* --- 11. Faixa carmim ------------------------------------- */

.faixa {
  position: relative;
  background: var(--carmim-fundo);
  color: var(--sobre-carmim);
  overflow: hidden;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem);
}
.faixa__texto { position: relative; z-index: var(--z-conteudo); }
.faixa p {
  font-family: var(--display);
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 15em;
}
.faixa p.faixa__assinatura {
  margin-top: 2rem;
  font-family: var(--texto);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  max-width: none;
  text-transform: uppercase;
  opacity: 0.72;
}

.faixa__marca {
  position: absolute;
  z-index: var(--z-media);
  right: clamp(-9rem, -8vw, -3rem);
  top: 50%;
  translate: 0 -50%;
  width: clamp(18rem, 34vw, 32rem);
  color: var(--sobre-carmim);
  opacity: 0.12;
  pointer-events: none;
}

/* --- 12. Contato ------------------------------------------ */

.contato__grade { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 64rem) {
  .contato__grade { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); }
}

.contato h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }

.dados { display: grid; gap: 1.75rem; }
.dados__item { display: grid; gap: 0.3rem; padding-top: 1.25rem; border-top: 1px solid var(--fio); }
.dados__item dt { font-size: var(--t-xs); font-weight: 600; color: var(--tinta-suave); }
.dados__item dd { margin: 0; font-size: var(--t-lead); line-height: 1.4; }
.dados__item dd a {
  display: inline-block;
  padding-block: 0.25rem;
  text-decoration: none;
  text-underline-offset: 4px;
}
.dados__item dd a:hover { text-decoration: underline; text-decoration-color: var(--carmim); }
.dados__item dd .secundario { display: block; font-size: var(--t-sm); color: var(--tinta-suave); margin-top: 0.35rem; }

.contato__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* Mapa por clique: nada de iframe do Google carregando junto com a
   página — nem o peso, nem o cookie de terceiro antes da intenção. */
.mapa {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--fio);
  background: var(--base-fundo);
}
@media (min-width: 64rem) { .mapa { aspect-ratio: auto; height: 100%; min-height: 28rem; } }

.mapa iframe { width: 100%; height: 100%; border: 0; }

.mapa__fachada {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 22px,
      color-mix(in oklab, var(--fio) 55%, transparent) 22px 23px
    ),
    var(--base-fundo);
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--tinta);
}
.mapa__fachada span { font-size: var(--t-sm); color: var(--tinta-suave); max-width: 26ch; }

/* --- 13. Rodapé ------------------------------------------- */

.rodape {
  border-top: 1px solid var(--fio);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem;
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}
.rodape__topo {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 48rem) {
  .rodape__topo { grid-template-columns: minmax(0, 18rem) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}
.rodape__logo img { width: 11rem; margin-bottom: 1.25rem; }
.rodape h2 {
  font-family: var(--texto);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tinta);
  margin-bottom: 0.875rem;
}
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.rodape ul a { display: inline-block; padding-block: 0.3rem; }
.rodape a { text-decoration: none; }
.rodape a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rodape__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--fio);
  font-size: var(--t-xs);
}
.rodape__rt { color: var(--tinta); }

/* --- 14. Movimento ---------------------------------------- */

/* Regra: nada aqui esconde conteúdo por padrão. Se o JS não rodar,
   se a aba estiver oculta ou se for um renderer headless, a página
   já está no estado final. A animação só entra quando o JS marca
   <html data-motion="sim"> antes da primeira pintura. */

[data-motion='sim'] .anima-subida {
  opacity: 0;
  translate: 0 0.75em;
  animation: subir 900ms var(--saida) forwards;
  animation-delay: var(--atraso, 0ms);
}

@keyframes subir {
  to { opacity: 1; translate: 0 0; }
}

/* O coração é revelado por uma varredura de baixo para cima —
   o gesto da pincelada que o desenhou. */
[data-motion='sim'] .hero__marca {
  clip-path: inset(100% 0 0 0);
  animation: pincelada 1400ms var(--saida) 200ms forwards;
}

@keyframes pincelada {
  to { clip-path: inset(0 0 0 0); }
}

[data-motion='sim'] .hero__foto {
  clip-path: inset(0 0 100% 0);
  animation: revelar-foto 1100ms var(--saida) 120ms forwards;
}

@keyframes revelar-foto {
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  [data-motion='sim'] .anima-subida { opacity: 1; translate: none; }
  [data-motion='sim'] .hero__marca,
  [data-motion='sim'] .hero__foto { clip-path: none; }
}

/* --- 15. Página 404 --------------------------------------- */

.erro {
  min-height: 100svh;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  padding-block: 8rem 5rem;
}
.erro p.erro__codigo {
  font-family: var(--display);
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  line-height: 1;
  color: var(--carmim);
  margin-bottom: 1.5rem;
}
.erro h1 { margin-bottom: 1.5rem; max-width: 16ch; }
.erro p { font-size: var(--t-lead); color: var(--tinta-suave); max-width: 44ch; margin-bottom: 2.5rem; }
.erro__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.erro__marca {
  position: absolute;
  z-index: var(--z-fundo);
  right: clamp(-12rem, -10vw, -4rem);
  bottom: clamp(-8rem, -6vw, -2rem);
  width: clamp(22rem, 42vw, 40rem);
  color: var(--carmim);
  opacity: 0.055;
  pointer-events: none;
}
