/**
 * Team Section Styles
 * Semantic, modern styling for Meet the Team section
 * Uses flexbox for responsive layout with elegant spacing
 */

/* ============================================
   SECTION CONTAINER
   ============================================ */

/* Main section wrapper - full width white background */
.team-section {
    background-color: #ffffff;
    padding: 80px 0;
    width: 100%;
}

/* Content container - centers content with max-width */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SECTION HEADER
   ============================================ */

/* Header wrapper - contains title and subtitle */
.team-section__header {
    text-align: center;
    margin-bottom: 80px;
}

/* Main section title - large, uppercase, letter-spaced */
.team-section__title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Section subtitle - italic, below title */
.team-section__subtitle {
    font-size: 18px;
    font-style: italic;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   TEAM MEMBERS CONTAINER
   ============================================ */

/* Wrapper for all team member cards */
.team-members {
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: center;

}

/* ============================================
   TEAM MEMBER CARD
   ============================================ */

/* Individual team member card - uses flexbox for layout */
.team-member {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Space between image and content */
    width: 100%;
}

/* Modifier: Image on left, text on right (default) */
.team-member--image-left {
    flex-direction: row;
}

/* Modifier: Text on left, image on right */
.team-member--image-right {
    flex-direction: row-reverse;
}

/* ============================================
   TEAM MEMBER IMAGE
   ============================================ */

/* Image wrapper - controls image size and positioning */
.team-member__image-wrapper {
    flex: 0 0 325px;
    /* Fixed width, doesn't grow or shrink */
    margin: 0;
    padding: 0;
}

/* Portrait image - grayscale filter, full width of wrapper */
.team-member__image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Optional hover effect - remove grayscale on hover */
.team-member__image:hover {
    filter: grayscale(0%);
}

/* ============================================
   TEAM MEMBER CONTENT
   ============================================ */

/* Content wrapper - contains name, title, description */
.team-member__content {
    flex: 1;
    /* Takes remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Info container - groups text elements */
.team-member__info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ============================================
   TEAM MEMBER NAME
   ============================================ */

/* Name wrapper - stacks first and last name vertically */
.team-member__name {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

/* First name - medium-large size */
.team-member__name-first {
    font-size: 32px;
    text-transform: capitalize;
}

/* Last name - uppercase, slightly larger */
.team-member__name-last {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ============================================
   TEAM MEMBER JOB TITLE
   ============================================ */

/* Job title - italic, muted color */
.team-member__job-title {
    font-size: 18px;
    font-style: italic;
    color: #888888;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   TEAM MEMBER DESCRIPTION
   ============================================ */

/* Description text - smaller body text */
.team-member__description {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin: 10px 0 0 0;
}

.team-member__description p {
    margin: 0 0 10px 0;
}

.team-member__description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet breakpoint */
@media (max-width: 992px) {
    .team-section {
        padding: 60px 0;
    }

    .team-section__title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .team-section__subtitle {
        font-size: 16px;
    }

    .team-section__header {
        margin-bottom: 60px;
    }

    .team-members {
        gap: 70px;
    }

    .team-member {
        gap: 40px;
    }

    .team-member__image-wrapper {
        flex: 0 0 300px;
    }

    .team-member__name-first {
        font-size: 28px;
    }

    .team-member__name-last {
        font-size: 32px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .team-section {
        padding: 40px 0;
    }

    .team-section__title {
        font-size: 28px;
        letter-spacing: 1.5px;
    }

    .team-section__subtitle {
        font-size: 14px;
    }

    .team-section__header {
        margin-bottom: 40px;
    }

    .team-members {
        gap: 50px;
    }

    /* Stack image and content vertically on mobile */
    .team-member,
    .team-member--image-left,
    .team-member--image-right {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .team-member__image-wrapper {
        flex: 0 0 auto;
        max-width: 300px;
        width: 100%;
    }

    .team-member__content {
        align-items: center;
    }

    .team-member__info {
        align-items: center;
    }

    .team-member__name-first {
        font-size: 24px;
    }

    .team-member__name-last {
        font-size: 28px;
        letter-spacing: 1.5px;
    }

    .team-member__job-title {
        font-size: 16px;
    }

    .team-member__description {
        font-size: 14px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .team-container {
        padding: 0 15px;
    }

    .team-section__title {
        font-size: 24px;
    }

    .team-member__name-first {
        font-size: 20px;
    }

    .team-member__name-last {
        font-size: 24px;
    }
}