/* Responsive Design for Nature Journaling Tools */

/* Mobile First Approach - Base styles above are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    /* Disable Swiper autoplay and effects on mobile as required */
    .swiper {
        --swiper-navigation-size: 0px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-link {
        margin: 0 1rem;
    }
    
    /* Process steps better layout */
    .process-step {
        text-align: center;
    }
    
    /* Team member grid */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Enable full Swiper functionality on desktop */
    .swiper {
        --swiper-navigation-size: 44px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 2.25rem;
    }
    
    /* Gallery improvements */
    #gallery .col-lg-3 {
        padding: 0.25rem;
    }
    
    /* Services grid */
    .service-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Price cards scaling */
    .price-card.featured {
        transform: scale(1.05);
    }
    
    /* Blog layout */
    .blog-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .blog-card img {
        flex-shrink: 0;
    }
    
    /* Contact form layout */
    .contact-form {
        padding: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    /* Enhanced card layouts */
    .feature-card,
    .service-card,
    .info-card {
        padding: 2rem;
    }
    
    /* Process timeline */
    .process-step::after {
        content: '';
        position: absolute;
        top: 25px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: var(--light-sage);
        z-index: -1;
    }
    
    .process-step:last-child::after {
        display: none;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger spacing for very large screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
}

/* Mobile Specific Styles (below 768px) */
@media (max-width: 767.98px) {
    /* Disable Swiper autoplay and effects as required */
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    /* Mobile header adjustments */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .hero-section {
        padding: 4rem 0 2rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile card adjustments */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .info-card,
    .blog-card {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    /* Mobile contact form */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Mobile gallery adjustments */
    #gallery .col-6 {
        padding: 0.125rem;
    }
    
    #gallery img {
        border-radius: 4px;
    }
    
    /* Mobile FAQ */
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    /* Mobile footer */
    footer {
        padding: 2rem 0;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Mobile team layout */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Mobile typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Mobile spacing */
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .service-card,
    .price-card {
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2.5rem;
    }
    
    /* Tablet contact form */
    .contact-form {
        padding: 2.5rem;
    }
    
    /* Tablet process layout */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    .hero-section::before {
        background-image: url('../KEG_images/hero-nature@2x.webp');
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card,
    .feature-card,
    .service-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .service-card,
    .info-card,
    .blog-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for potential dark mode implementation */
    /* Currently excluded as per requirements */
} 