/* Único Residence: identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a
   paleta do próprio empreendimento, lida dos renders oficiais do book CRG
   Estevam (não há manual de marca): fachada em grafite AZULADO (cool slate,
   amostrado nas esquadrias/mullions da torre) sobre painéis marfim, com hall e
   interiores em mármore branco/creme e frisos em bronze antigo (mais discreto
   que o dourado-âmbar vivo do Titanium, irmão de incorporadora na mesma
   cidade). O vermelho do logo "CRG" é da INCORPORADORA, não do empreendimento
   (o wordmark "único" é monocromático) , por isso NÃO entra aqui. Camada de
   interação do ÚNICCO: grain, marquee, molduras com hover-zoom e reveal.
   Tudo escopado em body.unico para não afetar outras páginas. */

body.unico {
  /* Paleta Único: grafite azulado + bronze antigo */
  --navy:        #363B47;
  --navy-2:      #454B59;
  --navy-deep:   #262A33;
  --champagne:   #A6875A;
  --champagne-2: #C2A578;
  --champagne-deep: #8A6D44;
  --bg:          #F3EFE7;
  --bg-deep:     #E8E0D0;
  --paper:       #FAF7F1;
  --ink:         var(--navy);
  --ink-2:       #454B59;
  --muted:       #6E6A5F;
  --line:        rgba(54, 59, 71, 0.16);
  --line-2:      rgba(54, 59, 71, 0.08);
  /* acento mármore (hall neoclássico) */
  --marmore:     #EDE7D8;

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

/* ============================================================
   GRAIN: textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.unico .grain { position: relative; overflow: hidden; }
body.unico .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.unico .grain > .container,
body.unico .contato.grain .contato-inner,
body.unico footer.grain .row,
body.unico footer.grain .legal { position: relative; z-index: 2; }
body.unico .hero.grain .stack,
body.unico .hero.grain .top-meta,
body.unico .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO (fachada dia, torre neoclássica em grafite azulado)
   ============================================================ */
body.unico .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.unico .hero.empreendimento .photo {
  background-position: center 30%;
}
body.unico .hero.empreendimento .scrim {
  background: linear-gradient(to top,
    rgba(38,42,51,.86) 0%, rgba(38,42,51,.76) 14%, rgba(38,42,51,.58) 32%,
    rgba(38,42,51,.34) 50%, rgba(38,42,51,.12) 66%, rgba(38,42,51,0) 80%);
}
body.unico .hero .stack .eyebrow { color: var(--champagne); }
body.unico .hero h1 em { font-style: italic; color: var(--champagne-2); }

/* ============================================================
   MARQUEE: faixa grafite com texto bronze
   ============================================================ */
body.unico .unico-marquee {
  background: var(--navy-deep);
  color: var(--paper);
  border-top: 1px solid rgba(166,135,90,0.28);
  border-bottom: 1px solid rgba(166,135,90,0.28);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.unico .unico-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: unico-marquee 40s linear infinite;
}
body.unico .unico-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.unico .unico-marquee .dot { color: var(--champagne); opacity: 0.85; }
@keyframes unico-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.unico .unico-marquee .track { animation: none; }
}

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

/* ============================================================
   BENTO / ROOFTOP: 4 células em xadrez 7/5 (a base assume 6 células)
   ============================================================ */
body.unico .club-grid.c4 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(320px, auto);
  gap: 4px;
}
body.unico .club-grid.c4 .cell.c1 { grid-column: span 7; }
body.unico .club-grid.c4 .cell.c2 { grid-column: span 5; }
body.unico .club-grid.c4 .cell.c3 { grid-column: span 5; }
body.unico .club-grid.c4 .cell.c4 { grid-column: span 7; }
body.unico .club-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.unico .club-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.unico .club-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.unico .club-grid .cell:hover .cap { transform: none; opacity: 1; }
@media (max-width: 980px) {
  body.unico .club-grid.c4 { grid-template-columns: 1fr 1fr; }
  body.unico .club-grid.c4 .cell.c1,
  body.unico .club-grid.c4 .cell.c2,
  body.unico .club-grid.c4 .cell.c3,
  body.unico .club-grid.c4 .cell.c4 { grid-column: span 1 !important; min-height: 260px !important; }
}
@media (max-width: 560px) {
  body.unico .club-grid.c4 { grid-template-columns: 1fr; }
}

/* ============================================================
   LOCALIZAÇÃO: sem arte de mapa no material; o embed vira a coluna
   esquerda (a base põe .map-embed em grid-column: 1/-1, pensada pra
   quando há figure; aqui embed e lista dividem a MESMA linha)
   ============================================================ */
body.unico .loc-grid .map-embed {
  grid-column: 1; grid-row: 1; margin-top: 0;
  min-height: 440px;
  background: var(--navy-2);
  border: 1px solid rgba(244,237,226,0.12);
  display: flex; align-items: center; justify-content: center;
}
body.unico .loc-grid .loc-list { grid-column: 2; grid-row: 1; justify-content: center; }
body.unico .loc-grid .map-embed iframe {
  width: 100%; height: 100%; min-height: 440px; border: 0; border-radius: 0; display: block;
}
@media (max-width: 880px) {
  body.unico .loc-grid .map-embed { grid-column: 1; grid-row: auto; min-height: 320px; }
  body.unico .loc-grid .loc-list { grid-column: 1; grid-row: auto; }
  body.unico .loc-grid .map-embed iframe { min-height: 320px; }
}

/* ============================================================
   TABELA: CTA band
   ============================================================ */
body.unico .unico-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.unico .unico-cta-band p {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.unico .unico-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND: selo monograma bronze com fundo grafite
   ============================================================ */
body.unico .top .brand .selo,
body.unico footer .brand-foot .selo {
  background: #262A33 url("../../assets/selo-cd.webp") center/84% no-repeat;
  border-radius: 50%; border: none; clip-path: none;
  box-shadow: 0 0 0 1px rgba(166,135,90,0.35);
}
body.unico .top .brand .selo::before,
body.unico footer .brand-foot .selo::before {
  content: none;
}

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

/* contato: imagem de fundo (piscina de borda infinita do rooftop) */
body.unico .contato .bg {
  background: url("assets/rooftop-piscina.webp") center 45%/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.unico .contato .bg { background-image: url("assets/rooftop-piscina-480.webp"); } }
@media (max-width: 480px) and (min-resolution: 2dppx) { body.unico .contato .bg { background-image: url("assets/rooftop-piscina-960.webp"); } }
@media (min-width: 481px) and (max-width: 760px) { body.unico .contato .bg { background-image: url("assets/rooftop-piscina-960.webp"); } }
/* CD-CONTATO-BG:end */
