/* Responsive CSS for Art Gallery Template */

/* Mobile-first approach */
@media (max-width: 767.98px) {
  :root {
    --font-size-base: 14px;
    --section-padding: 50px 0;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  /* Navigation Mobile */
  .navbar-brand {
    font-size: 18px !important;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    margin: 0;
  }
  
  /* Section Titles Mobile */
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-item {
    padding: 25px 20px;
  }
  
  .service-item img {
    width: 60px;
    height: 60px;
  }
  
  .service-name {
    font-size: 1.1rem;
  }
  
  .service-price {
    font-size: 1.3rem;
  }
  
  /* Team Grid Mobile */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-member {
    padding: 25px 20px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 30px 20px;
    margin: 0 10px;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 25px;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 40px 30px;
  }
}

/* Tablet Landscape */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section {
    padding: 0 50px;
  }
  
  .services-grid {
    gap: 40px;
  }
  
  .team-grid {
    gap: 40px;
  }
  
  .gallery-grid {
    gap: 30px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px 0;
  }
  
  .section {
    padding: 30px 0;
    page-break-inside: avoid;
  }
  
  .service-item,
  .team-member,
  .gallery-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-1: #000000;
    --primary-2: #ffffff;
    --primary-3: #333333;
    --primary-4: #000000;
    --primary-5: #666666;
  }
  
  .service-item,
  .team-member,
  .contact-form,
  .faq-item {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
  }
  
  .btn-primary:hover {
    background: #ffffff;
    color: #000000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .service-item:hover,
  .gallery-item:hover,
  .btn:hover {
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-2);
  outline-offset: 2px;
}

/* Skip Links for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-1);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-2);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error States */
.error {
  color: #dc3545;
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: var(--font-size-small);
  margin-top: 5px;
} 