/* Pulse Resort Experience, identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca Pulse (verde + laranja, do Manual de Marca) + a camada de interação do ÚNICCO:
   textura grain, marquee, molduras com hover-zoom e reveal on-scroll.
   Tudo escopado em body.pulse para não afetar outras páginas.
*/

body.pulse {
  /* Paleta oficial Pulse (Manual de Marca): verde #56BF99 + laranja #F37233.
     Aqui mapeada para o sistema navy+champagne: verde escuro = "navy", laranja = "champagne". */
  --navy:        #1B5A47;   /* verde profundo (seções escuras) */
  --navy-2:      #237056;
  --navy-deep:   #143B30;   /* footer / scrim */
  --champagne:   #F37233;   /* laranja Pulse (accent) */
  --champagne-2: #FF8A4F;
  --champagne-deep: #D85E22;
  --bg:          #F4F2EC;
  --bg-deep:     #E9E7DD;
  --paper:       #FBFAF5;
  --ink:         #16332A;
  --ink-2:       #234A3D;
  --muted:       #5E6B62;
  --line:        rgba(27, 90, 71, 0.16);
  --line-2:      rgba(27, 90, 71, 0.08);
  --wood:        var(--champagne);

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN: textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.pulse .grain { position: relative; overflow: hidden; }
body.pulse .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.pulse .grain > .container,
body.pulse .contato.grain .contato-inner,
body.pulse footer.grain .row,
body.pulse footer.grain .legal { position: relative; z-index: 2; }
body.pulse .hero.grain .stack,
body.pulse .hero.grain .top-meta,
body.pulse .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.pulse .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.pulse .hero.empreendimento .photo {
  background-image: url("assets/aerea-implantacao.webp");
  background-position: center 42%;
}
body.pulse .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg,
      rgba(20,59,48,0) 0%,
      rgba(20,59,48,0) 26%,
      rgba(20,59,48,0.30) 50%,
      rgba(20,59,48,0.68) 80%,
      rgba(20,59,48,0.92) 100%);
}
body.pulse .hero .stack .eyebrow { color: var(--champagne-2); }
body.pulse .hero h1 em { font-style: italic; color: var(--champagne-2); }
body.pulse .hero .pulse-mark {
  display: block; width: auto; height: 96px; margin-bottom: 22px; opacity: 0.97;
}

/* ============================================================
   MARQUEE: faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.pulse .pulse-marquee {
  background: var(--navy);
  color: #DCEFE7;
  border-top: 1px solid rgba(243,114,51,0.26);
  border-bottom: 1px solid rgba(243,114,51,0.26);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.pulse .pulse-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: pulse-marquee 38s linear infinite;
}
body.pulse .pulse-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.pulse .pulse-marquee .dot { color: var(--champagne); opacity: 0.85; }
@keyframes pulse-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.pulse .pulse-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.pulse .pulse-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.pulse .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.pulse .pulse-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.pulse .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.pulse .frame:hover img { transform: scale(1.06); }
body.pulse .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,59,48,0.72) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.pulse .frame:hover::after { opacity: 1; }
body.pulse .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.pulse .frame:hover figcaption { transform: none; opacity: 1; }
body.pulse .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.85;
}
body.pulse .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.pulse .pulse-figrow { grid-template-columns: 1fr; }
  body.pulse .pulse-figrow .frame.wide { aspect-ratio: 16/9; }
  body.pulse .frame figcaption { opacity: 1; transform: none; }
}

/* mapa na localização ocupa a coluna inteira da loc-grid */
body.pulse .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ============================================================
   BENTO / ESPORTES: realça o hover-zoom dos cells (bg-image)
   ============================================================ */
body.pulse .club-grid .cell,
body.pulse .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.pulse .club-grid .cell:hover,
body.pulse .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.pulse .club-grid .cell .cap,
body.pulse .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.pulse .club-grid .cell:hover .cap,
body.pulse .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   TABELA: CTA band
   ============================================================ */
body.pulse .pulse-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.pulse .pulse-cta-band p {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.pulse .pulse-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND: selo vira monograma laranja com "P" branco
   ============================================================ */
body.pulse .top .brand .selo,
body.pulse 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.pulse .top .brand .selo::before,
body.pulse footer .brand-foot .selo::before {
  content: none;
}

body.pulse footer { background: var(--navy-deep); }
body.pulse footer .brand-foot small { color: var(--champagne-2); }

/* contato: imagem de fundo da marca */
body.pulse .contato .bg {
  background: url("assets/club-house-piscina.webp") center 48%/cover no-repeat;
  transform: scale(1.04);
}
body.pulse .contato h2 em { color: var(--champagne-2); font-style: italic; }
