/* 
 * Ceramics Workshop Template - Responsive Styles
 * Mobile-first approach with Bootstrap 5 breakpoints
 */

/* Mobile First (Default) */
/* Extra small devices (phones, less than 576px) */

.navbar-brand {
  font-size: 1rem;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

#hero {
  min-height: 80vh;
  text-align: center;
}

.hero-text {
  margin-bottom: 2rem;
    padding-top: 125px;
}

.hero-image {
  margin-top: 2rem;
}

section {
  padding: 2rem 0;
}

.service-card .card-img-top {
  height: 180px;
}

.team-card img {
  width: 120px;
  height: 120px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
}

.gallery-item img {
  height: 200px;
}

/* Mobile navigation - no custom hamburger, use Bootstrap default */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-nav {
  text-align: center;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .navbar-brand {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  #hero {
    min-height: 85vh;
  }

  section {
    padding: 3rem 0;
  }

  .service-card .card-img-top {
    height: 190px;
  }

  .team-card img {
    width: 130px;
    height: 130px;
  }

  .feature-icon {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  #hero {
    min-height: 90vh;
    text-align: left;
  }

  .hero-text {
    margin-bottom: 0;
    padding-top: 125px;
}

  .hero-image {
    margin-top: 0;
  }

  section {
    padding: 3.5rem 0;
  }

  .service-card .card-img-top {
    height: 200px;
  }

  .team-card img {
    width: 140px;
    height: 140px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .gallery-item img {
    height: 240px;
  }

  /* Two column layout for services on tablets */
  .services-grid .col-md-6:nth-child(odd) {
    padding-right: 1rem;
  }

  .services-grid .col-md-6:nth-child(even) {
    padding-left: 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #hero {
    min-height: 100vh;
  }

  section {
    padding: 4rem 0;
  }

  .service-card .card-img-top {
    height: 200px;
  }

  .team-card img {
    width: 150px;
    height: 150px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .gallery-item img {
    height: 250px;
  }

  /* Three column layout for services on desktop */
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }

  /* Better spacing for large screens */
  .section-title {
    margin-bottom: 4rem;
  }

  .card-body {
    padding: 2rem;
    overflow-x: hidden;
}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  section {
    padding: 5rem 0;
  }

  .gallery-item img {
    height: 280px;
  }

  /* Enhanced spacing for very large screens */
  .section-title {
    margin-bottom: 5rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .gallery-item img {
    height: 300px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }

  .btn {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn {
    display: none;
  }

  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Accessibility: Focus states */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Dark mode preference support */

/* Animation restrictions for mobile and reduced motion */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 767px) {
  /* No scroll animations on mobile */
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
} 