/* Responsive Design - Mobile First Approach */

/* Large screens and desktops */
@media (max-width: 1200px) {
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Medium screens and tablets */
@media (max-width: 992px) {
  :root {
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.375rem;
    --font-size-h3: 1.25rem;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .price-plans {
    grid-template-columns: 1fr;
  }
  
  .price-card.featured {
    transform: none;
    order: -1;
  }
  
  .about-features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
}

/* Small screens and large phones - DISABLE SWIPER AUTOPLAY/EFFECTS */
@media (max-width: 768px) {
  /* Mobile typography adjustments */
  :root {
    --font-size-h1: 1.375rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1.125rem;
    --font-size-base: 0.9rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 0.95rem !important;
  }
  
  .navbar-nav .nav-link {
  font-size: 10px;
    padding: 0.5rem 0.5rem !important;
    font-size: 0.9rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .testimonial-card::before {
    font-size: 2.5rem;
    top: -5px;
    left: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .btn-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .price-card {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .breadcrumb-section {
    padding: 1rem 0;
  }
  
  .breadcrumb-img {
    max-height: 30px;
  }
  
  .additional-content {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .page-section {
    padding: 2rem 0;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  :root {
    --font-size-h1: 1.25rem;
    --font-size-h2: 1.125rem;
    --font-size-h3: 1rem;
    --font-size-base: 0.85rem;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 1rem 0;
  }
  
  .navbar-brand {
    font-size: 0.85rem !important;
  }
  
  .services-grid {
    gap: 0.5rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-features {
    gap: 0.5rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .price-card {
    padding: 1rem;
  }
  
  .additional-content {
    padding: 1rem;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  p {
    font-size: 0.85rem;
  }
}

/* Container adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Swiper responsive adjustments */
@media (max-width: 768px) {
  .swiper-container {
    /* Disable autoplay on mobile */
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    padding: 0.5rem;
  }
}

/* Lightbox responsive adjustments */
@media (max-width: 768px) {
  .lb-nav {
    font-size: 2rem;
  }
  
  .lb-close {
    font-size: 2rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .breadcrumb-section {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-member,
  .price-card {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .team-member,
  .price-card,
  .testimonial-card,
  .contact-form {
    border: 2px solid var(--primary-navy);
  }
  
  .btn-submit {
    border: 2px solid white;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-decorative {
    animation: none;
  }
  
  .service-card:hover,
  .team-member:hover,
  .feature-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* Focus styles for accessibility */
@media (max-width: 768px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
  }
  
  .nav-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
  }
  
  .btn-submit:focus {
    outline: 2px solid white;
    outline-offset: 2px;
  }
} 