/* Fiber Art Commissions - Responsive CSS */

/* Mobile First Approach - Base styles are for mobile */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 0.9rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }

  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .hero-content p {
    font-size: var(--font-size-base);
  }

  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.125rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center;
  }

  /* Service cards mobile */
  .service-card img {
    height: 150px;
  }

  .service-content {
    padding: var(--spacing-sm) !important;
  }

  .price {
    font-size: 1.25rem;
  }

  /* Team members mobile */
  .team-member img {
    width: 80px;
    height: 80px;
  }

  /* Process steps mobile */
  .step-number,
  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Timeline mobile */
  .timeline {
    padding-left: var(--spacing-sm);
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: -4px;
    width: 8px;
    height: 8px;
  }

  /* Gallery mobile */
  .gallery-section .col-6 {
    padding: 0.125rem;
  }

  /* Contact form mobile */
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }

  /* Footer mobile */
  .footer .col-lg-4 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }

  /* Portfolio items mobile */
  .portfolio-item img,
  .technique-item img,
  .style-item img,
  .case-study-card img,
  .blog-card img {
    height: 120px;
  }

  /* Color swatches mobile */
  .color-swatch {
    width: 60px;
    height: 60px;
  }

  /* Breadcrumb mobile */
  .breadcrumb-img {
    max-width: 150px;
  }

  /* Disable hover effects on mobile */
  .feature-box:hover,
  .feature-item:hover,
  .service-card:hover,
  .price-card:hover,
  .team-member:hover img,
  .case-study-card:hover,
  .blog-card:hover,
  .portfolio-item:hover,
  .technique-item:hover,
  .style-item:hover,
  .info-item:hover,
  .material-item:hover,
  .installation-item:hover,
  .size-option:hover,
  .care-item:hover,
  .support-item:hover,
  .career-item:hover,
  .btn-primary:hover,
  .gallery-section img:hover {
    transform: none;
    box-shadow: var(--box-shadow);
    border-color: initial;
  }

  .price-card.featured:hover {
    transform: scale(1.05);
  }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .service-card img {
    height: 175px;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .portfolio-item img,
  .technique-item img,
  .style-item img,
  .case-study-card img,
  .blog-card img {
    height: 150px;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .service-card img {
    height: 180px;
  }

  .team-member img {
    width: 110px;
    height: 110px;
  }

  .portfolio-item img,
  .technique-item img,
  .style-item img,
  .case-study-card img,
  .blog-card img {
    height: 175px;
  }

  /* Swiper adjustments for tablets */
  .testimonials-swiper .swiper-slide {
    width: auto;
    margin-right: var(--spacing-md);
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  /* Full hover effects on desktop */
  .feature-box:hover,
  .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-large);
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-large);
  }

  .price-card:hover {
    border-color: var(--primary-burgundy);
    transform: translateY(-5px);
  }

  .price-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }

  .team-member:hover img {
    border-color: var(--primary-rust);
  }

  .case-study-card:hover,
  .blog-card:hover,
  .portfolio-item:hover,
  .technique-item:hover,
  .style-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-large);
  }

  .info-item:hover,
  .material-item:hover,
  .installation-item:hover,
  .size-option:hover,
  .care-item:hover,
  .support-item:hover {
    transform: translateY(-5px);
  }

  .career-item:hover {
    transform: translateX(5px);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-large);
  }

  .gallery-section img:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
  }

  .hero-content h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
  }

  .hero-content p {
    margin-bottom: var(--spacing-sm);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb-nav,
  .footer,
  .btn,
  .swiper-pagination {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    background: white !important;
    color: black !important;
  }

  .hero-content h1,
  .hero-content h2,
  .hero-content p {
    color: black !important;
  }

  section {
    page-break-inside: avoid;
    padding: var(--spacing-sm) 0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }

  .service-card,
  .price-card,
  .testimonial-card,
  .case-study-card,
  .blog-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
    margin-bottom: var(--spacing-sm);
  }

  .color-swatch {
    border: 1px solid #ccc;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }

  .gallery-section {
    display: none;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    overflow: visible;
  }

  .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    transform: none !important;
  }

  .swiper-slide {
    flex: 0 0 auto;
    width: auto;
    margin-right: var(--spacing-md);
  }

  .swiper-pagination {
    display: none;
  }

  /* Disable autoplay and effects for motion-sensitive users */
  .testimonials-swiper {
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-burgundy: #000000;
    --primary-rust: #000000;
    --primary-sage: #000000;
    --primary-slate: #000000;
    --primary-cream: #ffffff;
    --light-cream: #ffffff;
    --dark-slate: #000000;
  }

  .service-card,
  .price-card,
  .testimonial-card,
  .case-study-card,
  .blog-card,
  .feature-box,
  .feature-item,
  .timeline-content,
  .career-item,
  .info-item,
  .material-item,
  .installation-item,
  .size-option,
  .care-item,
  .support-item {
    border: 2px solid #000000 !important;
  }

  .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
  }

  .form-control {
    border: 2px solid #000000 !important;
  }
}

/* Focus Management for Accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  outline: 3px solid var(--primary-rust);
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-burgundy);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Mobile-specific Swiper adjustments */
@media (max-width: 767.98px) {
  .swiper {
    overflow: visible;
  }

  .testimonials-swiper .swiper-slide {
    width: 280px;
    margin-right: var(--spacing-sm);
  }

  .swiper-pagination {
    position: static;
    margin-top: var(--spacing-md);
  }

  /* Disable autoplay and effects on mobile as per requirements */
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .testimonials-swiper .swiper-slide {
    width: 350px;
  }
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 991.98px) {
  .row [class*="col-"] {
    margin-bottom: var(--spacing-md);
  }

  .row [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Fix for Bootstrap column spacing on mobile */
@media (max-width: 575.98px) {
  .container-fluid .row .col-6 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .container-fluid .row .col-lg-3,
  .container-fluid .row .col-md-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Ensure readability on all devices */
@media (max-width: 991.98px) {
  p, li, .form-control, .btn {
    font-size: var(--font-size-base);
    line-height: 1.6;
  }
}

/* Touch-friendly button sizes on mobile */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }

  .form-control {
    min-height: 44px;
  }

  .form-check-input {
    width: 20px;
    height: 20px;
  }
} 