/* ==========================================================================
   BN Clinic — folha de estilo compartilhada (index.html + curso.html)
   Base: clientes/BN Clinic/identidade/design-guide.md
   Blush #f9f2f2 · dourado como metal · mármore · Montserrat · respiro largo
   ========================================================================== */

:root {
  /* Cores de marca */
  --blush:        #f9f2f2;
  --blush-fundo:  #fdf9f9;
  --blush-medio:  #f1e2e0;
  --blush-forte:  #e7d2ce;
  --branco:       #ffffff;

  /* Dourado — usar como metal, nunca como bloco chapado */
  --ouro:         #b3924f;
  --ouro-claro:   #d9c08a;
  --ouro-escuro:  #8a6f39;
  --ouro-metal:   linear-gradient(135deg, #b8964f 0%, #e0c98f 45%, #a5842f 100%);

  /* Texto */
  --tinta:        #2c2523;
  --tinta-media:  #5d524d;
  --tinta-suave:  #8a7d77;

  /* Estrutura */
  --raio:         20px;
  --raio-sm:      14px;
  --raio-pill:    999px;
  --sombra:       0 2px 4px rgba(44, 37, 35, .03), 0 10px 30px rgba(44, 37, 35, .05);
  --sombra-alta:  0 4px 8px rgba(44, 37, 35, .04), 0 20px 50px rgba(44, 37, 35, .08);
  --borda:        1px solid var(--blush-medio);

  --secao-y:      clamp(4.5rem, 10vw, 8.5rem);
  --container:    1180px;
}

/* --------------------------------------------------------- reset e base */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto anula o atributo height="" do HTML, pra que aspect-ratio valha */
img    { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }   /* o browser aplica margin: 1em 40px por padrão */
a   { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 .6em;
  color: var(--tinta);
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 1.03rem; font-weight: 500; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--tinta-media); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--tinta); }

::selection { background: var(--blush-forte); color: var(--tinta); }

/* --------------------------------------------------------- utilitários */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-estreito { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.secao { padding-block: var(--secao-y); }
.secao--blush { background: var(--blush); }
.secao--blush-suave { background: var(--blush-fundo); }

.eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 1.4rem;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.75;
  color: var(--tinta-media);
}

.centro      { text-align: center; }
.centro .eyebrow { margin-inline: auto; }
.cabecalho-secao { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.centro.cabecalho-secao { margin-inline: auto; }

.regua {
  width: 44px; height: 1px;
  background: var(--ouro-metal);
  border: 0; margin: 0 0 1.6rem;
}
.centro .regua { margin-inline: auto; }

/* --------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--raio-pill);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.btn--ouro {
  background: var(--ouro-metal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(138, 111, 57, .22);
}
.btn--ouro:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(138, 111, 57, .3); }

.btn--linha {
  background: transparent;
  border-color: var(--tinta);
  color: var(--tinta);
}
.btn--linha:hover { background: var(--tinta); color: var(--blush); transform: translateY(-2px); }

.btn--claro {
  background: var(--branco);
  border-color: var(--blush-medio);
  color: var(--tinta);
}
.btn--claro:hover { border-color: var(--ouro); color: var(--ouro-escuro); transform: translateY(-2px); }

.btn svg { width: 17px; height: 17px; flex: none; }

.grupo-btn { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.centro .grupo-btn { justify-content: center; }

/* --------------------------------------------------------- navegação */

.topo {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.topo.rolou { border-bottom-color: var(--blush-medio); box-shadow: 0 4px 20px rgba(44, 37, 35, .04); }

.topo__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .8rem;
}

.topo__logo img { height: 56px; width: auto; }

.topo__nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin-left: auto;
}
.topo__nav a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta-media);
  transition: color .2s ease;
}
.topo__nav a:hover { color: var(--ouro-escuro); }
.topo__nav a[aria-current="page"] { color: var(--tinta); }

.topo__cta { flex: none; }
.topo__cta .btn { padding: .78rem 1.5rem; font-size: .72rem; }

/* --------------------------------------------------------- hero */

.hero { background: var(--blush); overflow: hidden; }

.hero__grade {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero__texto {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  align-self: center;
  max-width: 560px;
}
.hero__texto h1 { margin-bottom: 1.2rem; }
.hero__texto .lead { margin-bottom: 2.2rem; }

.hero__figura { position: relative; min-height: 420px; }
.hero__figura img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

/* Variante de hero: texto centralizado + imagem larga embaixo (curso.html) */
.hero--capa .hero__grade { grid-template-columns: 1fr; }
.hero--capa .hero__texto {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-bottom: clamp(2.5rem, 5vw, 3.8rem);
}
.hero--capa .hero__texto .grupo-btn { justify-content: center; }
.hero--capa .hero__figura { min-height: 0; }
.hero--capa .hero__figura img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-position: center 28%;
}

/* Selos abaixo do hero */
.faixa-selos {
  background: var(--branco);
  border-bottom: var(--borda);
}
.faixa-selos ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
}
.faixa-selos li {
  padding: 1.5rem .5rem;
  text-align: center;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--tinta-media);
  border-bottom: var(--borda);
}
.faixa-selos li:last-child { border-bottom: 0; }
.faixa-selos strong {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: .4rem;
}

/* --------------------------------------------------------- cards */

.grade { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grade--2 { }
.grade--3 { }

.card {
  background: var(--branco);
  border: var(--borda);
  border-radius: var(--raio);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card--blush { background: var(--blush); border-color: var(--blush-forte); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }

.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .95rem; }

/* Bloco de profissional + lista de procedimentos */
.bloco-pro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--branco);
  border: var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.bloco-pro + .bloco-pro { margin-top: 1.8rem; }
.bloco-pro__foto { position: relative; min-height: 320px; background: var(--blush); }
.bloco-pro__foto img { width: 100%; height: 100%; object-fit: cover; }
.bloco-pro__corpo { padding: clamp(1.8rem, 4vw, 3rem); }
.bloco-pro__corpo h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 300; margin-bottom: .3rem; }
.bloco-pro__papel {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ouro);
  display: block; margin-bottom: 1.1rem;
}

.lista-proc { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.lista-proc li {
  padding: 1rem 0;
  border-top: var(--borda);
  display: grid;
  gap: .2rem;
}
.lista-proc li:last-child { border-bottom: var(--borda); }
.lista-proc dt, .lista-proc .nome {
  font-size: .97rem; font-weight: 500; color: var(--tinta);
}
.lista-proc .detalhe { font-size: .87rem; color: var(--tinta-suave); line-height: 1.6; }

/* Listas de "é pra você / talvez não seja" */
.lista-marca { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .95rem; }
.lista-marca li {
  position: relative; padding-left: 1.9rem;
  font-size: .95rem; color: var(--tinta-media); line-height: 1.6;
}
.lista-marca li::before {
  content: ""; position: absolute; left: .1rem; top: .38em;
  width: 13px; height: 7px;
  border-left: 1.5px solid var(--ouro); border-bottom: 1.5px solid var(--ouro);
  transform: rotate(-45deg);
}
.lista-marca--nao li::before {
  width: 13px; height: 1.5px;
  border: 0; background: var(--tinta-suave);
  transform: none; top: .78em;
}

/* --------------------------------------------------------- passos */

.passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.passos li {
  counter-increment: passo;
  position: relative;
  padding-left: 3.4rem;
}
.passos li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute;
  left: 0; top: .05rem;
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  border: 1px solid var(--ouro-claro);
  border-radius: 50%;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ouro-escuro);
  background: var(--branco);
}
.passos h4 { margin-bottom: .25rem; }
.passos p  { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------- galeria */

.galeria { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.galeria figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--raio-sm);
  aspect-ratio: 3 / 4;   /* a proporção mora na figure — a img só preenche */
  background: var(--blush-medio);
}
.galeria img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* o hover mexe no brilho, não no transform — o transform fica reservado
     pra animação de entrada ligada à rolagem, senão um cancela o outro */
  transition: filter .5s ease;
}
.galeria figure:hover img { filter: brightness(1.06) saturate(1.04); }

/* --------------------------------------------------------- curso: preço */

.card-curso {
  background: var(--branco);
  border: var(--borda);
  border-radius: var(--raio);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.card-curso__tag {
  align-self: flex-start;
  font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ouro-escuro);
  background: var(--blush);
  border: 1px solid var(--blush-forte);
  border-radius: var(--raio-pill);
  padding: .4rem .9rem;
  margin-bottom: 1.3rem;
}
.card-curso h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 300; }
.card-curso__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .82rem; color: var(--tinta-suave);
  padding-block: 1rem;
  border-top: var(--borda); border-bottom: var(--borda);
  margin-block: 1.2rem;
}
.card-curso__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.card-curso ul { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .7rem; }
.card-curso ul li {
  position: relative; padding-left: 1.5rem;
  font-size: .93rem; color: var(--tinta-media); line-height: 1.6;
}
.card-curso ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ouro-claro);
}
.card-curso__preco { margin-top: auto; padding-top: .4rem; }
.card-curso__preco .rotulo {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tinta-suave); margin-bottom: .2rem;
}
.card-curso__preco .valor {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem); font-weight: 300; letter-spacing: -.02em;
  color: var(--tinta); display: block; line-height: 1.2;
}
.card-curso__preco .obs { font-size: .8rem; color: var(--tinta-suave); }
.card-curso .btn { margin-top: 1.5rem; justify-content: center; }

/* --------------------------------------------------------- citação */

.citacao {
  border-left: 2px solid var(--ouro-claro);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  margin: 0;
}
.citacao p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.015em;
  color: var(--tinta);
}
.citacao footer {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ouro);
  margin-top: 1.2rem;
}

/* --------------------------------------------------------- FAQ */

.faq { border-top: var(--borda); }
.faq details {
  border-bottom: var(--borda);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tinta);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ouro-escuro); }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--ouro); border-bottom: 1.5px solid var(--ouro);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .resposta { padding: 0 2.5rem 1.7rem 0; }
.faq .resposta p { font-size: .95rem; }

/* --------------------------------------------------------- avaliações */

.selo-nota{
  display:flex; width:fit-content; max-width:100%; align-items:center;
  gap:1.6rem; margin:0 auto 3rem; padding:1.2rem 2.1rem;
  background:var(--branco); border:1px solid var(--blush-forte);
  border-radius:999px; box-shadow:0 18px 40px -22px rgba(44,37,35,.18);
}
.selo-nota__score{ text-align:right; line-height:1; }
.selo-nota__score .numero{ font-size:2.2rem; font-weight:600; color:var(--tinta); }
.selo-nota__score .estrelas{ margin-top:.3rem; }
.selo-nota__linha{ width:1px; height:36px; background:var(--blush-forte); flex-shrink:0; }
.selo-nota__meta{ display:flex; align-items:center; gap:.7rem; text-align:left; }
.selo-nota__meta .google-g{ width:20px; height:20px; flex-shrink:0; }
.selo-nota__count{ font-size:.92rem; font-weight:600; color:var(--tinta); }
.selo-nota__sub{ font-size:.76rem; color:var(--tinta-suave); }

.estrelas{ color:var(--ouro); font-size:.85rem; letter-spacing:.14em; }

.grade-avaliacoes{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1.3rem;
}
.card-avaliacao{
  position:relative; overflow:hidden;
  background:var(--branco); border:1px solid var(--blush-forte);
  border-radius:22px; padding:2rem 1.9rem 1.8rem;
  box-shadow:0 20px 44px -26px rgba(44,37,35,.16);
}
.card-avaliacao::before{
  content:"\201D"; position:absolute; top:-.5rem; right:1.2rem;
  font-family:Georgia,serif; font-size:5rem; color:var(--ouro);
  opacity:.16; line-height:1; pointer-events:none;
}
.card-avaliacao .estrelas{ margin-bottom:.9rem; }
.card-avaliacao .depoimento{
  position:relative; margin:0 0 1.3rem; font-size:.95rem;
  line-height:1.6; color:var(--tinta);
}
.depoimento__autor{
  position:relative; display:flex; align-items:center; gap:.8rem;
  padding-top:1rem; border-top:1px solid var(--blush-medio);
}
.depoimento__autor .avatar{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--ouro); color:var(--ouro-escuro);
  display:flex; align-items:center; justify-content:center;
  font-size:.85rem; font-weight:600;
}
.depoimento__autor .nome{ font-size:.85rem; font-weight:600; color:var(--tinta); }
.depoimento__autor .data{ font-size:.74rem; color:var(--tinta-suave); }

.avaliacoes-cta{ text-align:center; margin-top:2.4rem; }

@media (max-width:640px){
  .grade-avaliacoes{ grid-template-columns:1fr; }
  .selo-nota{ flex-direction:column; gap:.9rem; padding:1.5rem 2rem; }
  .selo-nota__score{ text-align:center; }
  .selo-nota__linha{ width:30px; height:1px; }
  .selo-nota__meta{ flex-direction:column; text-align:center; gap:.35rem; }
}

/* --------------------------------------------------------- contato / rodapé */

.contato-grade { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }

.dado { padding-block: 1.15rem; border-bottom: var(--borda); }
.dado:first-child { border-top: var(--borda); }
.dado dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ouro); margin-bottom: .35rem;
}
.dado dd { margin: 0; font-size: .97rem; color: var(--tinta-media); }
.dado dd a { text-decoration: none; border-bottom: 1px solid var(--blush-forte); }
.dado dd a:hover { border-bottom-color: var(--ouro); }

.dado--mapa { padding-bottom: 1.5rem; }

.mapa-embed {
  margin-top: .9rem; padding: 6px; border-radius: 20px;
  background: linear-gradient(135deg, #d8b878, var(--ouro) 55%, #b48c4c);
  box-shadow: 0 10px 26px rgba(169, 130, 74, 0.22);
}
.mapa-embed > iframe {
  display: block; width: 100%; aspect-ratio: 16 / 10; border: 0;
  border-radius: 15px;
}

.rodape {
  background: var(--blush);
  border-top: 1px solid var(--blush-forte);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.rodape__topo {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--blush-forte);
}
.rodape__logo img { height: 72px; width: auto; margin-bottom: 1.4rem; }
.rodape h4 {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ouro); margin-bottom: 1rem;
}
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rodape ul li { font-size: .92rem; line-height: 1.55; color: var(--tinta-media); }
.rodape ul a { font-size: inherit; color: inherit; text-decoration: none; }
.rodape ul a:hover { color: var(--ouro-escuro); }
.rodape__base {
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .78rem; color: var(--tinta-suave);
}

/* --------------------------------------------------------- WhatsApp flutuante */

.wa-flutua {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.3rem;
  border-radius: var(--raio-pill);
  background: #25d366;
  color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-flutua:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 211, 102, .45); }
.wa-flutua svg { width: 20px; height: 20px; flex: none; }
.wa-flutua span { display: none; }

/* ==========================================================================
   MOVIMENTO AO ROLAR

   Duas camadas, de propósito:

   1. BASE — IntersectionObserver + transition. Funciona em qualquer
      navegador. É o piso: ninguém vê a página quebrada.
   2. REALCE — animações CSS ligadas à rolagem (`animation-timeline`),
      dentro de @supports. Onde o navegador entende, o progresso da
      animação acompanha o scroll de verdade. Onde não entende, some
      sem deixar buraco.

   Tudo desliga em `prefers-reduced-motion`.
   ========================================================================== */

/* ---------------------------------------------------- 1. camada base */

.revelar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.revelar.visivel { opacity: 1; transform: none; }

/* Mesma ideia, mas os filhos entram um atrás do outro em vez de em bloco */
.escalonar > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1);
}
.escalonar.visivel > * { opacity: 1; transform: none; }
.escalonar.visivel > *:nth-child(1) { transition-delay: 0s;    }
.escalonar.visivel > *:nth-child(2) { transition-delay: .085s; }
.escalonar.visivel > *:nth-child(3) { transition-delay: .17s;  }
.escalonar.visivel > *:nth-child(4) { transition-delay: .255s; }
.escalonar.visivel > *:nth-child(5) { transition-delay: .34s;  }
.escalonar.visivel > *:nth-child(6) { transition-delay: .425s; }
.escalonar.visivel > *:nth-child(7) { transition-delay: .51s;  }
.escalonar.visivel > *:nth-child(8) { transition-delay: .595s; }

/* Fio dourado de progresso de leitura, na base do topo fixo */
.progresso {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--ouro-metal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* A régua dourada dos títulos começa recolhida e se desenha ao entrar */
.regua { transform-origin: 0 50%; }
.centro .regua { transform-origin: 50% 50%; }

/* ------------------------------------------- 2. realce ligado à rolagem */

@media (prefers-reduced-motion: no-preference) {

  @supports (animation-timeline: scroll()) {
    /* O fio acompanha o quanto da página já foi lida */
    .progresso {
      animation: desenhar-x linear;
      animation-timeline: scroll(root block);
    }

    /* Hero: a foto anda mais devagar que o texto */
    @media (min-width: 900px) {
      .hero:not(.hero--capa) .hero__figura img {
        animation: deriva linear;
        animation-timeline: scroll(root block);
        animation-range: 0 100vh;
      }
    }
  }

  @supports (animation-timeline: view()) {
    /* A régua se desenha conforme o título sobe na tela */
    .regua {
      animation: desenhar-x linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 18%;
    }

    /* Fotos da galeria saem de um zoom leve pro enquadramento final */
    .galeria img {
      animation: aproximar linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

@keyframes desenhar-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes deriva {
  from { transform: translateY(-2.5%) scale(1.06); }
  to   { transform: translateY( 2.5%) scale(1.06); }
}

@keyframes aproximar {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar,
  .escalonar > * { opacity: 1; transform: none; transition: none; }
  .regua { transform: none; }
  .progresso { display: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------- responsivo */

/* No mobile a navegação vira uma segunda linha dentro do topo */
@media (max-width: 899px) {
  .topo__interno { flex-wrap: wrap; gap: .5rem 1rem; padding-bottom: .55rem; }
  .topo__logo img { height: 44px; }
  .topo__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    padding-top: .6rem;
    border-top: var(--borda);
  }
  .topo__nav a { font-size: .68rem; letter-spacing: .08em; }
  .topo__cta { margin-left: auto; }
  .topo__cta .btn { padding: .68rem 1.2rem; font-size: .67rem; letter-spacing: .08em; }
}

@media (min-width: 640px) {
  .faixa-selos ul { grid-template-columns: repeat(2, 1fr); }
  .faixa-selos li { border-right: var(--borda); }
  .faixa-selos li:nth-child(2n) { border-right: 0; }
  .faixa-selos li:nth-last-child(-n+2) { border-bottom: 0; }
  .grade--2 { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .wa-flutua span { display: inline; }
}

@media (min-width: 900px) {
  /* Hero de duas colunas: o texto alinha com o container, a foto sangra
     até a borda direita da tela. Sem vw — % evita o pulo da barra de rolagem. */
  .hero:not(.hero--capa) .hero__grade {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-left: max(1.25rem, calc((100% - var(--container)) / 2));
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .hero__figura { min-height: 620px; }
  .hero--capa .hero__figura img { aspect-ratio: 21 / 8; }
  .faixa-selos ul { grid-template-columns: repeat(4, 1fr); }
  .faixa-selos li { border-bottom: 0; }
  .faixa-selos li:nth-child(2n) { border-right: var(--borda); }
  .faixa-selos li:last-child { border-right: 0; }
  .grade--3 { grid-template-columns: repeat(3, 1fr); }
  .bloco-pro { grid-template-columns: .8fr 1.2fr; }
  /* invertido: foto vai pra direita e a coluna larga continua sendo a do texto */
  .bloco-pro--invertido { grid-template-columns: 1.2fr .8fr; }
  .bloco-pro--invertido .bloco-pro__foto { order: 2; }
  .contato-grade { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .rodape__topo { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
  .passos { gap: 1.8rem; }
  .wa-flutua { right: 1.8rem; bottom: 1.8rem; }
}

@media (min-width: 1100px) {
  .galeria { grid-template-columns: repeat(4, 1fr); }
}
