/* Ritual Productivity Template - Responsive CSS */

/* Tablet Styles (768px - 991px) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.03rem;
  }
  
  .hero-subtitle {
    font-size: 1.33rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Mobile Styles (< 768px) */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects on mobile */
  .swiper-autoplay {
    --swiper-autoplay-delay: 999999999;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    --swiper-effect: none;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.90rem; }
  h2 { font-size: 1.63rem; }
  h3 { font-size: 1.37rem; }
  
  .hero-title {
    font-size: 1.90rem;
    margin-bottom: 1.18rem;
  }
  
  .hero-subtitle {
    font-size: 1.20rem;
    margin-bottom: 1.67rem;
  }
  
  .hero-desc {
    font-size: 1.07rem;
    margin-bottom: 2.16rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.20rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  /* Hero Section */
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  .section-desc {
    margin-bottom: 2.16rem;
  }
  
  /* Grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Service Items */
  .service-item {
    padding: 1.5rem;
  }
  
  .service-item img {
    width: 60px;
    height: 60px;
  }
  
  /* Team Members */
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
    margin-top: 2.13rem;
  }
  
  /* Testimonials */
  .testimonials-slider {
    padding: 2rem 0;
  }
  
  .testimonial-item {
    padding: 1rem;
  }
  
  .testimonial-text {
    font-size: 1.20rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  /* Utilities */
  .d-mobile-none { display: none !important; }
  .d-mobile-block { display: block !important; }
}

/* Small Mobile Styles (< 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.66rem;
  }
  
  .hero-subtitle {
    font-size: 1.07rem;
  }
  
  .service-item {
    padding: 1rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 15px;
  }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
  padding-top: 50px;
    min-height: 60vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../SOK_images/hero-bg@2x.webp');
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved form controls */
  .form-control {
    min-height: 44px;
    font-size: 21.00px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing for readability */
  p {
    line-height: 1.7;
  }
}

/* RTL Support */
[dir="rtl"] {
  .navbar-nav .nav-link {
    margin: 0 0.5rem 0 0;
  }
  
  .breadcrumb-item img {
    margin-left: 0.5rem;
    margin-right: 0;
  }
}

/* Container Adjustments */
@media (max-width: 767.98px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
} 