/* TeaBliss - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* No animations on mobile per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1, .h1 {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.31rem;
        line-height: 1.3;
    }
    
    .navbar-brand {
        font-size: 1.18rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        order: 1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #hero .col-lg-6:last-child {
        order: 2;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.91rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.99rem;
    }
    
    /* Section padding */
    section {
        padding: 1.5rem 0;
    }
    
    /* Team member images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-md-6,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Icon sizing */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.60rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No scroll animations on mobile */
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.01ms !important;
        }
    }
    
    #hero {
        min-height: 80vh;
    }
    
    h1, .h1 {
        font-size: 1.83rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 2.05rem;
    }
    
    h2, .h2 {
        font-size: 1.74rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    /* Larger team images on big screens */
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Generous spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Typography scaling */
    h1, .h1 {
        font-size: 2.26rem;
    }
    
    h2, .h2 {
        font-size: 1.93rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero h1 {
        font-size: 1.62rem;
    }
    
    #hero .lead {
        font-size: 1.03rem;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text on retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .container {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1200px;
    }
}

/* Utility classes for responsive design */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
    
    .d-desktop-none {
        display: none;
    }
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--color-neutral-light);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 7px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-neutral);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Dark mode support (future-proofing) */