/*
 * Bonanza Soluções Imobiliárias – stylesheet
 *
 * Este arquivo define o estilo visual do site da Bonanza.
 * As cores são controladas por variáveis CSS para facilitar
 * personalizações através do painel de administração, permitindo
 * alterar paletas sem modificar diretamente este arquivo. A
 * tipografia foi escolhida para transmitir seriedade,
 * confiança e conexão com a natureza, reforçando a identidade
 * da marca de uma incorporadora comprometida com sustentabilidade
 * e planejamento urbano.  Use esta folha de estilos em
 * conjunto com os arquivos index.html e admin.html.
 */

/* Variáveis de cor
   Estas variáveis podem ser sobrescritas via JavaScript no
   index.html, permitindo que o usuário configure as cores
   primária e secundária no painel de administração. */
:root {
  --primary-color: #2a5130;
  --primary-color-dark: #236622;
  --secondary-color: #c89b3c;
  --secondary-color-dark: #b58d30;
  --light-bg: #f9f9f9;
  --dark-bg: #1a1a1a;
  --text-color: #333;
  --accent-color: #c89b3c;
}

/* Reset básico e tipografia global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cabeçalho */
header {
  background: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

header nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav .nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav .nav-links a:hover {
  color: var(--primary-color);
}

/* Espaço para compensar cabeçalho fixo ao rolar até âncoras */
section {
  scroll-margin-top: 80px;
}

/* Seção Hero */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('hero.jpg') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 81, 48, 0.6);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 800px;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Botões gerais */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-color-dark);
  transform: translateY(-2px);
}

/* Sobre */
.about {
  padding: 5rem 0;
  background: var(--light-bg);
}

.about h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Empreendimentos */
.projects {
  padding: 5rem 0;
  background: #fff;
}

.projects h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.projects .intro {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.project-cards {
  display: grid;
  /*
   * Usamos auto-fit e minmax para permitir que a grade se adapte
   * dinamicamente ao número de empreendimentos. Cada cartão ocupa
   * pelo menos 250px e se expande conforme o espaço disponível.
   */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 1rem;
}

.card p {
  margin: 0 1rem 1.5rem;
  font-size: 0.95rem;
}

/* Chamada para ação */
.cta {
  background: var(--primary-color);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta .btn-secondary {
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
}

.cta .btn-secondary:hover {
  background: #f1f1f1;
}

/* Contato */
.contact {
  padding: 5rem 0;
  background: #fff;
}

.contact h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 300px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.info-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Formulário de contato */
.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

/* Rodapé */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer p {
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Logotipo como imagem */
.logo-img {
  height: 40px;
  width: auto;
}

/* Botão flutuante do WhatsApp */
/* Botão flutuante do WhatsApp adaptável para imagem e texto */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 12px;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 150;
  text-decoration: none;
}

.whatsapp-button:hover {
  background-color: var(--secondary-color-dark);
}

.whatsapp-button i {
  font-size: 28px;
}

.whatsapp-btn-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.whatsapp-btn-text {
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
}

/* Responsividade */
@media (max-width: 992px) {
  .project-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  header .nav-links {
    gap: 1rem;
  }
  .project-cards {
    grid-template-columns: 1fr;
  }
  .info-item {
    flex-direction: row;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .info-item i {
    margin-bottom: 0.5rem;
  }
}