/* ===== RESPONSIVE STYLES FOR SUSTAINABLE STATIONERY TEMPLATE ===== */
/* No Bootstrap overrides - Only responsive adjustments */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .section-title {
    font-size: 1.625rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 125px;
}
  
  /* Services grid mobile */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team cards mobile */
  .team-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1rem;
  }
  
  /* Reviews mobile */
  .review-card {
    padding: 1.5rem;
  }
  
  /* NO ANIMATIONS ON MOBILE SCROLL - Critical Rule */
  .sal-animate,
  [data-sal],
  .scroll-reveal {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.875rem;
  }
  
  .contact-form {
    padding: 2.5rem 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Large screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.375rem;
  }
  
  .section-title {
    font-size: 2.125rem;
  }
  
  .gallery-item img {
    height: 260px;
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Navigation responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-sage);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  footer .col-md-3,
  footer .col-md-4 {
    margin-bottom: 2rem;
  }
  
  footer h5 {
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 18pt;
  }
  
  .hero-title {
    font-size: 24pt;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border-width: 2px;
    border-color: #000;
  }
  
  .btn-primary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
    border-color: #000;
  }
}

/* Reduced motion - Critical accessibility rule */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    display: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  .service-card,
  .team-card {
    padding: 2rem 1.5rem;
  }
}

/* Focus styles for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
