/* Hero Section */
.hero{
    position: relative;
    height: 50svh;
    width: 100%;
    overflow: hidden;
}

.hero>h1{
    position: absolute;
    bottom: 1em;
    left: 0.5em;
    color: var(--white);
    text-align: center;
    margin: 0;
    filter: drop-shadow(1px 1px 0 var(--black));
}

.hero img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.header{
    width: min(1100px, 85%);
    font-size: 1.2em;
    font-weight: 300;
    text-align: center;
    font-style: italic;
    text-wrap: balance;
}

/* Brands Section */
.brands>article{
    background-color: var(--grey);
    padding: 2em 1em;
}

.brands>article>h2{
    margin-top: 1rem;
}

div.group{
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 1em;
    padding-inline: 1em;
    margin: 1em auto;
}

div.group>a{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    color: var(--black);
    text-decoration: none;
    align-content: end;
    border-radius: 1em;
    padding: 1em 2em;
}

div.group>a:hover,
div.group>a:active{
    z-index: 8;
}

div.group>a>p{
    opacity: 0;
    transition: 300ms;
    transition-delay: 1000ms;
}

div.group>a>img.logo{
    height: 7em;
    max-width: 45%;
    margin: 1em;
}

div.group>a:hover>p,
div.group>a:active>p,
div.group>a.show>p{
    opacity: 1;
}

img.book{
    position: absolute;
    bottom: 50%;
    right: -3%;
    transform: translateY(50%);
    max-height: 90%;
    max-width: 65%;
    object-fit: contain;
    transition: 300ms;
    transition-delay: 1000ms;
}

a:hover>img.book,
a:active>img.book,
a.show>img.book{
    max-height: 11.5em;
    max-width: 50%;
    transform: translate(0, 0);
    bottom: -0.8em;
}

@media (min-width: 761px){
    /* Hero Section */
    .hero{
        height: 70svh;
    }

    .hero h1{
        left: 1em;
    }

    /* Brands Section */
    .brands>article{
        padding: 3em 1em;
    }

    div.group{
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        margin: 2em auto;
    }

    div.group>a>p,
    div.group>a.show>p{
        opacity: 0;
        transition-delay: 0ms;
    }

    div.group>a:hover>p,
    div.group>a:active>p,
    div.group>a.show:hover>p{
        opacity: 1;
    }

    a.show>img.book{
        position: absolute;
        bottom: 50%;
        right: -3%;
        transform: translateY(50%);
        max-height: 90%;
        max-width: 65%;
        object-fit: contain;
        transition: 300ms;
        transition-delay: 0;
    }

    a:hover>img.book,
    a:active>img.book,
    a.show:hover>img.book{
        max-height: 11.5em;
        max-width: 50%;
        transform: translate(0, 0);
        bottom: -0.8em;
    }
}

@media (min-width: 1166px){
    .hero{
        height: 80svh;
    }

    .hero h1{
        left: 2em;
    }

    /* Brands Section */
    .brands>article{
        padding: 3em 0;
    }

    .brands>article>*{
        max-width: 1250px;
        padding-inline: 1em;
        margin-inline: auto;
    }

    div.group{
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 2em;
        width: max(80%, 1100px);
        max-width: 1550px;
        padding-inline: 2em;
    }

    div.group>a{
        gap: 2em;
    }

    div.group>a>p{
        margin-bottom: 2em;
    }

    div.group>a:hover>p{
        opacity: 1;
    }

    img.book,
    a.show>img.book{
        right: 45%;
        transform: translate(60%, 40%);
        max-height: 80%;
        max-width: 80%;
    }

    a:hover>img.book,
    a.show:hover>img.book{
        max-height: 15em;
        transform: translate(0, 0);
        bottom: -1.8em;
        right: 5%;
    }
}