/**
 * Theme Name: PrimeUrban Real Estate
 * Template: realhomes
 * Version: 1.0
 * Description: Tema customizado baseado no Real Homes com UI do PrimeUrban
 */

/* ============================================
   PRIMEURBAN DESIGN SYSTEM
   ============================================ */

:root {
  --primary-brand: #1D2D3A;
  --secondary-brand: #B68863;
  --accent-brand: #3D4D55;
  --base-cream: #F9F6F0;
  --base-tan: #D9C3A9;
  --base-mauve: #A78E9C;
  
  --background: #F9F6F0;
  --foreground: #1D2D3A;
  --card: #ffffff;
  --card-foreground: #1D2D3A;
  --primary: #1D2D3A;
  --primary-foreground: #F9F6F0;
  --secondary: #B68863;
  --secondary-foreground: #1D2D3A;
  --muted: #D9C3A9;
  --muted-foreground: #3D4D55;
  --accent: #3D4D55;
  --accent-foreground: #F9F6F0;
  --border: #D9C3A9;
  --input: #F9F6F0;
  --ring: #B68863;
  --radius: 1.25rem;
  
  --whatsapp: #25D366;
}

/* ============================================
   RESET & BASE
   ============================================ */

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   HEADER
   ============================================ */

.primeurban-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.primeurban-header .top-bar {
  background: var(--primary);
  padding: 0.5rem 0;
  color: var(--primary-foreground);
}

.primeurban-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.site-logo .brand-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.site-logo .brand-tagline {
  font-size: 0.65rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.primeurban-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primeurban-menu a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.primeurban-menu a:hover {
  color: var(--secondary);
}

.primeurban-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.primeurban-menu a:hover::after,
.primeurban-menu a.active::after {
  width: 100%;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #a07452;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1D2D3A 0%, #2E4F61 50%, #3D4D55 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/wp-content/themes/realhomes/assets/modern/images/hero-bg.jpg') center/cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 3rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(182,136,99,0.3);
  background: rgba(182,136,99,0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title em {
  font-style: italic;
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.search-box {
  background: var(--background);
  border-radius: 2rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 26px 80px rgba(0,0,0,0.38);
  border: 1px solid rgba(182,136,99,0.25);
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Libre Baskerville', serif;
  background: #fff;
  color: var(--primary);
}

.search-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 24px rgba(182,136,99,0.26);
}

.search-btn:hover {
  background: #a07452;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
  padding: 1rem 2rem;
  border: 1px solid rgba(182,136,99,0.2);
  border-radius: 1rem;
  background: rgba(255,255,255,0.035);
}

.hero-stat-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ============================================
   FEATURED PROPERTIES
   ============================================ */

.featured-section {
  padding: 6rem 2rem;
  background: var(--base-cream);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.875rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.section-title {
  font-size: 2.5rem;
  color: var(--foreground);
  margin-top: 0.5rem;
}

/* Property Cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.property-card {
  background: var(--card);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.property-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

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

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

.property-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.property-info {
  padding: 1.5rem;
}

.property-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.property-location {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.property-price {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   FOOTER
   ============================================ */

.primeurban-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.footer-brand-tagline {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-text {
  color: rgba(249,246,240,0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.footer-link {
  color: rgba(249,246,240,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-foreground);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(249,246,240,0.1);
  color: var(--primary-foreground);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--secondary);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(249,246,240,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(249,246,240,0.5);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .search-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .primeurban-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .primeurban-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-fields {
    grid-template-columns: 1fr;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
