/* ==========================================
   RESPONSIVE
   Levy Martin
========================================== */


/* ==========================================
   1400px
========================================== */

@media (max-width:1400px){

    .hero-content h1{
        max-width:700px;
    }

    .featured{
        gap:70px;
    }

}


/* ==========================================
   1200px
========================================== */

@media (max-width:1200px){

    section{
        padding:100px 0;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:30px;
    }

    .journal-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .featured{
        gap:50px;
    }

    .footer-top{
        grid-template-columns:1fr 1fr;
        gap:50px;
    }

}


/* ==========================================
   992px
========================================== */

@media (max-width:992px){

    .nav-links,
    .nav-icons{
        display:none;
    }

    .menu-btn{
        display:flex;
    }

 

    .featured{

        grid-template-columns:1fr;

    }

    .featured .image{

        order:1;

    }

    .featured .content{

        order:2;

        text-align:center;

    }

    .newsletter-box{

        flex-direction:column;

        text-align:center;

    }

    .newsletter-form{

        min-width:100%;

        width:100%;

    }

    .footer-bottom{

        flex-direction:column;

        text-align:center;

    }

}


/* ==========================================
   768px
========================================== */

@media (max-width:768px){

    section{
        padding:80px 0;
    }

    .hero{
        height:90vh;
    }

    .about-hero-content{
        align-items:flex-start
    }

    

    .hero-content{
        align-items:center;
        text-align:center;
    }

    .about-hero-content h1{
        max-width:100%;
    }

    .hero-content h1{
        max-width:100%;
    }

    .product-grid{

        grid-template-columns:1fr;

    }

    .journal-grid{

        grid-template-columns:1fr;

    }

    .grid-2,
    .grid-3,
    .grid-4{

        grid-template-columns:1fr;

    }

    .newsletter form{

        flex-direction:column;

    }

    .newsletter button{

        height:58px;

    }

    .footer-top{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-brand{

        display:flex;

        flex-direction:column;

        align-items:center;

    }

    .footer-social{

        justify-content:center;

    }

}


/* ==========================================
   576px
========================================== */

@media (max-width:576px){

    .navbar{

        height:75px;

    }

    .logo img{

        height:58px;
        width:auto;

    }

    h1{

        font-size:3rem;

    }

    h2{

        font-size:2.2rem;

    }

    .btn{

        width:100%;

        justify-content:center;

    }

    .featured{

        width:90%;

    }

    .section-heading{

        margin-bottom:45px;

    }

}


/* ==========================================
   480px
========================================== */

@media (max-width:480px){

    section{

        padding:70px 0;

    }

    .container{

        width:92%;

    }

    .hero{

        height:85vh;

    }

    .hero-content .subtitle{

        font-size:.75rem;

        letter-spacing:3px;

    }

    h1{

        font-size:2.4rem;

    }

    h2{

        font-size:2rem;

    }

    p{

        font-size:.95rem;

    }

    .about-hero-content .about-hero-subtitle{

        font-size:.75rem;

        letter-spacing:3px;

    }

    h1{

        font-size:2.4rem;

    }

    h2{

        font-size:2rem;

    }

    p{

        font-size:.95rem;

    }

    .newsletter-form{

        flex-direction:column;

    }

}


/* ==========================================
   360px
========================================== */

@media (max-width:360px){

    h1{

        font-size:2rem;

    }

    h2{

        font-size:1.7rem;

    }

    .btn{

        padding:16px 22px;

        font-size:.85rem;

    }

    .navbar{

        width:94%;

    }

}

@media (pointer: coarse){

    .cursor{

        display:none;

    }

}

@media (max-width:768px){

.about-hero-content{

    left:30px;

    right:30px;

    width:auto;

    max-width:none;

    transform:translateY(-50%);

}

.about-hero-content h1{

    font-size:3rem;

}

}

/* ==========================================
   MOBILE HOMEPAGE HERO
   Keep this at the very bottom of this file
========================================== */

@media (max-width:768px){

    .hero{
        position:relative;
        height:100svh;
        min-height:620px;
        padding:0;
        overflow:hidden;
    }

    /* Preserve as much of the showroom as possible */
    .hero-image img{
        width:100%;
        height:100%;
        object-fit:cover;

        /*
        Keeps the Levy Martin wall logo visible.
        Change 50% slightly only if necessary.
        */
        object-position:50% center;

        /* Prevent extra cropping caused by zoom */
        animation:none;
        transform:none;
    }

    /*
    Keep the upper and middle image clear.
    Only darken the bottom where the text sits.
    */
    .hero-image::after{
        background:linear-gradient(
            to bottom,
            rgba(10,5,3,0) 0%,
            rgba(10,5,3,0) 48%,
            rgba(10,5,3,.18) 66%,
            rgba(10,5,3,.72) 100%
        );
    }

    /*
    Small content block at the bottom.
    This overrides the older centred mobile rule.
    */
    .hero-content{
        position:absolute;
        left:0;
        right:0;
        bottom:0;

        width:100%;
        height:auto;
        margin:0;
        padding:0 24px 34px;

        display:flex;
        flex-direction:column;
        justify-content:flex-end;
        align-items:flex-start;

        text-align:left;
    }

    /* Remove extra wording on mobile */
    .hero-eyebrow{
        display:none;
    }

    .hero-content h1{
        width:auto;
        max-width:none;
        margin:0 0 5px;

        font-size:clamp(2.5rem,12vw,3.4rem);
        line-height:.92;
        letter-spacing:-1.5px;
        white-space:nowrap;
    }

    .hero-status{
        margin:0 0 18px;

        font-size:.66rem;
        line-height:1;
        letter-spacing:4px;
    }

    /*
    Convert the large boxed button into a small editorial link.
    */
    .hero-btn{
        width:auto;
        min-width:0;
        padding:0 0 7px;

        gap:14px;

        border:none;
        border-bottom:1px solid rgba(255,255,255,.7);
        background:transparent;

        backdrop-filter:none;
        -webkit-backdrop-filter:none;

        font-size:.68rem;
        letter-spacing:1.5px;
    }

    .hero-btn:hover{
        background:transparent;
        color:#fff;
        border-color:#fff;
    }

    .hero-btn span{
        font-size:.9rem;
    }

    .scroll-indicator{
        display:none;
    }

}

@media (max-width:480px){

    .hero{
        height:100svh;
        min-height:580px;
    }

    .hero-content{
        padding:0 20px 28px;
    }

    .hero-content h1{
        font-size:2.75rem;
    }

    .hero-status{
        margin-bottom:16px;
        font-size:.62rem;
        letter-spacing:3.5px;
    }

    .hero-btn{
        font-size:.64rem;
    }

}

@media (max-width:360px){

    .hero-content{
        padding:0 17px 24px;
    }

    .hero-content h1{
        font-size:2.4rem;
    }

}

/* ==========================================
   MINIMAL HOMEPAGE MOBILE
========================================== */

@media(max-width:768px){

    .minimal-intro{
        padding:95px 22px;
    }

    .minimal-intro h2{
        font-size:2.7rem;
    }

    .minimal-intro-text{
        font-size:.95rem;
    }


    /* Collection image first, content below */

    .collection-preview{
        display:block;
    }

    .collection-preview .image{
        width:100%;
        height:auto;
    }

    .collection-preview .image img{
        width:100%;
        height:auto;
        object-fit:contain;
    }

    .collection-preview .content{
        padding:75px 24px;
    }

    .collection-preview .content h2{
        font-size:2.8rem;
    }


    /* Gallery */

    .minimal-gallery{
        padding:95px 0;
    }

    .gallery-heading{
        margin-bottom:40px;
        align-items:flex-start;
        flex-direction:column;
        gap:20px;
    }

    .minimal-gallery .gallery-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .minimal-gallery .gallery-item,
    .minimal-gallery .gallery-feature{
        min-height:0;
        height:auto;
        grid-row:auto;
    }

    .minimal-gallery .gallery-item img{
        width:100%;
        height:auto;
        object-fit:contain;
    }


    /* Statement */

    .brand-statement{
        padding:110px 22px;
    }

    .brand-statement h2{
        font-size:3rem;
    }


    /* Newsletter */

    .minimal-newsletter{
        padding:100px 22px;
    }

}

@media(max-width:480px){

    .minimal-intro h2{
        font-size:2.35rem;
    }

    .collection-preview .content h2{
        font-size:2.5rem;
    }

    .brand-statement h2{
        font-size:2.6rem;
    }

}