/* Responsive CSS for ErgoOffice Pro */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 2.58rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.30rem;
    }
    
    h2 {
        font-size: 1.90rem;
    }
    
    #hero {
        min-height: 95vh;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.63rem;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 110px;
        height: 110px;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 1.93rem;
    }
    
    h2 {
        font-size: 1.57rem;
    }
    
    h3 {
        font-size: 1.36rem;
    }
    
    #hero {
        min-height: 85vh;
        text-align: center;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    .navbar-brand {
        font-size: 1.36rem;
    }
    
    /* Services grid adjustment */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features layout */
    #fee7bctures .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Contact form adjustments */
    #contact .col-lg-8,
    #contact .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (up to 767.98px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.72rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.52rem;
        text-align: center;
    }
    
    h3 {
        font-size: 1.28rem;
        text-align: center;
    }
    
    h4 {
        font-size: 1.18rem;
    }
    
    p {
        font-size: 1.02rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.26rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        text-align: center;
        padding-top: 2rem;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    #hero img {
        max-width: 90%;
        height: auto;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.59rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    /* Team section mobile */
    #team .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #team img {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    /* Services mobile layout */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features mobile layout */
    #f0e29ftures .col-md-6 {
        margin-bottom: 2rem;
    }
    
    #ffe9c0tures .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #fff9a8tures .fas {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    /* Process section mobile */
    #process .col-md-2 {
        margin-bottom: 2rem;
    }
    
    #process .bg-primary {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    /* Timeline mobile */
    #timeline .col-md-2 {
        margin-bottom: 2rem;
    }
    
    /* Career section mobile */
    #career .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Core info mobile */
    #coreinfo .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Blog mobile */
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    #contact .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Price plan mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* About features mobile */
    #about .col-md-3 {
        margin-bottom: 2rem;
    }
    
    /* Case study mobile */
    #casestudy .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Reviews mobile */
    #reviews .col-lg-6 {
        margin-bottom: 1.67rem;
    }
    
    #reviews .col-lg-12 {
        margin-bottom: 1.74rem;
    }
}

/* Very Small Devices (up to 575.98px) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.52rem;
    }
    
    h2 {
        font-size: 1.32rem;
    }
    
    h3 {
        font-size: 1.19rem;
    }
    
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    /* Hero adjustments for very small screens */
    #hero {
        min-height: 70vh;
        padding-top: 1rem;
    }
    
    /* Section spacing for small screens */
    section {
        padding: 2rem 0;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Team very small screens */
    #team img {
        width: 70px;
        height: 70px;
    }
    
    /* Process circles smaller */
    #process .bg-primary {
        width: 40px;
        height: 40px;
        font-size: 0.97rem;
    }
    
    /* Contact info padding */
    .contact-info {
        padding: 1rem;
    }
    
    /* Form elements */
    .form-control,
    .form-select {
        padding: 0.5rem;
        font-size: 1.04rem;
    }
    
    /* Footer spacing */
    footer {
        padding: 2rem 0;
    }
}

/* Landscape mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 60vh;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    #gallery,
    footer {
        display: none;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cacaca;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #hero img,
    #team img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support */

/* Additional responsive utilities */
.responsive-img {
    width: 100%;
    height: auto;
}

.responsive-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Spacing utilities for mobile */
@media (max-width: 767.98px) {
    .mb-mobile-3 {
        margin-bottom: 1rem;
    }
    
    .mt-mobile-3 {
        margin-top: 1rem;
    }
    
    .py-mobile-2 {
        padding-top: 0.69rem;
        padding-bottom: 0.72rem;
    }
} 