/* =====================================================================
   HOME — ajustes de conteudo (Black Edition), escopados em #topo.
   So a HOME. Nao toca telas internas (#appRoot/internas.css) nem admin.
   Carregado por ultimo para vencer landing-theme.css.
   ===================================================================== */

/* --- SOBRE: numeros de estatistica grandes, em Cinzel (serifada) --- */
#topo .pg-card strong {
  margin: 0 0 12px !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #e5bd67 !important;
  text-transform: none !important;
}
@media (max-width: 760px) {
  #topo .pg-card strong { font-size: clamp(2rem, 8.4vw, 2.6rem) !important; }
}

/* --- LOCALIZACAO: kicker "Localizacao" em Cinzel (serifada) --- */
#topo .location-kicker {
  font-family: "Cinzel", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
}

/* --- HERO: titulo em Cinzel, 2 linhas que NUNCA quebram no meio --- */
/* Cada linha usa white-space:nowrap; o font-size responsivo (vw) garante que
   "A principal premiacao" e "do mercado imobiliario" caibam em qualquer largura. */
/* Filho DIRETO (> span / > em): nao atinge os .rv-char do reveal por letra. */
#topo .hero .pg-hero-title > span,
#topo .hero .pg-hero-title > em {
  display: block !important;
  white-space: nowrap !important;
}
#topo .hero .pg-hero-title {
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(20px, 2.4vw, 34px) !important;
  line-height: 1.06 !important;
}
@media (max-width: 760px) {
  #topo .hero .pg-hero-title { font-size: 5.6vw !important; }
}

/* --- HERO: oculta os marcadores de paginacao (tracinhos dos 2 banners).
   O slider segue trocando os banners sozinho (setupHero no app.js); so o
   indicador visual some. --- */
#topo .hero .hero-pagination { display: none !important; }

/* --- HERO: os dois botoes numa linha so, mesma altura e proporcao --- */
#topo .hero-actions .primary-button,
#topo .hero-actions .hero-ranking-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 54px !important;
  padding: 0 18px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  letter-spacing: 0.04em !important;
}

/* --- COMO FUNCIONA: 3 blocos em LINHA UNICA no desktop, empilha no mobile --- */
#topo .pg-format {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1080px !important;
}

/* HERO: bloco de prazo (texto + cronometro) no topo do hero */
#topo .hero .hero-deadline { margin: 0 0 22px; }
#topo .hero .hero-deadline-text {
  margin: 0 0 12px;
  color: #ffe3a5;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#topo .hero .hero-deadline .hero-countdown { margin-top: 0; }

/* REGULAMENTO: head "Votacao aberta..." + cronometro abaixo dos 2 boxes */
#topo #formato .reg-deadline { max-width: 560px; margin: 0 auto 26px; text-align: center; }
#topo #formato .reg-deadline-title {
  margin: 0 0 18px;
  color: #ffe3a5;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
#topo #formato .reg-deadline .vote-countdown { margin-top: 0; }
@media (max-width: 760px) {
  #topo .pg-format { grid-template-columns: 1fr !important; }
}

/* --- REVEAL por letra dos titulos principais (hero + h2 das secoes) --- */
/* landing.js quebra o texto em .rv-char e adiciona .rv-on ao entrar na viewport. */
/* .rv-word mantem as letras da mesma palavra juntas (quebra so nos espacos). */
#topo .rv-word {
  display: inline-block !important;
  white-space: nowrap;
}
#topo .rv-char {
  display: inline-block !important;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(6px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
  transition-delay: calc(var(--i, 0) * 26ms);
  will-change: opacity, transform, filter;
}
#topo .rv-on .rv-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  #topo .rv-char { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* --- LOCALIZACAO: blocos de data e local com icone dourado --- */
#topo .location-copy .loc-block { margin: 6px 0 26px; }
#topo .location-copy .loc-block:last-of-type { margin-bottom: 30px; }
#topo .loc-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}
#topo .loc-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#topo .loc-ico {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}
#topo .loc-ico svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #e5bd67;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#topo .loc-title .loc-ico svg { width: 28px; height: 28px; }

/* ============================================================
   DOBRA FUNDADORES (estatica, apos o hero)
   ============================================================ */
#topo .founders-kicker {
  margin: 0 0 18px;
  color: #e5bd67;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
#topo .founders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 48px auto 0;
}
#topo .founder-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(229, 189, 103, 0.24);
  border-radius: 20px;
  background: #050403;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease;
}
#topo .founder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 227, 165, 0.45);
}
#topo .founder-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
#topo .founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.94) 86%, #000 100%);
}
#topo .founder-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 20px 20px;
}
#topo .founder-copy h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
#topo .founder-gold {
  margin: 0 0 5px;
  color: #e5bd67;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.28;
}
#topo .founder-muted {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
}
#topo .founders-footnote {
  max-width: 960px;
  margin: 42px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.5;
}
#topo .founders-footnote strong {
  color: #e5bd67;
  font-weight: 800;
}
@media (max-width: 900px) {
  #topo .founders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(600px, 100%);
    margin-top: 38px;
  }
}
/* Mobile: nome do fundador menor, para os nomes de 2 linhas (Flavio Augusto,
   Caio Carneiro) caberem no rodape do card sem subir sobre o rosto. */
@media (max-width: 760px) {
  #topo .founder-copy h3 { font-size: 1.02rem; line-height: 1.08; margin-bottom: 8px; }
}
@media (max-width: 420px) {
  #topo .founder-copy { padding: 18px 16px 16px; }
  #topo .founder-gold { font-size: 0.875rem; }
}

/* ============================================================
   AJUSTES DE CONTEUDO (nova copy Black Edition)
   ============================================================ */

/* --- HERO: subtitulo de apoio abaixo do titulo --- */
#topo .hero .pg-hero-subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* HERO: cronometro (mesmo visual do regulamento) com largura contida */
#topo .hero .hero-countdown {
  max-width: 420px;
  margin-top: 20px;
}

/* --- HERO: prazo da votacao em destaque (pill dourada), perto da data --- */
#topo .hero .pg-deadline {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 0;
  padding: 8px 15px;
  border: 1px solid rgba(229, 189, 103, 0.55);
  border-radius: 999px;
  color: #ffe3a5;
  background: rgba(229, 189, 103, 0.10);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(14px, 2.5vw, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- REGULAMENTO: prazo em destaque no topo da secao (pill dourada, centrada) --- */
#topo #formato .pg-deadline-badge {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 9px 18px;
  border: 1px solid rgba(229, 189, 103, 0.55);
  border-radius: 999px;
  color: #ffe3a5;
  background: rgba(229, 189, 103, 0.10);
  font-size: clamp(14px, 2.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- SOBRE: logo Real Estate Awards acima do titulo (substitui o texto) --- */
#topo #sobre .pg-intro { text-align: center; }
#topo #sobre .sobre-awards-logo {
  display: block;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  margin: 0 auto 22px;
}

/* --- Subtitulo e descricao sob os titulos das secoes (Premios / Como funciona) --- */
#topo .pg-intro-sub {
  margin: 16px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}
#topo .pg-intro-desc {
  margin: 14px auto 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.6;
}
/* textos abaixo de "O que sera premiado" maiores */
#topo #premios .pg-intro-sub {
  font-size: clamp(18px, 1.9vw, 25px);
  font-weight: 600;
}
#topo #premios .pg-intro-desc {
  font-size: clamp(15px, 1.3vw, 19px);
}
/* botao "Ver todas as premiacoes" um pouco maior */
#topo #premios .pg-all .primary-button {
  min-height: 56px !important;
  padding: 0 38px !important;
  font-size: 16px !important;
}
/* Subtitulo "A regra e simples...": no mobile cada frase em uma linha
   (evita "mobiliza." cair sozinho); no desktop flui normalmente. */
@media (max-width: 760px) {
  #topo .pg-intro-sub.sub-split span { display: block; }
}

/* --- SOBRE: cards de estatistica sem paragrafo (so numero + headline) --- */
/* Sem a descricao, encurta o card e centraliza o conteudo verticalmente. */
#topo .pg-stats .pg-card { min-height: 240px !important; }
#topo .pg-stats .pg-card-body {
  min-height: 240px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}
#topo .pg-stats .pg-card h3 { margin-bottom: 0 !important; }
/* item 9: centralizar numero + rotulo dentro de cada card */
#topo .pg-stats { justify-items: stretch !important; }
#topo .pg-stats .pg-card { width: 100% !important; }
#topo .pg-stats .pg-card-body {
  align-items: center !important;
  text-align: center !important;
}
@media (max-width: 760px) {
  #topo .pg-stats .pg-card,
  #topo .pg-stats .pg-card-body { min-height: 190px !important; }
}

/* --- BOTOES: fonte uniforme e TEXTO EM MAIUSCULAS em todos os CTAs da home --- */
#topo .primary-button,
#topo .hero-ranking-button,
#topo .pg-all .primary-button,
#topo .location-link {
  font-size: 14px !important;
  text-transform: uppercase !important;
}
/* "Votar" dos cards de candidato nos trilhos: so maiuscula (mantem o tamanho). */
#topo .pg-person a { text-transform: uppercase !important; }
@media (max-width: 760px) {
  #topo .primary-button,
  #topo .hero-ranking-button,
  #topo .pg-all .primary-button,
  #topo .location-link {
    font-size: 14px !important;
  }
}

/* --- SLOGAN: faixa final antes do footer --- */
#topo .pg-slogan-band {
  padding: clamp(64px, 9vw, 104px) 22px;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(229, 189, 103, 0.09), transparent 62%), #000;
  border-top: 1px solid rgba(229, 189, 103, 0.18);
}
#topo .pg-slogan {
  max-width: 940px;
  margin: 0 auto;
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* --- REGULAMENTO: numeros das regras (01/02/03) sem os icones removidos --- */
#topo #formato .pg-format article > span:first-child {
  display: block;
  margin: 0 0 14px;
  color: #d7aa5f !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
}

/* --- COMO FUNCIONA (item 3): contagem regressiva do encerramento --- */
#topo .vote-countdown {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
#topo .cd-unit {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border: 1px solid rgba(229, 189, 103, 0.28);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(30, 25, 19, 0.92), rgba(6, 5, 4, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#topo .cd-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: #e5bd67;
  font-variant-numeric: tabular-nums;
}
#topo .cd-label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
#topo .vote-countdown.is-ended {
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid rgba(229, 189, 103, 0.4);
  border-radius: 12px;
  background: rgba(229, 189, 103, 0.08);
}
#topo .cd-ended {
  color: #ffe3a5;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- PREMIOS: carrossel de TEXTO das categorias (setas + autoplay) --- */
#topo .cat-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1140px, 100%);
  margin: 44px auto 72px;   /* respiro generoso para a secao/trilhos abaixo */
}
#topo .cat-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
#topo .cat-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* arraste: swipe horizontal aqui, scroll vertical fica com a pagina */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#topo .cat-carousel-track.is-dragging { cursor: grabbing; }
#topo .cat-card { -webkit-user-drag: none; }
#topo .cat-card {
  flex: 0 0 auto;
  width: 316px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 30px;
  border: 1px solid rgba(229, 189, 103, 0.24);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(20, 18, 16, 0.98), rgba(4, 4, 4, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
#topo .cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 227, 165, 0.5);
  background: linear-gradient(155deg, rgba(28, 24, 19, 0.98), rgba(8, 7, 5, 0.98));
}
#topo .cat-card-name {
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}
#topo .cat-card-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid rgba(229, 189, 103, 0.4);
  border-radius: 999px;
  color: #e5bd67;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#topo .cat-carousel-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(229, 189, 103, 0.34);
  border-radius: 12px;
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
#topo .cat-carousel-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 189, 103, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 760px) {
  #topo .cat-carousel { gap: 8px; margin: 34px auto 52px; }
  /* Uma card por vez, ocupando exatamente o espaco entre as setas (viewport).
     Assim nada e cortado e as setas nao cobrem o conteudo. */
  #topo .cat-carousel-track { width: 100%; }
  #topo .cat-card {
    flex: 0 0 100%;
    width: auto;
    min-height: 150px;
    padding: 26px 22px;
    gap: 12px;
  }
  #topo .cat-card-name { font-size: 1.35rem; overflow-wrap: break-word; }
  #topo .cat-carousel-arrow { width: 40px; height: 40px; }
}

/* ============================================================
   PISO DE FONTE / EXCECAO DO RODAPE
   Piso de 14px aplicado nos proprios arquivos (min de clamps/px/rem).
   O rodape e a UNICA excecao: continua pequeno.
   ============================================================ */
.site-footer, .site-footer span, .site-footer a,
.footer-powered, .footer-handle, .footer-badge { font-size: 10px !important; }
@media (max-width: 760px) {
  .site-footer, .site-footer span, .site-footer a,
  .footer-powered, .footer-handle, .footer-badge { font-size: 8px !important; }
}
