/* ===================================
   RareStationery - Responsive CSS
   Mobile-First Design with No Mobile Animations
   =================================== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Remove animations on mobile */
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    #gallery .img-fluid:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }
    
    /* Section padding */
    section {
        padding: 60px 0;
    }
    
    /* Cards spacing */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Team members */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Gallery */
    #gallery .img-fluid {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Remove animations on mobile */
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    #gallery .img-fluid:hover {
        transform: none !important;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.625rem;
    }
    
    /* Section padding */
    section {
        padding: 70px 0;
    }
    
    /* Team members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Reduce decorative elements */
    .shape-1,
    .shape-2 {
        opacity: 0.05;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2.125rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Section padding */
    section {
        padding: 75px 0;
    }
    
    /* Team members */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Gallery grid improvements */
    #gallery .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    #gallery .img-fluid:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
    
    /* Full section padding */
    section {
        padding: var(--section-padding);
    }
    
    /* Team members full size */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Enhanced spacing */
    .feature-card {
        padding: 2.5rem;
    }
    
    /* Show decorative shapes */
    .hero-shapes {
        display: block;
    }
    
    .shape-1,
    .shape-2 {
        opacity: 0.1;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width handled by Bootstrap */
    
    /* Enhanced typography for larger screens */
    h1, .display-4 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 100px 0;
    }
    
    /* Feature cards enhanced */
    .feature-card {
        padding: 3rem;
    }
    
    /* Service cards enhanced */
    .service-card .card-img-top {
        height: 240px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* Maximum enhancements for very large screens */
    .hero-section {
        padding: 120px 0;
    }
    
    section {
        padding: 120px 0;
    }
    
    .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure sharp images on high DPI displays */
    .service-card .card-img-top,
    .team-member img,
    #gallery .img-fluid {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .form-control,
    .form-select {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    /* Remove shadows and effects */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Override any animations at all screen sizes */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects */
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    #gallery .img-fluid:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }
}

/* Focus management for better accessibility */
@media (max-width: 991.98px) {
    /* Enhanced focus states for mobile */
    .btn:focus,
    .form-control:focus,
    .form-select:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section .min-vh-100 {
        min-height: 80vh !important;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Dark mode support (if user prefers) */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    .form-control,
    .form-select {
        border-color: #000;
        border-width: 2px;
    }
    
    .card {
        border-color: #000;
        border-width: 2px;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}