/* Responsive CSS for PaperCraft Studio Template */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per rules */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-decoration {
        display: none;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Section padding */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Price amount */
    .price-amount {
        font-size: 2rem;
    }
    
    /* Feature icon */
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Contact icon */
    .contact-icon {
        font-size: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card {
        margin-bottom: 2rem;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Section padding */
    .py-5 {
        padding: 3rem 0 !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Service cards in services section */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team photos */
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: scale(1.02);
    }
    
    .price-card.featured:hover {
        transform: scale(1.02) translateY(-3px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Full desktop styles are in main.css */
    
    /* Additional desktop optimizations */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Team section layout */
    .team-member {
        margin-bottom: 0;
    }
    
    /* Process and timeline items */
    .process-step,
    .timeline-item {
        margin-bottom: 0;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .contact-form,
    #gallery {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Remove shadows and effects */
    .card,
    .feature-card,
    .service-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #8b4513;
        --secondary-color: #f5f5dc;
        --accent-color: #654321;
        --text-color: #000000;
        --light-color: #ffffff;
        --dark-color: #000000;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 2px solid var(--text-color) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Already handled in main.css, but reinforcing here */
    .hero-decoration {
        display: none;
    }
    
    .card:hover,
    .feature-card:hover,
    .service-card:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger typography for ultra-wide */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Larger feature icons */
    .feature-icon {
        font-size: 3.5rem;
    }
    
    /* More padding on sections */
    .py-5 {
        padding: 5rem 0 !important;
    }
}

/* Accessibility improvements */
@media (max-width: 991.98px) {
    /* Larger touch targets on mobile/tablet */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
    
    /* Larger form controls */
    .form-control {
        min-height: 44px;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}