/* ==================================================
   ABOUT PAGE
   ================================================== */

.hero {
    position: relative;
    background-color: var(--main-color);
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* right-hand hero image (no <img> in the markup) */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    background-image: url('../img/web/about-hero.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(100%);
}

.hero-text {
    position: relative;
    z-index: 1;
    width: 50%;
    box-sizing: border-box;
    padding: 4.5rem 3.5rem;
}

.hero-text h1 {
    margin: 0 0 2rem;
    color: var(--text-main);
    font-family: var(--text-font-main);
    font-size: clamp(2.5rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: 1px;
}

.hero-text p {
    margin: 0 0 3rem;
    max-width: 44ch;
    color: var(--text-muted);
    font-family: var(--text-font-second);
    font-size: 1.0625rem;
    font-weight: bold;
    line-height: 1.6;
}


/* --------------------------------------------------
   LIGHT CONTENT SECTIONS
   -------------------------------------------------- */

.box-left{
    padding: 0 2rem 0 2rem;
}

.what {
    background-color: var(--bg);
    color: var(--text-second);
}

.mission {
    background-color: var(--bg-muted);
    color: var(--text-second);
}

/* image inset from top/bottom, flush to the right edge */
.what .box-right {
    padding: 3rem 0;
}

.what .box-right img {
    height: 350px;
}

/* mission: image on the LEFT, full height, flush to the edges */
.mission .box-two {
    align-items: stretch;
}

.mission .box-left {
    order: 2;
    align-self: center;
}

.mission .box-right {
    order: 1;
}

.mission .box-right img {
    min-height: 440px;
}

/* --------------------------------------------------
   RESPONSIVE
   -------------------------------------------------- */

@media (max-width: 1024px) {
    main {
        padding: 0 1rem;
    }

    .box-two {
        grid-template-columns: 1fr;
    }

    .box-two .box-left {
        padding: 3.5rem 1.75rem;
    }

    .hero {
        display: block;
        min-height: 0;
    }

    .hero::after {
        position: static;
        display: block;
        width: 100%;
        height: 260px;
    }

    .hero-text {
        width: 100%;
        padding: 3.5rem 1.75rem;
    }

    .what .box-right {
        padding: 0 0 0;
    }

    .what .box-right img,
    .mission .box-right img {
        height: 260px;
        min-height: 0;
    }

    /* keep image above text on mobile for the mission block */
    .mission .box-left {
        order: 2;
    }

    .mission .box-right {
        order: 1;
    }

    footer .box-two {
        grid-template-columns: 1fr;
        padding: 3rem 1.75rem;
    }

    footer .box-right {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .btn {
        display: block;
        text-align: center;
    }

    main{
        padding: 0;
    }

    footer .box-right {
        grid-template-columns: 1fr 1fr;
    }
}