/* Paper Mill Directory Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.05rem;
    }
    
    .hero-subtitle {
        font-size: 1.17rem;
    }
    
    .hero-desc {
        font-size: var(--font-size-base);
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-card {
        margin-bottom: 1.61rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.84rem;
    }
    
    /* Disable autoplay and effects on mobile */
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        opacity: 1 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.64rem;
    }
    
    .hero-subtitle {
        font-size: 1.32rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
  padding-top: 50px;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.09rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .navbar-expand-md .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-expand-md .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.58rem;
    }
    
    .hero-subtitle {
        font-size: 1.61rem;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        min-height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-section .row .col-md-4,
    .team-section .row .col-lg-2 {
        margin-bottom: 2.10rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.14rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.55rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section,
    .services-section,
    .features-section {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .blog-card {
        border: 2px solid var(--dark-grey);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-grey);
    }
}


/* Accessibility improvements */
@media (max-width: 767.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
  padding-top: 50px;
        min-height: 90vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
} 