/* Responsive CSS for AI-Powered Claims Triage Service */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Desktop and Laptop (992px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  :root {
    --section-padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .navbar-nav {
  flex-direction: row;
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 20px;
  }
  
  :root {
    --section-padding: 50px 0;
    --font-size-base: 15px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding-top: 100px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .services-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item,
  .priceplan-item {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Disable animations on mobile for better performance */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Disable autoplay and complex animations on mobile */
  .shape-blob {
    animation: none;
  }
  
  .service-item:hover,
  .priceplan-item:hover,
  .team-member:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Mobile Landscape (481px to 575px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  :root {
    --section-padding: 40px 0;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .about-features,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .service-item,
  .priceplan-item,
  .team-member {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 0;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
}

/* Mobile Portrait (320px to 480px) */
@media (max-width: 480px) {
  :root {
    --section-padding: 30px 0;
    --font-size-base: 14px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-section {
    min-height: 50vh;
    padding-top: 80px;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile (up to 319px) */
@media (max-width: 319px) {
  .container {
    padding: 0 10px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  
  .service-item,
  .priceplan-item,
  .team-member,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  footer,
  .navbar,
  .contact-form,
  .btn-primary {
    display: none !important;
  }
  
  body {
overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-mint: #00a86b;
    --primary-coral: #dc143c;
    --primary-lavender: #8b008b;
    --primary-peach: #ff8c00;
    --primary-sage: #228b22;
  }
  
  .service-item,
  .priceplan-item,
  .team-member,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    border: 2px solid var(--dark-gray);
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:focus,
  .form-control:focus,
  .nav-link:focus,
  .faq-question:focus {
    outline: 3px solid var(--primary-mint);
    outline-offset: 2px;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .shape-blob {
    animation: none;
  }
}

/* Landscape Phone Specific */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  :root {
    --section-padding: 30px 0;
  }
}

/* iPad Specific */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 70vh;
  }
}

/* iPhone Specific */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3) {
  
  .hero-section {
    min-height: 60vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
} 