/* LIVIN' Resort House - identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca LIVIN' (navy oceano + aqua, extraída do book Alfa do Brasil) + a camada
   de interação do ÚNICCO: textura grain, marquee, molduras com hover-zoom e reveal
   on-scroll. Tudo escopado em body.livin para não afetar outras páginas.
*/

body.livin {
  /* Paleta LIVIN' (book): navy oceano + aqua da água da piscina */
  --navy:        #0A3354;
  --navy-2:      #103E63;
  --navy-deep:   #07263F;
  --aqua:        #3FA9D6;
  --aqua-2:      #6BC4E6;
  --aqua-deep:   #2A86AE;
  --bg:          #EEF3F6;
  --bg-deep:     #DEE7EC;
  --paper:       #F7FAFC;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #5B6B78;
  --line:        rgba(10, 51, 84, 0.16);
  --line-2:      rgba(10, 51, 84, 0.08);
  --wood:        var(--aqua);

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN - textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.livin .grain { position: relative; overflow: hidden; }
body.livin .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.livin .grain > .container,
body.livin .contato.grain .contato-inner,
body.livin footer.grain .row,
body.livin footer.grain .legal { position: relative; z-index: 2; }
body.livin .hero.grain .stack,
body.livin .hero.grain .top-meta,
body.livin .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.livin .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.livin .hero.empreendimento .photo {
  background-image: url("assets/fachada-aerea.webp");
  background-position: center 42%;
}
body.livin .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg,
      rgba(7,38,63,0) 0%,
      rgba(7,38,63,0) 26%,
      rgba(7,38,63,0.30) 50%,
      rgba(7,38,63,0.68) 80%,
      rgba(7,38,63,0.92) 100%);
}
body.livin .hero .stack .eyebrow { color: var(--aqua-2); }
body.livin .hero h1 em { font-style: italic; color: var(--aqua-2); }

/* Wordmark LIVIN' renderizado em texto, leve e elegante */
body.livin .hero .livin-mark {
  display: block; margin-bottom: 22px; line-height: 1;
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.14em; color: var(--paper);
  text-transform: uppercase;
}
body.livin .hero .livin-mark i {
  font-style: normal; color: var(--aqua-2); margin-left: -0.06em;
}
body.livin .hero .livin-mark small {
  display: block; margin-top: 10px;
  font-weight: 300; font-size: clamp(11px, 1.6vw, 15px);
  letter-spacing: 0.42em; color: var(--aqua-2); opacity: 0.92;
}

/* ============================================================
   MARQUEE - faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.livin .livin-marquee {
  background: var(--navy);
  color: var(--aqua-2);
  border-top: 1px solid rgba(63,169,214,0.22);
  border-bottom: 1px solid rgba(63,169,214,0.22);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.livin .livin-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: livin-marquee 36s linear infinite;
}
body.livin .livin-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.livin .livin-marquee .dot { color: var(--aqua); opacity: 0.8; }
@keyframes livin-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.livin .livin-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.livin .livin-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.livin .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.livin .livin-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.livin .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.livin .frame:hover img { transform: scale(1.06); }
body.livin .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,38,63,0.74) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.livin .frame:hover::after { opacity: 1; }
body.livin .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.livin .frame:hover figcaption { transform: none; opacity: 1; }
body.livin .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.85;
}
body.livin .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.livin .livin-figrow { grid-template-columns: 1fr; }
  body.livin .livin-figrow .frame.wide { aspect-ratio: 16/9; }
  body.livin .frame figcaption { opacity: 1; transform: none; }
}

/* mapa na localização ocupa a coluna inteira da loc-grid */
body.livin .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ============================================================
   BENTO / UNIDADES - realça o hover-zoom dos cells (bg-image)
   ============================================================ */
body.livin .club-grid .cell,
body.livin .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.livin .club-grid .cell:hover,
body.livin .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.livin .club-grid .cell .cap,
body.livin .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.livin .club-grid .cell:hover .cap,
body.livin .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   TABELA - CTA band
   ============================================================ */
body.livin .livin-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.livin .livin-cta-band p {
  margin: 0; max-width: 56ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.livin .livin-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND - selo vira monograma aqua com "L" navy
   ============================================================ */
body.livin .top .brand .selo,
body.livin footer .brand-foot .selo {
  background: #1c2b3c url("../../assets/selo-cd.webp") center/84% no-repeat;
  border-radius: 50%; border: none; clip-path: none;
  box-shadow: 0 0 0 1px rgba(201,168,127,0.35);
}
body.livin .top .brand .selo::before,
body.livin footer .brand-foot .selo::before {
  content: none;
}

body.livin footer { background: var(--navy-deep); }
body.livin footer .brand-foot small { color: var(--aqua-2); }

/* contato - imagem de fundo da marca */
body.livin .contato .bg {
  background: url("assets/piscina-deck.webp") center 46%/cover no-repeat;
  transform: scale(1.04);
}
