/* =======================
   Sustainable Laptop Sleeves - Responsive Stylesheet
   Mobile-First Responsive Design
   ======================= */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Hero Section */
  #hero {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Section Padding */
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-item,
  .price-card,
  .team-member,
  .review-card,
  .case-item,
  .process-step,
  .career-item,
  .info-item {
    margin-bottom: 1.5rem;
  }
  
  .service-item img {
    height: 180px;
  }
  
  .service-content,
  .blog-content {
    padding: 1.25rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  
  /* Contact Section */
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Form Elements */
  .form-control {
    padding: 0.6rem 0.8rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  #footer {
    padding: 2.5rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Remove animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .feature-card:hover,
    .service-item:hover,
    .price-card:hover,
    .team-member:hover,
    .career-item:hover,
    .info-item:hover,
    .blog-card:hover,
    .gallery-item:hover {
      transform: none;
    }
  }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  #hero {
    padding: 110px 0 70px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Section Adjustments */
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 1.675rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  /* Cards */
  .price-card {
    padding: 2.25rem 1.75rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2.25rem 1.75rem;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero {
    padding: 120px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  /* Section Adjustments */
  .section {
    padding: 70px 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  /* Grid Adjustments for Better Spacing */
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row:last-child > [class*="col-"] {
    margin-bottom: 0;
  }
  
  /* Service Items - 2 per row on tablets */
  .service-item img {
    height: 190px;
  }
  
  /* Team Members - Adjust for tablet layout */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Contact Section */
  .contact-form {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid */
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Ensure consistent card heights */
  .service-item,
  .feature-card,
  .price-card,
  .team-member,
  .review-card,
  .career-item {
    display: flex;
    flex-direction: column;
  }
  
  .service-content,
  .feature-card,
  .price-card {
    flex-grow: 1;
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery Grid - Maximum 5 columns on very large screens */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Hero Section Enhancements */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Limit maximum width for readability */
  .section-title p {
    max-width: 700px;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  /* Container max-width adjustments for ultra-wide screens */
  .container {
    max-width: 1320px;
  }
  
  /* Maintain reasonable content width */
  .section-title p {
    max-width: 800px;
  }
  
  /* Gallery Grid - Keep reasonable on ultra-wide */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Crisp borders and shadows on high DPI displays */
  .feature-card,
  .service-item,
  .price-card,
  .team-member,
  .review-card,
  .case-item,
  .process-step,
  .career-item,
  .info-item,
  .blog-card,
  .faq-item,
  .contact-form,
  .gallery-item {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Print Styles */
@media print {
  /* Remove unnecessary elements for print */
  #header,
  #footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  /* Ensure proper page breaks */
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  /* Simplify colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  
  /* Maintain readable font sizes */
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  p { font-size: 12pt; }
}

/* Dark Mode Support (if user prefers) */

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Landscape Orientation Adjustments for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
    padding: 80px 0 50px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-item,
  .price-card,
  .team-member,
  .review-card,
  .case-item,
  .process-step,
  .career-item,
  .info-item,
  .blog-card,
  .faq-item {
    border: 2px solid var(--dark-forest);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-forest);
  }
  
  .form-control {
    border: 2px solid var(--dark-forest);
  }
}


body {
    overflow-x: hidden;
}