/* ==========================================================================
   About page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — photograph under a left-to-right grey/maroon gradient, with the
   transparent navigation row sitting over it
   -------------------------------------------------------------------------- */

.about-hero {
    position: relative;
    margin-top: calc(var(--header-row-height) * -1);
    padding: 120px 0 50px;
    background-color: var(--color-maroon-dark);
    background-image: url("../../images/general-images/lawyer-table.jpeg");
    /* The scales sit in the lower half of this portrait photo, so the crop is
       pulled down from centre to keep them in frame */
    background-position: center 65%;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        90deg,
        var(--color-dark-grey) 0%,
        var(--color-maroon-dark) 56%
    );
    opacity: 0.8;
}

.about-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 15px;
}

.about-hero__content {
    margin: calc(var(--header-row-height) + 20px) 0 120px 50px;
}

.about-hero__eyebrow {
    max-width: 65%;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-hero-text);
}

.about-hero__title {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 55px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Why choose us — copy alongside the statue, which is pulled up so it stands
   in front of the hero band above
   -------------------------------------------------------------------------- */

.about-why {
    padding: 120px 0 50px;
}

.about-why__inner {
    display: flex;
    align-items: center;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 15px;
}

.about-why__content {
    flex: 0 0 50%;
}

.about-why__title {
    max-width: 92%;
    margin: 46px auto 20px;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    color: var(--color-secondary);
}

.about-why__text {
    max-width: 88%;
    margin: 0 auto 30px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--color-text);
}

.about-why__values {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.about-why__values li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-secondary);
}

.about-why__values svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    stroke-width: 1.5;
    color: var(--color-maroon-dark);
}

.about-why__rating-title {
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-secondary);
}

/* Sits above the hero band, which it overlaps */
.about-why__media {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    padding: 0 40px 50px 0;
    margin-left: 50px;
}

.about-why__figure {
    width: 100%;
    height: auto;
    margin-top: -263px;
}

/* --------------------------------------------------------------------------
   A Journey Through The Legal World — full-bleed split band, photograph on
   the left, heading on the right
   -------------------------------------------------------------------------- */

.about-journey {
    display: flex;
    background-color: var(--color-dark-grey);
}

.about-journey__media {
    flex: 0 0 50%;
    min-height: 380px;
    margin-right: 50px;
    background-image: url("../../images/general-images/lawyer-handshaking.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about-journey__content {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    padding: 50px;
}

.about-journey__title {
    max-width: 64%;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Team — every member of the firm
   -------------------------------------------------------------------------- */

.about-team {
    padding: 100px 0;
}

.about-team__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 15px;
}

.about-team__header {
    margin-bottom: 70px;
}

.about-team__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.about-team__grid .team-card {
    flex: 0 0 calc((100% - 60px) / 4);
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {

    .about-hero {
        padding: 80px 10px 40px;
    }

    .about-why {
        padding: 80px 30px 40px;
    }

    .about-why__inner {
        padding-inline: 0;
    }

    .about-why__title {
        font-size: 26px;
        margin-top: 0;
    }

    .about-why__text,
    .about-why__values li {
        font-size: 17px;
    }

    .about-why__rating-title {
        font-size: 24px;
    }

    .about-why__media {
        padding: 0;
        margin-left: 20px;
    }

    .about-why__figure {
        margin-top: -180px;
    }

    .about-journey__media {
        margin-right: 0;
    }

    .about-journey__content {
        padding: 80px 50px;
    }

    .about-journey__title {
        font-size: 40px;
    }

    .about-team {
        padding: 70px 30px;
    }

    .about-team__inner {
        padding-inline: 0;
    }

    .about-team__header {
        margin-bottom: 50px;
    }

    .about-team__grid .team-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .about-hero__content {
        margin: calc(var(--header-row-height) + 20px) 0 100px;
    }

    .about-hero__eyebrow {
        font-size: 19px;
    }

    .about-hero__title {
        max-width: 95%;
        font-size: 54px;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    .about-hero {
        padding: 60px 10px 30px;
    }

    .about-hero__content {
        margin: calc(var(--header-row-height) + 20px) 0 80px;
    }

    .about-hero__eyebrow {
        max-width: 100%;
        font-size: 18px;
    }

    .about-hero__title {
        max-width: 100%;
        font-size: 44px;
    }

    .about-why {
        padding: 60px 20px 30px;
    }

    .about-why__inner {
        flex-direction: column;
    }

    .about-why__content,
    .about-why__media {
        flex: 0 0 auto;
        width: 100%;
    }

    .about-why__title {
        font-size: 25px;
    }

    .about-why__text,
    .about-why__values li {
        font-size: 16px;
    }

    .about-why__values {
        justify-content: center;
        gap: 20px;
    }

    /* The gold stars are positioned against the rating's own box, so it has to
       stay shrink-to-fit — centre it from the parent instead of stretching it */
    .about-why__content {
        text-align: center;
    }

    .about-why__rating-title {
        font-size: 22px;
    }

    .about-why__media {
        max-width: 340px;
        margin: 0 auto;
    }

    /* No overlap once the columns stack */
    .about-why__figure {
        margin-top: 0;
    }

    .about-journey {
        flex-direction: column;
    }

    .about-journey__media {
        flex: 0 0 auto;
        min-height: 260px;
    }

    .about-journey__content {
        flex: 0 0 auto;
        padding: 50px 20px;
    }

    .about-journey__title {
        max-width: 100%;
        margin-bottom: 0;
        font-size: 34px;
    }

    .about-team {
        padding: 70px 20px;
    }

    .about-team__header {
        margin-bottom: 40px;
        text-align: center;
    }

    .about-team__grid .team-card {
        flex: 0 0 100%;
    }
}
