/*============== OUR STORY HERO =================*/

.ourstory-hero {
    padding: 3rem 0;
}

.ourstory-hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.ourstory-hero-description {
    color: var(--color-muted);
}

/*============== OUR STORY HOME =================*/

.home {
    padding: 3rem 0;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.home-heading h2 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.home-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--color-muted);
}

.our-story-image {
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.our-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*============== OUR STORY BEGINNING =================*/

.ourstory-beginning {
    padding: 3rem 0;
}

.beginning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.ourstory-beginning-image {
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.ourstory-beginning-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.beginning-content h2 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.beginning-description {
    color: var(--color-muted);
}

/*============== OUR STORY APPROACH =================*/

.ourstory-approach {
    padding: 3rem 0;
}

.approach-heading h2 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.approach-description {
    color: var(--color-muted);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.approach-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;

    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.approach-item:last-child {
    border-bottom: none;
}

.approach-icon {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

/*============== OUR STORY TEAM =================*/

.team {
    padding: 3rem 0;
}

.team-heading h2{
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.team-description {
    color: var(--color-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 3rem 0;
}

.team-image {
    overflow: hidden;
    border-radius: var(--radius-medium);
    margin-bottom: 1rem;
}

.team-image img {
    width: 100%;
    object-fit: cover;
    display: block;

    aspect-ratio: 3/2;
}

.team-content h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.team-bio {
    line-height: 1.6;
    color: var(--color-muted);
}

.team-member:nth-child(1) .team-image img {
    object-position: center center;
}

.team-member:nth-child(2) .team-image img {
    object-position: center 5%;
}

.team-member:nth-child(3) .team-image img {
    object-position: center 45%;
}


/*====== OUR STORY CTA ======*/

.ourstory-cta {
    padding: 3rem 0;
}

.ourstory-cta-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ourstory-cta-heading h2 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.ourstory-cta-description {
    color: var(--color-muted);
    padding-bottom: 2rem;
}

    /*====== OUR STORY final cta ======*/

.ourstory-cta .button-secondary {
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}
.ourstory-cta .button-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}


@media (max-width: 768px) {

    .home-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    }

    .home-heading {
        order: 1;
    }

    .our-story-image {
        order: 2;
        width: 100%;
    }  

    .home-heading h2 {
        font-size: 2.8rem;
        line-height: 1;
    }

    .home-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .our-story-image img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center;
        border-radius: var(--radius-medium);
    }

/*====== beginning ======*/

    .beginning-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .beginning-content {
        order: 1;
    }

    .ourstory-beginning-image {
        order: 2;
        width: 100%;
    }

    .beginning-content h2 {
        font-size: 2.8rem;
        line-height: 1;
    }

    .beginning-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .ourstory-beginning-image img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center;
        border-radius: var(--radius-medium);
    }

    
/*====== approach ======*/

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .approach-heading {
        width: 100%;
    }

    .approach-heading h2 {
        font-size: 2.8rem;
        line-height: 1;
    }

    .approach-description {
        font-size: 1rem;
        line-height: 1.6;
        max-width: none;
    }


/* 2 x 2 */

    .approach-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        width: 100%;
    }

    .approach-item {
        padding: 1.5rem 1rem;
        min-width: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .approach-item:nth-child(odd) {
        padding-left: 0;
        padding-right: 1.25rem;
    }

    .approach-item:nth-child(even) {
        padding-left: 1.25rem;
        padding-right: 0;
    }

    .approach-item h3 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .approach-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .approach-icon img {
        width: 28px;
        height: 28px;
    }

    /*====== team ======*/

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }

    .team-member {
        min-width: 0;
    }

    .team-member-image {
        width: 100%;
        margin-bottom: 1rem;
    }

    .team-member-image img {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
        border-radius: var(--radius-medium);
        display: block;
    }

    .team-member h3 {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }

    .team-member-role {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .team-member-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .approach-item:nth-last-child(-n + 2) {
        border-bottom: none;
    }


}