/* Raízes Bairro Cidade: identidade local
   Mantem o esqueleto do styles.css e veste com a paleta medida no book (05/11/2026): creme
   #F2F0C3 das paginas, oliva #38451C do logo DMAR, terracota #CC5E2E do simbolo, verde
   #8AA663 da implantacao. Tudo escopado em body.raizes.
*/

body.raizes {
  --navy:        #38451C;
  --navy-2:      #4A5A28;
  --navy-deep:   #252E11;
  --champagne:   #E08A5C;
  --champagne-2: #F1C9A8;
  --champagne-deep: #CC5E2E;
  --bg:          #F6F4DC;
  --bg-deep:     #F2F0C3;
  --paper:       #FBFAEC;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #6B6248;
  --line:        rgba(56, 69, 28, 0.18);
  --line-2:      rgba(56, 69, 28, 0.08);
  --wood:        var(--champagne);
  background: var(--bg);
  color: var(--ink);
}

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

/* ============================================================
   HERO
   ============================================================ */
body.raizes .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.raizes .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%;
}
/* render claro atrás do texto: scrim de baixo, da esquerda e do topo (contraste, não estilo) */
body.raizes .hero.empreendimento .scrim {
  background:
    linear-gradient(to top,
      rgba(37,46,17,.72) 0%, rgba(37,46,17,.50) 22%, rgba(37,46,17,.22) 46%, rgba(37,46,17,0) 66%),
    linear-gradient(to right,
      rgba(37,46,17,.62) 0%, rgba(37,46,17,.38) 36%, rgba(37,46,17,0) 66%),
    linear-gradient(to bottom,
      rgba(37,46,17,.60) 0%, rgba(37,46,17,.22) 12%, rgba(37,46,17,0) 28%);
}
body.raizes .hero .stack .eyebrow { color: var(--champagne); }
body.raizes .hero h1 em { font-style: italic; color: var(--champagne); }

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

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

/* arte de mapa/implantação aparece INTEIRA (nunca cortada pelo cover) */
body.raizes .frame.map img { object-fit: contain; background: var(--paper); }
/* LOCALIZAÇÃO: o mapa do Google entra numa coluna só e a lista de referências se divide em duas colunas. */
body.raizes .loc-grid { grid-template-columns: 1fr; }
body.raizes .loc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px clamp(24px, 4vw, 56px); }
@media (max-width: 760px) {
  body.raizes .loc-list { grid-template-columns: 1fr; }
}

/* ============================================================
   INFRAESTRUTURA: grade de itens em seção CLARA (amen-grid é de seção escura)
   ============================================================ */
body.raizes .raizes-infra {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 56px);
}
body.raizes .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.raizes .amen-lite:nth-child(4n) { border-right: none; }
body.raizes .amen-lite .n {
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1;
  color: var(--ink);
}
body.raizes .amen-lite .s {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 880px) {
  body.raizes .raizes-infra { grid-template-columns: repeat(2, 1fr); }
  body.raizes .amen-lite:nth-child(4n) { border-right: 1px solid var(--line); }
  body.raizes .amen-lite:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  body.raizes .amen-lite { padding: 15px 13px 17px; min-height: 96px; }
  body.raizes .amen-lite .n { font-size: 17px; }
  body.raizes .amen-lite .s { font-size: 10px; letter-spacing: 0.16em; }
}

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

/* números da ficha com unidade sobrescrita discreta */
body.raizes .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 empreendimento
   ============================================================ */
body.raizes .top .brand .selo,
body.raizes footer .brand-foot .selo {
  background: #2c3614 url("../../assets/selo-cd.webp") center/84% no-repeat;
  border-radius: 50%; border: none; clip-path: none;
  box-shadow: 0 0 0 1px rgba(224,138,92,0.35);
}
body.raizes .top .brand .selo::before,
body.raizes footer .brand-foot .selo::before {
  content: none;
}

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

/* contato: foto de fundo */
body.raizes .contato .bg {
  background: url("assets/avenida.webp") center 50%/cover no-repeat;
  transform: scale(1.04);
}


/* ============================================================
   IMPLANTAÇÃO E MAPAS: arte inteira (contain) e legenda ABAIXO da imagem,
   nunca texto claro sobre arte clara
   ============================================================ */
body.raizes .raizes-figrow .frame.map { aspect-ratio: auto; background: var(--bg); }
body.raizes .frame.map img {
  height: auto; aspect-ratio: 16/10; object-fit: contain; background: var(--bg);
}
body.raizes .frame.map:hover img { transform: scale(1.02); }
body.raizes .frame.map::after { display: none; }
body.raizes .frame.map figcaption {
  position: static; opacity: 1; transform: none;
  color: var(--ink); text-shadow: none; padding: 12px 16px 14px;
}

/* 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.raizes .contato .bg { background-image: url("assets/avenida-480.webp"); } }
@media (max-width: 480px) and (min-resolution: 2dppx) { body.raizes .contato .bg { background-image: url("assets/avenida-960.webp"); } }
@media (min-width: 481px) and (max-width: 760px) { body.raizes .contato .bg { background-image: url("assets/avenida-960.webp"); } }
/* CD-CONTATO-BG:end */

/* implantacao e mapa: moldura na proporcao da arte, sem faixa vazia */
body.raizes .raizes-figrow .frame.map figcaption,
body.raizes .raizes-figrow .frame.map figcaption .n,
body.raizes .raizes-figrow .frame.map figcaption .s { text-shadow: none; }

/* implantacao com fundo verde do proprio book: moldura acompanha a arte */
body.raizes .frame.map.planta, body.raizes .frame.map.planta img { background: #8AA663; }
body.raizes .frame.map.planta img { aspect-ratio: 2400 / 1219; }
body.raizes .frame.map.planta figcaption { background: var(--bg); }
/* mapa do book (quase quadrado): coluna estreita, sem esticar */
body.raizes .loc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
body.raizes .loc-grid .frame.map { aspect-ratio: auto; background: transparent; }
body.raizes .loc-grid .frame.map img { aspect-ratio: 1400 / 1431; background: #F2F0C3; }
body.raizes .loc-list { grid-template-columns: 1fr; }
@media (max-width: 760px) { body.raizes .loc-grid { grid-template-columns: 1fr; } }
/* esportes em fundo creme mais fundo, para nao colar no bloco claro anterior */
body.raizes #esportes { background: var(--bg-deep); }
/* mapa da localizacao: largura cheia da coluna e legenda clara sobre a secao escura */
body.raizes .loc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
body.raizes .loc-grid .frame.map { width: 100%; max-width: 560px; }
body.raizes .location .frame.map figcaption,
body.raizes .location .frame.map figcaption .n,
body.raizes .location .frame.map figcaption .s { color: var(--paper); background: transparent; }
@media (max-width: 760px) { body.raizes .loc-grid { grid-template-columns: 1fr; } }
