/* Importação da fonte Hilmar */
@font-face {
  font-family: 'Hilmar';
  src: url('fonts/Hilmar-Regular.woff2') format('woff2'),
       url('fonts/Hilmar-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Variáveis de cores e fontes */
:root {
  --primary-color: #ec6626;      /* Laranja */
  --secondary-color: #283376;    /* Azul */
  --background-color: #f7f9fb;   /* Cinza claro moderno */
  --card-bg: #fff;
  --text-color: #222;
  --font-primary: 'Hilmar', sans-serif;
  --font-secondary: 'Montserrat', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 24px rgba(44, 62, 80, 0.08);
  --shadow-hover: 0 8px 32px rgba(44, 62, 80, 0.15);
}

/* Reset e corpo */
body {
  font-family: var(--font-secondary);
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  padding-top: 120px; /* Espaço para o header fixo */
}

/* Cabeçalho Moderno e Fixo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(44,62,80,0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(44,62,80,0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-left .header-img {
  max-height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .header-left .header-img {
  max-height: 40px;
}

.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-center .header-img {
  max-height: 100px;
  width: auto;
  margin-bottom: 1px;
  transition: all 0.3s ease;
}

.site-header.scrolled .header-center .header-img {
  max-height: 45px;
  margin-bottom: 2px;
}

.header-center .slogan {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  transition: all 0.3s ease;
}

.site-header.scrolled .header-center .slogan {
  font-size: 0.8rem;
}

/* Menu integrado no header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--radius-sm);
  padding: 8px 16px !important;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.header-nav .nav-link:hover, 
.header-nav .nav-link.active,
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 20px rgba(44,62,80,0.2);
  padding: 15px 20px;
}

.mobile-menu.show {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Container principal */
.main-container {
  padding: 30px 0;
}

/* Grid responsivo com 3 colunas */
.row.g-4 {
  gap: 1.5rem;
}

.property-card {
  margin-bottom: 0;
}

/* Cards de imóveis */
.property-card .card {
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-card .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.property-card .card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.property-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.card-text-content {
  margin-bottom: 15px;
}

.card-title {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Botões modernos */
.btn-primary {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #d0551f 0%, #222b5e 100%);
  color: #fff;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.btn-success:hover {
  background: #222b5e;
  color: #fff;
  transform: translateY(-2px);
}

/* Imagens gerais */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Carrossel */
.carousel-inner img {
  max-height: 500px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .carousel-inner img {
    max-height: 250px;
    height: 250px;
  }
}

/* Animação suave para scroll */
html {
  scroll-behavior: smooth;
}

/* Responsividade */
@media (max-width: 1199.98px) {
  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 991.98px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-content {
    gap: 15px;
    padding: 0 15px;
  }
  .header-center .header-img {
    max-height: 100px;
  }
  .header-center .slogan {
    font-size: 0.8rem;
  }
  body {
    padding-top: 100px;
  }
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 767.98px) {
  .header-content {
    gap: 10px;
  }
  .header-left .header-img {
    max-height: 40px;
  }
  .header-center .header-img {
    max-height: 45px;
  }
  .header-center .slogan {
    font-size: 0.75rem;
  }
  body {
    padding-top: 90px;
  }
  .card-img-top {
    height: 180px;
  }
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .header-center .slogan {
    display: none;
  }
  body {
    padding-top: 70px;
  }
  .card-img-top {
    height: 200px;
  }
  .col-sm-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .main-container {
    padding: 20px 0;
  }
  .row.g-4 {
    gap: 1rem;
  }
}

/* Desktop: força 3 colunas */
@media (min-width: 992px) {
  .property-card {
    flex: 0 0 calc(33.333333% - 1rem);
    max-width: calc(33.333333% - 1rem);
  }
}

/* Tablet: 2 colunas */
@media (min-width: 768px) and (max-width: 991.98px) {
  .property-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
