/* Real Estate Custom Color Palette - Gold/Yellow Theme */
:root {
  --primary-dark: #3F2C1F;
  --accent: #FFD93D;
  --secondary-text: #FEFEFE;
  --highlight-accent: #FFE066;
  --background: #3F2C1F;
  --surface: #5D4037;
  --text-primary: #FEFEFE;
  --text-secondary: #F5F5F4;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Luxury real estate styling */
body {
  font-family: 'Playfair Display', 'Crimson Text', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  background-image: 
    linear-gradient(45deg, rgba(217, 119, 6, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(217, 119, 6, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(217, 119, 6, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(217, 119, 6, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border: 2px solid var(--accent);
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--highlight-accent));
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 211, 13, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(63, 44, 31, 0.95) 0%, rgba(93, 55, 55, 0.95) 100%);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 2px solid rgba(253, 211, 13, 0.3);
  box-shadow: 0 2px 25px rgba(253, 211, 13, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  position: relative;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  position: relative;
}

.logo::before {
  content: '🏠';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem 2rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 211, 13, 0.2);
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(253, 211, 13, 0.1);
  transform: translateY(-1px);
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--surface) 100%);
  padding: 120px 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--highlight-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-search {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.search-filters select,
.search-filters input {
  padding: 0.75rem;
  border: 2px solid rgba(253, 211, 13, 0.3);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-filters select:focus,
.search-filters input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 211, 13, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.hero-stats .stat h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-stats .stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Properties Section */
.properties {
  padding: 6rem 0;
  background: var(--surface);
}

.properties h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.property-card {
  background: var(--primary-dark);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(253, 211, 13, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(253, 211, 13, 0.15);
  border-color: rgba(253, 211, 13, 0.4);
}

.property-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.property-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.property-img:nth-child(1) { animation-delay: 0.1s; }
.property-img:nth-child(2) { animation-delay: 0.2s; }
.property-img:nth-child(3) { animation-delay: 0.3s; }

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

.property-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.property-info {
  padding: 1.5rem;
}

.property-info h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.property-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.property-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.property-details span {
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.property-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--background);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-image .about-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(253, 211, 13, 0.15);
  transition: all 0.4s ease;
  object-fit: cover;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.about-image .about-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(253, 211, 13, 0.2);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--surface);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-item {
  background: var(--primary-dark);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 80px;
  height: 80px;
}

.service-item h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--background);
}

.contact h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-form {
  max-width: 500px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--highlight-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .search-filters {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-img {
    height: 300px;
    border-radius: 12px;
  }
  
  .property-img {
    height: 200px;
    border-radius: 8px;
  }
  
  .nav-links {
    display: none;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 100px 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .info-item {
    text-align: center;
  }
  
  .about-img {
    height: 250px;
    border-radius: 10px;
  }
  
  .property-img {
    height: 180px;
    border-radius: 6px;
  }
}