/* Joy 2 Vila dos Lagos, identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca Joy (teal profundo da água + turquesa vibrante do logo) + a camada de
   interação do ÚNICCO: textura grain, marquee, molduras com hover-zoom e reveal.
   Tudo escopado em body.joy2 para não afetar outras páginas.
*/

body.joy2 {
  /* Paleta oficial Joy (do book): teal profundo da água do lago + turquesa vibrante */
  --navy:        #0A363B;
  --navy-2:      #114A50;
  --navy-deep:   #06282C;
  --champagne:   #1EB4B4;
  --champagne-2: #43CBCB;
  --champagne-deep: #0E8C8C;
  --bg:          #EEF6F4;
  --bg-deep:     #E1EEEC;
  --paper:       #F6FBFA;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #4F6B6B;
  --line:        rgba(10, 54, 59, 0.16);
  --line-2:      rgba(10, 54, 59, 0.08);
  --wood:        var(--champagne);

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN: textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.joy2 .grain { position: relative; overflow: hidden; }
body.joy2 .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>");
}
/* garante o conteúdo acima do grão */
body.joy2 .grain > .container,
body.joy2 .contato.grain .contato-inner,
body.joy2 footer.grain .row,
body.joy2 footer.grain .legal { position: relative; z-index: 2; }
body.joy2 .hero.grain .stack,
body.joy2 .hero.grain .top-meta,
body.joy2 .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.joy2 .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.joy2 .hero.empreendimento .photo {
  background-image: url("assets/hero.webp");
  background-position: center 46%;
}
body.joy2 .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg,
      rgba(6,40,44,0) 0%,
      rgba(6,40,44,0) 26%,
      rgba(6,40,44,0.30) 50%,
      rgba(6,40,44,0.68) 80%,
      rgba(6,40,44,0.92) 100%);
}
body.joy2 .hero .stack .eyebrow { color: var(--champagne-2); }
body.joy2 .hero h1 em { font-style: italic; color: var(--champagne-2); }
body.joy2 .hero .joy-mark {
  display: block; max-width: 230px; margin-bottom: 24px; opacity: 0.98;
}

/* ============================================================
   MARQUEE: faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.joy2 .joy-marquee {
  background: var(--navy);
  color: var(--champagne-2);
  border-top: 1px solid rgba(67,203,203,0.20);
  border-bottom: 1px solid rgba(67,203,203,0.20);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.joy2 .joy-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: joy-marquee 36s linear infinite;
}
body.joy2 .joy-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.joy2 .joy-marquee .dot { color: var(--champagne); opacity: 0.7; }
@keyframes joy-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.joy2 .joy-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.joy2 .joy-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.joy2 .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.joy2 .joy-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.joy2 .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.joy2 .frame:hover img { transform: scale(1.06); }
body.joy2 .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,40,44,0.72) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.joy2 .frame:hover::after { opacity: 1; }
body.joy2 .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.joy2 .frame:hover figcaption { transform: none; opacity: 1; }
body.joy2 .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.8;
}
body.joy2 .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.joy2 .joy-figrow { grid-template-columns: 1fr; }
  body.joy2 .joy-figrow .frame.wide { aspect-ratio: 16/9; }
  body.joy2 .frame figcaption { opacity: 1; transform: none; }
}

/* mapa na localização ocupa a coluna inteira da loc-grid */
body.joy2 .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ============================================================
   BENTO / ESPORTES: realça o hover-zoom dos cells (bg-image)
   ============================================================ */
body.joy2 .club-grid .cell,
body.joy2 .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.joy2 .club-grid .cell:hover,
body.joy2 .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.joy2 .club-grid .cell .cap,
body.joy2 .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.joy2 .club-grid .cell:hover .cap,
body.joy2 .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   TABELA: CTA band
   ============================================================ */
body.joy2 .joy-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.joy2 .joy-cta-band p {
  margin: 0; max-width: 56ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.joy2 .joy-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND: selo vira disco turquesa com "J" teal
   ============================================================ */
body.joy2 .top .brand .selo,
body.joy2 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.joy2 .top .brand .selo::before,
body.joy2 footer .brand-foot .selo::before {
  content: none;
}

body.joy2 footer { background: var(--navy-deep); }
body.joy2 footer .brand-foot small { color: var(--champagne-2); }

/* contato: imagem de fundo da marca */
body.joy2 .contato .bg {
  background: url("assets/clube-lago.webp") center 46%/cover no-repeat;
  transform: scale(1.04);
}
