/* ================================================
   EcoFest - Responsive Styles
   Mobile-First Approach
   ================================================ */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  
  /* Section padding reduction */
  .section {
    padding: 40px 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Card adjustments */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Gallery adjustments */
  .gallery-image {
    height: 200px;
  }
  
  /* Timeline adjustments */
  .timeline-item::before {
    display: none;
  }
  
  /* Process step adjustments */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team photo adjustments */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Service image adjustments */
  .service-image {
    height: 150px;
  }
  
  /* No animations on mobile to respect reduced motion and performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  /* Re-enable some hover effects for larger mobile devices */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover {
    transform: translateY(-3px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Typography improvements */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  /* Section padding restoration */
  .section {
    padding: 60px 0;
  }
  
  /* Hero section improvements */
  #hero {
    min-height: 90vh;
  }
  
  .hero-decorative {
    display: block;
    width: 150px;
    height: 150px;
  }
  
  /* Contact form improvements */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Button improvements */
  .btn {
    width: auto;
    display: inline-block;
  }
  
  /* Gallery improvements */
  .gallery-image {
    height: 220px;
  }
  
  /* Service image improvements */
  .service-image {
    height: 180px;
  }
  
  /* Timeline improvements */
  .timeline-item::before {
    display: block;
  }
  
  /* Process improvements */
  .process-number {
    width: 55px;
    height: 55px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Typography full restoration */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  /* Section padding full restoration */
  .section {
    padding: 80px 0;
  }
  
  /* Hero section full restoration */
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  /* Re-enable all animations and transitions */
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  /* Pricing card featured scaling */
  .pricing-card.featured {
    transform: scale(1.05);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }
  
  /* Gallery hover scaling */
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  /* Contact form improvements */
  .contact-form {
    padding: 3rem;
  }
  
  /* Gallery improvements */
  .gallery-image {
    height: 250px;
  }
  
  /* Service image improvements */
  .service-image {
    height: 200px;
  }
  
  /* Process improvements */
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Team photo improvements */
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  .section {
    padding: 100px 0;
  }
  
  /* Enhanced contact form */
  .contact-form {
    padding: 3.5rem;
  }
  
  /* Enhanced gallery */
  .gallery-image {
    height: 280px;
  }
  
  /* Enhanced service images */
  .service-image {
    height: 220px;
  }
}

/* Extra extra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Maximum enhancement for very large screens */
  .section {
    padding: 120px 0;
  }
  
  /* Typography enhancements for large screens */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  /* Enhanced cards spacing */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card {
    padding: 2.5rem;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .hero-decorative,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --eco-green: #000000;
    --eco-green-light: #333333;
    --eco-green-dark: #000000;
    --gray-medium: #000000;
    --shadow-light: none;
    --shadow-medium: none;
    --shadow-dark: none;
  }
  
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid black;
  }
}

/* Custom breakpoint for navigation collapse */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects for touch devices */
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .faq-card:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }
  
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    padding: 0.875rem 2rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Focus management for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--eco-green);
    outline-offset: 2px;
  }
}

/* Dark mode support (if preferred by user) */

.hero-content {
    padding-top: 150px;
}