/* AI-Assisted Legal Brief Summarizer - Responsive Styles */
/* Mobile-First Responsive Design */

/* ========================================
   Mobile Devices (up to 575px)
========================================== */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Section Padding */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Cards Spacing */
  .service-card,
  .team-card,
  .review-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Remove hover effects on mobile */
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-image:hover {
    transform: none;
  }
  
  /* Mobile Navigation */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* ========================================
   Small Tablets (576px to 767px)
========================================== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Card grid adjustments */
  .service-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team cards - 2 columns */
  .team-card {
    margin-bottom: 2rem;
  }
}

/* ========================================
   Medium Tablets (768px to 991px)
========================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Price cards - better spacing */
  .price-card {
    margin-bottom: 2rem;
  }
}

/* ========================================
   Large Tablets & Small Desktops (992px to 1199px)
========================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard desktop layout with slight adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Services grid - 3 columns */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* ========================================
   Large Desktops (1200px and up)
========================================== */
@media (min-width: 1200px) {
  /* Full desktop experience */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Container max-width for very large screens */
  .container-fluid {
    max-width: 1400px;
  }
}

/* ========================================
   Height-Based Media Queries
========================================== */
@media (max-height: 600px) {
  /* Short screens */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
}

/* ========================================
   Landscape Orientation on Mobile
========================================== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* ========================================
   Print Styles
========================================== */
@media print {
  /* Hide navigation and footer for printing */
  .navbar,
  .footer {
    display: none;
  }
  
  /* Adjust colors for print */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Page breaks */
  .section-padding {
    page-break-inside: avoid;
  }
}

/* ========================================
   High DPI/Retina Displays
========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-resolution displays */
  .team-image,
  .blog-image,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   Dark Mode Preference
========================================== */

/* ========================================
   Reduced Motion Accessibility
========================================== */
@media (prefers-reduced-motion: reduce) {
  /* Remove animations for users who prefer reduced motion */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover transforms */
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .btn-primary-custom:hover {
    transform: none !important;
  }
}

/* ========================================
   Focus Visibility for Accessibility
========================================== */
@media (any-hover: none) {
  /* Touch devices - enhance focus visibility */
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

.hero-content {
    padding-top: 175px;
}