/* Responsive CSS for Virtual Photography Courses Template */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  /* Services grid */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Team cards */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Price cards */
  .price-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero {
    min-height: 75vh;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  /* Services */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 85vh;
  }
  
  /* Services grid - 2 columns */
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Team grid - 2-3 columns */
  .team-grid .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard desktop layout maintained */
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--content-max-width);
  }
  
  /* Hero enhancements */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  /* Larger spacing for bigger screens */
  section {
    padding: 80px 0;
  }
}

/* Specific mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--neutral-gray-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 175px;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .team-photo,
  .case-study-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  #header,
  #footer,
  .btn,
  .navbar {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .review-card,
  .faq-card {
    page-break-inside: avoid;
    border: 1px solid #000;
    margin-bottom: 1rem;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card,
  .contact-form {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background-color: #000;
    border-color: #000;
    color: #fff;
  }
  
  .btn-primary:hover {
    background-color: #333;
    border-color: #333;
  }
}

/* Reduced motion for mobile */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item img,
  .team-card,
  .price-card {
    transition: none;
  }
  
  .service-card:hover,
  .gallery-item img:hover {
    transform: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .btn,
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Container max-width adjustments for various breakpoints */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Specific section adjustments for mobile */
@media (max-width: 767.98px) {
  .section-desc {
    margin-bottom: 2rem;
  }
  
  .features-item,
  .process-step {
    margin-bottom: 2rem;
  }
  
  .team-grid > .col-6:nth-child(odd) {
    padding-right: 0.5rem;
  }
  
  .team-grid > .col-6:nth-child(even) {
    padding-left: 0.5rem;
  }
} 