/* Homepage Specific Styles */

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* Home Search */
.home-search {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.search-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.search-input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.search-input-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.search-input-group select, .search-input-group input {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-light);
  outline: none;
  transition: var(--transition);
}

.search-input-group select:focus, .search-input-group input:focus {
  border-color: var(--accent-color);
}

.search-btn {
  padding: 12px 30px;
  height: 48px;
  align-self: flex-end;
  margin-top: auto;
}

/* About Section */
.about-section {
  background-color: var(--secondary-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  z-index: -1;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Featured Listings */
.listings-section {
  background-color: var(--bg-light);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.property-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

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

.property-status {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.property-info {
  padding: 25px;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.property-address {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

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

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spec-item i {
  color: var(--accent-color);
}

/* Services */
.services-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.services-section .section-header h2 {
  color: var(--secondary-color);
}

.services-section .section-header p {
  color: #a0a0a0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #a0a0a0;
  margin-bottom: 20px;
}

/* Stats */
.stats-section {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonial-card {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  opacity: 0.5;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

/* Resources */
.resources-section {
  background-color: var(--secondary-color);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.resource-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.resource-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.resource-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.resource-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(13,13,13,0.9), rgba(13,13,13,0.9));
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  color: var(--secondary-color);
}

.cta-section h2 {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: #d0d0d0;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 991px) {
  .hero h1 { font-size: 3.5rem; }
  .about-grid, .services-grid, .resources-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .search-card { flex-direction: column; align-items: stretch; }
  .search-input-group { width: 100%; }
}
