/* Mobile First - Base styles for mobile devices */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-card, .team-member, .review-card {
    margin-bottom: 1.5rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Disable autoplay and effects on Swiper for mobile */
  .swiper-slide {
    transition: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
  
  .navbar-nav {
    margin-left: auto;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content {
    padding: 4rem 0;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero {
    padding: 0;
  }
  
  .services .row,
  .team .row,
  .reviews .row {
    margin: 0 -15px;
  }
  
  .services .col-md-4,
  .team .col-md-4,
  .reviews .col-md-4 {
    padding: 0 15px;
  }
}

/* Navigation responsive fixes */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color-1);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
  }
}

/* Form responsive design */
@media (max-width: 767.98px) {
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-item img {
    height: 280px;
  }
}

/* Blog responsive cards */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Team section responsive */
@media (max-width: 575.98px) {
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

/* FAQ responsive */
@media (max-width: 575.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row {
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
  .breadcrumb-container {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item img {
    height: 16px;
  }
}

/* Utility responsive classes */
@media (max-width: 575.98px) {
  .text-center-mobile {
    text-align: center;
  }
  
  .mt-mobile-3 {
    margin-top: 2rem;
  }
  
  .mb-mobile-3 {
    margin-bottom: 2rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery,
  .contact-form {
    display: none !important;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .team-member,
  .review-card,
  .blog-card,
  .contact-form {
    border: 2px solid var(--dark-shade-1);
  }
  
  .btn-primary {
    border: 2px solid var(--light-shade-1);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-shade-1: #1A202C;
    --light-shade-2: #2D3748;
    --dark-shade-1: #F7FAFC;
    --primary-color-3: #2D3748;
    --primary-color-4: #4A5568;
  }
} 