/* Sustainable Crafts Fair - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  #hero .container {
    padding: 1rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Service Cards */
  .service-image {
    height: 180px;
  }
  
  /* Team Cards */
  .team-image {
    height: 200px;
  }
  
  /* Price Cards */
  .price-card {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Process Cards */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Info Cards */
  .info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Section Padding */
  :root {
    --section-padding: 2rem 0;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* No animations on mobile for reduced motion */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .process-card:hover {
    transform: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .section-title {
    font-size: 2rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
  }
  
  /* Service Images */
  .service-image {
    height: 190px;
  }
  
  /* Team Images */
  .team-image {
    height: 220px;
  }
  
  /* Gallery */
  .gallery-item {
    height: 220px;
  }
  
  /* Price Cards */
  .price-amount {
    font-size: 2.8rem;
  }
  
  /* Reduced animations on mobile */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .process-card:hover {
    transform: none;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Service Images */
  .service-image {
    height: 200px;
  }
  
  /* Team Images */
  .team-image {
    height: 240px;
  }
  
  /* Gallery */
  .gallery-item {
    height: 240px;
  }
  
  /* Cards Grid */
  .row .col-md-6 .service-card,
  .row .col-md-6 .team-card {
    height: auto;
    min-height: 350px;
  }
  
  /* Contact Section */
  .contact-info {
    margin-top: 2rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Default styles work well for this range */
  
  /* Fine-tune some elements */
  .service-image {
    height: 200px;
  }
  
  .team-image {
    height: 250px;
  }
  
  .gallery-item {
    height: 250px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Typography */
  .section-title {
    font-size: 2.75rem;
  }
  
  /* Container */
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Service Images */
  .service-image {
    height: 200px;
  }
  
  /* Team Images */
  .team-image {
    height: 250px;
  }
  
  /* Gallery */
  .gallery-item {
    height: 250px;
  }
  
  /* Enhanced hover effects for desktop */
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Increase some spacing for ultra-wide */
  :root {
    --section-padding: 5rem 0;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
}

/* Height-based media queries */
@media (max-height: 600px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  :root {
    --section-padding: 3rem 0;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .section-title {
    font-size: 18pt;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .feature-icon,
  .process-number,
  .info-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark Mode Support (if user prefers) */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .process-card:hover {
    transform: none !important;
  }
}

/* Focus Styles for Accessibility */
@media (any-hover: none) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .process-card:hover {
    transform: none;
  }
} 