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

.about-page {
    overflow-x: hidden;
}

.py-120 {
    padding: 120px 0;
}

/* =========================================
   HERO SECTION
========================================= */

.about-hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;

    .container,
    .hero-section-wrap {
        position: relative;
        z-index: 2;
        height: 100%;
    }
}

.about-hero-bg {
    position: absolute;
    inset: 0;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, .35),
            rgba(0, 0, 0, .55)
        );
    }
}

.about-hero-title {
    font-size: clamp(48px, 6vw, 90px);
    line-height: .95;
    font-weight: 300;
    letter-spacing: -.03em;
    margin: 0;
}

.about-hero-content {
    max-width: 340px;
    margin-left: auto;

    p {
        margin: 0;
        font-size: 18px;
        line-height: 1.7;
    }
}

/* =========================================
   RESPONSIBLE LIVING
========================================= */

.section-title {
    font-size: clamp(40px, 3vw, 60px);
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 40px;
}

.responsible-living-content {
    max-width: 720px;

    p {
        font-size: 17px;
        line-height: 1.9;
        color: #555;

        &:not(:last-child) {
            margin-bottom: 30px;
        }
    }
}

/* =========================================
   CERTIFICATIONS
========================================= */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 30px; */
    /* margin-top: 100px; */
}

.certification-item {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;

    img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* =========================================
   QUOTE SECTION
========================================= */

.about-quote-section {
    background: #e1e0de;
    /* padding: 160px 0; */
    overflow: hidden;

    .container {
        max-width: 1400px;
    }
}

.quote-wrap {
    position: relative;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0;

    &::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 500px;
        height: 500px;
        transform: translate(-50%, -50%);
        background: url("../img/about/quote.svg")
            center/contain no-repeat;
        pointer-events: none;
    }
}

.quote-carousel {
    position: relative;
    z-index: 2;

    .splide__slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .splide__pagination {
        bottom: -50px;

        .splide__pagination__page {
            background: #b3b6b9;
            margin: 0 5px;

            &.is-active {
                background: #591c1c;
                transform: scale(1.4);
            }
        }
    }
}

.about-quote {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 1050px;
    margin: 0 auto;

    /* font-family: "albra", serif; */
    /* font-size: clamp(22px, 1.8vw, 34px); */
    line-height: 1.35;
    font-weight: 500;
    color: #591c1c;

    &::before,
    &::after {
        color: inherit;
        font-size: .9em;
    }
}

.quote-author {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #8b8f95;

    strong {
        display: block;
        font-weight: 600;
        color: #000;
    }

    span {
        display: block;
        font-weight: 400;
    }
}

/* =========================================
   LEADERSHIP TEAM
========================================= */

.family-header {
    margin-bottom: 70px;
}

.family-title {
    text-align: center;
    font-size: clamp(50px, 5vw, 100px);
    line-height: .9;
    font-weight: 300;
    margin: 0;
}

.family-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.family-tab {
    position: relative;
    background: transparent;
    border: 0;
    padding-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    transition: color .3s ease;
    letter-spacing: 1px;
}

.family-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #591c1c;
    transition: width .35s ease;
}

.family-tab:hover,
.family-tab.active {
    color: #591c1c;
}

.family-tab:hover::after {
    width: 100%;
}

.family-tab.active::after {
    width: 0;
}

/* =========================================
   TEAM GRID
========================================= */

.family-panel {
    display: none;

    &.active {
        display: block;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    will-change: transform;

    &:hover {

        img {
            transform: scale(1);
        }

        .team-card-content {
            transform: translateY(0);
        }

        p {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.team-card-image {
    overflow: hidden;

    img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;

        transform: scale(1.08);

        transition: .8s;
    }
}

.team-card-content {
    position: absolute;
    inset: auto 0 0;

    /* min-height: 100%; */
    padding: 30px;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.95),
        rgba(0,0,0,.3)
    );

    transform: translateY(calc(100% - 95px));
    transition: .5s ease;

    h4 {
        margin: 0;
        font-size: 24px;
        font-weight: 400;
    }

    span {
        display: block;
        margin-top: 8px;
        font-size: 14px;
        opacity: .85;
    }

    p {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.8;

        opacity: 0;
        transform: translateY(20px);

        transition:
            opacity .35s ease,
            transform .35s ease;
    }
}

/* =========================================
   FOOTER BANNER
========================================= */

.about-footer-banner {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.about-footer-image,
.about-footer-image img {
    width: 100%;
    height: 100%;
}

.about-footer-image {
    position: absolute;
    inset: 0;

    img {
        object-fit: cover;
    }
}

.about-footer-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.about-footer-logo {
    max-width: 420px;

    img {
        width: 100%;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .py-120 {
        padding: 90px 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-footer-banner {
        height: 500px;
    }

    .about-hero-content {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 767px) {

    .py-120 {
        padding: 70px 0;
    }

    /* .team-grid {
        grid-template-columns: 1fr;
    } */

    .family-tabs {
        gap: 20px;
        flex-wrap: wrap;
    }

    .about-quote {
        font-size: 18px;
    }

    .quote-carousel {

        .splide__pagination {
            bottom: -35px;
        }
    }

    .team-card-content {
        padding: 20px;

        h4 {
            font-size: 18px;
        }
    }

    .about-footer-banner {
        height: 400px;
    }

    .about-footer-logo {
        max-width: 240px;
    }

    .quote-wrap::before {
        width: 280px;
        height: 280px;
    }
}