﻿.team-page {
    width: 100%;
    background: var(--kcl-surface-soft);
    padding: 0;
    font-family: Inter, sans-serif;
    overflow-x: hidden;
    margin-top: 40px;
}

.section-block {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.container {
    width: 88%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* INTRO SECTION (same as products page) */
.intro-section {
    background: var(--kcl-surface-soft);
    margin-top: 40px;
    border-radius: var(--kcl-radius-xxl) var(--kcl-radius-xxl) var(--kcl-radius-xxl) var(--kcl-radius-xxl);
    padding: 30px 0 60px;
    position: relative;
    z-index: 4;
    box-shadow: var(--kcl-shadow-bottom);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--kcl-primary);
    background: color-mix(in srgb, var(--kcl-primary) 8%, transparent);
    padding: 0.3rem 0.9rem;
    border-radius: var(--kcl-radius-pill);
}

.intro-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--kcl-text);
}

.accent-text {
    color: var(--kcl-primary);
}

/* Ethos card – exactly like products page */
.ethos-card {
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-lg);
    padding: 2rem;
    box-shadow: var(--kcl-shadow-bottom);
    border: 1px solid color-mix(in srgb, var(--kcl-border) 30%, transparent);
    transition: transform 0.35s ease, background 0.35s ease;
    margin-top: 38px;
    overflow-wrap: break-word;
    word-break: break-word;
}

    .ethos-card:hover {
        transform: translateY(-5px);
        background: #dbdbdb; /* service / products page hover color */
    }

    .ethos-card .ethos-text {
        margin-bottom: 0.75rem;
    }

    .ethos-card .row.g-4.my-4 {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        --bs-gutter-y: 0.5rem;
    }

        .ethos-card .row.g-4.my-4 > [class*="col-"] {
            margin-bottom: 0.25rem;
        }

/* Stats group – same as products */
.stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-md);
    padding: 1.2rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-bottom), 0 -6px 12px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid color-mix(in srgb, var(--kcl-border) 30%, transparent);
    cursor: default;
    overflow-wrap: break-word;
    word-break: break-word;
}

    .stat-item:hover {
        transform: translateY(-5px);
        background: #dbdbdb;
    }

.stat-icon-circle {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--kcl-primary) 8%, transparent);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .stat-icon-circle i {
        font-size: 1.3rem;
        color: var(--kcl-primary);
    }

.stat-item div:last-child {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--kcl-text-muted);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--kcl-text);
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 768px) {
    .stats-group {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }
}

/* TEAM GRID SECTION – full cover images, glass hover panel */
.team-grid-section {
    background: var(--kcl-surface);
    border-bottom-left-radius: var(--kcl-radius-xxl);
    border-bottom-right-radius: var(--kcl-radius-xxl);
    padding: 140px 0 120px;
    position: relative;
    z-index: 3;
    box-shadow: var(--kcl-shadow-bottom);
    margin-top: -80px;
    padding-bottom:60px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 54px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--kcl-text);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--kcl-text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-member-card {
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .team-member-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--kcl-shadow-md);
    }

.card-pocket {
    background: var(--kcl-surface-soft);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.card-front {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    width: 100%;
}

.team-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

    .team-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Dark gradient for name readability */
.card-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.card-front h4 {
    position: relative;
    z-index: 2;
    color: white;
    padding: 1rem 0.5rem 0.8rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Glass hover panel – dark, blur, white text */
.card-hover-reveal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px 24px;
    text-align: center;
    border-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.team-member-card:hover .card-hover-reveal {
    transform: translateY(0);
}

/* Prevent image shake on hover */
.team-member-card:hover .card-front,
.team-member-card:hover .card-pocket {
    transform: none;
}

/* Role badge inside hover panel – white text */
.card-hover-reveal .team-role {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white !important;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin: 0.5rem 0 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Social links inside hover panel – white icons */
.card-hover-reveal .team-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .card-hover-reveal .team-social-links a {
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        transition: all 0.25s ease;
        text-decoration: none;
        font-size: 1.2rem;
        border: none;
    }

        .card-hover-reveal .team-social-links a:hover {
            background: var(--kcl-primary);
            color: var(--kcl-surface) !important;
            transform: translateY(-3px);
        }

/* Default styles (outside hover) */
.team-role {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin: 0.5rem 0 1rem;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .team-social-links a {
        width: 42px;
        height: 42px;
        background: rgba(0, 0, 0, 0.08);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #222;
        transition: all 0.25s ease;
        text-decoration: none;
        font-size: 1.2rem;
        border: none;
    }

        .team-social-links a:hover {
            background: var(--kcl-primary);
            color: white;
            transform: translateY(-3px);
        }

/* MODAL – same as products page */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

    .team-modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal-card {
    width: 480px;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    background: var(--kcl-surface);
    border-radius: var(--kcl-radius-lg);
    box-shadow: var(--kcl-shadow-md);
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.2), opacity 0.25s ease;
}

.team-modal.active .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-inner {
    padding: 1.8rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    border-bottom: 1px solid var(--kcl-border);
    padding-bottom: 1rem;
}

.modal-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--kcl-primary);
}

.modal-title h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--kcl-text);
}

.modal-role-badge {
    background: color-mix(in srgb, var(--kcl-primary) 12%, transparent);
    color: var(--kcl-primary);
    display: inline-block;
    padding: 0.2rem 0.9rem;
    border-radius: var(--kcl-radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-bio {
    background: var(--kcl-surface-soft);
    padding: 0.9rem 1.1rem;
    border-radius: var(--kcl-radius-md);
    font-size: 0.85rem;
    border-left: 4px solid var(--kcl-primary);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--kcl-text-soft);
}

    .detail-item i {
        width: 24px;
        color: var(--kcl-primary);
    }

.close-modal-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: var(--kcl-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.05);
}

/* CTA SECTION – same as products */
.cta-team-section {
    background: var(--kcl-surface-soft);
    margin-top: -70px;
    border-radius: var(--kcl-radius-xxl);
    padding: 140px 0 110px;
    position: relative;
    z-index: 2;
    padding-bottom:40px;
    padding-top:80px;
}

.cta-icon-wrap {
    width: 95px;
    height: 95px;
    background: var(--kcl-surface);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--kcl-primary);
    box-shadow: var(--kcl-shadow-sm);
}

.cta-team-section h2 {
    font-size: 68px;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--kcl-text);
    margin-bottom: 20px;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-dark, .btn-light {
    padding: 16px 34px;
    border-radius: var(--kcl-radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--kcl-shadow-sm);
}

.btn-dark {
    background: var(--kcl-text);
    color: var(--kcl-surface);
}

    .btn-dark:hover {
        transform: translateY(-3px);
        background: #000;
        box-shadow: 0 12px 25px rgba(0,0,0,0.18);
        color: #fff;
    }

.btn-light {
    background: var(--kcl-surface);
    color: var(--kcl-text);
    border: 1px solid var(--kcl-border);
}

    .btn-light:hover {
        transform: translateY(-3px);
        background: #25D366;
        color: white;
        box-shadow: 0 12px 25px rgba(0,0,0,0.10);
    }


/* Modal social icons - fix size and spacing */
.modal-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

    .modal-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--kcl-surface-soft);
        border-radius: 50%;
        color: var(--kcl-text);
        font-size: 1.4rem;
        transition: all 0.25s ease;
        text-decoration: none;
    }

        .modal-social a:hover {
            background: var(--kcl-primary);
            color: white;
            transform: translateY(-3px);
        }

/* Optional: adjust for smaller screens */
@media (max-width: 480px) {
    .modal-social a {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .modal-social {
        gap: 0.8rem;
    }
}

/* Skill tags styling for modal */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.skill-tag {
    display: inline-block;
    background: color-mix(in srgb, var(--kcl-primary) 10%, transparent);
    color: var(--kcl-primary);
    padding: 0.3rem 0.9rem;
    border-radius: var(--kcl-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* RESPONSIVE (iPad + mobile) */
@media (max-width: 1200px) {
    .intro-section {
        border-radius: 30px 30px 30px 30px !important;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-section {
        border-radius: 30px;
    }

    .cta-team-section {
        border-radius: 30px;
    }

    .card-front {
        aspect-ratio: 2/3;
    }
}

/* iPad Air & Mini text overflow fix */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 92%;
        padding: 0 0.75rem;
    }

    .ethos-card {
        padding: 1.5rem;
        word-break: break-word;
    }

        .ethos-card .ethos-text,
        .ethos-card .check-item,
        .ethos-card .quote-block em {
            font-size: 0.9rem;
            line-height: 1.4;
        }

    .stats-group {
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.8rem 0.6rem;
        gap: 0.6rem;
    }

    .stat-value {
        font-size: 1rem;
        white-space: normal;
        word-break: break-word;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stat-icon-circle {
        width: 40px;
        height: 40px;
    }

        .stat-icon-circle i {
            font-size: 1.2rem;
        }
}

@media (min-width: 800px) and (max-width: 850px) {
    .stat-value {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .ethos-card .check-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .intro-section {
        border-radius: 20px 20px 20px 20px !important;
        padding: 20px 0 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-grid-section {
        border-radius: 20px;
        padding: 100px 0 80px;
    }

    .cta-team-section {
        border-radius: 20px;
        padding: 100px 0 80px;
    }

    .card-front {
        aspect-ratio: 3/4;
    }

    .card-hover-reveal .team-social-links a,
    .team-social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .cta-team-section h2 {
        font-size: 38px;
    }

    .section-title {
        font-size: 36px;
    }

    .card-front h4 {
        font-size: 1rem;
    }

    .container {
        width: 90%;
        padding: 0 0.5rem;
    }

    .ethos-card {
        padding: 1.2rem;
    }
}
/* Mobile text size increase – add this to your existing CSS */
@media (max-width: 768px) {
    /* Intro section */
    .intro-title {
        font-size: 2.2rem !important;
    }

    .intro-lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    /* Ethos card */
    .ethos-card h3 {
        font-size: 1.5rem !important;
    }

    .ethos-card .ethos-text,
    .ethos-card .check-item,
    .ethos-card .quote-block em {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    /* Stats */
    .stat-label {
        font-size: 0.8rem !important;
    }

    .stat-value {
        font-size: 1.2rem !important;
    }

    /* Section headers */
    .section-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    /* Team member name */
    .card-front h4 {
        font-size: 1.2rem !important;
    }

    /* Role badge on hover */
    .card-hover-reveal .team-role {
        font-size: 0.85rem !important;
        padding: 0.4rem 1rem !important;
    }

    /* CTA heading */
    .cta-team-section h2 {
        font-size: 2rem !important;
    }

    .cta-team-section p {
        font-size: 1rem !important;
    }
}