
.features-hero {
    position: relative;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-image: url(../images/features-header.jpg);
    overflow: hidden;
}

.features-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--highlight);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
}

.features-hero-content {
    position: relative;
    z-index: 2;
    padding: 12.5rem 2rem 10rem 2rem;
    color: white;
}

.features-hero-content h1 {
    font-size: clamp(1.8rem, 12vw, 7.25rem);
    line-height: 1;
}

.features-hero-content p {
    font-size: 1.85rem;
    padding: 2rem 0;
    font-weight: 300;
}

.features-hero-content h1, .features-hero-content p {
    text-shadow: 1px 2px 7px rgba(3, 21, 48, 0.5);
}

.features-hero-content .main-cta {
    background-color: white;
    color: var(--black);
}

.features-hero-content .main-cta:hover {
    background-color: rgba(0,0,0,0);
    color: white;
    border: solid 1px white;
}

.features-container .content {
    padding: 2.5rem 0;
}

/* FILTERS */

.filter {
    display: grid;
    grid-template-columns: 1fr 12rem;
}

.all-options {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.view-options {
    margin-left: auto;
    width: fit-content;
}

.filter-choice {
    font-size: 0.95rem;
    border: solid 1px var(--black-02);
    padding: 0.25rem 0.75rem;
    border-radius: 200px;
    background-color: white;
    color: var(--black-09);
    transition: background 0.3s;
    cursor: pointer;
}

.filter-choice.active {
    background-color: rgba(74, 255, 210, 0.1);
    border-color: rgba(74, 255, 210, 0.5);
}

.options-title {
    font-weight: 550;
    text-transform: uppercase;
    font-size: 0.725rem;
}

.view-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    background-color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    place-content: center;
    flex-wrap: wrap;
    border: solid 1px var(--black-02);
    color: var(--black-05);
    cursor: pointer;
}

.view-selected {
    color: var(--black);
}

/* BOXES */

.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.boxes div {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
}

.box-tag {
    display: block;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    width: fit-content;
    border-radius: 0.25rem;
    background-color: rgba(74, 255, 210, 0.2);
}

.boxes h2 {
    font-size: 1.65rem;
    margin: 1rem 0;
}

.boxes p {
    font-size: var(--fs-main);
    color: var(--black-08);
}

.boxes.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boxes.list-view > div {
    display: flex;
    align-items: start;
    padding: 1.5rem;
    background: #fff;
}

.boxes.list-view .box-tag {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    margin-right: 1rem;
}

.boxes.list-view h2 {
    flex: 0 0 20rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.35rem;
}

.boxes.list-view p {
    flex: 1 1 auto;
    margin: 0;
}


/* MEDIA QUERIES */

@media only screen and (max-width: 1000px) {
    .boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 820px) {
    .view-options {
        display: none;
    }

    .filter {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 768px) {
    .features-hero-content p {
        font-size: 1.3rem;
        padding: 1.5rem 0;
    }

    .features-hero-content {
        padding: 6rem 1.5rem 5rem 1.5rem;
    }

    .boxes {
        grid-template-columns: 1fr;
        margin: 1.5rem 0;
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-options .options-title {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
    }

    .boxes div {
        padding: 1rem;
    }

    .boxes h2 {
        font-size: 1.4rem;
        margin: 0.75rem 0 0.75rem 0;
    }

    .box-tag {
        font-size: 0.75rem;
    }

    .features-container .content {
        padding: 1.5rem 0;
    }
}