/* Morar não é luxo: aluguel mais barato já! (Fábio Felix)
   Paleta extraída de fabiofelix.com.br (--ff-*). Mobile-first. */

@font-face {
  font-family: 'Open Sans';
  src: url('https://statia.evag.io/fonts/OpenSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('https://statia.evag.io/fonts/OpenSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Principais */
  --preto: #0a0a0a;        /* --ff-ink */
  --rosa: #d64c8f;         /* --ff-magenta (rosa intenso) */
  --creme: #f3efe4;        /* --ff-papel */
  --creme-logo: #f1ece1;   /* creme do logo horizontal */
  /* Apoio (usar com moderação) */
  --amarelo: #ffb000;      /* --ff-amarelo */
  --azul: #4f8cff;         /* --ff-azul */
  --verde: #7fbf7b;        /* --ff-verde */
  --erro: #8a0f3c;         /* vinho: 8,2:1 sobre o creme */

  --fonte-display: 'Space Grotesk', 'Arial Narrow', Arial, sans-serif;
  --fonte-texto: 'Open Sans', Arial, sans-serif;
  /* Fontes do rodapé, iguais às do fabiofelix.com.br (Adobe Fonts) */
  --fonte-ff-display: 'roc-grotesk-condensed', 'Space Grotesk', 'Arial Narrow', sans-serif;
  --fonte-ff-corpo: 'vinila', 'Open Sans', Arial, sans-serif;
  /* Container igual ao .limite do fabiofelix.com.br */
  --largura-pagina: 100%;                 /* --ff-largura-pagina */
  --recuo-layout: clamp(24px, 3vw, 64px); /* --ff-recuo-layout */
  --altura-topo: 56px;
  --borda: 3px solid var(--preto);
  --raio: 4px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--creme);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amarelo);
  color: var(--preto);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--largura-pagina);
  margin-inline: auto;
  padding-inline: var(--recuo-layout);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: var(--borda);
  border-radius: var(--raio);
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 10px;
  font-size: .8125rem;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: 1.25rem;
}

.btn-bloco {
  display: flex;
  width: 100%;
}

/* Preto sobre rosa: 5,0:1 (AA) */
.btn-rosa {
  background: var(--rosa);
  color: var(--preto);
  border-color: var(--preto);
}

.btn-preto {
  background: var(--preto);
  color: var(--creme);
  border-color: var(--preto);
}

.btn-contorno {
  background: transparent;
  color: var(--creme);
  border-color: var(--creme);
}

.btn-whatsapp {
  background: var(--preto);
  color: var(--creme);
  font-size: 1.125rem;
}

.btn-whatsapp img {
  width: 24px;
  height: 24px;
  /* ícone escuro (#2e2e2e) → creme */
  filter: invert(96%) sepia(6%) saturate(400%) hue-rotate(5deg);
}

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--preto);
  border-bottom: 3px solid var(--rosa);
}

.topo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--altura-topo);
}

.marca img {
  width: auto;
  height: 18px;
}

@media (min-width: 400px) {
  .marca img {
    height: 22px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: .875rem;
  }
}

.topo-nav {
  display: flex;
  gap: 8px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--altura-topo)), 640px);
  overflow: hidden;
  background: var(--rosa);
}

.hero-fundo,
.hero-fundo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fundo img {
  object-fit: cover;
  object-position: center bottom;
}

.hero-conteudo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 120px;
  text-align: center;
}

.hero-titulo {
  margin: 0;
  width: 100%;
  max-width: 760px;
}

.hero-titulo img {
  width: 100%;
  height: auto;
}

/* Seções */
.secao {
  padding: 56px 0;
}

.secao-creme {
  background: var(--creme);
  color: var(--preto);
}

.secao-rosa {
  background: var(--rosa);
  color: var(--preto);
  scroll-margin-top: var(--altura-topo);
}

.titulo-secao,
.titulo-form {
  margin: 0 0 24px;
  font-family: var(--fonte-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.titulo-secao {
  font-size: clamp(2rem, 7vw, 3.25rem);
}

/* Texto do abaixo-assinado */
.texto {
  position: relative;
  max-width: 1260px;
  margin-inline: auto;
}

.texto p {
  margin: 0 0 1.25em;
  font-size: 1.125rem; /* 18px no mobile */
  line-height: 1.6;
}

.simbolo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  fill: var(--rosa);
}

.num {
  padding: 0 .2em;
  background: var(--amarelo);
  color: var(--preto);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.dados {
  display: grid;
  gap: 12px;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
}

.dado {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--rosa);
  color: var(--preto);
  border: var(--borda);
  border-left-width: 12px;
  border-radius: var(--raio);
}

.dado-amarelo { border-left-color: var(--amarelo); }
.dado-azul { border-left-color: var(--azul); }
.dado-verde { border-left-color: var(--verde); }

.dado-num {
  font-family: var(--fonte-display);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.dado-txt {
  font-weight: 700;
  line-height: 1.35;
}

.texto-cta {
  margin-top: 32px !important;
  text-align: center;
}

/* Formulário */
.card-form {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 20px;
  background: var(--creme);
  color: var(--preto);
  border: var(--borda);
  border-radius: var(--raio);
}

.titulo-form {
  font-size: clamp(1.625rem, 6.5vw, 2.5rem);
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  #titulo-form {
    font-size: 2.375rem;
    white-space: nowrap;
  }
}

.titulo-form:focus {
  outline: none;
}

.contador {
  --cor-contador: var(--preto);
  margin: -8px 0 24px;
  font-weight: 700;
  text-align: center;
}

/* Contador com meta progressiva (montado pelo js/site.js) */
.contador-barra {
  position: relative;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--cor-contador);
}

.contador-atual {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--cor-contador);
  transition: width .6s cubic-bezier(.33, 1, .68, 1);
}

@media (prefers-reduced-motion: reduce) {
  .contador-atual {
    transition: none;
  }
}

.contador-texto {
  margin: 8px 0 0;
  color: var(--cor-contador);
  font-size: 1rem;
  line-height: 1.35;
}

.contador-hero {
  --cor-contador: var(--creme);
  width: min(100%, 560px);
  margin: -8px 0 0;
  padding: 12px 16px;
  background: var(--preto);
  color: var(--creme);
  border: var(--borda);
  border-radius: var(--raio);
}

.contador:empty {
  display: none;
}

.campo {
  margin-bottom: 16px;
}

.campo label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.obrig {
  color: var(--erro);
}

.opcional {
  font-weight: 400;
}

.campo input,
.campo select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  color: var(--preto);
  border: var(--borda);
  border-radius: var(--raio);
  font: inherit;
  font-size: 1rem; /* >=16px evita zoom no iOS */
}

.campo select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a0a0a' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.campo input::placeholder {
  color: #5c5c5c; /* 6,7:1 sobre branco */
}

.campo input:focus,
.campo select:focus {
  outline: 3px solid var(--rosa);
  outline-offset: 2px;
}

.campo [aria-invalid='true'] {
  border-color: var(--erro);
  border-style: dashed;
}

.erro {
  margin: 6px 0 0;
  color: var(--erro);
  font-size: .9375rem;
  font-weight: 700;
}

.erro:empty {
  display: none;
}

/* Mobile: tudo empilhado. A partir de 768px, 2 colunas:
   Nome | E-mail; Estado | Cidade; WhatsApp | novidades. */
.campos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .campos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  /* novidades ao lado do WhatsApp, alinhado ao centro do campo */
  .campos .check {
    align-self: start;
    margin: 49px 0 16px;
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 20px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--preto);
}

.consentimento {
  margin: 0 0 16px;
  font-size: .9375rem;
  text-align: center;
}

.consentimento a {
  font-weight: 700;
}

.btn-enviar {
  min-height: 60px;
  font-size: 1.375rem;
}

.btn-enviar[disabled] {
  cursor: progress;
  transform: none;
}

/* Spinner do evag: mantém o texto visível ao lado */
.btn-enviar .altcha-spinner {
  position: static;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* Agradecimento */
.obrigado {
  text-align: center;
}

.obrigado-txt {
  margin: -8px 0 24px;
  font-size: 1.125rem;
}

.compartilhar {
  display: grid;
  gap: 12px;
}

.compartilhar-outros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.compartilhar-outros .btn {
  padding-left: 8px;
  padding-right: 8px;
  font-size: .9375rem;
}

/* Rodapé: réplica do rodapé de fabiofelix.com.br (estilo-module__QT3OGW__*).
   Medidas e cores dos tokens --ff-* do site original. */
.rodape {
  padding: 48px 0 0;
  background: var(--preto);
  color: var(--creme);
}

.rodape-topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(243, 239, 228, .18);
}

.rodape-marca {
  display: flex;
}

.rodape-marca img {
  display: block;
  width: auto;
  height: 32px;
}

.rodape-colunas {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 3fr);
  gap: 64px;
}

.rodape-sobre {
  max-width: 34rem;
}

.rodape-sobre p {
  margin: 0 0 16px;
  color: rgba(243, 239, 228, .72);
  font-family: var(--fonte-ff-corpo);
  font-size: calc(1rem - 2px);
  line-height: 1.5;
}

.rodape-sobre .rodape-chamada {
  color: var(--creme);
}

.rodape-sobre > a {
  color: var(--creme);
  font-family: var(--fonte-ff-corpo);
  font-size: calc(1rem - 2px);
}

.rodape-redes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rodape-redes a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  color: rgba(243, 239, 228, .82);
  transition: color .15s cubic-bezier(.33, 1, .68, 1);
}

.rodape-redes svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rodape-redes a:hover,
.rodape-redes a:focus-visible {
  color: var(--amarelo);
}

.rodape-mapa {
  justify-self: stretch;
  width: 100%;
}

.rodape-mapa-colunas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 32px;
}

.rodape-mapa-colunas > :first-child {
  grid-column: 1 / -1;
}

.rodape-titulo {
  margin: 0 0 16px;
  color: var(--creme);
  font-family: var(--fonte-ff-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rodape-mapa .rodape-titulo {
  margin-bottom: 12px;
}

.rodape-lista {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--fonte-ff-corpo);
  font-weight: 400;
  font-size: calc(1rem - 2px);
  line-height: 1.5;
}

.rodape-lista.rodape-lista-colunas {
  display: block;
  columns: 3;
  column-gap: 16px;
}

.rodape-lista-colunas li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.rodape-lista a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(243, 239, 228, .82);
  text-decoration: none;
  transition: color .15s cubic-bezier(.33, 1, .68, 1);
}

.rodape-lista a:hover,
.rodape-lista a:focus-visible {
  color: var(--amarelo);
}

.rodape-lista .so-mobile {
  display: none;
}

.rodape-sub {
  margin-top: 32px;
  min-height: 3rem;
  background: var(--preto);
  color: rgba(243, 239, 228, .62);
  border-top: 1px solid rgba(243, 239, 228, .18);
}

.rodape-sub-interno {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3rem;
  font-family: var(--fonte-ff-corpo);
  font-size: calc(1rem - 2px);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.rodape-sub-inicio,
.rodape-sub-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rodape-sub-interno a {
  color: inherit;
}

.rodape-sub-interno a:hover,
.rodape-sub-interno a:focus-visible {
  color: var(--creme);
}

.rodape-estrela {
  flex: none;
  align-self: center;
  color: var(--amarelo);
}

/* "Feito por EVAG" (padrão do repo, ver feito_por_evag.md) */
.rodape-evag {
  display: flex;
  padding-top: 12px;
  padding-bottom: 16px;
}

.feito-por img {
  width: auto;
  height: 14px;
  /* ícone escuro (#2e2e2e) → creme, no mesmo tom dos textos legais */
  filter: invert(96%) sepia(6%) saturate(400%) hue-rotate(5deg);
  opacity: .62;
}

@media (max-width: 52rem) {
  .rodape-colunas {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rodape-sobre {
    max-width: 46ch;
  }

  .rodape-mapa-colunas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
  }

  .rodape-mapa-colunas > :first-child {
    grid-column: auto;
  }

  .rodape-mapa-colunas .so-desktop {
    display: none;
  }

  .rodape-lista .so-mobile {
    display: list-item;
  }
}

@media (max-width: 34rem) {
  .rodape {
    padding-top: 32px;
  }

  /* No original a linha não quebra e corta o excesso; aqui quebra para
     manter os links legais visíveis em telas estreitas. */
  .rodape-sub-interno {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
  }

  .rodape-sub-inicio,
  .rodape-sub-links {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Telas maiores */
@media (min-width: 700px) {
  :root {
    --altura-topo: 72px;
  }

  .marca img {
    height: 32px;
  }

  .btn-sm {
    min-height: 44px;
    padding: 8px 20px;
    font-size: 1rem;
  }

  .hero {
    min-height: min(calc(100svh - var(--altura-topo)), 760px);
  }

  .hero-conteudo {
    padding-top: 56px;
    padding-bottom: 200px;
  }

  .secao {
    padding: 88px 0;
  }

  /* Coluna de 1260px: corpo em 19px */
  .texto p {
    font-size: 1.1875rem;
  }

  .dados {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-form {
    padding: 44px 40px;
  }

}
