/* Xangri-Lá Ilhas Resort , identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca Xangri-Lá Ilhas Resort (navy royal + areia/champagne) + a camada de
   interação do ÚNICCO: textura grain, marquee, molduras com hover-zoom e reveal.
   Tudo escopado em body.xangrila-ilhas-resort para não afetar outras páginas.
*/

body.xangrila-ilhas-resort {
  /* Paleta da marca: navy royal profundo + areia/champagne quente */
  --navy:        #142A63;
  --navy-2:      #1B3678;
  --navy-deep:   #0D1C45;
  --champagne:   #C2A878;
  --champagne-2: #D6BE94;
  --champagne-deep: #A2864F;
  --bg:          #F4EFE6;
  --bg-deep:     #EAE2D2;
  --paper:       #FBF8F1;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #6B6450;
  --line:        rgba(20, 42, 99, 0.16);
  --line-2:      rgba(20, 42, 99, 0.08);
  --wood:        var(--champagne);

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN , textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.xangrila-ilhas-resort .grain { position: relative; overflow: hidden; }
body.xangrila-ilhas-resort .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.xangrila-ilhas-resort .grain > .container,
body.xangrila-ilhas-resort .contato.grain .contato-inner,
body.xangrila-ilhas-resort footer.grain .row,
body.xangrila-ilhas-resort footer.grain .legal { position: relative; z-index: 2; }
body.xangrila-ilhas-resort .hero.grain .stack,
body.xangrila-ilhas-resort .hero.grain .top-meta,
body.xangrila-ilhas-resort .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.xangrila-ilhas-resort .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.xangrila-ilhas-resort .hero.empreendimento .photo {
  background-image: url("assets/hero-aerea-praia.webp");
  background-position: center 42%;
}
body.xangrila-ilhas-resort .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg, rgba(13,28,69,0.08) 0%, rgba(13,28,69,0.10) 22%, rgba(13,28,69,0.42) 46%, rgba(13,28,69,0.66) 66%, rgba(13,28,69,0.84) 88%, rgba(13,28,69,0.92) 100%);
}
body.xangrila-ilhas-resort .hero .stack .eyebrow { color: var(--champagne-2); }
body.xangrila-ilhas-resort .hero h1 em { font-style: italic; color: var(--champagne-2); }
body.xangrila-ilhas-resort .hero .xir-mark {
  display: block; max-width: 260px; width: 60vw; height: auto;
  margin-bottom: 24px; opacity: 0.98;
}

/* ============================================================
   MARQUEE , faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.xangrila-ilhas-resort .xir-marquee {
  background: var(--navy);
  color: var(--champagne-2);
  border-top: 1px solid rgba(194,168,120,0.20);
  border-bottom: 1px solid rgba(194,168,120,0.20);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.xangrila-ilhas-resort .xir-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: xir-marquee 40s linear infinite;
}
body.xangrila-ilhas-resort .xir-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.xangrila-ilhas-resort .xir-marquee .dot { color: var(--champagne); opacity: 0.7; }
@keyframes xir-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.xangrila-ilhas-resort .xir-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.xangrila-ilhas-resort .xir-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.xangrila-ilhas-resort .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.xangrila-ilhas-resort .xir-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.xangrila-ilhas-resort .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.xangrila-ilhas-resort .frame:hover img { transform: scale(1.06); }
body.xangrila-ilhas-resort .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,28,69,0.72) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.xangrila-ilhas-resort .frame:hover::after { opacity: 1; }
body.xangrila-ilhas-resort .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.xangrila-ilhas-resort .frame:hover figcaption { transform: none; opacity: 1; }
body.xangrila-ilhas-resort .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.8;
}
body.xangrila-ilhas-resort .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.xangrila-ilhas-resort .xir-figrow { grid-template-columns: 1fr; }
  body.xangrila-ilhas-resort .xir-figrow .frame.wide { aspect-ratio: 16/9; }
  body.xangrila-ilhas-resort .frame figcaption { opacity: 1; transform: none; }
}

/* mapa/implantação na localização ocupa a coluna inteira da loc-grid */
body.xangrila-ilhas-resort .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 360px; }
body.xangrila-ilhas-resort .loc-grid .frame.map img { object-position: center top; }

/* ============================================================
   BENTO / UNIDADES , realça o hover-zoom dos cells (bg-image)
   ============================================================ */
body.xangrila-ilhas-resort .club-grid .cell,
body.xangrila-ilhas-resort .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.xangrila-ilhas-resort .club-grid .cell:hover,
body.xangrila-ilhas-resort .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.xangrila-ilhas-resort .club-grid .cell .cap,
body.xangrila-ilhas-resort .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.xangrila-ilhas-resort .club-grid .cell:hover .cap,
body.xangrila-ilhas-resort .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   TABELA , CTA band
   ============================================================ */
body.xangrila-ilhas-resort .xir-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.xangrila-ilhas-resort .xir-cta-band p {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.xangrila-ilhas-resort .xir-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND , selo vira monograma champagne com "X" navy
   ============================================================ */
body.xangrila-ilhas-resort .top .brand .selo,
body.xangrila-ilhas-resort 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.xangrila-ilhas-resort .top .brand .selo::before,
body.xangrila-ilhas-resort footer .brand-foot .selo::before {
  content: none;
}

body.xangrila-ilhas-resort footer { background: var(--navy-deep); }
body.xangrila-ilhas-resort footer .brand-foot small { color: var(--champagne); }

/* contato , imagem de fundo da marca */
body.xangrila-ilhas-resort .contato .bg {
  background: url("assets/fachada-noturna.webp") center 45%/cover no-repeat;
  transform: scale(1.04);
}
