/* ============================================================
   Real State — Grupo HP · base.css
   Reset, tipografia, grade de 8px, utilitários estruturais.
   Depende de tokens.css e fonts.css.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-brand);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--mult-azul); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: var(--ls-tight); text-wrap: balance; }

.display  { font-size: clamp(38px, 6vw, var(--fs-display)); line-height: var(--lh-display); font-weight: 700; }
.h1       { font-size: clamp(32px, 5vw, var(--fs-h1)); line-height: var(--lh-h1); font-weight: 700; }
.h2       { font-size: clamp(26px, 4vw, var(--fs-h2)); line-height: var(--lh-h2); font-weight: 700; }
.h3       { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.h4       { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.body-lg  { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.small    { font-size: var(--fs-small); line-height: var(--lh-small); }

.overline {
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
}
.overline--accent { color: var(--mult-amarelo-doca); }
.overline--azul   { color: var(--mult-azul); }

.text-secondary { color: var(--ink-secondary); }
.on-dark { color: var(--ink-on-dark); }
.on-dark .text-secondary { color: rgba(255, 255, 255, 0.72); }

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 100% - var(--sp-6));
  margin-inline: auto;
}
.container--wide { width: min(1400px, 100% - var(--sp-4)); margin-inline: auto; }

.section    { padding-block: var(--sp-12); }
.section--tight { padding-block: var(--sp-8); }
.section--dark  { background: var(--bg-dark); color: var(--ink-on-dark); }
.section--soft  { background: var(--bg-soft); }
.section--azul  { background: var(--mult-azul); color: var(--ink-on-dark); }

.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head .overline { margin-bottom: var(--sp-2); }
.section-head p { margin-top: var(--sp-2); color: var(--ink-secondary); }
.section--dark .section-head p,
.section--azul .section-head p { color: rgba(255, 255, 255, 0.72); }

.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-10); }
}

/* ---------- Motivo roofline ---------- */
.roofline        { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
.roofline-invert { clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%); }
.roofline-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%); }

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 2px solid var(--mult-amarelo-doca);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mult-azul-profundo); color: var(--mult-areia);
  border-bottom: 2px solid var(--mult-amarelo-doca);
  padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Slots de mídia — EXTINTOS ----------
   O .media-slot renderizava como conteúdo mesmo vazio: um campo
   azul chapado com grade tênue. Era o placeholder que deixou o
   quadro mais caro do site em branco. Nenhuma página de produção
   usa mais o slot; toda fotografia entra como <img> de verdade
   dentro de uma .figure. A regra abaixo garante que um resto de
   marcação nunca mais ocupe espaço na tela. */
.media-slot { display: none !important; }

/* selo de material pendente / ilustrativo */
.media-note {
  position: absolute; left: var(--sp-2); bottom: var(--sp-2); z-index: 3;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(8, 28, 43, 0.65);
  padding: 6px 10px; border-radius: var(--radius-sm);
  pointer-events: none;
}

/* selo "a validar com o cliente" (cases sem liberação) */
.validar-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mult-azul);
  border: 1px dashed var(--mult-azul);
  padding: 4px 10px; border-radius: var(--radius-sm);
}

/* ---------- Rodapé de página / util ---------- */
.divider { border: 0; border-top: var(--border); margin-block: var(--sp-6); }
.section--dark .divider, .section--azul .divider { border-top: 1px solid var(--mult-linha-escura); }
