/* ==========================================================
   Our People – body
   Colors come from :root variables defined in style.css
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

.our-people {
    font-family: 'Questrial', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    width: 100%;
    position: relative;
}

/* ---------- Hero / Title ---------- */
.our-people__hero {
    padding: 15px;
}

.our-people__title {
    margin: 0;
    font-family: inherit;
    font-weight: 400;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.1;
    color: var(--purple);
    text-align: left;
}

/* ---------- Intro ---------- */
.our-people__intro {
    padding: 50px;
}

.our-people__intro-inner {
    max-width: 1300px;
    margin-inline: auto;
}

.our-people__lead {
    margin: 0 0 56px;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.3;
    font-weight: 400;
    color: var(--purple);
    text-align: justify;
}

.our-people__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.05;
    color: var(--black);
    text-align: justify;
}

/* ---------- Team grid ---------- */
.our-people__team {
    padding: 40px 80px 160px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 266px);
    justify-content: center;
    column-gap: 56px;
    row-gap: 134px;
    max-width: 1300px;
    margin-inline: auto;
}

.team-card {
    box-sizing: border-box;
    min-height: 324px;
    padding: 11px 16px 40px;
    background: var(--white);
    border: 1px solid var(--secondary-blue);
    text-align: center;
}

.team-card__photo {
    width: 193px;
    height: 193px;
    margin: 0 auto 36px;
    border-radius: 50%;
    overflow: hidden;
}

.team-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.team-card__name {
    margin: 0 0 6px;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--purple);
}

.team-card__email {
    display: inline-block;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-card__email:hover {
    color: var(--purple);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .our-people__hero  { padding: 70px 40px 0; }
    .our-people__intro { padding: 140px 40px 80px; }
    .our-people__team  { padding: 40px 40px 80px; }

    .team-grid {
        grid-template-columns: repeat(2, 266px);
        row-gap: 56px;
    }
}

@media (max-width: 600px) {
    .our-people__hero  { padding: 50px 20px 0; }
    .our-people__intro { padding: 80px 20px 60px; }
    .our-people__team  { padding: 20px 20px 60px; }

    .team-grid {
        grid-template-columns: minmax(0, 266px);
        row-gap: 32px;
    }

    .our-people__lead {
        margin-bottom: 32px;
        text-align: left;
    }

    .our-people__text {
        line-height: 1.5;
        text-align: left;
    }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .our-people__title {
    text-align: right;
}