/* Mobile First Responsive Design */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1, .display-4 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p.lead {
    font-size: 1rem;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero section */
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-section .d-flex {
    flex-direction: column;
  }
  
  .decorative-shape {
    display: none;
  }
  
  /* Cards */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Team images */
  .team-image img {
    width: 120px;
    height: 120px;
  }
  
  /* Timeline adjustments */
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-marker {
    left: -1.5rem;
  }
  
  .timeline-content {
    margin-left: 0.5rem;
    padding: 1rem;
  }
  
  /* Contact form */
  .contact-form-wrapper {
    margin-bottom: 2rem;
  }
  
  /* Reduce spacing */
  section {
    padding: 2rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Gallery adjustments */
  .gallery .col-6 {
    margin-bottom: 0.5rem;
  }
  
  /* NO animations on mobile per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
  
  .btn:hover {
    transform: none !important;
  }
  
  /* Remove all hover effects */
  .technique-card:hover,
  .chemistry-card:hover,
  .application-method:hover,
  .firing-card:hover,
  .problem-solution-card:hover,
  .artist-card:hover,
  .technique-spotlight:hover,
  .heritage-card:hover,
  .workshop-card:hover,
  .interview-card:hover,
  .faq-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: none !important;
  }
  
  .case-study-card:hover img {
    transform: none !important;
  }
  
  .gallery img:hover {
    transform: none !important;
  }
  
  .team-member:hover .team-image img {
    border-color: var(--sage-light) !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1, .display-4 {
    font-size: 2.25rem;
  }
  
  .hero-section {
    padding-top: 90px;
  }
  
  .team-image img {
    width: 150px;
    height: 150px;
  }
  
  /* Reduce spacing slightly */
  section {
    padding: 2.5rem 0;
  }
  
  /* NO animations on mobile per requirements */
  * {
    animation: none !important;
  }
  
  .card:hover {
    transform: translateY(-2px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Normal animations restored for tablets */
  .hero-section {
    padding-top: 100px;
  }
  
  .team-image img {
    width: 180px;
    height: 180px;
  }
  
  /* Adjust grid layouts */
  .services .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  .features .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full desktop experience */
  .hero-section {
    min-height: 100vh;
  }
  
  .team-image img {
    width: 200px;
    height: 200px;
  }
  
  /* Enhanced spacing for larger screens */
  .container {
    max-width: 1140px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  /* Larger hero text */
  h1, .display-4 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  p.lead {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .decorative-shape,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --accent-color: #000000;
    --accent-light: #666666;
    --sage-light: #f0f0f0;
  }
  
  .card {
    border: 2px solid #000000;
  }
  
  .btn {
    border: 2px solid #000000;
    font-weight: bold;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */

/* Focus indicators for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Touch targets for mobile */
@media (max-width: 767.98px) {
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}