/* Voice-Acted Classic Literature Audiobooks Template - Responsive CSS */

/* Mobile First - Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-navbar-brand: 1.25rem;
  }
  
  /* Disable animations on mobile per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Service Cards */
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Team Cards */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-step {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  /* Gallery Images */
  .gallery-image {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Price Cards */
  .price-value {
    font-size: 2rem;
  }
  
  /* Blog Images */
  .blog-image {
    height: 180px;
  }
  
  /* FAQ Cards - Stack vertically */
  .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-navbar-brand: 1.35rem;
  }
  
  /* Disable animations on mobile per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Section Spacing */
  .section {
    padding: 4rem 0;
  }
  
  /* Hero */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Service Cards */
  .service-card {
    padding: 1.75rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Gallery */
  .gallery-image {
    height: 220px;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section Spacing */
  .section {
    padding: 4.5rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Service Cards - 2 per row */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team Layout - 2-3 per row */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-image {
    height: 240px;
  }
  
  /* Price Cards */
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section spacing restored */
  .section {
    padding: 5rem 0;
  }
  
  /* Hero full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Service Cards - 3 per row */
  .service-cards-row .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Features - 2 per row */
  .features-row .col-lg-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Team - 5 per row (adjust for 5 members) */
  .team-row .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  /* Gallery optimized */
  .gallery-image {
    height: 250px;
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  /* Optimal spacing for large screens */
  .section {
    padding: 6rem 0;
  }
  
  /* Hero decorations visible */
  .hero-decoration {
    display: block;
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Team grid - 5 columns for 5 members */
  .team-row .col-xl-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  /* Service cards optimal spacing */
  .service-cards-row .col-xl-4 {
    margin-bottom: 2rem;
  }
  
  /* Blog cards - 3 per row */
  .blog-row .col-xl-4 {
    margin-bottom: 2rem;
  }
  
  /* Case studies - 3 per row */
  .casestudy-row .col-xl-4 {
    margin-bottom: 2rem;
  }
  
  /* Core info - 3 per row top, 3 per row bottom */
  .coreinfo-row .col-xl-4 {
    margin-bottom: 2rem;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for ultra-wide */
  .section {
    padding: 7rem 0;
  }
  
  /* Hero decorations enhanced */
  .hero-decoration-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-decoration-2 {
    width: 200px;
    height: 200px;
  }
}

/* Height-specific responsive adjustments */
@media (max-height: 600px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-height: 500px) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* Print styles */
@media print {
  .hero-decoration,
  .navbar,
  .btn,
  .gallery-item {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-item,
  .blog-card,
  .faq-card {
    border: 1px solid #ccc !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #4A1A4C;
    --color-secondary: #2A1F35;
    --color-accent: #8B6914;
    --color-text: #000000;
    --color-background: #FFFFFF;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-item,
  .blog-card,
  .faq-card {
    border: 2px solid #000000 !important;
  }
}

/* Reduced motion compliance - already handled in main.css but reinforced here */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .gallery-image:hover {
    transform: none !important;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} 

.hero-section h1 {
    padding-top: 250px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
