/* Felicitá Residence : identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca (teal petróleo escuro, color-pick por pixel do CATÁLOGO - FELICITÁ.pdf p.8)
   + a camada de interação do ÚNICCO: textura grain, marquee, molduras com hover-zoom
   e reveal on-scroll. Tudo escopado em body.felicita-residence.

   OBS de produto: torre vertical PRONTA em Capão da Canoa (decisão do dono, 12/07;
   material não declara data de entrega). Preço via tabela CNDD de 2026-07 (últimas
   unidades, R$ 925 mil a R$ 1,32 milhão). Terceiro empreendimento da CNDD no portal
   (ver epic-residence e gran-legado-residence, mesma incorporadora).
*/

body.felicita-residence {
  /* Paleta Felicitá Residence (color-pick por pixel, CATÁLOGO - FELICITÁ.pdf p.8) */
  --navy:        #228177;
  --navy-2:      #2E9C8F;
  --navy-deep:   #15574F;
  --champagne:   #C7B18B;
  --champagne-2: #DBCBAC;
  --champagne-deep: #A38F69;
  --bg:          #F4F1E9;
  --bg-deep:     #E9E4D5;
  --paper:       #FBFAF5;
  --ink:         var(--navy-deep);
  --ink-2:       #2C5952;
  --muted:       #5F6E68;
  --line:        rgba(21, 87, 79, 0.16);
  --line-2:      rgba(21, 87, 79, 0.08);
  --wood:        var(--champagne);

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

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

/* ============================================================
   HERO
   ============================================================ */
body.felicita-residence .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.felicita-residence .hero.empreendimento .scrim {
  background: linear-gradient(to top,
    rgba(9,26,23,.86) 0%, rgba(9,26,23,.76) 14%, rgba(9,26,23,.56) 32%,
    rgba(9,26,23,.34) 50%, rgba(9,26,23,.12) 66%, rgba(9,26,23,0) 80%);
}
body.felicita-residence .hero .stack .eyebrow { color: var(--champagne); letter-spacing: 0.34em; }
body.felicita-residence .hero h1 em { font-style: italic; color: var(--champagne-2); }

/* ============================================================
   MARQUEE : faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.felicita-residence .fr-marquee {
  background: var(--navy);
  color: var(--champagne-2);
  border-top: 1px solid rgba(199,177,139,0.22);
  border-bottom: 1px solid rgba(199,177,139,0.22);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.felicita-residence .fr-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: fr-marquee 36s linear infinite;
}
body.felicita-residence .fr-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.felicita-residence .fr-marquee .dot { color: var(--champagne); opacity: 0.7; }
@keyframes fr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.felicita-residence .fr-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.felicita-residence .fr-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.felicita-residence .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.felicita-residence .fr-figrow .frame.wide { grid-row: span 2; aspect-ratio: 4/5; }
body.felicita-residence .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.felicita-residence .frame:hover img { transform: scale(1.06); }
body.felicita-residence .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9,26,23,0.76) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.felicita-residence .frame:hover::after { opacity: 1; }
body.felicita-residence .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 6px rgba(0,0,0,.5);
  transform: translateY(8px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
body.felicita-residence .frame:hover figcaption { transform: none; opacity: 1; }
body.felicita-residence .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.8;
}
body.felicita-residence .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.felicita-residence .fr-figrow { grid-template-columns: 1fr; }
  body.felicita-residence .fr-figrow .frame.wide { grid-row: auto; aspect-ratio: 4/5; }
  body.felicita-residence .frame figcaption { opacity: 1; transform: none; }
}

/* mapa na localização ocupa a coluna inteira da loc-grid */
body.felicita-residence .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ============================================================
   AMENIDADES / TIPOLOGIAS : hover dos cells (bento + esp-grid padrão, 6+2 fotos reais)
   ============================================================ */
body.felicita-residence .club-grid .cell,
body.felicita-residence .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.felicita-residence .club-grid .cell:hover,
body.felicita-residence .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.felicita-residence .club-grid .cell .cap,
body.felicita-residence .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.felicita-residence .club-grid .cell:hover .cap,
body.felicita-residence .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

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

/* ============================================================
   BRAND : selo vira monograma champagne com marca-mãe
   ============================================================ */
body.felicita-residence .top .brand .selo,
body.felicita-residence 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(199,177,139,0.35);
}
body.felicita-residence .top .brand .selo::before,
body.felicita-residence footer .brand-foot .selo::before {
  content: none;
}

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

/* contato : imagem de fundo (cobertura, lounge com lareira ao entardecer) */
body.felicita-residence .contato .bg {
  background: url("assets/rooftop-lounge.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.felicita-residence .contato .bg { background-image: url("assets/rooftop-lounge-480.webp"); } }
@media (max-width: 480px) and (min-resolution: 2dppx) { body.felicita-residence .contato .bg { background-image: url("assets/rooftop-lounge-960.webp"); } }
@media (min-width: 481px) and (max-width: 760px) { body.felicita-residence .contato .bg { background-image: url("assets/rooftop-lounge-960.webp"); } }
/* CD-CONTATO-BG:end */

/* CD-FRAME-MAP:start , gerado por scripts/build_frame_map.py, nao edite a mao */
body.felicita-residence .frame.map img { object-fit: contain; background: var(--paper); }
/* CD-FRAME-MAP:end */
