/* Responsive Styles for KitchenEssence Template */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h1, h1 {
        font-size: 1.75rem;
    }
    
    .h2, h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 4rem;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 3rem 0;
    }
    
    /* Cards and Components */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    .feature-card,
    .service-card,
    .material-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Form */
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team Images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .collection-card:hover,
    .training-program:hover,
    .care-guide:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 175px;
}
    
    .display-4 {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 175px;
        height: 175px;
    }
    
    /* Reduce animations on small devices */
    .feature-card:hover,
    .service-card:hover {
        transform: translateY(-2px);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 175px;
}
    
    .featured-plan {
        transform: none;
        margin-top: 1rem;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Gallery adjustments */
    #gallery .row {
        margin: 0 -0.75rem;
    }
    
    #gallery [class*="col-"] {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 175px;
}
    
    .hero-decoration {
        display: block;
    }
    
    /* Enhanced hover effects for larger screens */
    .feature-card:hover,
    .service-card:hover,
    .collection-card:hover,
    .training-program:hover,
    .care-guide:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 175px;
}
    
    .display-4 {
        font-size: 2.75rem;
    }
    
    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Phone Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support */

/* Print Responsive */
@media print {
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-4,
    .col-md-6 {
        width: 100% !important;
        display: block !important;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    .card,
    .feature-card,
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .hero-decoration {
        display: none;
    }
    
    .feature-card,
    .service-card,
    .collection-card,
    .training-program,
    .care-guide,
    .material-card,
    .custom-service,
    .partnership-service,
    .commitment-card {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .collection-card:hover,
    .training-program:hover,
    .care-guide:hover,
    .material-card:hover,
    .custom-service:hover,
    .partnership-service:hover,
    .commitment-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 1rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
}

/* Viewport Height Adjustments */
@media (max-height: 600px) {
    .hero-section .min-vh-100 {
        min-height: 80vh;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 175px;
}
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

/* Tablet Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .featured-plan {
        transform: scale(1.02);
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 175px;
}
} 