/* ORIGEM, identidade local
   Mantém o esqueleto do styles.css (Scenario design system) e veste com a paleta
   da marca ORIGEM (verde floresta + creme, do ID da marca) + a camada de interação
   do ÚNICCO: textura grain, marquee, molduras com hover-zoom e reveal on-scroll.
   Tudo escopado em body.origem para não afetar outras páginas.
*/

body.origem {
  /* Paleta oficial ORIGEM (ID da marca): verde floresta profundo + creme + areia/madeira */
  --navy:        #3A402C;   /* verde floresta primário (mapeia para --navy da base) */
  --navy-2:      #474E36;
  --navy-deep:   #2C3120;
  --champagne:   #B89B5E;   /* accent areia/madeira (oásis tropical) */
  --champagne-2: #CBB075;
  --champagne-deep: #997E45;
  --bg:          #F4EFE1;
  --bg-deep:     #EAE2CF;
  --paper:       #FAF6EA;
  --ink:         var(--navy);
  --ink-2:       var(--navy-2);
  --muted:       #6B6A52;
  --line:        rgba(58, 64, 44, 0.16);
  --line-2:      rgba(58, 64, 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.origem .grain { position: relative; overflow: hidden; }
body.origem .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.origem .grain > .container,
body.origem .contato.grain .contato-inner,
body.origem footer.grain .row,
body.origem footer.grain .legal { position: relative; z-index: 2; }
body.origem .hero.grain .stack,
body.origem .hero.grain .top-meta,
body.origem .hero.grain .scroll-cue { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
body.origem .hero.empreendimento { min-height: 92vh; min-height: 92svh; }
body.origem .hero.empreendimento .photo {
  background-image: url("assets/hero.webp");
  background-position: center 42%;
}
body.origem .hero.empreendimento .scrim {
  background:
    linear-gradient(180deg,
      rgba(28,49,32,0) 0%,
      rgba(28,49,32,0) 26%,
      rgba(28,49,32,0.30) 50%,
      rgba(28,49,32,0.68) 80%,
      rgba(28,49,32,0.92) 100%);
}
body.origem .hero .stack .eyebrow { color: var(--champagne-2); }
body.origem .hero h1 em { font-style: italic; color: var(--champagne-2); }
body.origem .hero .origem-mark {
  display: block; max-width: 260px; margin-bottom: 22px; opacity: 0.98;
}

/* ============================================================
   MARQUEE — faixa de diferenciais rolando (do ÚNICCO)
   ============================================================ */
body.origem .origem-marquee {
  background: var(--navy);
  color: var(--champagne-2);
  border-top: 1px solid rgba(184,155,94,0.20);
  border-bottom: 1px solid rgba(184,155,94,0.20);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
body.origem .origem-marquee .track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: origem-marquee 38s linear infinite;
}
body.origem .origem-marquee span {
  font-family: var(--sans); font-weight: 300;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
body.origem .origem-marquee .dot { color: var(--champagne); opacity: 0.7; }
@keyframes origem-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.origem .origem-marquee .track { animation: none; }
}

/* ============================================================
   MOLDURAS COM HOVER-ZOOM (figrow do conceito + mapa)
   ============================================================ */
body.origem .origem-figrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: clamp(32px, 4vw, 56px);
}
body.origem .frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--bg-deep);
  aspect-ratio: 4/3; cursor: zoom-in;
}
body.origem .origem-figrow .frame.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
body.origem .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
body.origem .frame:hover img { transform: scale(1.06); }
body.origem .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28,49,32,0.74) 100%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
body.origem .frame:hover::after { opacity: 1; }
body.origem .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.origem .frame:hover figcaption { transform: none; opacity: 1; }
body.origem .frame figcaption .s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.8;
}
body.origem .frame figcaption .n {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
}
@media (max-width: 760px) {
  body.origem .origem-figrow { grid-template-columns: 1fr; }
  body.origem .origem-figrow .frame.wide { aspect-ratio: 16/9; }
  body.origem .frame figcaption { opacity: 1; transform: none; }
}

/* mapa na localização ocupa a coluna inteira da loc-grid */
body.origem .loc-grid .frame.map { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* ============================================================
   BENTO / ESPORTES — realça o hover-zoom dos cells (bg-image)
   ============================================================ */
body.origem .club-grid .cell,
body.origem .esp-grid .cell {
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
body.origem .club-grid .cell:hover,
body.origem .esp-grid .cell:hover { transform: scale(1.012); filter: brightness(1.04); }
body.origem .club-grid .cell .cap,
body.origem .esp-grid .cell .cap {
  transform: translateY(6px); opacity: 0.92;
  transition: transform .4s ease, opacity .4s ease;
}
body.origem .club-grid .cell:hover .cap,
body.origem .esp-grid .cell:hover .cap { transform: none; opacity: 1; }

/* ============================================================
   MODELOS DE CASA — faixa de 5 modelos
   ============================================================ */
body.origem .origem-models {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
body.origem .origem-models .model {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: var(--paper);
}
body.origem .origem-models .model:last-child { border-right: none; }
body.origem .origem-models .mpic {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-deep, #111);
}
body.origem .origem-models .mpic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16,.84,.44,1);
}
body.origem .origem-models .model:hover .mpic img { transform: scale(1.05); }
body.origem .origem-models .mbody {
  padding: 20px 18px 22px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
body.origem .origem-models-note {
  margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
body.origem .origem-models .mpic { cursor: zoom-in; }
body.origem .origem-models .mplanta {
  margin-top: 4px; align-self: flex-start;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--champagne-deep);
  background: none; border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 14px; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
body.origem .origem-models .mplanta:hover {
  background: var(--champagne-deep); color: var(--paper); border-color: var(--champagne-deep);
}

/* ============================================================
   INTERIORES, galeria
   ============================================================ */
body.origem .origem-interiores { margin-top: clamp(48px, 6vw, 80px); }
body.origem .origem-interiores .oi-head { max-width: 640px; margin-bottom: clamp(22px, 3vw, 34px); }
body.origem .origem-interiores .oi-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--champagne-deep);
}
body.origem .origem-interiores .oi-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05;
  color: var(--ink); margin: 8px 0 10px;
}
body.origem .origem-interiores .oi-lead {
  font-family: var(--sans); font-weight: 300; font-size: 14px;
  line-height: 1.6; color: var(--muted);
}
body.origem .origem-interiores .oi-banner {
  aspect-ratio: 3 / 1; background-size: cover; background-position: center;
  border-radius: 4px; cursor: zoom-in; border: 1px solid var(--line);
}
body.origem .origem-interiores .oi-grid {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
body.origem .origem-interiores .oi-cell {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  border-radius: 4px; cursor: zoom-in; border: 1px solid var(--line);
}
@media (max-width: 720px) {
  body.origem .origem-interiores .oi-banner { aspect-ratio: 16 / 10; }
  body.origem .origem-interiores .oi-grid { grid-template-columns: 1fr 1fr; }
  body.origem .origem-interiores .oi-cell:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
body.origem .origem-models .mt {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
  color: var(--ink);
}
body.origem .origem-models .md {
  font-family: var(--sans); font-weight: 300; font-size: 12.5px; line-height: 1.5;
  color: var(--muted); flex: 1;
}
body.origem .origem-models .ma {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--champagne-deep);
}
@media (max-width: 900px) {
  body.origem .origem-models { grid-template-columns: 1fr 1fr; }
  body.origem .origem-models .model:nth-child(2n) { border-right: none; }
  body.origem .origem-models .model { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  body.origem .origem-models { grid-template-columns: 1fr; }
  body.origem .origem-models .model { border-right: none; }
}

/* ============================================================
   TABELA / CASAS — CTA band
   ============================================================ */
body.origem .origem-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.origem .origem-cta-band p {
  margin: 0; max-width: 56ch;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
@media (max-width: 760px) {
  body.origem .origem-cta-band { grid-template-columns: 1fr; }
}

/* ============================================================
   BRAND — selo vira monograma champagne com "O" verde
   ============================================================ */
body.origem .top .brand .selo,
body.origem 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.origem .top .brand .selo::before,
body.origem footer .brand-foot .selo::before {
  content: none;
}

body.origem footer { background: var(--navy-deep); }
body.origem footer .brand-foot small { color: var(--champagne-2); }

/* contato — imagem de fundo da marca */
body.origem .contato .bg {
  background: url("assets/oasis-piscina-natural.webp") center 46%/cover no-repeat;
  transform: scale(1.04);
}
