/* Poente: identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   do logo do Poente (wordmark verde-oliva acinzentado ~#72725A + bromélia sálvia
   ~#9C9C74, medidos no arquivo do logo) + a camada de interação do ÚNICCO: textura
   grain, marquee, molduras com hover-zoom e reveal.
   Tudo escopado em body.poente para não afetar outras páginas.
*/

body.poente {
  /* Paleta do logo do Poente: oliva profundo derivado do wordmark + sálvia da bromélia + linho */
  --navy:        #3A3B2C;
  --navy-2:      #4B4C3A;
  --navy-deep:   #25261C;
  --champagne:   #B6B087;
  --champagne-2: #D8D3B3;
  --champagne-deep: #7E7A58;
  --bg:          #F3F1E8;
  --bg-deep:     #E7E4D6;
  --paper:       #FAF9F3;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #66655A;
  --line:        rgba(58, 59, 44, 0.16);
  --line-2:      rgba(58, 59, 44, 0.08);
  --wood:        var(--champagne);

  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   GRAIN: textura sutil de ruído (do ÚNICCO) sobre seções escuras
   ============================================================ */
body.poente .grain { position: relative; overflow: hidden; }
body.poente .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.poente .grain > .container,
body.poente .contato.grain .contato-inner,
body.poente footer.grain .row,
body.poente footer.grain .legal { position: relative; z-index: 2; }
body.poente .hero.grain .stack,
body.poente .hero.grain .top-meta,
body.poente .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.poente .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.poente .hero.empreendimento .photo {
  /* sem background-image: o <img class="hero-img"> ja cobre o .photo
     (ver scripts/build_lp_hero_preload.py) */
  background-position: center 58%;
}
/* o render aéreo tem céu claro de entardecer atrás do bloco de texto: além do scrim
   de baixo pra cima, entram uma lavagem da esquerda (coluna do h1/tag) e uma do topo
   (header), senão o texto claro cai sobre céu claro , contraste, não estilo */
body.poente .hero.empreendimento .scrim {
  background:
    linear-gradient(to top,
      rgba(37,38,28,.90) 0%, rgba(37,38,28,.82) 18%, rgba(37,38,28,.64) 38%,
      rgba(37,38,28,.38) 56%, rgba(37,38,28,.12) 76%, rgba(37,38,28,0) 92%),
    linear-gradient(to right,
      rgba(37,38,28,.60) 0%, rgba(37,38,28,.34) 38%, rgba(37,38,28,0) 70%),
    linear-gradient(to bottom,
      rgba(37,38,28,.72) 0%, rgba(37,38,28,.30) 12%, rgba(37,38,28,0) 30%);
}
body.poente .hero .stack .eyebrow { color: var(--champagne); }
body.poente .hero h1 em { font-style: italic; color: var(--champagne); }

/* ============================================================
   MARQUEE: faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.poente .poente-marquee {
  background: var(--navy);
  color: var(--champagne-2);
  border-top: 1px solid rgba(182,176,135,0.18);
  border-bottom: 1px solid rgba(182,176,135,0.18);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.poente .poente-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: poente-marquee 42s linear infinite;
}
body.poente .poente-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.poente .poente-marquee .dot { color: var(--champagne); opacity: 0.7; }
@keyframes poente-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.poente .poente-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito, clube e implantação)
   ============================================================ */
body.poente .poente-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.poente .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.poente .poente-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
body.poente .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.poente .frame:hover img { transform: scale(1.06); }
body.poente .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(37,38,28,0.74) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.poente .frame:hover::after { opacity: 1; }
body.poente .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 10px rgba(37,38,28,0.65);
  transform: translateY(8px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
body.poente .frame:hover figcaption { transform: none; opacity: 1; }
body.poente .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.85;
}
body.poente .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.poente .poente-figrow { grid-template-columns: 1fr; }
  body.poente .poente-figrow .frame.wide { aspect-ratio: 4/3; }
  body.poente .frame figcaption { opacity: 1; transform: none; }
}

/* arte de mapa/implantação aparece INTEIRA (nunca cortada pelo cover) */
body.poente .frame.map img { object-fit: contain; background: var(--paper); }
/* LOCALIZAÇÃO SEM ARTE DE MAPA: o material do Poente não traz mapa legível, então a
   grade vira uma coluna só e a lista de referências se divide em duas colunas. */
body.poente .loc-grid { grid-template-columns: 1fr; }
body.poente .loc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px clamp(24px, 4vw, 56px); }
@media (max-width: 760px) {
  body.poente .loc-list { grid-template-columns: 1fr; }
}

/* ============================================================
   INFRAESTRUTURA: grade de itens em seção CLARA (amen-grid é de seção escura)
   ============================================================ */
body.poente .poente-infra {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 56px);
}
body.poente .amen-lite {
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  padding: 20px 18px 22px; min-height: 108px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.poente .amen-lite:nth-child(4n) { border-right: none; }
body.poente .amen-lite .n {
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1;
  color: var(--ink);
}
body.poente .amen-lite .s {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 880px) {
  body.poente .poente-infra { grid-template-columns: repeat(2, 1fr); }
  body.poente .amen-lite:nth-child(4n) { border-right: 1px solid var(--line); }
  body.poente .amen-lite:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  body.poente .amen-lite { padding: 15px 13px 17px; min-height: 96px; }
  body.poente .amen-lite .n { font-size: 17px; }
  body.poente .amen-lite .s { font-size: 10px; letter-spacing: 0.16em; }
}

/* ============================================================
   TABELA: CTA band
   ============================================================ */
body.poente .poente-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.poente .poente-cta-band p {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.poente .poente-cta-band { grid-template-columns: 1fr; }
}

/* números da ficha com unidade sobrescrita discreta */
body.poente .ficha-cell .v small {
  font-family: var(--sans); font-size: 0.42em; letter-spacing: 0.06em;
  margin-left: 3px; vertical-align: super; color: var(--muted);
}

/* ============================================================
   BRAND: selo do portal sobre a paleta do Poente
   ============================================================ */
body.poente .top .brand .selo,
body.poente 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(182,176,135,0.35);
}
body.poente .top .brand .selo::before,
body.poente footer .brand-foot .selo::before {
  content: none;
}

body.poente footer { background: var(--navy-deep); }
body.poente footer .brand-foot small { color: var(--champagne); }

/* contato: foto de fundo */
body.poente .contato .bg {
  background: url("assets/rooftop.webp") center 50%/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.poente .contato .bg { background-image: url("assets/rooftop-480.webp"); } }
@media (max-width: 480px) and (min-resolution: 2dppx) { body.poente .contato .bg { background-image: url("assets/rooftop-960.webp"); } }
@media (min-width: 481px) and (max-width: 760px) { body.poente .contato .bg { background-image: url("assets/rooftop-960.webp"); } }
/* CD-CONTATO-BG:end */
