/* Clay Sculpture Classes - Responsive CSS */

/* Mobile First Approach */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.375rem;
    --font-size-h4: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  #hero {
    text-align: center;
    min-height: 80vh;
  }
  
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  #hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  .feature-card, 
  .service-card, 
  .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 0px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section {
    padding: 4rem 0;
  }
  
  #hero h1 {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 0px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    padding: 4.5rem 0;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Enable Swiper navigation on tablets and up */
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--primary-terracotta);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section {
    padding: 5rem 0;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .hero-shape-1 {
    width: 180px;
    height: 180px;
  }
  
  .hero-shape-2 {
    width: 140px;
    height: 140px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container-xl {
    max-width: 1400px;
  }
  
  .hero-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  #hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  #hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination,
  footer {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-terracotta: #8b4513;
    --primary-clay: #654321;
    --primary-earth: #3e2723;
    --primary-sand: #daa520;
    --primary-cream: #fffaf0;
  }
  
  .navbar {
    border-bottom: 2px solid var(--primary-earth);
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .blog-card {
    border: 2px solid var(--primary-clay);
  }
}

/* Focus styles for accessibility */
@media (any-hover: none) {
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-shape-1,
  .hero-shape-2 {
    animation: none;
  }
  
  .swiper {
    --swiper-transition-timing-function: linear;
  }
  
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--light-cream);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-terracotta);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--dark-terracotta);
  }
}

/* Breadcrumb styles for additional pages */
.breadcrumb-container {
  background: var(--light-cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-sand);
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.breadcrumb-item:hover img {
  opacity: 1;
}

/* Space page specific styles */
#space {
  min-height: 80vh;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 4rem 2rem;
}

#space::before {

  font-size: 3rem;
  color: var(--primary-clay);
  font-weight: 300;
  margin-bottom: 1rem;
}

#space::after {
  content: "This area is reserved for dynamic content";
  font-size: 1.2rem;
  color: var(--dark-earth);
  opacity: 0.7;
}

/* Additional page sections */
.add-page-section {
  padding: 4rem 0;
  position: relative;
}

.add-page-section:nth-child(odd) {
  background: var(--light-cream);
}

.add-page-section:nth-child(even) {
  background: white;
}

.add-page-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow-sm);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.add-page-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.add-page-item h4 {
  color: var(--primary-clay);
  margin-bottom: 1rem;
}

.add-page-item p {
  color: var(--dark-earth);
  margin: 0;
} 