/*=====================================================
MIDAL RESPONSIVE DESIGN SYSTEM
Version 2.0
=====================================================*/


/*=====================================================
LARGE DESKTOP
=====================================================*/

@media (min-width:1440px) {

    .container {

        max-width: 1320px;

    }

    .hero {

        min-height: 90vh;

    }

}


/*=====================================================
LAPTOPS
=====================================================*/

@media (max-width:1200px) {

    .container {

        width: 94%;

    }

    .hero-grid {

        gap: 3rem;

    }

    .footer-grid {

        grid-template-columns: 2fr 1fr 1fr;

    }

}


/*=====================================================
TABLETS
=====================================================*/

@media (max-width:992px) {

    .section {

        padding: 5rem 0;

    }

    /*------------- HEADER -------------*/

    .menu-toggle {

        display: flex;

        align-items: center;

        justify-content: center;

    }

    .site-nav {

        position: fixed;

        top: 0;

        right: -100%;

        width: 320px;

        height: 100vh;

        background: #fff;

        padding: 6rem 2rem;

        box-shadow: -10px 0 40px rgba(0, 0, 0, .12);

        transition: .35s;

        z-index: 999;

    }

    .site-nav.active {

        right: 0;

    }

    .nav-list {

        flex-direction: column;

        align-items: flex-start;

        gap: 1.5rem;

    }

    .header-actions .btn {

        display: none;

    }

    /*------------- HERO -------------*/

    .hero-grid {

        grid-template-columns: 1fr;

    }

    .hero-content {

        text-align: center;

        max-width: 700px;

        margin: auto;

    }

    .hero-actions {

        justify-content: center;

    }

    .hero-media {

        grid-template-columns: 1fr 1fr;

    }

    /*------------- STATS -------------*/

    .hero-stats {

        grid-template-columns: repeat(2, 1fr);

    }

    /*------------- FOOTER -------------*/

    .footer-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


/*=====================================================
MOBILE
=====================================================*/

@media (max-width:768px) {

    .top-bar {

        display: none;

    }

    .section {

        padding: 4rem 0;

    }

    .container {

        width: 92%;

    }

    .hero {

        padding: 4rem 0;

    }

    .hero h1 {

        font-size: clamp(2rem, 8vw, 3rem);

    }

    .hero p {

        font-size: 1rem;

    }

    .hero-actions {

        flex-direction: column;

    }

    .hero-actions .btn {

        width: 100%;

    }

    /* HERO MEDIA */

    .hero-media {

        grid-template-columns: 1fr;

    }

    .hero-video {

        order: 1;

    }

    .hero-image {

        order: 2;

    }

    /* STATS */

    .hero-stats {

        grid-template-columns: 1fr;

    }

    /* CARDS */

    .cards-grid,

    .grid-2,

    .grid-3,

    .grid-4,

    .ehub-grid {

        grid-template-columns: 1fr;

    }

    /* CTA */

    .cta {

        padding: 3rem 2rem;

        border-radius: 24px;

    }

    .cta-actions {

        flex-direction: column;

    }

    .cta-actions .btn {

        width: 100%;

    }

    /* FOOTER */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 2.5rem;

    }

    .footer-bottom {

        flex-direction: column;

        text-align: center;

    }

    .footer-links {

        justify-content: center;

    }

}


/*=====================================================
SMALL DEVICES
=====================================================*/

@media (max-width:576px) {

    .header-container {

        min-height: 70px;

    }

    .site-logo img {

        height: 42px;

    }

    .hero {

        padding: 3rem 0;

    }

    .hero h1 {

        line-height: 1.15;

    }

    .section-header {

        margin-bottom: 2.5rem;

    }

    .card,

    .service-card,

    .product-card,

    .ehub-card {

        padding: 1.5rem;

    }

}


/*=====================================================
VERY SMALL DEVICES
=====================================================*/

@media (max-width:360px) {

    .container {

        width: 95%;

    }

    .hero h1 {

        font-size: 2rem;

    }

    .btn {

        padding: .85rem 1.2rem;

    }

}


/*=====================================================
ANIMATIONS
=====================================================*/

.fade-up {

    animation: fadeUp .8s ease both;

}

.fade-in {

    animation: fadeIn .8s ease both;

}

.zoom-in {

    animation: zoomIn .8s ease both;

}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}

@keyframes zoomIn {

    from {

        opacity: 0;

        transform: scale(.95);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}


/*=====================================================
ACCESSIBILITY
=====================================================*/

:focus-visible {

    outline: 3px solid var(--secondary);

    outline-offset: 3px;

}

img {

    height: auto;

}

button {

    touch-action: manipulation;

}

html {

    scroll-padding-top: 90px;

}


/*=====================================================
PRINT
=====================================================*/

@media print {

    header,

    footer,

    .menu-toggle,

    .back-to-top,

    .hero-video {

        display: none !important;

    }

    body {

        background: #fff;

    }

}