/* Página de apresentação do Condo Mural. Mesma marca do painel (frontend/painel/src/estilos.css):
   aço escovado da cabine, verde Canastra e o âmbar do indicador de andar. */
:root {
  --aco: #e4e8e6;
  --aco-escuro: #cfd6d3;
  --painel: #f8faf9;
  --grafite: #1b2320;
  --grafite-suave: #55635d;
  --canastra: #1d6a4e;
  --canastra-escuro: #154d39;
  --aceso: #f0a531;
  --aceso-claro: #fde7bf;
  --azul: #0b2a55;

  /* Cores da TV: as mesmas do player (frontend/player/estilo.css) */
  --tv-fundo: #0e1714;
  --tv-superficie: #16241f;
  --tv-texto: #f4efe4;
  --tv-suave: #a9b5ad;
  --tv-ocre: #e2a53c;
  --tv-verde: #5cb888;
  --tv-vermelho: #e8604a;
  --tv-agua: #4fa9dc;

  --fonte-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --fonte-texto: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --fonte-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --texto-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --texto-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  --texto-hero: clamp(2.6rem, 1.3rem + 5vw, 5.4rem);

  --largura: 72rem;
  --margem: max(16px, calc((100% - var(--largura)) / 2));
  --espaco-secao: clamp(4rem, 3rem + 5vw, 8.5rem);
  --transicao: 700ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background-color: var(--aco);
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.18) 0 1px, transparent 1px 3px);
  color: var(--grafite);
  font-family: var(--fonte-texto);
  font-size: var(--texto-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--aceso); outline-offset: 3px; border-radius: 4px; }

.pular {
  position: absolute; left: 16px; top: -4rem; z-index: 20;
  background: var(--grafite); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
}
.pular:focus { top: 0.75rem; }

/* ---------------------------------------------------------------- topo e indicador de andar */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--margem);
  background: rgb(228 232 230 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--aco-escuro);
}
.topo-marca {
  display: flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-family: var(--fonte-display); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.topo-marca img { border-radius: 8px; background: #fff; }
.topo-entrar {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--grafite);
  transition: background-color 150ms, color 150ms;
}
.topo-entrar:hover { background: var(--grafite); color: #fff; }

.andar {
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border-radius: 8px;
  background: #121a17;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.7);
  font-family: var(--fonte-mono);
  color: var(--aceso);
  text-shadow: 0 0 8px rgb(240 165 49 / 0.55);
}
.andar-seta { font-size: 0.7rem; transition: transform 300ms; }
.andar-seta.descendo { transform: rotate(180deg); }
.andar-numero { font-size: 1.3rem; font-weight: 600; min-width: 1ch; text-align: center; }
.andar-nome { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f6c97f; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 2rem + 4vw, 6rem) var(--margem) var(--espaco-secao);
}
.hero h1 {
  font-family: var(--fonte-display); font-weight: 800; font-size: var(--texto-hero);
  line-height: 0.98; letter-spacing: -0.03em; color: var(--azul);
}
.hero h1 em {
  font-style: normal; color: var(--canastra);
  text-decoration: underline; text-decoration-color: var(--aceso);
  text-decoration-thickness: 0.12em; text-underline-offset: 0.08em;
}
.hero-sub { margin-top: 1.5rem; max-width: 34rem; font-size: 1.15em; color: var(--grafite-suave); }

.acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 150ms, background-color 150ms, box-shadow 150ms;
}
.botao:active { transform: translateY(1px); }
.botao-principal { background: var(--canastra); color: #fff; box-shadow: 0 6px 18px -8px var(--canastra-escuro); }
.botao-principal:hover { background: var(--canastra-escuro); }
.botao-secundario { background: var(--painel); color: var(--grafite); box-shadow: inset 0 0 0 1.5px var(--aco-escuro); }
.botao-secundario:hover { box-shadow: inset 0 0 0 1.5px var(--grafite); }

/* Cabine: o painel de aço do elevador com o visor de andar e a TV embutida */
.cabine {
  position: relative;
  padding: 3.25rem 1.25rem 1.25rem;
  border-radius: 14px;
  background-color: #d5dbd8;
  background-image:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.32) 0 1px, transparent 1px 2px),
    linear-gradient(160deg, #eef1f0, #c3cbc7 55%, #dde2e0);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / 0.12), 0 30px 60px -30px rgb(11 42 85 / 0.45);
}
.cabine-visor {
  position: absolute; top: 0.9rem; left: 50%; transform: translateX(-50%);
  padding: 0.15rem 0.8rem; border-radius: 6px;
  background: #121a17; color: var(--aceso);
  font-family: var(--fonte-mono); font-weight: 600; font-size: 1.05rem;
  text-shadow: 0 0 8px rgb(240 165 49 / 0.6);
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.7);
}
.cabine-visor span { font-size: 0.65em; vertical-align: 0.15em; }
.cabine figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.8rem; color: var(--grafite-suave); }

.tv {
  padding: 10px; border-radius: 10px; background: #050807;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), inset 0 0 0 1px #1d2623;
}
.tv-tela {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px;
  background: var(--tv-fundo); color: var(--tv-texto);
  container-type: inline-size;
}
.tv-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw;
  padding: 6cqw 7cqw;
  opacity: 0; transition: opacity var(--transicao) ease;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 3.2cqw; line-height: 1.3; color: var(--tv-suave);
}
.tv-slide.ativo { opacity: 1; }
.tv-slide strong { font-size: 6.4cqw; line-height: 1.1; color: var(--tv-texto); font-weight: 700; }
.tv-etiqueta {
  align-self: flex-start;
  font-size: 2.4cqw; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tv-ocre);
}
.tv-urgente { background: linear-gradient(var(--tv-vermelho), var(--tv-vermelho)) top / 100% 2.2cqw no-repeat, var(--tv-fundo); }
.tv-urgente .tv-etiqueta { color: var(--tv-vermelho); }
.tv-fonte { font-size: 2.6cqw; border-top: 1px solid #26392f; padding-top: 1.6cqw; }
.tv-temp { font-size: 1.6em; color: var(--tv-agua); margin-right: 0.15em; }

.tv-barras { display: flex; align-items: flex-end; gap: 5cqw; height: 26cqw; }
.tv-barra { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1cqw; height: 100%; font-size: 2.4cqw; }
.tv-barra i { display: block; border-radius: 1cqw 1cqw 0 0; background: var(--tv-verde); height: 92%; }
.tv-barra-despesa i { background: var(--tv-ocre); height: 78%; }
.tv-barra-reserva i { background: var(--tv-agua); height: 40%; }

.tv-anuncio { padding-right: 34cqw; }
.tv-anuncio b { color: var(--tv-ocre); font-family: var(--fonte-mono); letter-spacing: 0.05em; }
.tv-qr {
  position: absolute; right: 7cqw; top: 50%; transform: translateY(-50%);
  width: 22cqw; aspect-ratio: 1; border-radius: 1.2cqw;
  border: 1.8cqw solid #fff;
  background:
    linear-gradient(#fff, #fff) 0 0 / 40% 40% no-repeat,
    repeating-conic-gradient(#0e1714 0 25%, #fff 0 50%) 0 0 / 22% 22%;
  box-shadow: inset 0 0 0 1.2cqw #fff;
}

/* ---------------------------------------------------------------- andares */
.andar-secao { padding: var(--espaco-secao) var(--margem); }
.andar-secao h2, .contato h2 {
  max-width: 48rem;
  font-family: var(--fonte-display); font-weight: 700; font-size: var(--texto-h2);
  line-height: 1.05; letter-spacing: -0.02em;
}
.sobrancelha {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
  font-family: var(--fonte-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--canastra);
}
.sobrancelha::before {
  content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--aceso); box-shadow: 0 0 0 3px rgb(240 165 49 / 0.25);
}

/* 1º andar: vitrine com hierarquia (o aviso urgente é o protagonista) */
.vitrine {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; margin-top: 3rem;
}
.item { padding: 1.75rem; border-radius: 14px; background: var(--painel); }
.item h3 { font-family: var(--fonte-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.6rem; }
.item p { color: var(--grafite-suave); }
.item-destaque {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 20rem; color: #fff;
  background: linear-gradient(var(--tv-vermelho), var(--tv-vermelho)) top / 100% 10px no-repeat, var(--tv-fundo);
}
.item-destaque h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.item-destaque p { color: var(--tv-suave); }
.item-largo { grid-column: span 2; background: var(--aco-escuro); }

/* 2º andar: faixa escura, como a tela */
.andar-secao-escura { background: var(--grafite); color: var(--tv-texto); }
.andar-secao-escura .sobrancelha { color: var(--tv-verde); }
.lista-painel {
  list-style: none; margin-top: 3rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem;
}
.lista-painel li { padding: 1.25rem 0; border-top: 1px solid #33413b; color: var(--tv-suave); }
.lista-painel li:last-child:nth-child(odd) { grid-column: span 2; }
.lista-painel strong { display: block; color: var(--tv-texto); font-size: 1.1rem; margin-bottom: 0.2rem; }

/* 3º andar: passos de verdade, em ordem */
.passos { list-style: none; counter-reset: passo; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.passos li { counter-increment: passo; padding-top: 1.25rem; border-top: 3px solid var(--grafite); }
.passos li::before {
  content: counter(passo); display: block; margin-bottom: 0.75rem;
  font-family: var(--fonte-mono); font-weight: 600; font-size: 2.4rem; line-height: 1;
  color: var(--aceso); text-shadow: 0 0 10px rgb(240 165 49 / 0.35);
}
.passos h3 { font-family: var(--fonte-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.5rem; }
.passos p { color: var(--grafite-suave); }

/* 4º andar */
.andar-secao-ocre { background: var(--aceso-claro); }
.andar-secao-ocre .sobrancelha { color: #8a5a0c; }
.anuncios { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.anuncios p + p { margin-top: 1rem; }
.nota { font-size: 0.9rem; color: #6d5226; padding-left: 1rem; border-left: 3px solid var(--aceso); }

/* 5º andar */
.garantias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.garantias div { padding: 1.5rem; border-radius: 14px; background: var(--painel); }
.garantias dt { font-family: var(--fonte-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.35rem; }
.garantias dd { color: var(--grafite-suave); }
.administradoras { margin-top: 2.5rem; max-width: 46rem; font-size: 1.1em; }

/* Cobertura: contato */
.contato {
  padding: var(--espaco-secao) var(--margem);
  background: var(--canastra); color: #fff;
}
.contato .sobrancelha { color: var(--aceso-claro); }
.contato > p:not(.sobrancelha) { max-width: 38rem; margin-top: 1rem; color: #d6eae1; font-size: 1.1em; }
.contato .botao-principal { background: var(--aceso); color: var(--grafite); box-shadow: none; }
.contato .botao-principal:hover { background: #ffbe55; }
.contato .botao-secundario { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #8fc3ad; }
.contato .botao-secundario:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--margem); font-size: 0.9rem; color: var(--grafite-suave);
}
.rodape a { display: inline-flex; align-items: center; min-height: 44px; }
.rodape img { width: 8.5rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: #fff; }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .vitrine { grid-template-columns: 1fr 1fr; }
  .item-destaque { grid-row: auto; grid-column: span 2; min-height: 14rem; }
  .passos { grid-template-columns: 1fr; gap: 1.5rem; }
  .anuncios { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .andar-nome { display: none; }
  .topo-marca span { display: none; }
  .topo-entrar { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
  .vitrine, .lista-painel, .garantias { grid-template-columns: 1fr; }
  .item-destaque, .item-largo, .lista-painel li:last-child:nth-child(odd) { grid-column: auto; }
  .acoes .botao { flex: 1 1 100%; }
  .cabine { padding: 2.9rem 0.75rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tv-slide, .andar-seta, .botao, .topo-entrar { transition: none; }
}
