/* Responsive Styles for Biodegradable Phone Accessories */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Conservative font sizes for mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  .navbar-brand { font-size: 1.25rem !important; }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Service cards stack better */
  .service-card {
    margin-bottom: 30px;
    padding: 20px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Price cards more compact */
  .price-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 30px 20px;
  }
  
  /* Gallery items full width */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process steps more compact */
  .process-step {
    padding: 20px 15px;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
  }
  
  /* NO ANIMATIONS ON MOBILE - Respect accessibility */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  
  .service-card {
    margin-bottom: 30px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .price-value {
    font-size: 2.75rem;
  }
  
  /* Reduce animations on small screens */
  @media (prefers-reduced-motion: no-preference) {
    .service-card:hover {
      transform: translateY(-5px);
    }
    
    .price-card:hover {
      transform: scale(1.02);
    }
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card {
    margin-bottom: 30px;
  }
  
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  /* Adjust hero decorative elements */
  .hero-decorative:nth-child(1) {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 120px;
    height: 120px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .service-card {
    margin-bottom: 30px;
  }
  
  .hero-decorative:nth-child(1) {
    width: 180px;
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Full decorative elements on large screens */
  .hero-decorative {
    opacity: 0.15;
  }
}

/* Accessibility Improvements */
@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;
  }
  
  /* Remove all hover transforms */
  .service-card:hover,
  .price-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --eco-green: #2d5a2d;
    --eco-green-light: #4a7c4a;
    --eco-green-dark: #1a3d1a;
    --forest-teal: #2c3e50;
    --forest-teal-dark: #1a252f;
  }
  
  .service-card,
  .price-card,
  .review-card,
  .contact-form {
    border: 2px solid #333;
  }
  
  .btn-primary {
    border: 2px solid var(--eco-green-dark);
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .price-card,
  .review-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/* Focus Management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--eco-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure adequate color contrast */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--eco-green);
  outline-offset: 2px;
}

/* Flexible Images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Tables */
.table-responsive {
  overflow-x: auto;
}

/* Flexible Video Embeds */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Touch-friendly Buttons */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
} 

body {
    overflow-x: hidden;
}