/* FruitBox - Responsive CSS */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Section padding reduction */
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Services grid */
    #services .row.g-4 {
        gap: 1rem;
    }
    
    /* Team member images */
    .team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Pricing cards */
    .priceplan .card.border-primary {
        transform: none;
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery grid */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ cards */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* No animations on mobile for performance */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
        filter: none;
    }
    
    /* Icon sizing */
    .fas.fa-3x {
        font-size: 2rem !important;
    }
    
    /* Additional page sections */
    .additional-page .col-md-6.col-lg-4,
    .additional-page .col-md-6.col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 75vh;
    }
    
    /* Typography fine-tuning */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.625rem;
    }
    
    /* Card grid improvements */
    .services .row.g-4 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Team layout */
    .team .row.g-4 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .team .card-img-top {
        width: 130px;
        height: 130px;
    }
    
    /* Pricing layout */
    .priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews layout */
    .reviews .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* FAQ layout */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 80vh;
    }
    
    /* Services grid - 2 columns */
    .services .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Features grid - 2 columns */
    .features .col-md-6.col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
    
    /* About features - 2 columns */
    .about .col-md-6.col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
    
    /* Team layout - 2 columns */
    .team .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
    
    .team .card-img-top {
        width: 140px;
        height: 140px;
    }
    
    /* Reviews - 2 columns */
    .reviews .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
    
    /* Gallery - 2 columns */
    .gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
    
    /* Contact layout improvements */
    .contacts .row > .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .contacts .row > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Additional pages - 2 columns for most elements */
    .additional-page .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
    
    .additional-page .col-md-6.col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero full height */
    #hero {
        min-height: 85vh;
    }
    
    /* Services - 3 columns */
    .services .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team layout adjustments */
    .team .card-img-top {
        width: 150px;
        height: 150px;
    }
    
    /* Pricing cards positioning */
    .priceplan .card.border-primary {
        transform: scale(1.02);
    }
    
    /* Gallery - 3 columns */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form layout */
    .contacts .row > .col-lg-8 {
        margin-bottom: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Hero section full experience */
    #hero {
        min-height: 100vh;
    }
    
    /* Optimal spacing for large screens */
    .py-5 {
        padding: 6rem 0;
    }
    
    /* Enhanced card hover effects */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }
    
    /* Team images optimal size */
    .team .card-img-top {
        width: 150px;
        height: 150px;
    }
    
    /* Pricing card enhancement */
    .priceplan .card.border-primary {
        transform: scale(1.05);
    }
    
    /* Gallery hover effects */
    .gallery img:hover {
        transform: scale(1.08);
    }
    
    /* Icon hover effects */
    .text-center .fas:hover,
    .text-center .fab:hover {
        transform: scale(1.15);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height for landscape mobile */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    /* Compact sections */
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Smaller icons */
    .fas.fa-3x {
        font-size: 1.5rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images and icons */
    .card-img-top,
    .gallery img,
    .team img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .card:hover .card-img-top,
    .gallery img:hover,
    .fas:hover,
    .fab:hover {
        transform: none !important;
    }
}

/* Print media queries */
@media print {
    /* Optimize for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    /* Hide interactive elements */
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    /* Optimize images for print */
    img {
        max-width: 100%;
        height: auto;
    }
} 