/* Critical CSS for hero and header - expanded for better LCP */
* { box-sizing: border-box; }
body { 
  margin: 0; 
  padding: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  background: #fff; 
  color: #222; 
  line-height: 1.6;
  font-display: swap;
}

/* Header styles */
header { 
  width: 100%; 
  background: #fff; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  padding: 1rem 0;
}

/* Hero section critical styles - optimized for LCP */
.hero-section { 
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: url('/lovable-uploads/House-with-Hands.webp') center/cover no-repeat; 
  position: relative;
  color: white;
  text-align: center;
  contain: layout style paint;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  padding: 1.5rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimized hero text for LCP */
.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  max-width: 48rem;
  margin: 0 auto 2rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

/* Button styles */
.btn-primary {
  background: #6c2c70;
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #5a2360;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(108, 44, 112, 0.3);
}

/* Navigation styles */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile responsive optimizations */
@media (max-width: 768px) { 
  .hero-content { padding: 1rem; }
  .hero-title { font-size: 2rem; margin-bottom: 1rem; }
  .hero-description { font-size: 1rem; margin-bottom: 1.5rem; }
  .btn-primary { padding: 0.875rem 2rem; font-size: 1rem; }
}

@media (max-width: 480px) { 
  .hero-title { font-size: 1.75rem; }
  .hero-description { font-size: 0.9rem; }
  .hero-content { padding: 0.75rem; }
}

/* Performance optimizations */
img { 
  max-width: 100%; 
  height: auto; 
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

.lazy { opacity: 0; transition: opacity 0.3s; }
.lazy.loaded { opacity: 1; }

/* Preload key visual elements */
.hero-section {
  background-image: url('/lovable-uploads/House-with-Hands.webp');
}
