/* Main CSS styles for M2AI Real Estate website */

/* Common elements */
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  margin: 0; 
  padding: 0; 
  overflow-x: hidden;
  color: #1e293b;
}

#bg-canvas {
  display: none; /* Removing animated dots background */
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #fff 0%, #fef3e2 50%, #fff 100%);
  z-index: -1;
  opacity: 0.7;
}

.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 90px !important; /* Account for fixed navbar */
}

.logo {
  margin-top: 36px;
  margin-bottom: 12px;
  height: 180px;
  max-width: 510px;
  width: auto;
  display: block;
}

.headline {
  color: #1e293b;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 12vh;
  margin-bottom: 20px;
  width: 90vw;
  max-width: 900px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Fixed navigation header with inline styles for critical rendering */
.header-nav-container {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 70px; 
  background-color: rgba(255, 255, 255, 0.98); 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
  z-index: 9999; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem); /* Responsive spacing */
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  padding: 0 1rem;
}

.nav-link-current {
  color: #fff; 
  background: #14b8a6; 
  text-decoration: none; 
  font-weight: 600; 
  padding: 6px 12px; 
  border-radius: 6px; 
  transition: background 0.18s, color 0.18s;
}

.nav-link-default {
  color: #7dd3fc; 
  text-decoration: none; 
  font-weight: 600; 
  padding: 6px 12px; 
  border-radius: 6px; 
  transition: background 0.18s, color 0.18s;
}

/* Call-to-action buttons */
.cta-button {
  display: inline-block; 
  font-size: 1.1rem; 
  padding: 8px 16px; 
  background-color: #14b8a6; 
  color: #fff; 
  border-radius: 6px; 
  text-decoration: none; 
  box-shadow: 0 4px 12px rgba(20,184,166,0.25); 
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(20,184,166,0.35);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  body {
    padding: 0 1rem; /* Prevent edge-to-edge content */
  }

  .main-content {
    padding: 90px 1.25rem 2rem 1.25rem !important;
  }

  /* Larger touch targets */
  .cta-button,
  .primary-cta,
  .nav-link-default,
  .nav-link-current {
    min-height: 48px;
    min-width: 48px;
    padding: 1rem 1.5rem;
  }

  /* Prevent icon/emoji overlap */
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Responsive typography */
  .headline,
  .colored-headline {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.25;
    margin: 1rem 0;
  }

  .subheadline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.6;
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .logo {
    height: 80px;
    max-width: 220px;
  }

  .headline {
    font-size: 1.1rem;
    margin-top: 12vh;
  }
}

/* Extra small devices */
@media (max-width: 390px) {
  .main-content {
    padding: 90px 0.75rem 1rem 0.75rem !important;
  }

  .cta-button,
  .primary-cta {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }
}
