
/* CVG Nexus Mobile Optimization CSS
   © 2025 Clearview Geographic LLC
   Mobile-first responsive enhancements */

/* Mobile-first base styles */
@media screen and (max-width: 768px) {
  
  /* Enhanced mobile navigation */
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }
  
  .main-navigation.active {
    left: 0;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: #2b77ad;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  /* Enhanced touch targets */
  .btn, .button, button, .nav-link, a.cta {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  /* Mobile form optimization */
  .form-control, input, textarea, select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* CVGChat mobile optimization */
  #cvgChatWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  #cvgChatWindow {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 350px;
    height: 60vh;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }
  
  /* Mobile calculator optimization */
  .calculator-container {
    padding: 1rem;
    margin: 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .calculator-input {
    font-size: 18px;
    padding: 16px;
    text-align: center;
    border: 2px solid #2b77ad;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .calculator-button {
    min-height: 50px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2b77ad 0%, #1a365d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .calculator-button:active {
    transform: scale(0.98);
  }
  
  /* Mobile content optimization */
  .content-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Mobile typography */
  h1 { font-size: 2rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; line-height: 1.3; }
  h3 { font-size: 1.5rem; line-height: 1.4; }
  p { font-size: 1rem; line-height: 1.6; }
  
  /* Loading performance */
  .lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .lazy-image.loaded {
    opacity: 1;
  }
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Critical path CSS inline optimization */
.above-fold {
  display: block;
}

.below-fold {
  display: none;
}

@media screen and (min-width: 769px) {
  .below-fold {
    display: block;
  }
}
