/* Residencial Anita: identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a
   paleta OFICIAL da Rivazi (informada pelo dono, extraída dos pixels do book):
   petróleo (primária) + dourado-areia (acento quente) + turquesa (acento água,
   tema "a 300 m do mar") + creme (fundo claro) + a camada de interação do
   ÚNICCO: textura grain, marquee, molduras com hover-zoom e reveal.
   Tudo escopado em body.anita para não afetar outras páginas.
*/

body.anita {
  /* Paleta Anita: petróleo profundo + dourado-areia + turquesa (água) */
  --navy:        #0C4B5F;
  --navy-2:      #106280;
  --navy-deep:   #082F3C;
  --champagne:   #F1CF9E;
  --champagne-2: #F6DFB8;
  --champagne-deep: #C9A46B;
  --bg:          #FEF4E3;
  --bg-deep:     #F5E6C8;
  --paper:       #FFFBF2;
  --ink:         var(--navy);
  --ink-2:       #35555F;
  --muted:       #63767C;
  --line:        rgba(12, 75, 95, 0.16);
  --line-2:      rgba(12, 75, 95, 0.08);
  /* acento água (turquesa), exclusivo da Anita: tema "a 300 m do mar" */
  --agua:        #049EA2;
  --agua-2:      #06828C;

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

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

/* ============================================================
   HERO (fachada em formato retrato: recentra na faixa das varandas)
   ============================================================ */
body.anita .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.anita .hero.empreendimento .photo {
  background-image: url("assets/hero.webp");
  background-position: center 36%;
}
body.anita .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg,
      rgba(8,47,60,0) 0%,
      rgba(8,47,60,0) 24%,
      rgba(8,47,60,0.32) 50%,
      rgba(8,47,60,0.70) 80%,
      rgba(8,47,60,0.92) 100%);
}
body.anita .hero .stack .eyebrow { color: var(--champagne); }
body.anita .hero h1 em { font-style: italic; color: var(--champagne-2); }

/* ============================================================
   MARQUEE: faixa "a 300 m do mar" em turquesa (acento água exclusivo)
   ============================================================ */
body.anita .anita-marquee {
  background: var(--agua-2);
  color: var(--paper);
  border-top: 1px solid rgba(241,207,158,0.22);
  border-bottom: 1px solid rgba(241,207,158,0.22);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.anita .anita-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: anita-marquee 40s linear infinite;
}
body.anita .anita-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.anita .anita-marquee .dot { color: var(--champagne); opacity: 0.85; }
@keyframes anita-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.anita .anita-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + planta do rooftop + mapa)
   ============================================================ */
body.anita .anita-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.anita .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.anita .anita-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.anita .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.anita .frame:hover img { transform: scale(1.06); }
body.anita .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8,47,60,0.74) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.anita .frame:hover::after { opacity: 1; }
body.anita .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.anita .frame:hover figcaption { transform: none; opacity: 1; }
body.anita .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.8; color: var(--agua-2);
}
body.anita .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
/* PADRÃO (04/07): sombra no figcaption garante contraste sobre foto clara */
body.anita .frame figcaption .n,
body.anita .frame figcaption .s {
  text-shadow: 0 1px 3px rgba(6, 20, 26, 0.9), 0 2px 12px rgba(6, 20, 26, 0.6);
}
@media (max-width: 760px) {
  body.anita .anita-figrow { grid-template-columns: 1fr; }
  body.anita .anita-figrow .frame.wide { aspect-ratio: 16/9; }
  body.anita .frame figcaption { opacity: 1; transform: none; }
  /* legenda sempre visível no mobile: o scrim de baixo acompanha */
  body.anita .frame::after { opacity: 1; }
}

/* planta ilustrada do rooftop: 1 moldura larga, abaixo do amen-grid.
   PADRÃO (04/07): planta arquitetônica com fundo IGUAL ao da seção (raster
   recolorido de preto pra --navy-deep; a moldura acompanha , seamless) */
body.anita .anita-plan { margin-top: clamp(28px, 3.4vw, 48px); }
body.anita .anita-plan .frame.wide {
  aspect-ratio: 16/10;
  background: var(--navy-deep);
}
body.anita .anita-plan .frame img { object-fit: contain; background: var(--navy-deep); }

/* mapa na localização: imagem em formato retrato (mostra rótulos de rua
   inteiros, sem cortar), ocupa a coluna inteira da loc-grid */
body.anita .loc-grid .frame.map {
  aspect-ratio: 3/4; height: auto; min-height: 320px;
  background: var(--bg-deep);
}
body.anita .loc-grid .frame.map img { object-fit: contain; }

/* ============================================================
   BENTO / ROOFTOP: 4 células iguais (a Anita só tem 4 fotos boas do
   rooftop, não as 6 do bento padrão) , sobrepõe os spans c1..c6 da base
   ============================================================ */
body.anita .club-grid.c4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 4px;
}
body.anita .club-grid.c4 .cell.c1,
body.anita .club-grid.c4 .cell.c2,
body.anita .club-grid.c4 .cell.c3,
body.anita .club-grid.c4 .cell.c4 {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 260px;
}
body.anita .club-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.anita .club-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.anita .club-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.anita .club-grid .cell:hover .cap { transform: none; opacity: 1; }
@media (max-width: 980px) {
  body.anita .club-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  body.anita .club-grid.c4 .cell.c1,
  body.anita .club-grid.c4 .cell.c2,
  body.anita .club-grid.c4 .cell.c3,
  body.anita .club-grid.c4 .cell.c4 { grid-column: span 1 !important; min-height: 240px !important; }
}
@media (max-width: 560px) {
  body.anita .club-grid.c4 { grid-template-columns: 1fr; }
}

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

/* ============================================================
   BRAND: selo vira monograma champagne com fundo petróleo
   ============================================================ */
body.anita .top .brand .selo,
body.anita footer .brand-foot .selo {
  background: #0C4B5F url("../../assets/selo-cd.webp") center/84% no-repeat;
  border-radius: 50%; border: none; clip-path: none;
  box-shadow: 0 0 0 1px rgba(241,207,158,0.35);
}
body.anita .top .brand .selo::before,
body.anita footer .brand-foot .selo::before {
  content: none;
}

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

/* ============================================================
   PLANTAS (switcher padrão dos verticais): palco BRANCO , as plantas
   foram achatadas em branco na conversão (transparentes + brancos cravados
   unificados), então o palco acompanha; moldura fina no fundo creme da seção.
   ============================================================ */
body.anita .plantas-stage,
body.anita .plantas-stage img { background: #fff; }
body.anita .plantas-stage { border: 1px solid var(--line); }
body.anita .plantas-info .pi-fam { color: var(--agua-2); }

/* contato: imagem de fundo (lounge do rooftop, entardecer) */
body.anita .contato .bg {
  background: url("assets/rooftop-lounge.webp") center 40%/cover no-repeat;
  transform: scale(1.04);
}
