/* ==========================================================================
   Responsive CSS for Recycled Paper Notebook Customization Template
   Mobile-First Approach - No Animations on Mobile
   ========================================================================== */

/* Mobile First - Base Styles (320px and up) */
@media (max-width: 575.98px) {
  /* No animations on mobile resolution */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  :root {
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.3rem;
    --font-size-h3: 1.1rem;
    --section-padding: 2rem 0;
    --hero-height: 80vh;
  }
  
  /* Hero section mobile */
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  /* Cards spacing mobile */
  .service-card,
  .feature-card,
  .priceplan-card,
  .team-member,
  .review-card,
  .casestudy-card {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-number {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-card,
  .priceplan-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: var(--hero-height);
  }
  
  /* Enable hover effects only on larger screens */
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decorative-shape {
    width: 250px;
    height: 250px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

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

/* High DPI displays */
@media (min-resolution: 192dpi) {
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative-shape {
    display: none;
  }
  
  .hero-section,
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .service-card,
  .feature-card,
  .review-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Accessibility - Reduced motion respected globally */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative-shape,
  .process-number,
  .gallery-item img,
  .service-card,
  .feature-card,
  .blog-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Dark mode support (optional) */

/* Specific mobile navbar adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-cream);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-sage-light);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-sage-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0 0 1rem 0;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Card grid responsive adjustments */
@media (max-width: 767.98px) {
  .row [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .row [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* FAQ responsive adjustments */
@media (max-width: 575.98px) {
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .faq-question {
    font-size: 0.9rem;
  }
  
  .faq-answer {
    font-size: 0.85rem;
  }
}

/* Blog grid responsive */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
}

/* Timeline responsive */
@media (max-width: 575.98px) {
  .timeline-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
} 

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