:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --surface-2: #edf7f5;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e2e0;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --blue: #0369a1;
  --sky: #04baee;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: var(--teal);
}

.header-cta,
.menu-toggle,
.btn,
.text-button {
  cursor: pointer;
}

.header-cta {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--teal);
  color: white;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: white;
}

.section-pad {
  padding: 72px clamp(16px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.warning {
  color: var(--warning);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-text,
.split-section p,
.faq-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.card-actions,
.detail-actions,
.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
}

.btn.primary {
  background: var(--teal);
  color: white;
}

.btn.secondary {
  border-color: rgba(3, 105, 161, 0.32);
  background: #eef8fc;
  color: var(--blue);
}

.btn.ghost {
  border-color: var(--line);
  background: white;
  color: var(--text);
}

.btn.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-2);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.badge.warn {
  background: #fff7ed;
  color: var(--warning);
}

.badge.danger {
  background: #fef2f2;
  color: var(--danger);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(3, 105, 161, 0.1)),
    url("https://assets.calamaro.com.br/empreendimentos/up-buriti/capa.jpg") center / cover;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.58));
}

.hero-card,
.hero-panel {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-card {
  top: 22px;
  padding: 16px;
}

.hero-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.hero-panel {
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.hero-panel > div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-panel small {
  display: block;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  background: white;
  border-block: 1px solid var(--line);
}

.quiz-card,
.property-card,
.review-block,
.event-drawer,
.modal-shell,
.faq-item,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quiz-card {
  min-height: 430px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.quiz-head,
.section-title-row,
.event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.quiz-option.active {
  border-color: var(--teal);
  background: #ecfdf5;
}

.quiz-result {
  display: grid;
  gap: 14px;
}

.result-box,
.handoff-box,
.data-alert {
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.catalog-section {
  background: #f9fbfb;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.filters label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filters select {
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--text);
}

.check-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.property-card.review {
  background: #fffaf2;
  border-color: #fed7aa;
}

.property-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dff3f1, #eaf7fb);
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: var(--teal-dark);
  font-weight: 800;
  text-align: center;
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.property-meta,
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price {
  color: var(--teal-dark);
  font-size: 1.22rem;
  font-weight: 900;
}

.review-reasons {
  margin: 0;
  padding-left: 18px;
  color: var(--warning);
  font-size: 0.86rem;
}

.card-actions {
  margin-top: auto;
}

.empty-state {
  margin: 24px 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
}

.review-block {
  margin-top: 34px;
  padding: 18px;
  background: #fffaf2;
}

.process-section {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.steps article {
  padding: 18px;
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  padding: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.event-drawer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  width: min(420px, calc(100vw - 32px));
  max-height: 310px;
  overflow: auto;
  padding: 14px;
  box-shadow: var(--shadow);
}

.event-drawer ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.event-drawer li,
.event-drawer small {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-drawer code,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sticky-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 14;
  display: none;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: 92vh;
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.modal-shell {
  position: relative;
  overflow: auto;
  max-height: 92vh;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
}

.detail-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-list ul {
  margin: 0;
  padding-left: 18px;
}

.handoff-shell {
  width: min(920px, calc(100vw - 28px));
}

.handoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .detail-grid,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .catalog-grid.compact,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    padding-inline: 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }

  .site-nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .section-pad {
    padding: 48px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.05;
    overflow-wrap: normal;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .filters,
  .catalog-grid,
  .catalog-grid.compact,
  .steps {
    grid-template-columns: 1fr;
  }

  .quiz-card,
  .modal-shell {
    padding: 16px;
  }

  .event-drawer {
    position: static;
    width: auto;
    max-height: none;
    margin: 24px 16px 92px;
  }

  .sticky-bar {
    display: flex;
    right: 16px;
    max-width: calc(100vw - 32px);
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .card-actions .btn,
  .detail-actions .btn,
  .handoff-actions .btn,
  .sticky-bar .btn {
    min-width: 0;
    width: auto;
    flex: 1;
    white-space: nowrap;
  }

  .sticky-bar .btn {
    padding-inline: 10px;
    font-size: 0.84rem;
  }
}
