/* VID Home & Club (Nobilitá): mantém o esqueleto do styles.css (Scenario design
   system) e veste com a paleta extraída dos renders reais do book (Folder
   Digital + 18 imagens): navy profundo (fachada/anoitecer) + champagne/caramelo
   (madeira do hall + letreiro "VID 715") + azul vívido (céu de anoitecer do hero
   e reflexo do céu na piscina coberta do rooftop, acento exclusivo do VID) +
   creme quente (fundo) + a camada de interação do ÚNICCO: grain, marquee,
   molduras com hover-zoom e reveal.
   Tudo escopado em body.vid para não afetar outras páginas. Ver PROJECT.md
   (seção "Paleta de cores da marca") para a origem pixel a pixel de cada tom.
*/

body.vid {
  /* Paleta VID: navy profundo + champagne/caramelo + azul (acento anoitecer/piscina) */
  --navy:        #14243D;
  --navy-2:      #1E3A5F;
  --navy-deep:   #0A1424;
  --champagne:   #D3A876;
  --champagne-2: #E3C296;
  --champagne-deep: #A87C4E;
  --bg:          #F7F1E6;
  --bg-deep:     #EFE4D0;
  --paper:       #FFFCF5;
  --ink:         var(--navy);
  --ink-2:       #3A5068;
  --muted:       #647184;
  --line:        rgba(20, 36, 61, 0.16);
  --line-2:      rgba(20, 36, 61, 0.08);
  /* acento azul (exclusivo do VID): céu de anoitecer do hero + reflexo do céu
     na piscina térmica coberta do rooftop */
  --azul:        #2E86D6;
  --azul-2:      #1F65AC;

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN: textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.vid .grain { position: relative; overflow: hidden; }
body.vid .grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body.vid .grain > .container,
body.vid .contato.grain .contato-inner,
body.vid footer.grain .row,
body.vid footer.grain .legal { position: relative; z-index: 2; }
body.vid .hero.grain .stack,
body.vid .hero.grain .top-meta,
body.vid .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO (fachada retrato, anoitecer: recentra na faixa do letreiro/térreo)
   ============================================================ */
body.vid .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.vid .hero.empreendimento .photo {
  background-position: center 40%;
}
body.vid .hero.empreendimento .scrim {
  background: linear-gradient(to top,
    rgba(10,20,36,.84) 0%, rgba(10,20,36,.74) 14%, rgba(10,20,36,.56) 32%,
    rgba(10,20,36,.34) 50%, rgba(10,20,36,.12) 66%, rgba(10,20,36,0) 80%);
}
body.vid .hero h1 { text-shadow: 0 1px 2px rgba(4,10,18,.92), 0 2px 10px rgba(4,10,18,.6); text-wrap: balance; }
body.vid .hero h1 .roman { text-shadow: 0 1px 2px rgba(4,10,18,.94), 0 2px 10px rgba(4,10,18,.6), 0 2px 6px rgba(4,10,18,.7); }
body.vid .hero h1 em { font-style: italic; color: var(--champagne-2);
  text-shadow: 0 1px 2px rgba(4,10,18,.92), 0 2px 6px rgba(4,10,18,.72); }
body.vid .hero .tag { text-shadow: 0 1px 3px rgba(4,10,18,.85), 0 2px 10px rgba(4,10,18,.5); opacity: 1; }
body.vid .hero .stack .eyebrow { color: var(--champagne); }

/* ============================================================
   MARQUEE: faixa em azul (acento exclusivo, tema anoitecer/rooftop)
   ============================================================ */
body.vid .vid-marquee {
  background: var(--azul-2);
  color: var(--paper);
  border-top: 1px solid rgba(211,168,118,0.24);
  border-bottom: 1px solid rgba(211,168,118,0.24);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.vid .vid-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: vid-marquee 40s linear infinite;
}
body.vid .vid-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.vid .vid-marquee .dot { color: var(--champagne-2); opacity: 0.9; }
@keyframes vid-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.vid .vid-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito: 1 larga + 3 normais)
   ============================================================ */
body.vid .vid-figrow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.vid .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.vid .vid-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.vid .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.vid .frame:hover img { transform: scale(1.06); }
body.vid .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,20,36,0.76) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.vid .frame:hover::after { opacity: 1; }
body.vid .frame figcaption {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
  color: var(--paper);
  transform: translateY(8px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
body.vid .frame:hover figcaption { transform: none; opacity: 1; }
body.vid .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.85; color: var(--champagne-2);
}
body.vid .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
body.vid .frame figcaption .n,
body.vid .frame figcaption .s {
  text-shadow: 0 1px 3px rgba(4, 10, 18, 0.9), 0 2px 12px rgba(4, 10, 18, 0.6);
}
@media (max-width: 760px) {
  body.vid .vid-figrow { grid-template-columns: 1fr; }
  body.vid .vid-figrow .frame.wide { aspect-ratio: 16/9; }
  body.vid .frame figcaption { opacity: 1; transform: none; }
  body.vid .frame::after { opacity: 1; }
}

/* mapa na localização: reaproveita a fachada diurna (sem foto de mapa própria) */
body.vid .loc-grid .frame.map {
  aspect-ratio: 3/4; height: auto; min-height: 320px;
  background: var(--bg-deep);
}
body.vid .loc-grid .frame.map img { object-fit: cover; object-position: center 30%; }

/* ============================================================
   BENTO / ROOFTOP: 6 células padrão (piscina, gourmet social,
   gourmet sport bar, fitness, pet , usa os spans c1..c6 da base)
   ============================================================ */
body.vid .club-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.vid .club-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.vid .club-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.vid .club-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   TIPOLOGIAS: grade de "Final" reaproveitando .amen-grid/.amen
   ============================================================ */
body.vid .tipologia-planta {
  position: relative; margin: clamp(28px, 3.4vw, 48px) auto 0; max-width: 720px;
  background: var(--bg); border: 1px solid var(--line); cursor: zoom-in;
}
body.vid .tipologia-planta-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain;
}
body.vid .tipologia-planta figcaption {
  padding: 12px 16px; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2); border-top: 1px solid var(--line);
}
body.vid .intro.tipologias .amen-grid { margin-top: clamp(28px, 3.2vw, 44px); }
/* .amen .s vem do styles.css com cor clara fixa (pensada pra secao ESCURA, tipo
   .club/rooftop) -- aqui .amen-grid esta numa secao clara (--bg), sobrescreve pra
   nao ficar quase invisivel (achado do dono, 10/08/2026) */
body.vid .intro.tipologias .amen .s { color: var(--muted); }
body.vid .vid-nota {
  margin-top: clamp(24px, 3vw, 40px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--champagne-deep);
  background: var(--paper);
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
  max-width: 68ch;
}

/* ============================================================
   TABELA: CTA band
   ============================================================ */
body.vid .vid-cta-band {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
body.vid .vid-cta-band p {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.vid .vid-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND: selo vira monograma champagne com fundo navy
   ============================================================ */
body.vid .top .brand .selo,
body.vid footer .brand-foot .selo {
  background: #14243D url("../../assets/selo-cd.webp") center/84% no-repeat;
  border-radius: 50%; border: none; clip-path: none;
  box-shadow: 0 0 0 1px rgba(211,168,118,0.35);
}
body.vid .top .brand .selo::before,
body.vid footer .brand-foot .selo::before {
  content: none;
}

body.vid footer { background: var(--navy-deep); }
body.vid footer .brand-foot small { color: var(--champagne); }

/* contato: imagem de fundo (piscina térmica coberta do rooftop) */
body.vid .contato .bg {
  background: url("assets/piscina-01.webp") center 42%/cover no-repeat;
  transform: scale(1.04);
}

/* CD-CONTATO-BG:start , gerado por scripts/build_contato_bg.py, nao edite a mao */
@media (max-width: 480px) and (max-resolution: 1.99dppx) { body.vid .contato .bg { background-image: url("assets/piscina-01-480.webp"); } }
@media (max-width: 480px) and (min-resolution: 2dppx) { body.vid .contato .bg { background-image: url("assets/piscina-01-960.webp"); } }
@media (min-width: 481px) and (max-width: 760px) { body.vid .contato .bg { background-image: url("assets/piscina-01-960.webp"); } }
/* CD-CONTATO-BG:end */
