/* Responsive CSS for N.S. Printers Ltd */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .product-card img {
        height: 280px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 250px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
        padding: 0.5rem 0.8rem !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .product-card img {
        height: 220px;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        display: inline-block;
    }
    
    .order-step {
        padding: 1.5rem;
        text-align: center;
    }
    
    .contact-item {
        text-align: center;
        padding: 1rem;
    }
    
    .quick-contact-card {
        margin-bottom: 1rem;
    }
    
    .mission-card {
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding-top: 100px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .featured-products h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .order-now-section h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .order-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .order-step h4 {
        font-size: 1.1rem;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .quick-contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mission-card, .service-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }
    
    .hero-section {
        padding-top: 80px;
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .page-header {
        padding-top: 90px;
        padding-bottom: 2rem;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header .lead {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-text {
        font-size: 1rem;
        display: none; /* Hide brand text on very small screens */
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.1rem 0;
        font-size: 0.9rem;
    }
    
    .navbar-collapse {
        margin-top: 0.5rem;
    }
    
    .d-flex .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        margin: 0.2rem;
    }
    
    .featured-products {
        padding: 3rem 0;
    }
    
    .featured-products h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
    }
    
    .product-card .card-text {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1.2rem;
    }
    
    .btn-whatsapp {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .order-now-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .order-now-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .order-now-section .lead {
        font-size: 1rem;
    }
    
    .order-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .order-step h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .order-step p {
        font-size: 0.85rem;
    }
    
    .step-icon i {
        font-size: 2rem !important;
    }
    
    .order-form-section {
        padding: 2rem 1rem !important;
        margin: 1rem 0;
    }
    
    .order-form-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .quick-order-options .btn {
        height: 100px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-order-options .btn i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-item h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .contact-icon i {
        font-size: 1.5rem !important;
    }
    
    .quick-contact-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .quick-contact-card h5 {
        font-size: 1rem;
    }
    
    .quick-contact-card p {
        font-size: 0.8rem;
    }
    
    .quick-contact-card i {
        font-size: 2rem !important;
    }
    
    .mission-card, .service-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .mission-card h4, .service-card h5 {
        font-size: 1rem;
    }
    
    .mission-card p, .service-card p {
        font-size: 0.85rem;
    }
    
    .mission-card i, .service-card i {
        font-size: 2rem !important;
    }
    
    .contact-form-section {
        padding: 2rem 1rem !important;
        margin: 1rem;
    }
    
    .contact-form-section h3 {
        font-size: 1.4rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .accordion-button {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    .accordion-body {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    footer {
        padding: 2rem 0 !important;
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    footer p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .social-links a {
        margin: 0 0.5rem !important;
    }
    
    .social-links i {
        font-size: 1.5rem !important;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding-top: 70px;
        padding-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .page-header {
        padding-top: 80px;
        padding-bottom: 1.5rem;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    .order-step {
        padding: 0.8rem;
    }
    
    .order-step h4 {
        font-size: 0.9rem;
    }
    
    .order-step p {
        font-size: 0.75rem;
    }
    
    .step-icon i {
        font-size: 1.5rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* Minimum touch target size */
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    .product-card:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .btn:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .mission-card:hover,
    .service-card:hover,
    .quick-contact-card:hover {
        transform: none;
        border-color: transparent;
    }
    
    /* Larger tap targets for touch */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .product-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .product-card:hover,
    .btn:hover,
    .contact-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .order-form-section,
    .quick-contact-options {
        display: none !important;
    }
    
    .hero-section,
    .page-header {
        padding-top: 0 !important;
        background: none !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .price {
        color: black !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    .text-white {
        color: black !important;
    }
    
    .bg-primary, .bg-dark, .bg-light {
        background: white !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently not implemented, but structure ready for dark mode */
}

