/* Responsive Styles for LED Horticulture Lighting Design Firm */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* No scroll animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  /* Conservative navbar brand on mobile */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-sm {
    padding: 2rem 0;
  }
  
  /* Card spacing */
  .feature-card,
  .service-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form mobile optimization */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  
  /* Footer mobile optimization */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Button mobile optimization */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Gallery mobile optimization */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team card mobile optimization */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process step mobile optimization */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Pricing card mobile optimization */
  .pricing-card {
    margin-bottom: 2rem;
    padding: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Timeline mobile optimization */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* FAQ mobile optimization */
  .faq-card {
    padding: 1.25rem;
  }
  
  /* Navbar mobile optimization */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No scroll animations on small devices */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  
  /* Hero section optimization */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Section padding */
  .section-padding {
    padding: 3.5rem 0;
  }
  
  /* Gallery optimization */
  .gallery-item img {
    height: 220px;
  }
  
  /* Button optimization */
  .btn-primary,
  .btn-outline-primary {
    width: auto;
    margin-right: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography adjustments */
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.7rem; }
  
  /* Hero section tablet optimization */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Card grid optimization */
  .feature-card,
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Contact section tablet optimization */
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
  
  /* Gallery tablet optimization */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team tablet optimization */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Process tablet optimization */
  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.375rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full typography scale */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  /* Hero section desktop optimization */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Section spacing */
  .section-padding {
    padding: 4.5rem 0;
  }
  
  /* Gallery desktop optimization */
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full scale for large screens */
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Gallery large screen optimization */
  .gallery-item img {
    height: 280px;
  }
  
  /* Container optimization for very large screens */
  .container {
    max-width: 1140px;
  }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 568px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .case-card:hover,
  .team-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    padding: 1rem;
    min-height: 44px;
  }
  
  .btn-primary,
  .btn-outline-primary {
    min-height: 44px;
    padding: 0.875rem 2rem;
  }
  
  /* Form controls touch optimization */
  .form-control {
    min-height: 44px;
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  /* Remove decorative elements */
  .hero-section::before,
  .navbar,
  .footer {
    display: none !important;
  }
  
  /* Optimize colors for print */
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Remove animations and transitions */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Optimize spacing for print */
  .section-padding {
    padding: 1rem 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Ensure all animations are disabled for users with motion sensitivity */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card,
  .pricing-card,
  .contact-form,
  .team-card {
    border: 2px solid currentColor;
  }
  
  .btn-primary,
  .btn-outline-primary {
    border-width: 2px;
  }
}

/* Focus management for keyboard navigation */
@media (any-pointer: fine) {
  /* Enhanced focus styles for precise pointers */
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* Image optimization for different screen sizes */
@media (max-width: 575.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Form optimization for mobile */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Spacing utilities for responsive design */
@media (max-width: 575.98px) {
  .mb-mobile-2 { margin-bottom: 1rem !important; }
  .mb-mobile-3 { margin-bottom: 1.5rem !important; }
  .mb-mobile-4 { margin-bottom: 2rem !important; }
  
  .mt-mobile-2 { margin-top: 1rem !important; }
  .mt-mobile-3 { margin-top: 1.5rem !important; }
  .mt-mobile-4 { margin-top: 2rem !important; }
} 

.hero-section h1 {
    padding-top: 275px;
}