/* ===== Responsive CSS - Mobile First ===== */

/* ===== Extra Large Devices (1200px and up) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== Large Devices (992px to 1199px) ===== */
@media (max-width: 1199px) and (min-width: 992px) {
  .section {
    padding: 3rem 0;
  }
}

/* ===== Medium Devices (768px to 991px) ===== */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: var(--font-size-h2);
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .service-card,
  .feature-card,
  .team-member {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ===== Small Devices (576px to 767px) ===== */
@media (max-width: 767px) {
  /* Navigation */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    margin: 0.25rem 0;
  }
  
  /* Swiper Navigation */
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .swiper-container {
    padding-bottom: 40px;
  }

  .swiper-pagination {
    bottom: 10px;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-size-h3);
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: var(--font-size-h3);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  /* Cards */
  .service-card,
  .feature-card,
  .team-member,
  .review-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .feature-card {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Feature Icons */
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Disable Swiper autoplay on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* ===== Extra Small Devices (below 576px) ===== */
@media (max-width: 575px) {
  /* Typography */
  .hero-title {
    font-size: var(--font-size-h4);
  }
  
  .section-title {
    font-size: var(--font-size-h4);
  }
  
  /* Spacing */
  .section {
    padding: 1.5rem 0;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  /* Cards */
  .service-card,
  .feature-card,
  .contact-form {
    padding: 1rem;
  }
  
  .team-member {
    padding: 1.5rem 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  /* Team Photos */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Service Price */
  .service-price {
    font-size: var(--font-size-lg);
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* ===== Portrait Mode Adjustments ===== */
@media (orientation: portrait) and (max-width: 767px) {
  .hero-section {
    min-height: 50vh;
  }
}

/* ===== Landscape Mode for Small Devices ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 1rem 0;
  }
}

/* ===== High DPI Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../INN_images/hero-bg@2x.webp');
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .footer,
  .contact-section,
  .gallery-section {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --medium-gray: #9ca3af;
    --dark-gray: #f9fafb;
    --black: #ffffff;
  }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .team-member {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
} 