/* Digital Knitting Patterns - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.92rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.18rem !important;
  }
  
  .section {
    padding: 3rem 0 !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 70vh !important;
    text-align: center;
  }
  
  .feature-card,
  .service-card,
  .team-card {
    margin-bottom: 1.74rem !important;
  }
  
  .contact-form {
    padding: 2rem !important;
  }
  
  .navbar-brand {
    font-size: 1.44rem !important;
  }
  
  h1 { font-size: 1.92rem !important; }
  h2 { font-size: 1.61rem !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.03rem;
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.21rem;
  }
  
  .hero-subtitle {
    font-size: 1.37rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 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) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
}

/* Disable autoplay and effects on mobile for Swiper */
@media (max-width: 767.98px) {
  .swiper {
    --swiper-navigation-size: 0px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .decorative-shape {
    display: none !important;
  }
  
  .shape-1,
  .shape-2 {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto !important;
    background: none !important;
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-purple: #310f5f;
    --primary-teal: #007855;
    --primary-coral: #bc2675;
    --primary-amber: #b47707;
    --primary-navy: #000000;
  }
  
  .card,
  .feature-card,
  .service-card,
  .team-card {
    border: 2px solid var(--primary-navy) !important;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-coral) !important;
  outline-offset: 2px !important;
}

/* Container Max Width Adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 767.98px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .hero-content {
  padding-top: 100px !important;
    text-align: center !important;
  }
  
  .hero-image {
    margin-top: 2.14rem !important;
  }
  
  .contact-info {
    margin-top: 2.14rem !important;
  }
  
  .process-number {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 1rem !important;
  }
} 