/* =========================================
   HAPPY CHILD — TEAM PAGE
   Mobile First
   ========================================= */

.hc2-team {
    --hc2-team-bg: #f1faff;
    --hc2-team-white: #ffffff;
    --hc2-team-navy: #102b50;
    --hc2-team-text: #42536b;
    --hc2-team-muted: #71829a;
    --hc2-team-blue: #009ed5;
    --hc2-team-blue-dark: #008bc3;
    --hc2-team-orange: #ff6500;
    --hc2-team-pink: #ff6b82;

    background: var(--hc2-team-bg);
    padding: 64px 0 72px;
    font-family: "Montserrat", sans-serif;
    color: var(--hc2-team-navy);
}

.hc2-team,
.hc2-team *,
.hc2-team *::before,
.hc2-team *::after {
    box-sizing: border-box;
}

/* =========================================
   CONTAINER
   ========================================= */

.hc2-team .hc2-team__container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */

.hc2-team .hc2-team__header {
    position: relative;
    margin-bottom: 36px;
}

.hc2-team .hc2-team__heading {
    position: relative;
    z-index: 1;
}

.hc2-team .hc2-team__eyebrow {
    margin: 0 0 12px;
    color: var(--hc2-team-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.hc2-team .hc2-team__title {
    margin: 0;
    color: var(--hc2-team-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.hc2-team .hc2-team__subtitle {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--hc2-team-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

/* Decorative circle */

.hc2-team .hc2-team__decoration {
    display: none;
}

/* =========================================
   CARDS GRID
   ========================================= */

.hc2-team .hc2-team__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

/* =========================================
   TEAM CARD
   ========================================= */

.hc2-team .hc2-team__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: var(--hc2-team-white);
    border: 1px solid rgba(15, 55, 95, 0.05);
    border-radius: 22px;

    box-shadow: 0 10px 30px rgba(31, 82, 121, 0.035);
}

/* Photo */

.hc2-team .hc2-team__photo {
    width: 100%;
    overflow: hidden;
    background: #e7f4fb;
}

.hc2-team .hc2-team__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

/* Content */

.hc2-team .hc2-team__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    padding: 26px 24px 30px;
}

.hc2-team .hc2-team__name {
    margin: 0 0 6px;
    color: var(--hc2-team-navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.hc2-team .hc2-team__position {
    margin: 0 0 18px;
    color: var(--hc2-team-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Biography */

.hc2-team .hc2-team__bio {
    width: 100%;
    color: var(--hc2-team-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.hc2-team .hc2-team__bio p {
    margin: 0 0 14px;
}

.hc2-team .hc2-team__bio p:last-child {
    margin-bottom: 0;
}

/* =========================================
   DIRECTOR CARD
   ========================================= */

.hc2-team .hc2-team__card--director {
    border-color: rgba(255, 107, 130, 0.4);
    box-shadow: 0 10px 30px rgba(255, 107, 130, 0.07);
}

.hc2-team .hc2-team__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 12px;
    padding: 6px 14px;

    border-radius: 100px;
    background: var(--hc2-team-pink);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================
   CTA
   ========================================= */

.hc2-team .hc2-team__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;

    margin-top: 40px;
    padding: 30px 24px;

    background: #e2f6ff;
    border-radius: 24px;
}

.hc2-team .hc2-team__cta-decoration {
    display: none;
}

.hc2-team .hc2-team__cta-content {
    flex: 1;
    min-width: 0;
}

.hc2-team .hc2-team__cta-title {
    margin: 0 0 10px;
    color: var(--hc2-team-navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.hc2-team .hc2-team__cta-text {
    margin: 0;
    color: var(--hc2-team-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.hc2-team .hc2-team__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
    min-height: 52px;
    padding: 14px 22px;

    border: 0;
    border-radius: 100px;

    background: var(--hc2-team-blue);
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hc2-team .hc2-team__cta-button:hover {
    background: var(--hc2-team-blue-dark);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 158, 213, 0.2);
}

.hc2-team .hc2-team__cta-button:focus-visible {
    outline: 3px solid var(--hc2-team-orange);
    outline-offset: 4px;
}

.hc2-team .hc2-team__cta-button svg {
    display: block;
    flex: 0 0 auto;
}

/* =========================================
   TABLET — 768px+
   ========================================= */

@media (min-width: 768px) {

    .hc2-team {
        padding: 80px 0 90px;
    }

    .hc2-team .hc2-team__container {
        padding: 0 32px;
    }

    .hc2-team .hc2-team__header {
        margin-bottom: 44px;
    }

    .hc2-team .hc2-team__eyebrow {
        font-size: 13px;
    }

    .hc2-team .hc2-team__title {
        font-size: 36px;
    }

    .hc2-team .hc2-team__subtitle {
        font-size: 16px;
    }

    .hc2-team .hc2-team__grid {
        gap: 28px;
    }

    .hc2-team .hc2-team__card {
        flex-direction: row;
        align-items: stretch;
        border-radius: 24px;
    }

    .hc2-team .hc2-team__photo {
        flex: 0 0 35%;
        width: 35%;
        height: auto;
    }

    .hc2-team .hc2-team__content {
        padding: 30px;
    }

    .hc2-team .hc2-team__name {
        font-size: 23px;
    }

    .hc2-team .hc2-team__position {
        font-size: 15px;
    }

    .hc2-team .hc2-team__bio {
        font-size: 15px;
    }

    .hc2-team .hc2-team__cta {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        padding: 34px;
    }

    .hc2-team .hc2-team__cta-title {
        font-size: 24px;
    }

    .hc2-team .hc2-team__cta-button {
        flex: 0 0 auto;
        width: auto;
        min-width: 230px;
    }
}

/* =========================================
   DESKTOP — 1200px+
   ========================================= */

@media (min-width: 1200px) {

    .hc2-team {
        padding: 90px 0 100px;
    }

    .hc2-team .hc2-team__container {
        padding: 0 40px;
    }

    .hc2-team .hc2-team__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        min-height: 180px;
        margin-bottom: 50px;
    }

    .hc2-team .hc2-team__title {
        font-size: 42px;
    }

    .hc2-team .hc2-team__subtitle {
        font-size: 17px;
    }

    .hc2-team .hc2-team__decoration {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 210px;

        width: 210px;
        height: 210px;
        border-radius: 50%;

        background: #fff1de;
        transform: rotate(-9deg);
    }

    .hc2-team .hc2-team__decoration span {
        color: var(--hc2-team-orange);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.6;
        text-align: center;
    }

    .hc2-team .hc2-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .hc2-team .hc2-team__card {
        min-height: 340px;
    }

    .hc2-team .hc2-team__photo {
        flex-basis: 34%;
        width: 34%;
        min-height: 340px;
    }

    .hc2-team .hc2-team__content {
        padding: 30px 26px;
    }

    .hc2-team .hc2-team__name {
        font-size: 21px;
    }

    .hc2-team .hc2-team__position {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .hc2-team .hc2-team__bio {
        font-size: 13px;
        line-height: 1.7;
    }

    .hc2-team .hc2-team__bio p {
        margin-bottom: 12px;
    }

    .hc2-team .hc2-team__cta {
        gap: 36px;
        margin-top: 48px;
        padding: 36px 44px;
        border-radius: 28px;
    }

    .hc2-team .hc2-team__cta-decoration {
        display: block;
        flex: 0 0 90px;

        color: var(--hc2-team-orange);
        font-size: 76px;
        line-height: 1;
        text-align: center;
    }

    .hc2-team .hc2-team__cta-button {
        min-width: 260px;
    }
}

/* =========================================
   LARGE DESKTOP — 1400px+
   ========================================= */

@media (min-width: 1400px) {

    .hc2-team {
        padding: 100px 0 110px;
    }

    .hc2-team .hc2-team__container {
        padding: 0 48px;
    }

    .hc2-team .hc2-team__title {
        font-size: 46px;
    }

    .hc2-team .hc2-team__subtitle {
        font-size: 18px;
    }

    .hc2-team .hc2-team__grid {
        gap: 36px;
    }

    .hc2-team .hc2-team__card {
        min-height: 390px;
        border-radius: 26px;
    }

    .hc2-team .hc2-team__photo {
        flex-basis: 36%;
        width: 36%;
        min-height: 390px;
    }

    .hc2-team .hc2-team__content {
        padding: 36px 30px;
    }

    .hc2-team .hc2-team__name {
        font-size: 24px;
    }

    .hc2-team .hc2-team__position {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .hc2-team .hc2-team__bio {
        font-size: 15px;
        line-height: 1.75;
    }

    .hc2-team .hc2-team__badge {
        font-size: 13px;
    }

    .hc2-team .hc2-team__cta-title {
        font-size: 26px;
    }

    .hc2-team .hc2-team__cta-text {
        font-size: 15px;
    }

    .hc2-team .hc2-team__cta-button {
        min-width: 290px;
        font-size: 14px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .hc2-team .hc2-team__cta-button {
        transition: none;
    }
}
