/* Responsive CSS for Bookstore Reading Lounge Template */

/* Mobile First Approach */
/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .service-card,
  .price-card,
  .about-feature {
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .process-number {
    font-size: 2rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  body {
  overflow-x: hidden;
    background: white !important;
    color: black !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-warm: #000000;
    --primary-sage: #000000;
    --primary-charcoal: #000000;
    --primary-amber: #000000;
    --light-cream: #ffffff;
  }
  
  .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
  }
  
  .form-control {
    border: 2px solid #000000 !important;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .hero-section::before,
  .service-card,
  .price-card,
  .about-feature,
  .team-photo,
  .gallery-item img {
    transition: none !important;
    animation: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .about-feature:hover,
  .team-photo:hover,
  .gallery-item img:hover {
    transform: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-cream: #1a1a1a;
    --primary-charcoal: #ffffff;
    --dark-charcoal: #cccccc;
  }
  
  body {
  overflow-x: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
  }
  
  .service-card,
  .price-card,
  .about-feature,
  .contact-form,
  .blog-post,
  .case-study-item,
  .career-item,
  .faq-item {
    background: #2d2d2d;
    color: #ffffff;
  }
  
  .form-control {
    background: #2d2d2d;
    color: #ffffff;
    border-color: #555555;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem;
  }
  
  .faq-question {
    padding: 2rem 1.5rem;
  }
  
  .form-control {
    padding: 1.25rem;
    font-size: 1rem;
  }
}

/* Container Adjustments for Different Screen Sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@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;
  }
} 