/* ==========================================================================
   Team page (contact.html)
   Depends on css/tokens.css and css/style.css.
   ========================================================================== */

/* ==========================================================================
   Page banner
   --------------------------------------------------------------------------
   The background photograph used to fill the whole viewport with the team
   cards floating on top of it, which made the cards hard to read and cropped
   awkwardly. It is now a fixed-height banner behind the page title only, and
   the cards sit on the light page surface below it.
   ========================================================================== */

.pageHero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: min(46svh, 420px);
    padding: calc(var(--space-7) + 2rem) var(--gutter) var(--space-6);
    text-align: center;
    background: url('../images/aboutUsBG.webp') no-repeat center center/cover;
    isolation: isolate;
}

.pageHero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
        rgb(16 16 12 / 0.72) 0%,
        rgb(16 16 12 / 0.45) 55%,
        rgb(16 16 12 / 0.62) 100%);
}

.meetUsTitle {
    max-width: var(--container-narrow);
    margin: 0 auto;
    color: var(--on-dark);
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}


/* ==========================================================================
   Team cards
   ========================================================================== */

.MeetTheTeam {
    padding-block: calc(var(--section-y) / 2);
}

.teamContent {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.padded-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-4);
}

/* Each direct child is one person's card */
.padded-boxes > * {
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.padded-boxes > *:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.padded-boxes .padded {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: var(--space-5) var(--space-4);
    text-align: center;
}

/* Cards are equal height, so the social row is pinned to the bottom of each
   one rather than floating wherever the bio happens to end. */
.padded-boxes .social-icons-container {
    margin-top: auto;
    padding-top: var(--space-4);
}

/* Avatars are circular cut-outs, sized rather than stretched full width */
.padded-boxes img.aboutIMG {
    width: 132px;
    height: auto;
    margin: 0 0 var(--space-3);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.padded-boxes h3 {
    font-size: var(--text-xl);
}

/* Role, sitting under the name as a quiet accent chip */
.padded-boxes h4 {
    margin-top: var(--space-1);
    margin-bottom: var(--space-3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--accent-wash);
    color: var(--ink-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.padded-boxes p {
    color: var(--ink-muted);
    font-size: var(--text-sm);
    text-align: left;
}
