/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 0.75rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
  }
}

/* Mobile Navigation */
@media (max-width: 767.98px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-purple);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Disable autoplay and effects on mobile for Swiper */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .reviews-slider .swiper-pagination,
  .reviews-slider .swiper-button-next,
  .reviews-slider .swiper-button-prev {
    display: none;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .breadcrumbs {
    display: none;
  }
  
  body {
    overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
  }
  
  .hero-text h1 {
    color: black !important;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .feature-card,
  .team-member,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-purple: #4A0E4E;
    --primary-teal: #004D40;
    --primary-orange: #BF360C;
    --primary-pink: #880E4F;
    --primary-indigo: #1A237E;
    --gray: #424242;
    --dark-gray: #212121;
  }
  
  .btn,
  .faq-question {
    border: 2px solid currentColor;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1F2937;
    --light-gray: #374151;
    --gray: #9CA3AF;
    --dark-gray: #F3F4F6;
    --black: #F9FAFB;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .feature-card,
  .service-card,
  .team-member,
  .review-card,
  .faq-item {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
  
  .form-control {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
} 