:root {
  /* Core Theme Colors */
  --jaipur-pink: #E85A4F;
  --royal-gold: #D4AF37;
  --turquoise: #2A9D8F;
  --marigold-orange: #F4A261;
  --royal-maroon: #8B1E3F;
  --sand-bg: #FFF5E9;
  
  /* Additional UI Colors */
  --text-dark: #2A2A2A;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  --border-light: #E5E5E5;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--sand-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--royal-maroon);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: var(--jaipur-pink);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--royal-maroon);
}

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

/* Base Layout Utilities */
.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--royal-gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #C5A028;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: var(--jaipur-pink);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #D6453A;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(232, 90, 79, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--royal-gold);
  color: var(--royal-gold);
}

.btn-outline:hover {
  background-color: var(--royal-gold);
  color: var(--white);
}

/* Header/Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--jaipur-pink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--royal-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.05rem;
}

.nav-links li a:hover {
  color: var(--jaipur-pink);
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Footer */
.footer {
  background-color: var(--royal-maroon);
  color: var(--white);
  padding: 80px 0 30px;
}

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

.footer-col h3 {
  color: var(--royal-gold);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--royal-gold);
}

.footer-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--royal-gold);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
}

.footer-contact i {
  color: var(--royal-gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Utilities classes for index sections */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--jaipur-pink);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.card-badge.gold {
  background: var(--royal-gold);
}

.card-badge.maroon {
  background: var(--royal-maroon);
}

.card-content {
  padding: 25px;
}

.card-price {
  color: var(--jaipur-pink);
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-address i {
  color: var(--turquoise);
}

.card-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

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

.feature-item i {
  color: var(--marigold-orange);
}

/* Category Card */
.category-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--marigold-orange);
  box-shadow: 0 15px 25px rgba(0,0,0,0.08);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: rgba(244, 162, 97, 0.1);
  color: var(--marigold-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--marigold-orange);
  color: var(--white);
}

.category-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.category-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Area Card */
.area-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  display: block;
}

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

.area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.area-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-family: 'Playfair Display', serif;
}

.area-properties {
  color: var(--royal-gold);
  font-weight: 500;
}

.area-card:hover .area-img {
  transform: scale(1.1);
}

/* Builder Card */
.builder-card {
  background: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.builder-card:hover {
  border-color: var(--royal-gold);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.builder-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto 20px;
  border: 2px solid var(--sand-bg);
  padding: 10px;
}

.builder-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.builder-projects {
  color: var(--jaipur-pink);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .mobile-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--royal-maroon);
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    gap: 15px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-actions {
    display: none; /* Hide login/list buttons on mobile nav for simplicity, or move to menu */
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-padding {
    padding: 60px 0;
  }
}

/* Enhanced Hero Section Styles */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    background-size: cover !important;
    background-position: center !important;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-field {
    text-align: left;
}

.search-field label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.search-btn-wrapper {
    display: flex;
    align-items: flex-end;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    padding: 0 20px;
}

.stat-item h3 {
    color: var(--royal-gold);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    margin: 0;
}

.stat-item:not(:first-child) {
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* Why Invest Section */
.invest-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.invest-img-col {
    flex: 1;
    min-width: 300px;
}

.invest-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: -15px 15px 0 var(--jaipur-pink);
}

.invest-content-col {
    flex: 1;
    min-width: 300px;
}

.invest-point {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.invest-point i {
    color: var(--royal-gold);
    font-size: 1.5rem;
}

.invest-point h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* CTA Section */
.cta-section {
    background-color: var(--royal-gold);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.9);
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .search-box {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .search-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .stat-item:not(:first-child) {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-left: 0;
        padding-top: 20px;
        width: 150px;
    }
    .invest-row {
        gap: 30px;
    }
    .invest-content-col {
        padding-left: 0 !important;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .cta-btns .btn {
        width: 100%;
        max-width: none;
    }
}
