/* =========================================================
   Shala Academia — landing, versão B
   Mesmos textos, fotos e formulários da versão A, outra cara.

   Sistema
   - Uma cor de destaque: o magenta da marca. Nada mais compete com ele.
   - Neutros frios com um ligeiro tom rosa, para não cair no "creme".
   - Raios: imagens e cartões 20px, campos 12px, botões em pílula.
   - Movimento: só entradas suaves ao aparecer no ecrã e o toque
     nos botões. Tudo desliga com prefers-reduced-motion.
   ========================================================= */

:root {
  --fundo:        #FAF7F9;
  --superficie:   #FFFDFE;
  --faixa:        #F3ECF1;   /* secções alternadas, mesma família */
  --tinta:        #24151F;
  --tinta-2:      #5B4A56;
  --linha:        #E7DCE3;
  --destaque:     #CF0077;   /* magenta da marca, um pouco mais fundo para contraste com branco (5,1:1) */
  --destaque-txt: #A3005E;   /* links e rótulos sobre fundo claro */
  --destaque-sob: #FFFFFF;
  --destaque-ten: #FCE4F0;
  --foco:         #CF0077;
  --sombra:       0 24px 60px -28px rgba(80, 18, 60, .35);

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --corpo:   "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script:  "Playball", cursive;

  --raio:   20px;
  --raio-c: 12px;
  --largura: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo:        #160F14;
    --superficie:   #20171E;
    --faixa:        #1C1419;
    --tinta:        #F6EEF3;
    --tinta-2:      #C3B3BE;
    --linha:        #392B35;
    --destaque:     #FF5AAE;
    --destaque-txt: #FF7DBF;
    --destaque-sob: #23091A;   /* texto escuro sobre o rosa claro, para manter contraste */
    --destaque-ten: #3A1A2D;
    --foco:         #FF7DBF;
    --sombra:       0 24px 60px -28px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--tinta); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--destaque-txt); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.salta-conteudo { position: absolute; left: -999px; top: 0; background: var(--destaque); color: var(--destaque-sob); padding: .6rem 1rem; border-radius: var(--raio-c); z-index: 30; }
.salta-conteudo:focus { left: 1rem; top: 1rem; }

/* ---------- tipografia de secção ---------- */
.seccao { padding-block: clamp(4rem, 9vw, 7rem); }
.seccao--tinta { background: var(--faixa); }

.titulo-seccao {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* Rótulo em maiúsculas: usado só em três secções (Modalidades,
   Testemunhos e Perguntas). Nas outras, um rótulo discreto em itálico. */
.sobrancelha {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--destaque-txt);
  margin-bottom: .9rem;
}
.rotulo {
  font-style: italic;
  font-size: 1rem;
  color: var(--destaque-txt);
  margin-bottom: .6rem;
}

.lema { font-family: var(--script); font-size: clamp(1.5rem, 3vw, 1.85rem); color: var(--destaque); line-height: 1.25; margin-bottom: 1rem; text-wrap: balance; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--corpo);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--principal {
  width: 100%;
  padding: 1.05rem 1.5rem;
  background: var(--destaque);
  color: var(--destaque-sob);
  box-shadow: 0 14px 30px -14px rgba(207, 0, 119, .6);
}
.btn--principal:hover { filter: brightness(1.06); }
.btn--principal:disabled { opacity: .7; cursor: progress; }
.btn--pequeno { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--magenta { background: var(--destaque); color: var(--destaque-sob); }
.btn--fantasma { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha); }

/* ---------- HERO ----------
   Telemóvel: o vídeo ocupa quase o ecrã inteiro, com o texto por cima,
   em baixo, e um botão que leva ao formulário logo a seguir.
   Computador: o vídeo ocupa o hero todo e o formulário fica à direita,
   por cima do vídeo, visível sem fazer scroll. */
.hero { position: relative; isolation: isolate; }
.hero__media {
  position: absolute;
  inset: 0 0 auto 0;
  height: 88svh;
  min-height: 34rem;
  max-height: 60rem;
  overflow: hidden;
  z-index: -1;
  background: #2A1824;
}
.hero__media::after {
  /* véu escuro para o texto branco se ler sobre qualquer fotograma */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 8, 16, .35) 0%, rgba(20, 8, 16, 0) 28%),
    linear-gradient(0deg, rgba(20, 8, 16, .9) 0%, rgba(20, 8, 16, .7) 40%, rgba(20, 8, 16, .45) 55%, rgba(20, 8, 16, 0) 78%);
}
.hero__poster,
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.a-tocar { opacity: 1; }

.hero__grelha { display: grid; gap: 1.75rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.hero__texto {
  min-height: 88svh;
  min-height: max(34rem, min(88svh, 60rem));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 1.25rem 2rem;
  color: #FFF8FC;
}
.hero__logo { width: 64px; margin-bottom: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
/* Rosa forte, da família do magenta da marca. A sombra garante leitura
   quando o vídeo passa por fundos claros (paredes brancas, janelas). */
.hero .lema {
  color: #FF4FA8;
  margin-bottom: .6rem;
  text-shadow: 0 1px 2px rgba(20, 8, 16, .55), 0 2px 14px rgba(20, 8, 16, .5);
}
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.1rem, 7.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 18ch;
  margin-bottom: .9rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 248, 252, .9); max-width: 42ch; margin-bottom: 1.4rem; }
.hero__cta { width: auto; align-self: flex-start; padding-inline: 1.75rem; }

@media (min-width: 64rem) {
  .hero__media { height: 100%; max-height: none; min-height: 0; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(20, 8, 16, .82) 0%, rgba(20, 8, 16, .55) 42%, rgba(20, 8, 16, .15) 75%),
      linear-gradient(0deg, rgba(20, 8, 16, .45) 0%, rgba(20, 8, 16, 0) 40%);
  }
  .hero { min-height: min(100svh, 56rem); display: flex; align-items: stretch; }
  .hero__grelha {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    padding-block: clamp(2rem, 4vw, 3.5rem);
  }
  /* Texto centrado em altura com o formulário; o logo fica no topo. */
  .hero__texto { position: relative; min-height: 0; height: 100%; padding-block: 0; justify-content: center; }
  .hero__logo { position: absolute; top: 0; left: 0; width: 76px; margin: 0; }
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .hero__cta { display: none; }
}
/* Formulário do topo em duas colunas (Email | Estúdio, Modalidade | Horário):
   fica mais baixo e o botão aparece sem scroll num portátil. Só a partir de
   77rem, onde cada campo tem largura para o texto das listas. */
@media (min-width: 77rem) {
  .hero__form .form { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; align-items: start; }
  .hero__form .form__duas,
  .hero__form .form__pilha { display: contents; }
  .hero__form .campo--check,
  .hero__form .btn,
  .hero__form .nota-paga { grid-column: 1 / -1; }
}

/* ---------- provas ---------- */
.provas { border-block: 1px solid var(--linha); background: var(--superficie); }
.provas__lista {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  color: var(--tinta);
}
.provas__lista li { white-space: nowrap; }
/* Faixa com 4 frases: 2 por linha em tablet, todas numa linha a partir de 48rem.
   Abaixo de 40rem fica uma por linha (regra seguinte). */
@media (min-width: 40.01rem) { .provas__lista--4 { grid-template-columns: repeat(2, auto); } }
@media (min-width: 48rem) { .provas__lista--4 { grid-template-columns: repeat(4, auto); } }
@media (max-width: 40rem) {
  .provas__lista { grid-template-columns: 1fr; justify-content: start; gap: .35rem; text-align: left; }
}

/* ---------- formulário ---------- */
.cartao-form {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--sombra);
}
.cartao-form__titulo { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .35rem; }
.cartao-form__intro { color: var(--tinta-2); font-size: .98rem; margin-bottom: 1.25rem; }

.form { display: grid; gap: 1rem; }
.form__duas,
.form__pilha { display: grid; gap: 1rem; }
@media (min-width: 30rem) { .form__duas { grid-template-columns: 1fr 1fr; } }

.campo { display: grid; gap: .4rem; }
.campo label { font-size: .9rem; font-weight: 600; color: var(--tinta); }
.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo select {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--fundo);
  border: 1.5px solid var(--linha);
  border-radius: var(--raio-c);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.campo select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tinta-2) 50%), linear-gradient(135deg, var(--tinta-2) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.campo input::placeholder { color: var(--tinta-2); opacity: .85; }
.campo input:focus,
.campo select:focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 4px var(--destaque-ten); }
.campo [aria-invalid="true"],
.campo input[aria-invalid="true"] { border-color: #C0263A; }   /* o input[...] iguala a força da regra dos inputs */
.erro { margin: 0; font-size: .85rem; color: #B3122B; font-weight: 600; }
@media (prefers-color-scheme: dark) { .erro { color: #FF8A98; } .campo [aria-invalid="true"], .campo input[aria-invalid="true"] { border-color: #FF8A98; } }

.campo--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.campo--check input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--destaque); }
.campo--check label { font-weight: 400; font-size: .88rem; color: var(--tinta-2); line-height: 1.5; }
.campo--check .erro { grid-column: 1 / -1; }

.nota-paga { font-size: .85rem; color: var(--tinta-2); text-align: center; margin: 0; }

/* honeypot */
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- para quem é: frases em tipografia grande, sem cartões ---------- */
.frases { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 48rem) { .frases { grid-template-columns: 1fr 1fr; } }
.frases li { border-top: 2px solid var(--destaque); padding-top: 1.25rem; }
.frases h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}
.frases p { color: var(--tinta-2); max-width: 46ch; }

/* ---------- o que nos torna diferentes: foto e texto sobrepostos ---------- */
.diferentes { display: grid; gap: 2rem; align-items: center; }
.diferentes__foto { margin: 0; }
.diferentes__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); }
.diferentes__texto h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.texto-grande { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--tinta-2); }
.marcas { display: grid; gap: .65rem; margin-top: 1.5rem; }
.marcas li { padding-left: 1.4rem; position: relative; }
.marcas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .7rem;
  height: 2px;
  background: var(--destaque);
}
@media (min-width: 64rem) {
  .diferentes { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .diferentes__foto { grid-column: 1 / span 7; grid-row: 1; }
  .diferentes__texto {
    grid-column: 7 / span 6;
    grid-row: 1;
    background: var(--superficie);
    border-radius: var(--raio);
    padding: clamp(2rem, 3.5vw, 3rem);
    box-shadow: var(--sombra);
    position: relative;
  }
}

/* ---------- modalidades: bento ---------- */
.bento { display: grid; gap: 1rem; }
.bento__item {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.bento__item:hover img { transform: scale(1.03); }
.bento__texto { padding: 1.25rem 1.4rem 1.5rem; }
.bento__texto h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .45rem; }
.bento__texto p { color: var(--tinta-2); font-size: .98rem; }

@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bento__item--alto { grid-row: span 2; }
  .bento__item--alto img { aspect-ratio: auto; flex: 1; min-height: 18rem; }
  .bento__item--largo { grid-column: span 2; }
  .bento__item--largo img { aspect-ratio: 21 / 9; }
}

.modalidades__fim { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.ajuda-escolha { font-size: 1.1rem; color: var(--tinta-2); max-width: 52ch; }
.ajuda-escolha strong { color: var(--tinta); font-weight: 600; }
@media (min-width: 64rem) {
  .modalidades__fim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); }
  .modalidades__extra { position: sticky; top: 2rem; padding-top: .5rem; }
}

/* ---------- como funciona: percurso horizontal, sem números ---------- */
.percurso { display: grid; gap: 2rem; counter-reset: none; }
.percurso li { position: relative; padding-top: 1.5rem; }
.percurso li::before {
  /* a linha liga os passos e mostra a ordem; o título diz o passo */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--destaque) 0 2.5rem, var(--linha) 2.5rem);
}
.percurso h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.percurso p { color: var(--tinta-2); }
@media (min-width: 48rem) { .percurso { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 64rem) { .percurso { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ---------- testemunhos: um em destaque, dois ao lado ---------- */
.testemunhos { display: grid; gap: 1.25rem; }
.testemunho {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--raio);
  background: var(--superficie);
  border: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.testemunho blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.testemunho blockquote::before { content: "“"; }
.testemunho blockquote::after { content: "”"; }
.testemunho figcaption { font-weight: 600; color: var(--destaque-txt); }
.testemunho--destaque { background: var(--destaque-ten); border-color: transparent; }
.testemunho--destaque blockquote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
}
@media (min-width: 64rem) {
  .testemunhos { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .testemunho--destaque { grid-row: span 2; }
}

/* ---------- estúdios: galeria a deslizar + moradas ---------- */
.galeria {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-block: .25rem 2.5rem;
  scrollbar-width: none;            /* Firefox */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.galeria::-webkit-scrollbar { display: none; }   /* Chrome, Safari */
.galeria:active { cursor: grabbing; }
.galeria li { flex: 0 0 min(80vw, 30rem); }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); user-select: none; -webkit-user-drag: none; pointer-events: none; }

.moradas { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .moradas { grid-template-columns: 1fr 1fr; } }
.morada { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.6rem 1.75rem; }
.morada__espaco { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--tinta); margin-bottom: .4rem; }
.morada__rua { font-weight: 600; color: var(--destaque-txt); }
.morada p:last-child { color: var(--tinta-2); font-size: .97rem; }

/* ---------- FAQ: título fixo à esquerda ---------- */
.faq-grelha { display: grid; gap: 2rem; }
.faq-grelha__titulo h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
@media (min-width: 64rem) {
  .faq-grelha { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .faq-grelha__titulo { position: sticky; top: 2rem; align-self: start; }
}
.faq details { border-bottom: 1px solid var(--linha); }
.faq details:first-child { border-top: 1px solid var(--linha); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: .65rem;
  height: .65rem;
  border-right: 2px solid var(--destaque);
  border-bottom: 2px solid var(--destaque);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--tinta-2); padding: 0 2.5rem 1.4rem 0; max-width: 62ch; }

/* ---------- final ---------- */
.final { background: var(--destaque-ten); }
.final__grelha { display: grid; gap: 2.5rem; align-items: center; }
.final__texto h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 1rem; max-width: 14ch; }
.final__texto > p { font-size: 1.15rem; color: var(--tinta-2); max-width: 40ch; }
.final__ou { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linha); }
.final__ou p { margin-bottom: .75rem; color: var(--tinta-2); }
.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta);
  transition: background-color .2s, color .2s, transform .18s;
}
.whatsapp:hover { background: var(--tinta); color: var(--fundo); }
.whatsapp:active { transform: scale(.98); }
@media (min-width: 64rem) {
  .final__grelha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--tinta); color: color-mix(in srgb, var(--fundo) 78%, transparent); padding-block: 3rem 6rem; font-size: .92rem; }
.rodape strong { color: var(--fundo); }
.rodape p { margin-bottom: .3rem; }
.rodape a { color: color-mix(in srgb, var(--destaque) 55%, var(--fundo)); }
.rodape__grelha { display: grid; gap: 1.5rem; }
.rodape__logo { width: 64px; }
.rodape__credito { margin-top: .75rem; font-size: .82rem; opacity: .7; }
.rodape__credito span { font-weight: 700; color: #FFE45C; }
@media (min-width: 48rem) {
  .rodape { padding-bottom: 3rem; }
  .rodape__grelha { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .rodape__fim { text-align: right; }
}
@media (prefers-color-scheme: dark) {
  .rodape { background: #0F0A0D; color: #CBBCC6; }
  .rodape strong { color: #F6EEF3; }
}

/* ---------- barra fixa em telemóvel ---------- */
.barra-movel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--fundo) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linha);
  z-index: 20;
}
.btn--barra { padding: .9rem 1.5rem; }
@media (min-width: 64rem) { .barra-movel { display: none; } }

/* ---------- consentimento ---------- */
.cookies {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--superficie);
  color: var(--tinta);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--sombra);
  font-size: .9rem;
  display: grid;
  gap: .8rem;
  z-index: 25;
}
.cookies p { margin: 0; color: var(--tinta-2); }
.cookies__botoes { display: flex; gap: .55rem; }
.cookies__botoes .btn { flex: 1; }
.cookies[hidden], .barra-movel[hidden] { display: none; }

/* ---------- movimento ----------
   Só com JavaScript ativo (classe .js no html): sem JS, tudo aparece
   logo. O movimento serve para guiar a leitura de cima para baixo. */
@media (prefers-reduced-motion: no-preference) {
  .js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .revelar.visivel { opacity: 1; transform: none; }
  .hero__texto, .hero__form, .hero__foto { animation: entrar .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__form { animation-delay: .08s; }
  .hero__foto { animation-delay: .16s; }
  @keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
