/* =====================================================================
   Scolari Imóveis · design system compartilhado
   Usado por index.html (home) e kairos.html (landing).
   Identidade: creme + dourado, Anton (títulos) + Poppins (texto).
   ===================================================================== */

:root {
  --cream:         #F4F1EA;  /* fundo claro */
  --dourado:       #C9A96A;  /* champagne, cor predominante */
  --dourado-forte: #A07846;  /* dourado profundo para contraste */
  --tinta:         #2A2320;  /* grafite quente, texto e títulos */
  --tinta-suave:   #574E44;  /* texto secundário */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--tinta);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- HERO (stage full-viewport) ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--cream);
}
/* Cabeçalho mais baixo para páginas internas (sobre, regiões, blog) */
.hero--page { min-height: 64vh; }
.hero--page .title { font-size: clamp(2.5rem, 7vw, 4.6rem); }

/* Foto de fundo. A imagem vem da variável --hero-img definida na página;
   o gradiente dourado abaixo aparece se a imagem faltar. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    var(--hero-img, none),
    linear-gradient(150deg, #EFE9DB 0%, #D8C39C 45%, var(--dourado-forte) 120%);
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

/* Névoa que funde a foto no campo creme à esquerda. Falloff curto para
   deixar mais da imagem (o mar) aparecer à direita. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--cream) 0%,
    var(--cream) 18%,
    rgba(244, 241, 234, 0.82) 32%,
    rgba(244, 241, 234, 0.30) 50%,
    rgba(244, 241, 234, 0) 64%
  );
}

/* ---------------- Top-bar + navegação ---------------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.4rem, 8vw, 5.5rem);
  background: linear-gradient(to bottom, rgba(244, 241, 234, 0.72), rgba(244, 241, 234, 0));
}
.topbar__right { display: flex; align-items: center; gap: 2rem; }
.topbar__nav { display: flex; gap: 1.6rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark img { height: 50px; width: auto; display: block; }
.wordmark b {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  color: var(--dourado-forte);
}
.wordmark span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--tinta);
  text-transform: uppercase;
}

.navlink {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.navlink:hover { border-color: var(--dourado); }

.topbar__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--dourado);
  transition: color 0.2s ease;
}
.topbar__cta:hover { color: var(--dourado-forte); }

/* ---------------- Conteúdo do hero ---------------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  padding: 9rem clamp(1.4rem, 8vw, 5.5rem) 2.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dourado-forte);
}

.rule {
  width: 46px;
  height: 2px;
  margin: 1.1rem 0 1.4rem;
  background: var(--dourado);
}

.title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--dourado-forte); /* fallback */
  background: linear-gradient(180deg, #E4CE96 0%, #C9A96A 46%, #9C7238 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Linha de entidade dentro do H1 (SEO/AEO), visualmente discreta */
.title__meta {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0.5rem;
  color: var(--tinta-suave);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--tinta-suave);
}

.subtitle {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  color: var(--tinta);
  max-width: 34ch;
  text-shadow: 0 1px 3px rgba(244, 241, 234, 0.9);
}

.desc {
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta-suave);
  max-width: 48ch;
  text-shadow: 0 1px 3px rgba(244, 241, 234, 0.85);
}

/* ---------------- Botões ---------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.3rem;
  background: var(--dourado);
  color: var(--tinta);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--dourado);
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.cta:hover {
  background: var(--dourado-forte);
  border-color: var(--dourado-forte);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(160, 120, 70, 0.55);
}
.cta::after {
  content: "\2192";
  font-weight: 400;
  transition: transform 0.22s ease;
}
.cta:hover::after { transform: translateX(4px); }

.cta--ghost {
  background: transparent;
  color: var(--tinta);
  border-color: var(--dourado);
}
.cta--ghost:hover {
  background: rgba(201, 169, 106, 0.12);
  border-color: var(--dourado-forte);
  box-shadow: none;
}
.cta--ghost::after { content: ""; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.2rem; }

/* ---------------- Seções ---------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.4rem, 8vw, 5.5rem); }
.section--cream { background: var(--cream); }
.section--white { background: #FBFAF7; }
.section--dark  { background: var(--tinta); color: var(--cream); }
.wrap { max-width: 1180px; margin-inline: auto; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dourado-forte);
}
.h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tinta);
  margin-top: 0.9rem;
  max-width: 24ch;
}
.lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--tinta-suave);
  max-width: 58ch;
}
.section--dark .kicker { color: var(--dourado); }
.section--dark .h2 { color: #FBFAF7; }
.section--dark .lead { color: rgba(244, 241, 234, 0.78); }
.section--dark .cta--ghost { color: var(--cream); }

/* NAP / dados de atendimento */
.nap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}
.nap b { color: var(--tinta); font-weight: 600; }
.section--dark .nap { color: rgba(244, 241, 234, 0.78); }
.section--dark .nap b { color: #FBFAF7; }
.nap a { color: var(--dourado-forte); text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.section--dark .nap a { color: var(--dourado); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(160, 120, 70, 0.25);
}
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat__num {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--dourado-forte);
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--tinta-suave);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #FFFFFF;
  border: 1px solid rgba(160, 120, 70, 0.18);
  padding: 2rem 1.8rem;
}
.section--white .card { background: var(--cream); }
.card__idx {
  font-family: "Anton", sans-serif;
  font-size: 1.6rem;
  color: var(--dourado);
  line-height: 1;
}
.card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--tinta);
  margin: 0.9rem 0 0.5rem;
}
.card p { font-size: 0.95rem; line-height: 1.55; color: var(--tinta-suave); }

/* Amenidades */
.amen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem 2rem;
  margin-top: 2.8rem;
}
.amen li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(160, 120, 70, 0.15);
  font-size: 0.98rem;
  color: var(--tinta);
}
.amen li::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--dourado);
}

/* Pilares */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}
.pillar ul { list-style: none; margin-top: 0.9rem; }
.pillar li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.65rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--tinta-suave);
}
.pillar li::before { content: "\00B7"; position: absolute; left: 0; color: var(--dourado); font-weight: 700; }

/* Galeria (slots de foto gerada por IA) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 3rem;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(160, 120, 70, 0.18);
  background-image: var(--img, none), linear-gradient(135deg, #E7DBC2 0%, var(--dourado-forte) 130%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.tile--wide { grid-column: span 2; }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(42, 35, 32, 0.72), rgba(42, 35, 32, 0));
}

/* Split (texto + mídia) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}
.split__media {
  min-height: 360px;
  border: 1px solid rgba(160, 120, 70, 0.2);
  background-image: var(--img, none), linear-gradient(135deg, #E7DBC2 0%, var(--dourado-forte) 130%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* Preview de prédio (imóveis/home): retrato, não paisagem */
.split__media--tall {
  aspect-ratio: 3 / 4;
  min-height: 0;
  max-width: 420px;
  justify-self: center;
}

/* Filtro de oportunidades (Valorização / Renda) */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.filter-btn {
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: var(--tinta-suave);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(160, 120, 70, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--dourado-forte); color: var(--tinta); }
.filter-btn.is-active {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--tinta);
}
.opportunity[hidden] { display: none; }

/* Blog teasers */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.post {
  display: block;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid rgba(160, 120, 70, 0.18);
  padding: 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.section--white .post { background: var(--cream); }
.post:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(160, 120, 70, 0.55); }
.post__tag { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dourado-forte); }
.post__q { font-weight: 600; font-size: 1.06rem; color: var(--tinta); margin-top: 0.6rem; line-height: 1.35; }
.post__more { margin-top: 1.1rem; font-size: 0.85rem; font-weight: 600; color: var(--dourado-forte); }

/* Depoimentos (carrossel, 2 por vez) */
.testimonial-carousel { margin-top: 3rem; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 1.2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial {
  flex: 0 0 calc(50% - 0.6rem);
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(160, 120, 70, 0.18);
  padding: 1.8rem;
}
.section--white .testimonial { background: var(--cream); }
.testimonial__mark {
  font-family: "Anton", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--dourado);
}
.testimonial p {
  flex: 1;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--tinta-suave);
}
.testimonial cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tinta);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(160, 120, 70, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active { background: var(--dourado-forte); transform: scale(1.25); }

/* Fecho (dark) + formulário */
.fechar {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 106, 0.35);
  padding: 2rem;
}
.form label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.4rem;
}
.form input {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(244, 241, 234, 0.06);
  border: 1px solid rgba(244, 241, 234, 0.2);
}
.form input::placeholder { color: rgba(244, 241, 234, 0.4); }
.form input:focus { outline: none; border-color: var(--dourado); }
.form .cta { width: 100%; justify-content: center; margin-top: 0.4rem; }

/* Passos do formulário (questionário pós-cadastro) */
.form__step { margin-top: 1.2rem; }
.form__intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.8);
  margin-bottom: 1.1rem;
}
.form__question {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.form__options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form__option {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.form__option:hover { transform: none; box-shadow: none; }
.form__closing .cta { width: 100%; justify-content: center; }

/* Footer */
.footer {
  background: #211B18;
  color: rgba(244, 241, 234, 0.65);
  padding: 3rem clamp(1.4rem, 8vw, 5.5rem);
  font-size: 0.85rem;
}
.footer a { color: var(--dourado); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
.footer .wordmark b { color: var(--dourado); }
.footer .wordmark span { color: rgba(244, 241, 234, 0.7); }
.footer .wordmark img { height: 128px; }
.footer__nap { color: rgba(244, 241, 234, 0.72); }
.footer__disc { font-size: 0.75rem; line-height: 1.6; color: rgba(244, 241, 234, 0.45); max-width: 82ch; margin-top: 1rem; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 900px) {
  .topbar__nav { display: none; }
}
@media (max-width: 820px) {
  .hero__veil {
    background: linear-gradient(
      to bottom,
      rgba(244, 241, 234, 0.5) 0%,
      rgba(244, 241, 234, 0.82) 48%,
      rgba(244, 241, 234, 0.95) 100%
    );
  }
  .hero__content { padding-top: 8.5rem; max-width: 100%; }
  .topbar { padding-left: 1.4rem; padding-right: 1.4rem; }
  .wordmark img { height: 42px; }
  .footer .wordmark img { height: 92px; }
  .stats   { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .cards, .cards--3, .posts { grid-template-columns: 1fr; }
  .amen    { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .split, .fechar { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .amen { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
}
