/**
 * Responsive Styles
 *
 * @package Zestify
 */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .d-lg-block { display: block; }
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex; }
    .mx-lg-auto { margin-left: auto; margin-right: auto; }
    .row-cols-lg-3 > * { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .row-cols-lg-4 > * { flex: 0 0 25%; max-width: 25%; }
    .col-lg-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 41.66666667%; max-width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.33333333%; max-width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 66.66666667%; max-width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.33333333%; max-width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 91.66666667%; max-width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .text-lg-left { text-align: left; }
    .text-lg-center { text-align: center; }
    .text-lg-right { text-align: right; }
    .justify-content-lg-end { justify-content: flex-end; }
    .justify-content-lg-center { justify-content: center; }
    .mb-lg-0 { margin-bottom: 0; }
    .mt-lg-0 { margin-top: 0; }
    .above-header.d-lg-block { display: block; }

    .slider-section + .info-section {
        margin-top: -3.55rem;
        position: relative;
        z-index: 2;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .main-menu > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }
    .features-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-section .team-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .theme-main-heading h2 {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .main-navigation-area {
        display: none !important;
    }
    .main-mobile-nav {
        display: block !important;
    }
    .main-mobile-nav .mobile-right-icons {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 15px;
    }
    .mobile-search-form {
        display: none;
        padding: 15px;
        background: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }
    .mobile-search-form.active {
        display: block;
    }
    .mobile-search-form form {
        display: flex;
        gap: 10px;
    }
    .mobile-search-form input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        font-size: 14px;
    }
    .mobile-search-form button {
        background: var(--zestify-primary);
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
    }

    /* Hamburger animate to X */
    .hamburger-menu .menu-collapsed.active .top-bun {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger-menu .menu-collapsed.active .meat {
        opacity: 0;
    }
    .hamburger-menu .menu-collapsed.active .bottom-bun {
        transform: translateY(-10px) rotate(-45deg);
    }
    .main-mobile-build .social-icons {
        display: flex;
        gap: 10px;
        padding: 20px 0 0;
        margin: 20px 0 0;
        border-top: 1px solid #eee;
        justify-content: center;
    }
    .main-mobile-build .social-icons li a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--zestify-primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--zestify-primary);
        transition: var(--zestify-transition);
    }
    .main-mobile-build .social-icons li a:hover {
        background: var(--zestify-primary);
        color: #fff;
    }

    .info-section .info-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-section .pricing-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .funfact-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-section .team-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-section .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .banner-section .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-masonry {
        columns: 2;
    }

    .main-content h1 {
        font-size: 2.5rem;
    }
    .home-slider .swiper-slide > img {
        height: 450px;
    }
    .home-slider .swiper {
        height: 450px;
    }

    .service-section .service-grid.cols-3,
    .service-section .service-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .call-action-content {
        flex-direction: column;
        text-align: center;
    }
    .cta-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-with-sidebar {
        flex-direction: column;
    }
    .page-with-sidebar .sidebar-content {
        width: 100%;
    }
    .page-with-sidebar.left-sidebar {
        flex-direction: column;
    }

    .blog-posts.grid-2,
    .blog-posts.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-footer .row > div {
        margin-bottom: 30px;
    }

    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .row-cols-md-2 > * { flex: 0 0 50%; max-width: 50%; }

    .theme-main-heading h2 {
        font-size: 2rem;
    }

    .process-wrapper .col-lg-3:nth-child(2n) .process-item::after {
        display: none;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    .col-md-6, .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    .row-cols-md-2 > *, .row-cols-sm-2 > * { flex: 0 0 100%; max-width: 100%; }

    .info-section .info-wrapper {
        grid-template-columns: 1fr;
    }
    .pricing-section .pricing-wrapper {
        grid-template-columns: 1fr;
    }
    .funfact-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    .team-section .team-wrapper {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-section .banner-grid {
        grid-template-columns: 1fr;
    }
    .blog-masonry {
        columns: 1;
    }

    .home-slider .swiper-slide > img {
        height: 350px;
    }
    .home-slider .swiper {
        height: 350px;
    }
    .main-content h1 {
        font-size: 2rem;
    }
    .main-content h4 {
        font-size: 13px;
    }
    .main-content p {
        font-size: 14px;
    }
    .slider-nav {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }
    .section-title-wrap {
        margin-bottom: 30px;
    }

    .service-section .service-grid.cols-3,
    .service-section .service-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .blog-posts.grid-2,
    .blog-posts.grid-3 {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb-content h1 {
        font-size: 1.8rem;
    }
    .breadcrumb-content {
        padding: 80px 0 40px;
    }

    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
        text-align: left;
    }
    .timeline-content {
        width: 100%;
    }

    .countdown-value {
        font-size: 2rem;
        padding: 15px;
    }
    .funfact-count {
        font-size: 2rem;
    }

    .marquee-box .text {
        font-size: 20px;
    }
    .marquee-box .icon {
        font-size: 25px;
    }

    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .funfact-wrapper {
        grid-template-columns: 1fr;
    }
    .process-wrapper {
        grid-template-columns: 1fr;
    }
    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
    .countdown-grid {
        gap: 15px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .cta-info-grid {
        grid-template-columns: 1fr !important;
    }
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .home-slider .swiper-slide > img {
        height: 300px;
    }
    .home-slider .swiper {
        height: 300px;
    }
    .main-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .home-section, .st-py-default {
        padding: 50px 0;
    }
}

/* Print styles */
@media print {
    .main-header,
    .main-footer,
    .back-to-top,
    .preloader,
    .main-mobile-nav,
    .breadcrumb-area {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a { color: #000; text-decoration: underline; }
}
