/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }
  
  h1 {
    font-size: var(--fs-2xl);
  }
  
  h2 {
    font-size: var(--fs-xl);
  }
  
  .services-item,
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-slide {
    transition: none !important;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .services-item {
    padding: 1.75rem;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
  
  section {
    padding: 50px 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .navbar-expand-md .navbar-nav {
    flex-direction: row;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  section {
    padding: 80px 0;
  }
  
  .testimonial-slider {
    padding: 0 2rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 6rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  section {
    padding: 100px 0;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-section {
    padding: 8rem 0;
  }
  
  .container {
    max-width: 1320px;
  }
  
  .services-grid {
    gap: 4rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-navigation {
    display: none !important;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12px;
    line-height: 1.4;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-cream: #ffffff;
    --primary-brown: #000000;
    --dark-brown: #000000;
    --light-cream: #ffffff;
  }
  
  .card,
  .services-item,
  .contact-form {
    border: 2px solid #000000;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-cream: #2c2c2c;
    --light-cream: #1a1a1a;
    --dark-brown: #e0e0e0;
    --primary-brown: #f0f0f0;
  }
  
  body {
  overflow-x: hidden;
    background-color: var(--light-cream);
  }
  
  .card,
  .services-item,
  .contact-form {
    background-color: #2c2c2c;
  }
}

/* Focus States for Accessibility */
button:focus,
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-gold);
  color: var(--primary-brown);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Animation Utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-fade-in {
    animation: none;
  }
  
  .card:hover,
  .services-item:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
} 