/* Section 5 — Team "Meet The Stars of Boutique" (components/team/team.php) */

.team {
    position: relative;
    overflow: hidden; /* clip the photo to the card's rounded corners */
    background: var(--color-navy-deep);
    border-radius: var(--radius-section);
    max-width: var(--content-max);
    margin-inline: auto;
    min-height: 560px;
}

/* Gold display title, vertically centred on the left. */
.team__content {
    position: relative;
    z-index: 2; /* keep the title above the photo's transparent edge */
    display: flex;
    align-items: center;
    max-width: 52%;
    min-height: 560px;
    padding: 64px var(--side-padding) 64px 130px;
}
.team__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 96px;
    line-height: 1.05;
    letter-spacing: -0.02em; /* Figma -2% */
    margin: 0;
    /* Diagonal gold shimmer clipped to the text (Figma). */
    background: var(--gradient-gold-text-diagonal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-gold); /* fallback if background-clip:text is unsupported */
}

/* Photo: ~623px wide box (responsive), padded from the right, flush to the
   bottom. No fixed aspect ratio — the image keeps its natural proportions so it
   is never cropped on the sides. The gap above is the card being taller. */
.team__media {
    position: absolute;
    right: var(--side-padding);
    bottom: 0;
    z-index: 1;
    width: min(623px, 48%);
}
.team__media img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
}

/* ---------- Member profiles (alternating image left/right) ---------- */
.team__profiles {
    display: flex;
    flex-direction: column;
    gap: 96px;
    margin-top: 96px;
}
.team-profile {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 72px;
    align-items: center;
}
/* Even rows: photo on the right (swap track widths + move the media cell). */
.team-profile:nth-child(even) {
    grid-template-columns: 1fr 44%;
}
.team-profile:nth-child(even) .team-profile__media {
    order: 2;
}
.team-profile__media img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* "Meet <Name>" — DM Serif Display Regular 40; "Meet" navy, name gold. */
.team-profile__name {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 40px;
    color: var(--color-navy-mid);
    margin: 0 0 24px;
}
/* Accent (name) — solid gold (C6A15B), no gradient. */
.team-profile__name .name-accent {
    color: var(--color-gold);
}
/* Body — Montserrat Regular 18, navy. */
.team-profile__text {
    margin-bottom: 32px;
}
.team-profile__text p {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--color-navy-mid);
    margin: 0 0 20px;
}
.team-profile__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .team {
        min-height: 0;
        border-radius: 0;
    }
    .team__profiles {
        gap: 56px;
        margin-top: 56px;
    }
    .team-profile,
    .team-profile:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* Image always on top when stacked. */
    .team-profile:nth-child(even) .team-profile__media {
        order: 0;
    }
    .team__content {
        position: static;
        max-width: none;
        min-height: 0;
        justify-content: center;
        text-align: center;
        padding: 48px 24px 0;
    }
    .team__title { font-size: 48px; }
    .team__media {
        position: static;
        width: auto;
        aspect-ratio: auto;
    }
    .team__media img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
}
