/* Responsive Design - Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: var(--font-size-h1);
  }
  
  .section-title {
    font-size: var(--font-size-h2);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* Mobile-specific styles (below 768px) */
@media (max-width: 767.98px) {
  /* Typography adjustments for mobile */
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 2.5rem 0;
  }
  
  /* Service cards stack on mobile */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team member adjustments */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Gallery grid for mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer adjustments */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-bottom {
    margin-top: 1.5rem;
  }
  
  /* Blog card adjustments */
  .blog-card img {
    height: 200px;
  }
  
  .blog-card-body { overflow-x: hidden;
    padding: 1rem;
  }
  
  /* Review card adjustments */
  .review-card {
    padding: 1.5rem;
    margin: 0.75rem 0;
  }
  
  /* FAQ adjustments */
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* Feature item adjustments */
  .feature-item {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile (<768px) */
  .swiper-container {
    --swiper-navigation-size: 32px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.375rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card,
  .review-card,
  .feature-item {
    padding: 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
  
  .gallery-item {
    aspect-ratio: 3/2;
  }
  
  .blog-card img {
    height: 180px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section,
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  body { overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .service-card,
  .review-card,
  .feature-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #333333;
    --color-accent: #0066cc;
    --color-neutral: #666666;
    --text-dark: #000000;
    --text-light: #ffffff;
  }
  
  .navbar,
  .footer {
    border: 2px solid var(--text-dark);
  }
  
  .service-card,
  .review-card,
  .feature-item,
  .blog-card {
    border: 1px solid var(--text-dark);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-container {
    --swiper-autoplay-delay: 999999999;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .service-card:hover,
  .blog-card:hover,
  .feature-item:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Focus visibility improvements */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}

/* Dark theme support (if enabled in future) */
@media (prefers-color-scheme: dark) {
  /* Note: Dark mode styles are excluded as per requirements */
}

/* Specific mobile Swiper customizations */
@media (max-width: 767.98px) {
  /* Disable autoplay on mobile */
  .swiper-container[data-swiper-autoplay] {
    --swiper-autoplay-delay: 0;
  }
  
  /* Simplify pagination for mobile */
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
  
  /* Hide navigation arrows on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  /* Ensure touch-friendly swipe area */
  .swiper-slide {
    cursor: grab;
  }
  
  .swiper-slide:active {
    cursor: grabbing;
  }
}

/* Accessibility improvements */
@media (forced-colors: active) {
  .service-card,
  .review-card,
  .feature-item,
  .blog-card {
    forced-color-adjust: none;
    border: 1px solid ButtonText;
  }
  
  .btn-primary {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
} 