/*
 * Responsive CSS for Online Creative Writing Retreats Template
 * Mobile-first responsive design
 * No animations on mobile as per requirements
 */

/* Mobile-first base styles */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Mobile section spacing */
  .section-padding {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Card adjustments */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .custom-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Price cards mobile layout */
  .price-value {
    font-size: 1.3rem;
  }
  
  /* Mobile navigation adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Mobile button adjustments */
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .contact-form {
    margin: 0 0.5rem;
    padding: 1rem;
  }
  
  .custom-card {
    margin-bottom: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  /* Re-enable minimal animations on tablet if motion is preferred */
  @media (prefers-reduced-motion: no-preference) {
    .custom-card:hover {
      transform: translateY(-3px);
    }
    
    .gallery-item:hover img {
      transform: scale(1.02);
    }
  }
}

/* Desktop and larger screens */
@media (min-width: 992px) {
  /* Full animations enabled on desktop */
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Ensure proper spacing for larger screens */
  .section-header {
    margin-bottom: 4rem;
  }
  
  /* Multi-column layouts for desktop */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

/* Large desktop screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 0;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
  
  .section-header {
    margin-bottom: 5rem;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .hero-decorative,
  .navbar,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .custom-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-card {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--text-primary);
  }
  
  .form-control {
    border: 2px solid var(--text-primary);
  }
}

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


.hero-section h1 {
    padding-top: 200px;
}