/* ===========================
   SOLAR MOWER RENTALS - RESPONSIVE CSS
   ========================== */

/* ===========================
   MOBILE FIRST APPROACH
   Base styles are for mobile devices
   ========================== */

/* ===========================
   SMALL DEVICES (landscape phones, 576px and up)
   ========================== */
@media (max-width: 575.98px) {
  
  /* Typography adjustments for small screens */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.54rem;
  }
  
  h3 {
    font-size: 1.31rem;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding: 1rem 0;
    padding-top: 250px;
}
  
  .hero-image {
    margin-top: 2rem;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.27rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 2rem 0;
  }
  
  /* Services grid mobile layout */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
  
  /* Team grid mobile layout */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Reviews mobile layout */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  /* Gallery mobile layout */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form mobile adjustments */
  .contact-form {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  /* Card adjustments */
  .card-custom {
    padding: 1.5rem;
    margin-bottom: 1.74rem;
  }
  
  /* Footer mobile adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Button adjustments */
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ===========================
   MEDIUM DEVICES (tablets, 768px and up)
   ========================== */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Hero section tablet adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Services grid tablet layout */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Team grid tablet layout */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Reviews tablet layout */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Gallery tablet layout */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Contact form tablet adjustments */
  .contact-form {
    padding: 2.5rem;
  }
}

/* ===========================
   LARGE DEVICES (desktops, 992px and up)
   ========================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Services grid desktop layout */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team grid desktop layout */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Reviews desktop layout */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Gallery desktop layout */
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* ===========================
   EXTRA LARGE DEVICES (large desktops, 1200px and up)
   ========================== */
@media (min-width: 992px) {
  
  /* Full desktop layout */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ===========================
   EXTRA EXTRA LARGE DEVICES (1400px and up)
   ========================== */
@media (min-width: 1200px) {
  
  /* Ultra-wide desktop adjustments */
  .container {
    max-width: 1320px;
  }
  
  .hero-section .container {
    max-width: 1200px;
  }
  
  /* Prevent content from getting too wide */
  .section-desc {
    max-width: 700px;
  }
  
  /* Gallery ultra-wide layout */
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===========================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ========================== */
@media (orientation: landscape) and (max-height: 600px) {
  
  /* Adjust hero height for landscape mobiles */
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 0.5rem 0;
    padding-top: 250px;
}
  
  /* Reduce section padding in landscape */
  .section {
    padding: 2rem 0;
  }
  
  /* Navbar adjustments for landscape */
  .navbar {
    padding: 0.5rem 0;
  }
}

/* ===========================
   HIGH DPI DISPLAYS (RETINA)
   ========================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Ensure images look crisp on retina displays */
  .hero-image img,
  .card-image,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===========================
   PRINT STYLES
   ========================== */
@media print {
  
  /* Hide unnecessary elements when printing */
  .navbar,
  .footer,
  .contact-form,
  .btn,
  .gallery-layout {
    display: none;
  }
  
  /* Adjust colors for print */
  body {
    color: #000;
    background: #fff;
  }
  
  /* Remove shadows and gradients for print */
  .card-custom,
  .service-item,
  .team-member,
  .review-item {
    box-shadow: none;
    background: #fff;
    border: 1px solid #cecece;
  }
  
  /* Optimize typography for print */
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  p {
    color: #4b4b4b;
  }
  
  /* Page break control */
  .section {
    page-break-inside: avoid;
  }
}

/* ===========================
   REDUCED MOTION PREFERENCES
   ========================== */
@media (prefers-reduced-motion: reduce) {
  
  /* Disable animations and transitions */
  .card-custom,
  .service-item,
  .btn-primary,
  .gallery-item img,
  .scale-hover {
    animation: none;
    transition: none;
    transform: none;
  }
  
  /* Remove hover effects that use transform */
  .card-custom:hover,
  .service-item:hover,
  .btn-primary:hover,
  .gallery-item:hover img,
  .scale-hover:hover {
    transform: none;
  }
  
  /* Disable parallax and scroll effects */
  .hero-section::before {
    transform: none;
  }
}

/* ===========================
   DARK MODE SUPPORT (for future use)
   ========================== */

/* ===========================
   CONTAINER 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;
  }
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   ========================== */

/* Focus states for keyboard navigation */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Touch target sizes for mobile */
@media (max-width: 767.98px) {
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
} 