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

:root {
  /* Color Palette */
  --primary-color: #5d5fef;
  --secondary-color: #365add;
  --accent-color: #5d5fef;
  --text-dark: #333333;
  --text-light: #F4F4F4;
  --background-light: #F9F9FF;
  --border-soft: #E0E0E0;
  --white: #ffffff;
  
  
  /* Responsive Variables */
  --border-radius-md: 8px;
  --transition-normal: 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  /* Improve text rendering on mobile */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  /* Prevent text from breaking awkwardly */
  word-wrap: break-word;
}

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

/* Mobile-first responsive container */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 0.75rem;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Better mobile scaling */
  margin-bottom: 1rem;
  color: var(--section-color);
  padding: 0 1rem;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(0.9rem, 3vw, 1.1rem); /* Better mobile scaling */
  margin-bottom: 2rem;
  color: var(--advice-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.5;
}

/* Mobile adjustments for section subtitle */
@media (max-width: 768px) {
  .section-subtitle {
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
}

.accent {
  color: var(--primary-color);
}





/* Services Section Styles */
.services-section {
  padding: 3rem 0;
  position: relative;
}

/* Mobile adjustments for services */
@media (max-width: 768px) {
  .services-section {
    padding: 2rem 0;
  }
}

/* Buttons & CTAs - Mobile Optimized */
.section-action {
  margin: 2rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .section-action {
    margin: 1.5rem 0;
  }
}

.btn-land {
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1rem;
  /* Better touch targets for mobile */
  min-height: 44px;
  min-width: 44px;
  /* Prevent text selection on buttons */
  user-select: none;
  -webkit-user-select: none;
  /* Better tap handling */
  -webkit-tap-highlight-color: transparent;
}

/* Mobile-specific button adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem 0;
  }
}

.btn:focus {
  outline: 3px solid rgba(93, 95, 239, 0.3);
  outline-offset: 2px;
}

/* Enhanced focus for mobile accessibility */
.btn:focus-visible {
  outline: 3px solid rgba(93, 95, 239, 0.5);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary,
.btn-property,
.btn-land {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover,
.btn-property:hover,
.btn-land:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Mobile touch adjustments - reduce hover effects */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-property:hover,
  .btn-land:hover {
    transform: none;
  }
  
  .btn-primary:active,
  .btn-property:active,
  .btn-land:active {
    transform: scale(0.98);
    background-color: var(--secondary-color);
  }
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Mobile touch adjustments for outline button */
@media (hover: none) and (pointer: coarse) {
  .btn-outline:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
  
  .btn-outline:active {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: scale(0.98);
  }
}

/* General Mobile Optimizations */
@media (max-width: 768px) {
  /* Improve text readability */
  body {
    font-size: 16px;
  }
  
  /* Improve spacing for touch interfaces */
  * {
    scroll-behavior: smooth;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Better section title scaling */
  .section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    margin-bottom: 1.25rem;
  }
}

/* Very small screens optimization */
@media (max-width: 320px) {
  .container {
    padding: 0 0.5rem;
  }
  
  
  .section-title {
    font-size: 1.25rem;
    padding: 0 0.5rem;
  }
  
  .section-subtitle {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

