/* ==========================================================================
   Matheus Rosa | Corretor de Imóveis — Design System
   Paleta: azul-marinho + branco + cinza claro + dourado discreto
   ========================================================================== */

:root {
  --navy: #0b2340;
  --navy-deep: #081a30;
  --navy-light: #14355e;
  --gold: #b6924f;
  --gold-light: #d8bd8b;
  --gold-soft: #f3ead9;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #e2e5ea;
  --gray-400: #9aa3b2;
  --gray-600: #5b6472;
  --gray-800: #2b3342;
  --ink: #12182a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 35, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 35, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 35, 64, 0.16);
  --container: 1180px;
  --ff-head: "Playfair Display", "Georgia", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* space for mobile sticky CTA */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c4cede; }
.section--gray { background: var(--gray-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1fb958; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  font-family: var(--ff-head);
  font-size: 1.28rem;
  color: var(--navy);
  font-weight: 700;
}
.brand span {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.nav-desktop {
  display: none;
  gap: 30px;
  align-items: center;
}
.nav-desktop a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--navy); border-color: var(--gold); }
.header-cta { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 20px; }
.nav-toggle span::after { position: absolute; top: 6px; width: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  padding: 6px 0 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 20px;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--gray-50); }
.mobile-menu .btn { margin: 10px 20px 0; }

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 90px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.hero::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -160px; right: -120px;
}
.hero::after {
  width: 320px; height: 320px;
  border: 1px solid rgba(214,189,139,.35);
  bottom: -140px; left: -80px;
  opacity: .5;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 46px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero__eyebrow {
  color: var(--gold-light);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero__sub { font-size: 1.1rem; color: #cdd6e6; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .85rem;
  color: #b7c2d6;
}
.hero__trust span { display: flex; align-items: center; gap: 8px; }
.hero__trust span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%),
    linear-gradient(200deg, var(--navy-light), var(--navy-deep));
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,26,48,.05) 0%, rgba(8,26,48,.1) 55%, rgba(5,15,28,.85) 100%);
}
.hero__visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__visual-card {
  position: relative;
  z-index: 2;
  background: rgba(11,35,64,.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 18px 20px;
  width: 100%;
}
.hero__visual-card strong { display: block; font-family: var(--ff-head); font-size: 1.1rem; color: #fff; }
.hero__visual-card span { font-size: .82rem; color: #c4cede; }

/* ---------- Cards genéricos ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 18px; font-size: .94rem; }

/* ---------- Property cards ---------- */
.prop-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.prop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prop-card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--navy-light), var(--navy));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
}
.prop-card__media::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 2px, transparent 2px 34px);
}
.prop-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}
.prop-card__city {
  position: relative;
  z-index: 2;
  font-family: var(--ff-head);
  font-size: 1.05rem;
}
.prop-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.prop-card__body h3 { margin-bottom: 2px; }
.prop-card__loc { font-size: .84rem; color: var(--gray-400); margin-bottom: 12px; }
.prop-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.prop-card__specs span {
  font-size: .78rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gray-800);
}
.prop-card__diff {
  font-size: .86rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.prop-card__price {
  font-size: .82rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.prop-card__price small { display: block; font-weight: 500; color: var(--gray-400); font-size: .72rem; }
.prop-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}
.prop-card__actions .btn { flex: 1; padding: 12px 14px; font-size: .85rem; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 16px;
  border-radius: var(--radius);
}
.filters select, .filters input {
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .88rem;
  font-family: var(--ff-body);
  color: var(--ink);
  flex: 1 1 160px;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.timeline__step {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.timeline__num {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Slider de fotos dos empreendimentos ---------- */
.fin-slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--navy-deep);
}
.fin-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.fin-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.fin-slider__slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fin-slider__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,15,28,.15) 0%, rgba(5,15,28,.05) 40%, rgba(5,15,28,.85) 100%);
}
.fin-slider__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  color: #fff;
}
.fin-slider__caption .container { padding: 0; }
.fin-slider__caption strong { display: block; font-family: var(--ff-head); font-size: 1.15rem; }
.fin-slider__caption span { font-size: .85rem; color: #cdd6e6; }
.fin-slider__dots {
  position: absolute;
  right: 24px; bottom: 22px;
  display: flex; gap: 8px;
  z-index: 3;
}
.fin-slider__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.fin-slider__dots button.is-active { background: var(--gold); width: 22px; border-radius: 5px; }
@media (max-width: 640px) { .fin-slider { height: 260px; } .fin-slider__dots { display: none; } }

/* ---------- Lists com check ---------- */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: .98rem;
  color: var(--gray-800);
}
.section--navy .check-list li { color: #fff; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Region blocks ---------- */
.region-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.region-card__media {
  height: 160px;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-family: var(--ff-head);
  font-size: 1.6rem;
  letter-spacing: .04em;
}
.region-card__body { padding: 24px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--gray-50);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.field-radio-group label {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
}
.field-radio-group input { width: auto; margin: 0; }
.form-note { font-size: .78rem; color: var(--gray-400); margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b7c2d6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 34px;
  margin-bottom: 40px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family: var(--ff-body); font-weight: 700; }
.site-footer a { display: block; color: #b7c2d6; font-size: .9rem; margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand strong { font-family: var(--ff-head); color: #fff; font-size: 1.3rem; }
.footer-brand p { color: #93a0b8; font-size: .88rem; margin-top: 10px; max-width: 320px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #cdd6e6;
  margin: 0;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  font-size: .8rem;
  color: #7c8aa3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  font-size: 1.7rem;
}
@media (min-width: 900px) { .wa-float { bottom: 26px; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 800;
  background: var(--navy);
  padding: 10px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.mobile-sticky-cta .btn { width: 100%; }
@media (min-width: 900px) { .mobile-sticky-cta { display: none; } }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-light));
  color: #fff;
  text-align: center;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #c4cede; max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page header (subpáginas) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 50px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-size: .82rem; color: #9aa9c2; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .84rem; color: var(--gray-400); }
.divider { height: 1px; background: var(--gray-100); margin: 40px 0; }
