/* ==========================================================
   LEXION Responsive Design
   ========================================================== */


/* ==========================================================
   Laptop / smaller desktop
   ========================================================== */

@media (max-width: 1199px) {

    .lx-hero-layout {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(400px, 0.9fr);

        gap: 3rem;
    }


    .lx-hero-visual {

        min-height: 520px;
    }

}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {

    .lx-container {

        width:
            min(
                calc(100% - 32px),
                var(--lx-container)
            );
    }


    .lx-section {

        padding-block:
            clamp(4rem, 12vw, 6rem);
    }


    /* Hero */

    .lx-hero {

        min-height: auto;

        padding-top:
            calc(
                var(--lx-header-height)
                + 70px
            );

        padding-bottom: 80px;
    }


    .lx-hero-layout {

        grid-template-columns: 1fr;

        text-align: center;
    }


    .lx-hero-copy {

        max-width: 750px;

        margin-inline: auto;
    }


    .lx-hero-copy .lx-lead {

        margin-inline: auto;
    }


    .lx-hero-actions {

        justify-content: center;
    }


    .lx-hero-visual {

        min-height: 500px;

        width: min(100%, 650px);

        margin-inline: auto;
    }


    /* Products */

    .lx-product-grid {

        grid-template-columns: 1fr;
    }


    .lx-product-large,
    .lx-product-small {

        grid-column: auto;
    }

}


/* ==========================================================
   Phones
   ========================================================== */

@media (max-width: 600px) {

    .lx-container {

        width:
            calc(100% - 24px);
    }


    .lx-display {

        font-size:
            clamp(3.4rem, 17vw, 5rem);
    }


    h2 {

        font-size:
            clamp(2.1rem, 11vw, 3rem);
    }


    .lx-hero-actions {

        flex-direction: column;

        align-items: stretch;
    }


    .lx-hero-actions .lx-button {

        width: 100%;
    }


    .lx-hero-visual {

        min-height: 390px;
    }


    .lx-floating-icon {

        width:
            clamp(55px, 17vw, 80px);
    }


    .lx-card {

        border-radius:
            20px;
    }

}


/* ==========================================================
   Reduced motion
   ========================================================== */

@media (
    prefers-reduced-motion: reduce
) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
