/* Compostable Mailer Manufacturing Template - Responsive CSS */

/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.375rem; }
  
  /* Conservative navbar brand on mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Section padding reduction */
  .section {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1.5rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  /* Team photo mobile */
  .team-photo {
    height: 200px;
  }
  
  /* Price card mobile - remove scale effect */
  .price-card.featured {
    transform: none;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Disable animations on mobile for better performance */
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section::before {
    width: 200px;
    height: 200px;
  }
  
  .hero-section::after {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2d5a3d;
    --secondary-sage: #4a6b52;
    --accent-mint: #5c7d64;
    --neutral-cream: #ffffff;
    --highlight-earth: #3d2a20;
  }
  
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* Focus management for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* Dark mode support (if user enables it) */

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