/* CASA FORMOSA — Identidade Visual */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --azul-profundo: #0B3D66;
  --azul-vibrante: #1F8FFF;
  --dourado: #D4A24E;
  --fundo: #F7F8FA;
  --chumbo: #2B2D33;
  --branco: #FFFFFF;
  --borda: #E2E6EB;
  --sucesso: #2E8B57;
  --erro: #C0392B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--fundo);
  color: var(--chumbo);
  line-height: 1.5;
}

h1, h2, h3, .brand {
  font-family: 'Fraunces', serif;
  color: var(--azul-profundo);
  font-weight: 600;
}

a { color: var(--azul-vibrante); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.topbar {
  background: var(--azul-profundo);
  color: var(--branco);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar .brand {
  color: var(--branco);
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}
.topbar .brand span { color: var(--dourado); }
.topbar nav { display: flex; gap: 20px; align-items: center; }
.topbar nav a { color: var(--branco); font-weight: 500; opacity: 0.9; }
.topbar nav a:hover { opacity: 1; text-decoration: none; color: var(--dourado); }

.tagline {
  text-align: center;
  padding: 28px 20px 8px;
  color: var(--azul-profundo);
}
.tagline .slogan { color: var(--dourado); font-style: italic; }

main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

/* Botões */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn-primario { background: var(--azul-vibrante); color: var(--branco); }
.btn-primario:hover { box-shadow: 0 4px 14px rgba(31,143,255,0.35); }
.btn-dourado { background: var(--dourado); color: var(--azul-profundo); }
.btn-dourado:hover { box-shadow: 0 4px 14px rgba(212,162,78,0.4); }
.btn-secundario { background: transparent; border: 1.5px solid var(--azul-profundo); color: var(--azul-profundo); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.imovel-card { padding: 0; overflow: hidden; }
.imovel-card img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--borda); }
.imovel-card .info { padding: 16px; }
.imovel-card .preco { color: var(--azul-profundo); font-weight: 700; font-size: 1.15rem; font-family: 'Fraunces', serif; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dourado);
  color: var(--azul-profundo);
  margin-bottom: 6px;
}

/* Formulários */
.form-grupo { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--azul-vibrante);
}
.caixa-auth {
  max-width: 420px;
  margin: 40px auto;
}

/* Mensagens / estado */
.aviso { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.aviso-erro { background: #FBEAE8; color: var(--erro); }
.aviso-sucesso { background: #E8F5EC; color: var(--sucesso); }
.vazio { text-align: center; padding: 60px 20px; color: #8A8F98; }

/* Negociação / chat */
.mensagem { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; max-width: 75%; font-size: 0.92rem; }
.mensagem-minha { background: var(--azul-vibrante); color: var(--branco); margin-left: auto; }
.mensagem-outro { background: var(--borda); }

.status-pill { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-aberta { background: #FFF4DD; color: #8A6300; }
.status-aceita { background: #E8F5EC; color: var(--sucesso); }
.status-recusada { background: #FBEAE8; color: var(--erro); }
.status-fechada { background: var(--borda); color: #555; }

footer { text-align: center; padding: 30px; color: #8A8F98; font-size: 0.85rem; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; }
}
