:root {
  /* Identidade Vista Plaza — verde floresta profundo + cobre/dourado */
  --background: oklch(0.98 0.005 90);
  --foreground: oklch(0.2 0.02 150);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.02 150);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.02 150);
  --primary: oklch(0.28 0.04 150);
  --primary-foreground: oklch(0.97 0.02 85);
  --secondary: oklch(0.95 0.01 90);
  --secondary-foreground: oklch(0.28 0.04 150);
  --muted-bg: oklch(0.95 0.01 90);
  --muted-foreground: oklch(0.45 0.02 150);
  --accent: oklch(0.7 0.12 60);
  --accent-foreground: oklch(0.18 0.03 150);
  --gold-token: oklch(0.75 0.13 70);
  --gold-foreground: oklch(0.18 0.03 150);
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.9 0.01 90);
  --input: oklch(0.9 0.01 90);
  --ring: oklch(0.7 0.12 60);
  --gradient-hero: linear-gradient(135deg, oklch(0.18 0.03 150 / 0.85), oklch(0.25 0.04 150 / 0.55));
  --gradient-gold: linear-gradient(135deg, oklch(0.78 0.14 75), oklch(0.65 0.13 55));
  --shadow-elegant: 0 20px 60px -20px oklch(0.2 0.04 150 / 0.35);
  --shadow-gold: 0 10px 40px -10px oklch(0.7 0.13 65 / 0.4);
  --radius: 0.5rem;

  /* aliases usados no layout */
  --deep: var(--primary);
  --deep-2: oklch(0.36 0.045 150);
  --gold: var(--accent);
  --gold-2: oklch(0.85 0.1 80);
  --btn: var(--gold-token);
  --btn-hover: oklch(0.68 0.13 62);
  --bg: var(--background);
  --ink: var(--foreground);
  --muted: var(--muted-foreground);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.sans {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

/* TOPO SOBRE O HERO (estilo Vista Plaza) */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.04em;
}
.hero-brand span {
  color: var(--gold-token);
  font-weight: 600;
}
.hero-ghost {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 640px) {
  .hero-ghost {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero_vista_plaza.jpg");
  background-size: cover;
  background-position: center 60%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
/* GALERIA */
.card-gallery {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.card-gallery.open {
  display: grid;
}
.card-gallery .thumb {
  position: relative;
  padding-top: 70%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.card-gallery .thumb.plan {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.card-gallery .thumb span {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.btn-toggle {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn-toggle:hover {
  background: oklch(0.95 0.01 90);
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0.18 0.03 150 / 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow-elegant);
}
.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px 64px;
}
.eyebrow {
  font-family: Arial, sans-serif;
  color: var(--gold-2);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h2 {
  font-size: 40px;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 16px;
}
.hero p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  max-width: 520px;
  color: #e9f2ee;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.hero-tag {
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 180, 230, 0.55);
  color: var(--gold-2);
  padding: 7px 14px;
  border-radius: 999px;
}
.hero-btn {
  display: inline-block;
  background: var(--btn);
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.hero-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

/* MCMV EXPLAINER */
.explainer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 10px;
}
.explainer h2 {
  font-size: 26px;
  color: var(--deep);
  margin-bottom: 8px;
}
.explainer > p.sans {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.explainer-card {
  background: white;
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: 0 4px 14px rgba(45, 27, 61, 0.07);
}
.explainer-card .ic {
  width: 38px;
  height: 38px;
  background: var(--deep);
  color: var(--gold-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}
.explainer-card h3 {
  font-size: 16px;
  color: var(--deep);
  margin-bottom: 6px;
}
.explainer-card p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #4d5a54;
  line-height: 1.55;
}

/* TABS */
.tabs-wrap {
  max-width: 1180px;
  margin: 40px auto 0;
  position: relative;
  z-index: 5;
  padding: 0 20px;
}
.tabs {
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(45, 27, 61, 0.12);
  display: flex;
  padding: 6px;
  gap: 6px;
}
.tab-btn {
  flex: 1;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 10px;
  border: none;
  background: transparent;
  color: var(--deep);
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.tab-btn.active {
  background: var(--btn);
  color: var(--deep);
}

/* GRID */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}
.region-panel {
  display: none;
}
.region-panel.active {
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(45, 27, 61, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(45, 27, 61, 0.16);
}
.card.destaque {
  grid-column: 1 / -1;
  border: 2px solid var(--primary);
  box-shadow: 0 14px 34px rgba(45, 27, 61, 0.18);
}
.card.destaque .card-img {
  height: 320px;
}
.card.destaque .badge {
  background: var(--gold-2, #f4e4a6);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img.placeholder {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 60%, #6b3d7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img.placeholder .ph-label {
  font-family: Arial, sans-serif;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(232, 180, 230, 0.5);
  padding: 8px 14px;
  border-radius: 999px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--gold-2);
  font-family: Arial, sans-serif;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 19px;
  color: var(--deep);
  margin-bottom: 4px;
}
.card-loc {
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-desc {
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  color: #4a5750;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.card-price {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.card-price strong {
  color: var(--deep);
  font-size: 15.5px;
  font-family: Georgia, serif;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.btn-sm {
  flex: 1;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--btn);
  color: var(--deep);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.section-title {
  font-size: 26px;
  color: var(--deep);
  margin-bottom: 4px;
}
.section-sub {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 14px;
}

footer {
  background: oklch(0.15 0.02 150);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 24px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
}
.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  text-align: left;
}
.footer-col > * + * {
  margin-top: 8px;
}
.footer-col .f-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  color: #fff;
  line-height: 1.2;
}
.footer-col .f-title .gold {
  color: var(--gold-token);
}
.footer-col p {
  font-size: 13.5px;
  line-height: 1.6;
}
.footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold-token);
}
.footer-bottom {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--gold-token);
}
.footer-nav .f-soon {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.55;
  cursor: default;
}

.footer-legal {
  font-size: 11.5px;
  opacity: 0.7;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .footer-grid {
    text-align: center;
  }
}
footer .gold {
  color: var(--gold-token);
  font-weight: 700;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0.2 0.04 150 / 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: white;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 28px 26px 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  font-family: Arial, sans-serif;
}
.modal-box h3 {
  font-size: 20px;
  color: var(--deep);
  margin-bottom: 4px;
}
.modal-sub {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.modal-sub strong {
  color: var(--deep);
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 11px 12px;
  border: 1.5px solid #dfe6e1;
  border-radius: 8px;
  outline: none;
}
.field input:focus {
  border-color: var(--deep);
}
.modal-submit {
  width: 100%;
  margin-top: 10px;
  background: var(--btn);
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.modal-submit:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}
.modal-status {
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  display: none;
}
.modal-status.show {
  display: block;
}
.modal-status.ok {
  color: var(--deep);
  font-weight: 700;
}
.modal-status.err {
  color: #b23b3b;
}

@media (max-width: 640px) {
  .hero h2 {
    font-size: 28px;
  }
  .tabs {
    flex-direction: column;
  }
}
