/* CSS Variables for Colors and Typography */
:root {
  /* Color Palette */
  --warm-beige: #F5F2EC;
  --soft-gray: #E9E5E0;
  --charcoal-gray: #4A4A4A;
  --deep-blue: #2C5F8D;
  --forest-green: #2A6B4F;
  --ocean-teal: #4A90A4;
  --cream: #FFF9F2;
  --light-wood: #D4C4B0;
  --accent-orange: #E67E22;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 80px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal-gray);
  background-color: #fff;
}

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

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal-gray);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 30px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

p {
  margin-bottom: 16px;
}

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

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

.logo h1 {
  font-size: 28px;
  color: var(--deep-blue);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  color: var(--charcoal-gray);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--deep-blue);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--charcoal-gray);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('luxury-home-warm-light.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 95, 141, 0.5);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1.2s ease-out;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-sub-headline {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-button {
  background-color: var(--deep-blue);
  color: white;
  border: none;
}

.primary-button:hover {
  background-color: #1E4568;
}

.secondary-button {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Featured Properties Section */
.featured-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--warm-beige);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--charcoal-gray);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.filters-container {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-dropdown {
  padding: 10px 16px;
  border: 1px solid var(--soft-gray);
  border-radius: 8px;
  background-color: white;
  min-width: 150px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

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

.property-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-details {
  padding: 16px;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.property-location {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.property-location::before {
  content: "📍";
  margin-right: 6px;
}

.property-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.property-spec {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal-gray);
}

.property-spec::before {
  margin-right: 4px;
}

.property-beds::before { content: "🛏️"; }
.property-baths::before { content: "🚿"; }
.property-area::before { content: "📏"; }

.property-features {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.property-feature {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 4px 8px;
  background-color: var(--warm-beige);
  border-radius: 4px;
}

.view-details-btn {
  width: 100%;
  padding: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: white;
  background-color: var(--deep-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.view-details-btn:hover {
  background-color: #1E4568;
}

.view-all-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
  background-color: white;
  border: 2px solid var(--deep-blue);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background-color: var(--deep-blue);
  color: white;
}

/* Services Overview */
.services-section {
  padding: var(--spacing-xxl) 0;
  background-color: white;
}

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

.service-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 8px;
  background-color: var(--warm-beige);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background-color: var(--soft-gray);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon::before {
  font-size: 32px;
  color: var(--deep-blue);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal-gray);
  margin-bottom: 16px;
}

.service-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.search-icon::before { content: "🔍"; }
advice-icon::before { content: "💼"; } 
analysis-icon::before { content: "📊"; }
transaction-icon::before { content: "📝"; }

/* Testimonials Section */
.testimonials-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--warm-beige);
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
  padding: 0 40px;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.8s ease-out;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--charcoal-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.testimonial-property {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CCC;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--deep-blue);
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: var(--deep-blue);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-arrow:hover {
  background-color: var(--warm-beige);
}

.testimonial-arrow.prev {
  left: 20px;
}

.testimonial-arrow.next {
  right: 20px;
}

/* Why Choose Sweet Home */
.why-choose-section {
  padding: var(--spacing-xxl) 0;
  background-color: white;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

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

.why-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--warm-beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.why-item:hover .why-icon-container {
  background-color: var(--deep-blue);
}

.why-icon-container::before {
  font-size: 36px;
  transition: transform 0.3s ease;
}

.why-item:hover .why-icon-container::before {
  transform: scale(1.1);
  color: white;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal-gray);
  margin-bottom: 12px;
}

.why-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.database-icon::before { content: "🗄️"; }
.agents-icon::before { content: "👥"; }
.personal-icon::before { content: "🎯"; }
.technology-icon::before { content: "💻"; }
.transparent-icon::before { content: "👁️"; }

/* Newsletter Signup */
.newsletter-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--deep-blue);
  position: relative;
  overflow: hidden;
}

.newsletter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('abstract-pattern.jpg');
  background-size: cover;
  opacity: 0.1;
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-headline {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.newsletter-subhead {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
}

.newsletter-submit {
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: var(--forest-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-submit:hover {
  background-color: #1F4E3F;
}

.newsletter-terms {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-checkbox {
  margin-right: 8px;
}

/* Footer */
.footer {
  background-color: var(--charcoal-gray);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

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

.footer-column ul li a {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.footer-contact::before {
  margin-right: 10px;
}

.phone::before { content: "📞"; }
.email::before { content: "✉️"; }
.location::before { content: "📍"; }

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.footer-copyright {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  margin-top: 16px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .market-content {
    grid-template-columns: 1fr;
  }
  
  .specializations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 24px;
    font-size: 18px;
  }
  
  .hero-headline {
    font-size: 36px;
  }
  
  .hero-sub-headline {
    font-size: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 80%;
  }
  
  .hero-button {
    width: 100%;
  }
  
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    padding: 0 20px;
  }
  
  .testimonial-arrow {
    width: 36px;
    height: 36px;
  }
  
  .filters-container {
    flex-direction: column;
  }
  
  .filter-dropdown {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input, .newsletter-submit {
    width: 100%;
  }
  
  .tab-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  .hero-headline {
    font-size: 28px;
  }
  
  .hero-sub-headline {
    font-size: 18px;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .category-property-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .specializations {
    grid-template-columns: 1fr;
  }
}
