@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ==========================================================================
   BHEI - Gestão de Patrimônio e Investimentos Imobiliários
   Design System & Main Stylesheet (Vanilla CSS)
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-gold: #c0962d;
  --primary-gold-hover: #dd9933;
  --primary-gold-light: #f4e8c1;
  --dark-navy: #0e161d;
  --dark-bg: #0b0505;
  --card-bg: #ffffff;
  --body-bg: #f8fafc;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f3f4f6;
  --border-color: #e5e7eb;

  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Container & Spacing */
  --container-max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-navy);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-gold);
  margin: 12px auto 20px;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.btn-primary:hover {
  background-color: var(--primary-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  border-color: var(--dark-navy);
  color: var(--dark-navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--dark-navy);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Top Bar & Header */
.top-bar {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d1d5db;
}

.top-info-item i {
  color: var(--primary-gold);
}

.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Fix duplicate submenu arrows in navigation header */
.main-header-bar .main-header-bar-navigation .menu-item-has-children > a::after,
.menu-item-has-children > .menu-link::after,
.menu-item-has-children .ast-header-navigation-arrow::after {
  content: none !important;
  display: none !important;
}

/* Page Banner Title Section (Blue background with gold bottom border) */
.elementor-element.elementor-element-855c891 {
  background-color: #000033 !important;
  border-style: solid !important;
  border-width: 0px 0px 8px 0px !important;
  border-color: #C0962D !important;
  padding: 25px 15px !important;
}

.elementor-element.elementor-element-855c891 > .elementor-container {
  min-height: 140px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.elementor-element.elementor-element-855c891 .elementor-heading-title,
.elementor-element.elementor-element-855c891 h2.elementor-heading-title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 2rem !important;
  color: #ffffff !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}

.elementor-element.elementor-element-855c891 .elementor-widget-text-editor,
.elementor-element.elementor-element-855c891 .elementor-widget-text-editor p {
  text-align: center !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.4em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

/* Ensure Elementor animated sections are always visible without JS scroll listener */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Specific photo boxes in Negócios Realizados */
.elementor-475 .elementor-column[data-settings*="background_background"] > .elementor-element-populated,
.elementor-475 .elementor-element-1a6b170 > .elementor-element-populated,
.elementor-475 .elementor-element-204b3b3 > .elementor-element-populated,
.elementor-475 .elementor-element-edeccae > .elementor-element-populated,
.elementor-475 .elementor-element-202af04 > .elementor-element-populated,
.elementor-475 .elementor-element-1e302fb > .elementor-element-populated,
.elementor-475 .elementor-element-ac56393 > .elementor-element-populated,
.elementor-475 .elementor-element-2ee8b0b > .elementor-element-populated,
.elementor-475 .elementor-element-6a224c3 > .elementor-element-populated,
.elementor-475 .elementor-element-364ee1a > .elementor-element-populated,
.elementor-475 .elementor-element-dff8d39 > .elementor-element-populated,
.elementor-475 .elementor-element-5e2ceee > .elementor-element-populated,
.elementor-475 .elementor-element-d7c32f3 > .elementor-element-populated,
.elementor-475 .elementor-element-d1640c6 > .elementor-element-populated {
  min-height: 240px !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Center Elementor Containers & Site Header to match apresentacao layout */
.elementor-section-full_width,
.elementor-section-stretched {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-section-boxed > .elementor-container,
.elementor-section-full_width > .elementor-container,
.elementor-section-stretched > .elementor-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-header .ast-container,
.site-primary-header-wrap.ast-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure exact header menu font sizing across all pages */
.site-header .main-header-menu .menu-item > .menu-link,
.site-header .ast-builder-menu-1 .menu-item > .menu-link,
.site-header .menu-item > .menu-link,
.site-header .menu-item {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  color: #666666 !important;
}

.site-header .main-header-menu .sub-menu .menu-item > .menu-link,
.site-header .sub-menu .menu-item > .menu-link {
  font-size: 13px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  color: #666666 !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--dark-navy), #1e293b);
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark-navy);
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-navy);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(14, 22, 29, 0.75), rgba(11, 5, 5, 0.85)), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0 120px;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-title span {
  color: var(--primary-gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* Search Box Container */
.search-card {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  background-color: #f9fafb;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-gold);
  background-color: #ffffff;
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.bg-white {
  background-color: #ffffff;
}

.bg-light {
  background-color: var(--body-bg);
}

.bg-dark {
  background-color: var(--dark-navy);
  color: #ffffff;
}

.bg-dark h2, .bg-dark .section-title {
  color: #ffffff;
}

/* Property Grid & Card */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;

}

.property-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img {
  transform: scale(1.06);
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--primary-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.property-code {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(14, 22, 29, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.property-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.property-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.property-meta {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.property-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-gold);
}

/* Features / Differentials */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-gold-light);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* Contact Info Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  color: #ffffff;
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 14px;
}

.contact-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background-color: #131C26;
  color: #9ca3af;
  padding: 40px 0 20px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.floating-whatsapp i {
  font-size: 1.4rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.modal-body {
  padding: 30px;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.modal-detail-item {
  display: flex;
  flex-direction: column;
}

.modal-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-detail-value {
  font-weight: 600;
  color: var(--dark-navy);
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 0 80px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 14px;
    border-radius: 50%;
  }
}
