/* ============================================================
   KRV ENGENHARIA — Design System
   Direção: editorial premium. Papel claro + grafite profundo,
   vermelho KRV (#E0040B) como acento cirúrgico.
   ============================================================ */
:root {
  --red: #E0040B;
  --red-dark: #B00309;
  --ink: #15171C;
  --ink-2: #23262E;
  --paper: #F6F4EF;
  --paper-2: #ECE9E1;
  --line: #D8D4C9;
  --muted: #6B6F78;
  --white: #FFFFFF;
  --ok: #1B7F4D;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(21, 23, 28, .28);
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.lead-text { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #C9CCD4; font-size: .8rem;
  padding: 7px 0; text-align: center; letter-spacing: .04em;
}
.topbar b { color: #fff; }
.topbar a { color: #fff; border-bottom: 1px solid var(--red); }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: .95rem; letter-spacing: 0;
}
.logo small { display: block; font-family: var(--body); font-weight: 600; font-size: .62rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--red); color: #fff; border: none;
  font: 700 .95rem var(--body); padding: 13px 24px; border-radius: 999px;
  transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 10px 24px -10px rgba(224, 4, 11, .55);
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }
.btn.wa { background: #1FAF5A; box-shadow: 0 10px 24px -10px rgba(31, 175, 90, .55); }
.btn.wa:hover { background: #178A46; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(21,23,28,.94) 18%, rgba(21,23,28,.55) 58%, rgba(21,23,28,.25)); }
.hero .inner { position: relative; padding: 110px 0 130px; max-width: 660px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { margin: 22px 0 34px; font-size: 1.15rem; color: #C9CCD4; max-width: 54ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 38px; }
.hero-badges span {
  font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); color: #E4E6EB; backdrop-filter: blur(4px);
}
.stats-strip { background: var(--red); color: #fff; }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.25); }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat span { font-size: .82rem; opacity: .92; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--paper-2); }
section.block.dark { background: var(--ink); color: #fff; }
section.block.dark .lead-text { color: #A9ADB6; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }

/* ---------- Cards de empreendimento ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff;
}
.badge.s-19 { background: #7A3DD8; }      /* Pré-lançamento */
.badge.s-20 { background: var(--red); }    /* Em construção */
.badge.s-21, .badge.entregue { background: var(--ok); } /* Pronto / Novo */
.badge.s-322 { background: #D87A00; }      /* Lançamento */
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card .body .loc { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card .body p { font-size: .92rem; color: var(--muted); flex: 1; }
.card .meta { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-2); font-weight: 600; flex-wrap: wrap; }
.card .price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.card .price small { font-weight: 600; color: var(--muted); font-family: var(--body); font-size: .78rem; }
.card .actions { display: flex; gap: 10px; margin-top: 14px; }
.card .actions .btn { padding: 11px 18px; font-size: .85rem; flex: 1; justify-content: center; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font: 600 .88rem var(--body); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Diferenciais ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; background: var(--red); }
.feature .num { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--paper-2); -webkit-text-stroke: 1.5px var(--ink); line-height: 1; margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--muted); }
section.dark .feature { background: var(--ink-2); border-color: #32363F; }
section.dark .feature .num { color: var(--ink-2); -webkit-text-stroke: 1.5px #fff; }
section.dark .feature p { color: #A9ADB6; }

/* ---------- Depoimentos ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote .stars { color: #E8A500; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: .95rem; font-style: italic; color: var(--ink-2); margin-bottom: 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.quote .who b { display: block; }
.quote .who span { color: var(--muted); }

/* ---------- Formulários ---------- */
.form-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 34px; box-shadow: var(--shadow);
}
.form-card.on-dark { box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.form-grid { display: grid; gap: 14px; }
label.fld { display: block; font-size: .82rem; font-weight: 700; }
label.fld input, label.fld select, label.fld textarea {
  width: 100%; margin-top: 6px; padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--line); font: 500 .95rem var(--body); background: var(--paper);
  transition: border-color .2s; outline: none;
}
label.fld input:focus, label.fld textarea:focus { border-color: var(--red); }
.form-note { font-size: .76rem; color: var(--muted); }
.form-msg { font-size: .9rem; font-weight: 600; display: none; padding: 12px 14px; border-radius: 10px; }
.form-msg.ok { display: block; background: #E4F4EB; color: var(--ok); }
.form-msg.err { display: block; background: #FBE5E6; color: var(--red-dark); }

/* ---------- Página do empreendimento ---------- */
.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: 12px; border-radius: var(--radius); overflow: hidden; }
.gallery .main { aspect-ratio: 16/10; background: var(--ink-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .side { display: grid; gap: 12px; grid-template-rows: 1fr 1fr; }
.gallery .side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; border-radius: 8px; opacity: .85; transition: opacity .2s; }
.gallery .side img:hover, .gallery .side img.sel { opacity: 1; outline: 3px solid var(--red); outline-offset: -3px; }
.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; margin-top: 44px; }
.sticky-aside { position: sticky; top: 100px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .88rem; }
.spec b { display: block; font-size: 1.02rem; }
.amen-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.amen-list span { font-size: .84rem; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.progress-item { margin-bottom: 16px; }
.progress-item .pl { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.progress-bar { height: 9px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #FF6A4D); border-radius: 999px; }

/* ---------- Simulador ---------- */
.sim { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; }
.sim h3 { color: #fff; margin-bottom: 4px; }
.sim .sub { font-size: .82rem; color: #A9ADB6; margin-bottom: 20px; }
.sim label.fld { color: #C9CCD4; }
.sim label.fld input { background: var(--ink-2); border-color: #32363F; color: #fff; }
.sim-out { background: var(--ink-2); border-radius: 10px; padding: 18px; margin-top: 16px; }
.sim-out .row { display: flex; justify-content: space-between; font-size: .9rem; padding: 7px 0; border-bottom: 1px dashed #3A3E48; }
.sim-out .row:last-child { border: none; }
.sim-out .row b { font-family: var(--display); }
.sim-out .hl b { color: #FF8A7A; font-size: 1.2rem; }
.sim-note { font-size: .72rem; color: #8A8E98; margin-top: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15,16,20,.94); z-index: 100; display: none; place-items: center; padding: 4vh 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox .x { position: absolute; top: 22px; right: 28px; font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; }

/* ---------- Corretores ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.check-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: 2px; }
section.dark .check-list li::before { background: #fff; color: var(--ink); }

/* ---------- CTA final ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), #8E0207); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #A9ADB6; padding: 70px 0 0; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
footer.site h4 { color: #fff; font-family: var(--display); font-size: .95rem; margin-bottom: 16px; letter-spacing: .06em; text-transform: uppercase; }
footer.site a:hover { color: #fff; }
.foot-list { list-style: none; display: grid; gap: 10px; }
.foot-bottom { border-top: 1px solid #2B2E36; padding: 22px 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom a { color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #1FAF5A; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 14px 30px -8px rgba(31,175,90,.6);
  transition: transform .2s; animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,175,90,.45); } 50% { box-shadow: 0 0 0 16px rgba(31,175,90,0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interno) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(224,4,11,.18); }
.page-hero p { color: #A9ADB6; margin-top: 12px; max-width: 60ch; }
.breadcrumb { font-size: .8rem; color: #8A8E98; margin-bottom: 18px; }
.breadcrumb a { color: #C9CCD4; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid.cols-3, .quote-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .detail-layout, .split { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
}
@media (max-width: 660px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 22px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .grid.cols-3, .grid.cols-2, .quote-grid, .feature-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero .inner { padding: 70px 0 80px; }
  section.block { padding: 60px 0; }
}

/* ============================================================
   v2 — Refinamentos: hero slideshow, contadores, FAQ,
   prévia da calculadora, header scrolled, texturas
   ============================================================ */

/* Textura de grain nas seções escuras */
section.block.dark, .hero, .page-hero, .cta-band {
  position: relative;
}
section.block.dark::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
section.block.dark > .container, .page-hero > .container { position: relative; }

/* Header com estado scrolled */
header.site { transition: box-shadow .3s, background .3s; }
header.site.scrolled { box-shadow: 0 8px 30px -12px rgba(21,23,28,.25); background: rgba(246,244,239,.98); }

/* Hero slideshow com crossfade */
.hero .bg .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.hero .bg .slide.on { opacity: .42; }
.hero .bg .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide-caption {
  position: absolute; right: 28px; bottom: 24px; z-index: 3;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(21,23,28,.45); backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
}
.hero .inner > * { opacity: 0; transform: translateY(22px); animation: heroIn .8s forwards; }
.hero .inner > *:nth-child(2) { animation-delay: .12s; }
.hero .inner > *:nth-child(3) { animation-delay: .24s; }
.hero .inner > *:nth-child(4) { animation-delay: .36s; }
.hero .inner > *:nth-child(5) { animation-delay: .48s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 999px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 4px; background: #fff; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* Contadores */
.stat b { font-variant-numeric: tabular-nums; }

/* Reveal com stagger */
.grid .reveal:nth-child(2), .feature-row .reveal:nth-child(2), .quote-grid .reveal:nth-child(2) { transition-delay: .1s; }
.grid .reveal:nth-child(3), .feature-row .reveal:nth-child(3), .quote-grid .reveal:nth-child(3) { transition-delay: .2s; }
.feature-row .reveal:nth-child(4) { transition-delay: .3s; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.02rem; padding: 20px 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; color: var(--red); transition: transform .25s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }
.faq details[open] { border-color: var(--red); }

/* Prévia da calculadora (corretores) */
.calc-preview-frame {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); border: 1px solid #32363F;
  transform: rotate(1.2deg); transition: transform .35s;
}
.calc-preview-frame:hover { transform: rotate(0deg) scale(1.01); }
.calc-preview-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: #23262E; font-size: .74rem; color: #8A8E98;
}
.calc-preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3E48; }
.calc-preview-bar i:nth-child(1) { background: #E0040B; }
.calc-preview-bar i:nth-child(2) { background: #E8A500; }
.calc-preview-bar i:nth-child(3) { background: #1FAF5A; }
.calc-preview-bar span { margin-left: 8px; }
.calc-preview-frame iframe { width: 100%; height: 480px; border: 0; display: block; background: #fff; }

/* Seleção e scrollbar */
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--ink-2) var(--paper-2); }

/* Botões com seta */
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* Acessibilidade de foco */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(224,4,11,.4); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 660px) {
  .calc-preview-frame iframe { height: 380px; }
  .hero .slide-caption { right: 16px; bottom: 64px; }
}

/* Lightbox navegação + overlay "+N fotos" */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.9rem; cursor: pointer;
  display: grid; place-items: center; transition: background .2s; line-height: 1;
}
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-nav.prev { left: 22px; } .lb-nav.next { right: 22px; }
.more-overlay {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(21,23,28,.55); color: #fff; font: 700 .95rem var(--display);
  border-radius: 8px; pointer-events: none;
}

/* ============================================================
   v3 — Urgência, tabela de unidades, vídeos, obra, landing, admin
   ============================================================ */
.badge.urgency {
  top: auto; bottom: 14px; left: 14px; background: #D87A00;
  animation: urgPulse 2s infinite;
}
@keyframes urgPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Tabela de unidades */
.units-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.units-table th { background: var(--ink); color: #fff; font-family: var(--display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; text-align: left; }
.units-table td { padding: 12px 14px; border-top: 1px solid var(--paper-2); }
.units-table tr:hover td { background: var(--paper); }
.units-table .u-price { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.units-table .btn { padding: 8px 14px; font-size: .78rem; }
.units-wrap { max-height: 480px; overflow: auto; border-radius: 12px; box-shadow: var(--shadow); }
.units-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* Vídeos */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.video-grid video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }

/* Galeria de obra */
.obra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.obra-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); transition: transform .2s; }
.obra-grid img:hover { transform: scale(1.03); }

/* Landing Paço das Águas */
.landing-hero { min-height: 86vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.landing-hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.landing-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(21,23,28,.95) 25%, rgba(21,23,28,.5)); }
.landing-hero .container { position: relative; z-index: 2; }
.count-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0;
  background: rgba(224,4,11,.15); border: 1px solid var(--red); color: #FF8A7A;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.count-pill b { font-family: var(--display); font-size: 1.3rem; color: #fff; }

/* Painel admin */
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.admin-card b { display: block; font-family: var(--display); font-size: 2.2rem; }
.admin-card span { font-size: .82rem; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.admin-table th { background: var(--ink-2); color: #fff; padding: 10px 12px; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: 10px 12px; border-top: 1px solid var(--paper-2); }

@media (max-width: 660px) {
  .video-grid { grid-template-columns: 1fr; }
  .obra-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .units-table th:nth-child(4), .units-table td:nth-child(4) { display: none; }
}

/* ============================================================
   v4 — Identidade visual: logos reais
   ============================================================ */
.logo img.brand { height: 46px; width: auto; display: block; }
footer.site .logo img.brand { height: 52px; }
.card-logo {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border-radius: 10px; padding: 6px 10px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
}
.card-logo img { height: 34px; width: auto; max-width: 110px; object-fit: contain; }
.ad-logo-hero { height: 64px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.hero .slide-caption img { height: 30px; width: auto; max-width: 140px; object-fit: contain; display: block; }
@media (max-width: 660px) {
  .logo img.brand { height: 38px; }
  .ad-logo-hero { height: 48px; }
}

/* ============================================================
   v5 — Polimento final: mapa de disponibilidade, esgotado,
   acessibilidade, mobile
   ============================================================ */
.badge.soldout { background: var(--ok); top: auto; bottom: 14px; left: 14px; }

/* Mapa de disponibilidade */
.map-bloco { margin-bottom: 22px; }
.map-bloco-nome { font-family: var(--display); font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.map-grid { display: grid; gap: 5px; }
.map-grid.casas { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.map-cell {
  display: grid; place-items: center; aspect-ratio: 1.5;
  font: 700 .72rem var(--body); border-radius: 6px; min-width: 0;
  transition: transform .15s, box-shadow .15s; cursor: default;
}
.map-cell.disp { background: #DBF0E4; color: #14613B; border: 1.5px solid #8FD3AE; cursor: pointer; }
.map-cell.disp:hover { transform: scale(1.12); box-shadow: 0 6px 16px -4px rgba(27,127,77,.5); z-index: 2; background: var(--ok); color: #fff; }
.map-cell.sold { background: var(--paper-2); color: #B6B2A6; border: 1.5px solid var(--line); text-decoration: line-through; }
.map-key { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; }
.map-key.disp { background: #DBF0E4; border: 1.5px solid #8FD3AE; }
.map-key.sold { background: var(--paper-2); border: 1.5px solid var(--line); }

/* Specs largos (incorporação) ocupam a linha inteira */
.spec-list .spec.wide { grid-column: 1 / -1; }

/* Botões da tabela de unidades no mobile */
@media (max-width: 660px) {
  .units-table td:last-child { white-space: normal !important; }
  .units-table .btn { display: inline-flex; margin: 2px 0; }
  .map-cell { font-size: .62rem; }
}

/* Acessibilidade: respeita usuários sem animação */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
