/* ============================================================
   Chácara SJP — Colônia Murici
   Design system + layout
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superfícies — verde-quase-preto de mata fechada */
  --ink: #090c0a;
  --ink-2: #0d120f;
  --ink-3: #131a15;
  --ink-4: #1a231d;

  /* Tinta clara — areia/neblina */
  --sand: #ece5d6;
  --sand-2: #c3bcac;
  --sand-3: #8d887b;

  /* Acentos */
  --gold: #c9a24d;
  --gold-2: #e8c983;
  --gold-3: #7a6229;
  --moss: #82a071;
  --water: #6fa3a8;
  --clay: #bf7a52;

  /* Linhas */
  --line: rgba(236, 229, 214, 0.10);
  --line-2: rgba(236, 229, 214, 0.18);
  --line-gold: rgba(201, 162, 77, 0.32);

  /* Tipografia */
  --font-display: "Fraunces", "Libre Baskerville", Georgia, serif;
  --font-sans: "Inter", "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Ritmo */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1280px;
  --maxw-text: 68ch;
  --section-y: clamp(5rem, 11vw, 10.5rem);
  --radius: 2px;
  --radius-lg: 4px;

  /* Curvas */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.68;
  font-feature-settings: "kern", "liga", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--ink); }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- 3. Utilitários ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: clamp(20px, 4vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.62;
  color: var(--sand-2);
  max-width: var(--maxw-text);
}

.muted { color: var(--sand-3); }

.h2 {
  font-size: clamp(2rem, 1.3rem + 3.3vw, 4.25rem);
}
.h3 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.1rem);
}
.h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-3);
}

.gold { color: var(--gold-2); }
.serif-italic { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1; }

.num {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
  letter-spacing: -0.03em;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-gold), var(--line), transparent);
}

/* ---------- 4. Grão + vinheta globais ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-3);
}

.nav { display: none; gap: clamp(0.5rem, 1.4vw, 1.6rem); align-items: center; }
.nav a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--sand-2);
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.nav a:hover { color: var(--sand); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { right: 0; }
.nav a[aria-current="true"] { color: var(--gold-2); }

/* especificidade acima de .btn, que define display: inline-flex */
.header .header__cta { display: none; }

.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 12px rgba(201, 162, 77, 0.6);
}

/* Botões */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #100e08;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(201, 162, 77, 0.26); }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--sand);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--line-gold); box-shadow: none; }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.6875rem; }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  margin-right: -10px;
  color: var(--sand);
}
.burger span {
  display: block;
  width: 22px; height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu mobile */
.drawer {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 99;
  background: color-mix(in srgb, var(--ink-2) 97%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 2rem;
  display: grid;
  gap: 0.15rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.drawer a span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.drawer .btn { margin-top: 1.25rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(130, 160, 113, 0.20), transparent 62%),
    radial-gradient(80% 60% at 78% 12%, rgba(201, 162, 77, 0.16), transparent 60%),
    linear-gradient(178deg, #06090a 0%, #0a1210 46%, #0b1512 100%);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  filter: saturate(0.74) contrast(1.02) brightness(0.86);
  opacity: 0.66;
  transform: scale(1.03);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 10, 0.82) 0%, rgba(9, 12, 10, 0.24) 24%,
      rgba(9, 12, 10, 0.58) 64%, var(--ink) 100%),
    linear-gradient(90deg, rgba(9, 12, 10, 0.9) 0%, rgba(9, 12, 10, 0.6) 38%,
      rgba(9, 12, 10, 0.16) 70%, rgba(9, 12, 10, 0.42) 100%);
}

/* no mobile a coluna de texto ocupa tudo — escurece mais para manter legibilidade */
@media (max-width: 899px) {
  .hero__photo img { opacity: 0.5; object-position: 58% 38%; }
  .hero__photo::after {
    background:
      linear-gradient(180deg, rgba(9, 12, 10, 0.84) 0%, rgba(9, 12, 10, 0.42) 22%,
        rgba(9, 12, 10, 0.86) 58%, var(--ink) 100%);
  }
}

.hero__topo {
  position: absolute;
  inset: -6% -4% 0;
  z-index: -3;
  opacity: 0.16;
  color: var(--moss);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
}

.hero__ridge {
  position: absolute;
  left: -2%; right: -2%; bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  left: 50%; bottom: -30vh;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  translate: -50% 0;
  z-index: -2;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.16), transparent 62%);
  filter: blur(20px);
}

.hero__inner { padding-bottom: clamp(2.5rem, 6vw, 5rem); width: 100%; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  background: rgba(201, 162, 77, 0.06);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero__tag i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 162, 77, 0.7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(201, 162, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 77, 0); }
}

.hero h1 {
  font-size: clamp(3rem, 1.2rem + 9.4vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 .l {
  display: block;
  overflow: hidden;
}
.hero h1 .l > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn 1.15s var(--ease) forwards;
}
.hero h1 .l:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .l:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes riseIn { to { transform: none; } }

.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  color: var(--gold-2);
}

.hero__cols {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero__price {
  border-left: 1px solid var(--line-gold);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__price .v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--sand);
}
.hero__price .v small { font-size: 0.42em; color: var(--sand-3); letter-spacing: 0; }

.scrollcue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vw, 5rem);
  display: none;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-3);
  writing-mode: vertical-rl;
}
.scrollcue::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.25); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- 7. Faixa de números ---------- */
.ribbon {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  position: relative;
  z-index: 2;
}
.ribbon__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.ribbon__cell {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ribbon__cell::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.ribbon__cell:hover::before { transform: scaleX(1); }
.ribbon__cell .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-3);
  margin-bottom: 0.6rem;
}
.ribbon__cell .v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.ribbon__cell .v sub {
  font-size: 0.36em;
  bottom: 0;
  color: var(--sand-3);
  letter-spacing: 0.04em;
  margin-left: 0.25em;
}

/* ---------- 8. Seções ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tint { background: linear-gradient(180deg, var(--ink), var(--ink-2) 40%, var(--ink)); }
.section--panel { background: var(--ink-2); border-block: 1px solid var(--line); }

.section__no {
  position: absolute;
  top: calc(var(--section-y) * 0.42);
  right: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 1;
  color: rgba(236, 229, 214, 0.028);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.section > .wrap { position: relative; z-index: 1; }

.head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.head__title { max-width: 20ch; }

/* ---------- 9. Grades genéricas ---------- */
.grid { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
/* itens de grid não podem estourar a coluna (min-width: auto é o padrão) */
.grid > *, .split > *, .head > *, .poles > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: linear-gradient(160deg, rgba(236, 229, 214, 0.035), rgba(236, 229, 214, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 162, 77, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card__i {
  width: 34px; height: 34px;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9375rem; color: var(--sand-2); line-height: 1.6; }

.card--stat .v {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--gold-2);
  display: block;
  margin-bottom: 0.5rem;
}

/* Lista com marcador desenhado */
.checks { display: grid; gap: 0.9rem; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--sand-2);
  line-height: 1.55;
}
.checks li::before {
  content: "";
  margin-top: 0.42em;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.75;
}
.checks strong { color: var(--sand); font-weight: 600; }

/* ---------- 11. Tabela editorial ---------- */
.tablewrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(236, 229, 214, 0.018);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-3);
}
th, td {
  text-align: left;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom-color: var(--line-gold);
  white-space: nowrap;
}
tbody th { font-weight: 500; color: var(--sand); width: 42%; }
tbody td { color: var(--sand-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.25s var(--ease); }
tbody tr:hover { background: rgba(201, 162, 77, 0.045); }
td .v, th .v { font-family: var(--font-display); font-size: 1.05em; letter-spacing: -0.02em; }

/* ---------- 12. Destaque / quote ---------- */
.pull {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(201, 162, 77, 0.10), transparent 60%),
    rgba(236, 229, 214, 0.02);
}
.pull__t {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.95rem + 1.5vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.pull p { color: var(--sand-2); max-width: 62ch; }

.note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(236, 229, 214, 0.015);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sand-3);
}
.note svg { width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.note strong { color: var(--sand-2); font-weight: 600; }

/* ---------- 12b. Preço: âncora de referência ---------- */
.anchor {
  display: flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--sand-3);
}
.anchor s {
  text-decoration-line: line-through;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 1.5px;
}

.save {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  background: rgba(201, 162, 77, 0.08);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-3);
  line-height: 1.4;
}
.save b { font-weight: 500; color: var(--gold-2); }

.hero__price .h4 { display: block; }
.hero__price .h4 + .anchor { margin-bottom: 0.9rem; }

.cta__price { justify-items: center; }
.cta__price .anchor { margin-bottom: 0.35rem; }

/* diferença destacada dentro de tabela */
.delta {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  vertical-align: 2px;
}

/* ---------- 13. Slot de foto ---------- */
.slot {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.85rem;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(130, 160, 113, 0.07), rgba(9, 12, 10, 0.4) 60%),
    repeating-linear-gradient(135deg, rgba(236, 229, 214, 0.022) 0 1px, transparent 1px 11px);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.slot:hover { border-color: var(--line-gold); }
.slot::before, .slot::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--line-gold);
}
.slot::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.slot::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.slot svg { width: 30px; height: 30px; color: var(--gold); opacity: 0.55; margin-inline: auto; }
.slot span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-3);
  max-width: 24ch;
  line-height: 1.7;
}
.slot--wide { aspect-ratio: 16 / 7; }
.slot--tall { aspect-ratio: 3 / 4; }

/* ---------- 14. Figura (imagem real) ---------- */
.figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.figure img {
  width: 100%;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
}
.figure:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.06); }
.figure figcaption {
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-3);
  line-height: 1.7;
}
.figure__badge {
  position: absolute;
  z-index: 2; /* o filter no <img> cria contexto de empilhamento e o cobriria */
  top: 0.85rem; left: 0.85rem;
  padding: 0.35rem 0.7rem;
  background: rgba(9, 12, 10, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.figure__badge--now {
  background: rgba(9, 12, 10, 0.78);
  border-color: var(--line-2);
  color: var(--sand-2);
}

/* Variante de mosaico: iguala a altura das fotos aos slots vazios na grade */
.figure--tile { display: flex; flex-direction: column; }
.figure--tile img { flex: 1 1 auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.figure--tile figcaption { margin-top: auto; }

/* ---------- 15. Diagrama do terreno ---------- */
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: clamp(1rem, 2.4vw, 1.75rem);
}
.plan svg { width: 100%; height: auto; }
.plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-3);
}
.plan__legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: -1px;
}

/* ---------- 16. Abas de vocação ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: 0.35rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--sand-3);
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--sand); border-color: var(--line-2); }
.tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #100e08;
  font-weight: 600;
}

.panel[hidden] { display: none; }
.panel { animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
}
.panel__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.panel__head h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); }

/* ---------- 17. Barra de zoneamento ---------- */
.zone {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background: var(--ink-3);
}
.zone__bar {
  display: flex;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  background: var(--ink);
}
.zone__seg {
  position: relative;
  width: 0;
  transition: width 1.4s var(--ease);
  border-right: 1px solid rgba(9, 12, 10, 0.5);
}
.zone__seg:last-child { border-right: 0; }
.zone__seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 6px);
}
.zone__rows { display: grid; gap: 0; }
.zone__row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.zone__row:last-child { border-bottom: 0; }
.zone__row i { width: 12px; height: 12px; border-radius: 2px; }
.zone__row b { font-weight: 500; color: var(--sand); }
.zone__row span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sand-2);
  white-space: nowrap;
}

/* ---------- 18. Território / polos ---------- */
.poles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pole {
  background: var(--ink-2);
  padding: clamp(1.35rem, 2.6vw, 2rem);
  display: grid;
  gap: 0.6rem;
  transition: background 0.35s var(--ease);
}
.pole:hover { background: var(--ink-3); }
.pole__k {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.pole__k em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.pole p { font-size: 0.9375rem; color: var(--sand-2); }

/* ---------- 19. Mapa ---------- */
.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
  min-height: 340px;
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.55) invert(0.92) hue-rotate(180deg) contrast(0.92); }
.map__pin {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(9, 12, 10, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--sand-2);
  line-height: 1.9;
  pointer-events: none;
}
.map__pin b { color: var(--gold-2); display: block; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- 20. Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 1.15rem;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.8rem);
  letter-spacing: -0.02em;
  color: var(--sand-3);
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 21. Timeline / checklist ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  counter-increment: s;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:first-child { border-top: 1px solid var(--line); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 0.35em;
}
.step p { font-size: 0.9375rem; color: var(--sand-2); }

/* ---------- 22. CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 100% at 50% 100%, rgba(130, 160, 113, 0.16), transparent 60%),
    radial-gradient(60% 80% at 50% 0%, rgba(201, 162, 77, 0.14), transparent 62%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta__inner { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.cta h2 { font-size: clamp(2.25rem, 1.3rem + 4.2vw, 5.5rem); line-height: 0.94; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta__price {
  display: inline-grid;
  gap: 0.25rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background: rgba(9, 12, 10, 0.4);
}
.cta__price .v { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -0.035em; }
.cta__price .k { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-3); }

/* ---------- 23. Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: 0.8125rem;
  color: var(--sand-3);
}
.footer__grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
.footer h4 { margin-bottom: 1rem; }
.footer li { padding: 0.3rem 0; }
.footer a:hover { color: var(--gold-2); }
.footer__legal {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  font-size: 0.75rem;
  line-height: 1.75;
  color: #6c675d;
}
.footer__legal p { max-width: 96ch; }

/* ---------- 24. WhatsApp flutuante ---------- */
.float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  background: var(--gold);
  color: #100e08;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 201, 131, 0.3);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), box-shadow 0.3s;
}
.float.is-in { transform: none; opacity: 1; }
.float:hover { box-shadow: 0 16px 50px rgba(201, 162, 77, 0.35), 0 0 0 1px var(--gold-2); }
.float svg { width: 17px; height: 17px; }

/* ---------- 25. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 26. Breakpoints ---------- */
@media (min-width: 640px) {
  .ribbon__grid { grid-template-columns: repeat(4, 1fr); }
  .ribbon__cell { border-bottom: 0; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero__cols { grid-template-columns: 1.55fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.25fr 1fr; }
  .split--narrow { grid-template-columns: 0.85fr 1fr; }
  .head { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .poles { grid-template-columns: repeat(2, 1fr); }
  .scrollcue { display: flex; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 1040px) {
  .nav { display: flex; }
  .burger { display: none; }
  .header .header__cta { display: inline-flex; }
  .drawer { display: none; }
  .ribbon__grid { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 1039px) {
  .ribbon__cell:nth-child(2n) { border-right: 0; }
}
@media (min-width: 640px) and (max-width: 1039px) {
  .ribbon__cell:nth-child(4n) { border-right: 0; }
  .ribbon__cell:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

/* ---------- 27. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .l > span { transform: none; }
}

/* ---------- 28. Impressão ---------- */
@media print {
  .header, .drawer, .float, .grain, .scrollcue, .marquee { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 1.5rem; page-break-inside: avoid; }
  .card, .tablewrap, .pull { border-color: #ccc; background: none; }
}
