/* Team hero */
.team-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.94) 34%,
            rgba(255, 255, 255, 0.70) 52%,
            rgba(255, 255, 255, 0.10) 78%
        ),
        url('../images/sharon-sue02.webp');
    background-size: cover, auto 100%;
    background-position: center, calc(100% + 140px) center;
    background-repeat: no-repeat;
    background-color: var(--color-white);
}

/* Team hero gradient divider */
.team-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* Team hero content */
.team-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding-block: 5rem;
    transform: translateY(-90px);
}

/* Team hero heading */
.team-hero-content h1 {
    max-width: 680px;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
    font-size: clamp(2.75rem, 4.5vw, 4.5rem);
    line-height: 1.05;
}

/* Team hero text */
.team-hero-content > p:last-child {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 1.15rem;
    line-height: 1.75;
}


/* Team member section */
.team-member {
    background: var(--color-white);
}

/* Team member light section */
.team-member.section-light {
    background:
        radial-gradient(
            circle at top right,
            rgba(233, 168, 37, 0.05),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(11, 95, 165, 0.035),
            rgba(22, 125, 141, 0.04)
        ),
        var(--color-light);
}

/* Team member layout */
.team-member-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
    align-items: center;
}

/* Team reverse layout */
.team-member-grid-reverse .team-member-media {
    order: 2;
}

/* Team reverse content */
.team-member-grid-reverse .team-member-content {
    order: 1;
}

/* Team member media */
.team-member-media {
    position: relative;
}

/* Team photo placeholder */
.team-photo-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 4px;
    overflow: hidden;
    color: var(--color-primary);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
    border-radius: calc(var(--border-radius-large) + 2px);
    box-shadow: var(--shadow-medium);
    font-size: 5rem;
}

/* Team placeholder inner surface */
.team-photo-placeholder::before {
    position: absolute;
    inset: 4px;
    content: "";
    background:
        linear-gradient(
            135deg,
            rgba(11, 95, 165, 0.07),
            rgba(22, 125, 141, 0.07)
        ),
        var(--color-white);
    border-radius: calc(var(--border-radius-large) - 2px);
}

/* Team placeholder icon */
.team-photo-placeholder i {
    position: relative;
    z-index: 1;
    color: var(--color-secondary);
}

/* Real team photo */
.team-photo-placeholder img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 432px;
    object-fit: cover;
    border-radius: calc(var(--border-radius-large) - 2px);
}

/* Team member heading */
.team-member-content h2 {
    margin-bottom: 1.25rem;
    color: var(--color-heading);
}

/* Team member text */
.team-member-content > p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Team CTA */
.team-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            circle at bottom right,
            rgba(233, 168, 37, 0.06),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            rgba(11, 95, 165, 0.045),
            rgba(22, 125, 141, 0.05)
        ),
        var(--color-white);
}

/* Team CTA gradient divider */
.team-cta::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* Team CTA content */
.team-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin-inline: auto;
}

/* Team CTA heading */
.team-cta-inner h2 {
    color: var(--color-heading);
}

/* Team CTA text */
.team-cta-inner > p {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Team CTA buttons */
.team-cta-inner .cta-group {
    justify-content: center;
    margin-top: 2rem;
}


/* Tablet team */
@media (max-width: 900px) {

    .team-hero {
        min-height: 560px;
        background-image:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.90) 48%,
                rgba(255, 255, 255, 0.28) 82%
            ),
            url('../images/sharon-sue02.webp');
        background-size: cover;
        background-position: 68% center;
    }

    .team-member-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .team-member-grid-reverse .team-member-media,
    .team-member-grid-reverse .team-member-content {
        order: initial;
    }

    .team-member-media {
        width: 100%;
        max-width: 620px;
        margin-inline: auto;
    }

    .team-approach-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin-inline: auto;
    }
}


/* Mobile team */
@media (max-width: 600px) {

    .team-hero {
        min-height: auto;
        align-items: flex-end;
        padding-block: 0;
        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.78) 42%,
                rgba(255, 255, 255, 1) 72%
            ),
            url('../images/sharon-sue02.webp');
        background-size: cover;
        background-position: 70% top;
    }

    .team-hero-content {
        padding-top: 15rem;
        padding-bottom: 3rem;
        transform: none;
    }

    .team-hero-content h1 {
        font-size: clamp(2.3rem, 10vw, 3.25rem);
    }

    .team-hero-content > p:last-child {
        font-size: 1.05rem;
    }

    .team-photo-placeholder {
        min-height: 340px;
        padding: 3px;
        font-size: 4rem;
    }

    .team-photo-placeholder::before {
        inset: 3px;
    }

    .team-photo-placeholder img {
        min-height: 334px;
    }

    .team-member-fact {
        align-items: flex-start;
    }

    .team-approach-card {
        padding: 1.5rem;
    }

    .team-approach-card:hover {
        transform: none;
    }

    .team-cta-inner .cta-group {
        width: 100%;
    }

    .team-cta-inner .btn {
        width: 100%;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .team-approach-card {
        transition: none;
    }

    .team-approach-card:hover {
        transform: none;
    }
}


.team-quote { display:flex; align-items:flex-start; gap:1rem; margin:1.75rem 0 0; padding:1.5rem; color:var(--color-heading); background:#edf6f7; border-left:4px solid var(--color-secondary); border-radius:12px; }
.team-quote > i { color:var(--color-secondary); font-size:1.8rem; }
.team-quote p { margin:0; font-size:1.1rem; line-height:1.7; font-weight:600; }
.team-quote .quote-intro { font-size:.85rem; font-weight:700; margin-bottom:.4rem; color:#465970; }
.friendship-section { background:linear-gradient(135deg,#f1f7fb,#fffaf1); }
.friendship-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.75rem; align-items:start; }
.friendship-card { margin:0; padding:.65rem .65rem 1rem; background:white; border:1px solid #dbe6ed; border-radius:12px; box-shadow:0 8px 24px #16324f12; }
.friendship-card:nth-child(2n) { margin-top:1.5rem; }
.friendship-photo { display:block; position:relative; border-radius:7px; overflow:hidden; }
.friendship-photo img { display:block; width:100%; height:auto; max-height:360px; object-fit:contain; background:#f4f3ef; }
.photo-enlarge { position:absolute; bottom:.6rem; right:.6rem; padding:.45rem .65rem; color:white; background:#16324fe6; border-radius:6px; }
.friendship-card figcaption { padding:1rem .4rem 0; font-size:.95rem; font-weight:600; color:var(--color-heading); line-height:1.5; }
.friendship-dialog { width:min(1000px,94vw); max-height:90dvh; padding:3rem 1rem 1rem; border:0; border-radius:12px; background:#fff; }
.friendship-dialog::backdrop { background:#10273edb; }
.friendship-dialog img { display:block; width:auto; height:auto; max-width:100%; max-height:70dvh; margin:auto; }
.friendship-dialog p { text-align:center; margin:1rem 0 0; color:#16324f; }
.photo-close { position:absolute; top:.3rem; right:.6rem; width:44px; height:44px; border:0; background:#edf6f7; color:#16324f; font-size:2rem; cursor:pointer; border-radius:50%; }
@media(max-width:900px) { .friendship-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .friendship-gallery { grid-template-columns:1fr; gap:1.25rem; } .friendship-card:nth-child(2n) { margin-top:0; } .team-quote { padding:1.1rem; } }

@media(min-width:901px) { .team-hero-content { width:52%; max-width:620px; transform:none; padding:4rem 0; } .team-hero-content h1 { font-size:clamp(2rem,3.1vw,3rem); } .team-hero { background-image:linear-gradient(90deg,#fff 0%,#fffffff5 43%,#ffffffc4 54%,#ffffff00 68%),url("../images/sharon-sue02.webp"); } }
