/* ===== POTTERY MARKETPLACE - RESPONSIVE STYLES ===== */
/* Mobile-First Approach with Accessibility */

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
  .hero {
    padding: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .footer {
    padding: 4rem 0 1rem;
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .service-card {
    padding: 3rem 2.5rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .contact-form,
  .contact-info {
    padding: 3rem;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== MOBILE-SPECIFIC STYLES (767px and below) ===== */
@media (max-width: 767px) {
  /* NO ANIMATIONS on mobile as per requirements */
  .card:hover,
  .service-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Mobile navigation improvements */
  .navbar-collapse {
    background-color: var(--primary-cream);
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--light-sage);
  }
  
  /* Hero section mobile adjustments */
  .hero {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  /* Sections mobile spacing */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  /* Service cards mobile layout */
  .service-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Team members mobile layout */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-member {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Contact form mobile adjustments */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-info-item {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ mobile layout */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
  }
  
  /* Gallery mobile layout */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Typography mobile adjustments */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
}

/* ===== TABLET SPECIFIC (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero {
    min-height: 80vh;
  }
  
  .service-card {
    height: auto;
    min-height: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

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

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    display: none;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Dark mode support */

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .card {
    border: 1px solid #c7c7c7;
    box-shadow: none;
  }
}

/* ===== LANDSCAPE ORIENTATION (Mobile) ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
}

/* ===== ULTRA-WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== FOCUS MANAGEMENT ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-terracotta);
  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-terracotta);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Disable animation in reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loading::after {
    animation: none;
  }
} 

.hero-content {
    padding-top: 175px;
}