/* ============================================================
   FSPL â€” Team Page
   team.css â€” Page-scoped styles
   All colors via CSS custom properties from site.css
   ============================================================ */

/* â”€â”€ Hero â”€â”€ */
.tm-hero {
    position: relative;
    background-color: var(--clr-primary-dark);
    background-image:
        linear-gradient(
            150deg,
            var(--clr-primary-overlay-strong) 0%,
            color-mix(in srgb, var(--clr-primary) 78%, transparent) 60%,
            color-mix(in srgb, var(--clr-primary-dark) 68%, transparent) 100%
        ),
        var(--tm-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0 120px;
    overflow: hidden;
}

/* Geometric grid texture */
.tm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--clr-accent) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--clr-accent) 6%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.tm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 5% 50%, color-mix(in srgb, var(--clr-primary) 60%, transparent) 0%, transparent 65%);
    pointer-events: none;
}

/* Floating orb right side */
.tm-hero-orb {
    position: absolute;
    right: -80px;
    top: -60px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--clr-accent) 22%, transparent) 0%, transparent 65%);
    pointer-events: none;
    animation: tm-orb-float 14s ease-in-out infinite;
}
.tm-hero-orb-2 {
    width: 240px; height: 240px;
    right: 200px; top: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation-delay: 4s;
    animation-duration: 10s;
}

@keyframes tm-orb-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-20px) rotate(5deg); }
    66%       { transform: translateY(12px) rotate(-3deg); }
}

.tm-hero-content {
    position: relative;
    z-index: 3;
}

.tm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.90);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-capsule);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    animation: tm-enter 0.6s ease both;
}
.tm-hero-eyebrow i {
    color: var(--clr-accent);
    font-size: 0.75rem;
}

.tm-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 18px;
    animation: tm-enter 0.7s ease 0.1s both;
}
.tm-hero-title .tm-highlight {
    position: relative;
    color: var(--clr-accent);
    display: inline-block;
}
.tm-hero-title .tm-highlight::before {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 3px;
    background: var(--clr-accent);
    border-radius: var(--radius-sharp);
    opacity: 0.6;
}

.tm-hero-sub {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.76);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 0;
    animation: tm-enter 0.7s ease 0.2s both;
}

.tm-hero-breadcrumb {
    margin-top: 28px;
    animation: tm-fade 0.8s ease 0.4s both;
}

.tm-hero-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.72);
}

    .tm-hero-breadcrumb .breadcrumb-item a:hover {
        color: #ffffff;
    }

.tm-hero-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.tm-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.38);
}

/* Wave at bottom */
.tm-hero-wave {
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; line-height: 0;
    z-index: 4;
}
.tm-hero-wave svg { display: block; width: 100%; }

/* â”€â”€ People Count Badge â”€â”€ */
.tm-count-bar {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    padding: 18px 0;
    position: relative;
    z-index: 3;
}
.tm-count-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.tm-count-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-primary);
}
.tm-count-txt {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
    font-weight: 500;
    line-height: 1.3;
}
.tm-count-sep {
    width: 1px; height: 40px;
    background: var(--clr-border);
    margin: 0 24px;
}

/* â”€â”€ Sections â”€â”€ */
.tm-section {
    padding: 96px 0;
    position: relative;
}
.tm-section-alt {
    background: var(--clr-light-bg);
    position: relative;
    overflow: hidden;
}

/* Curve separators */
.tm-curve-top {
    position: absolute;
    top: -2px; left: 0; width: 100%;
    line-height: 0; z-index: 1;
}
.tm-curve-bottom {
    position: absolute;
    bottom: -2px; left: 0; width: 100%;
    line-height: 0; z-index: 1;
}
.tm-curve-top svg, .tm-curve-bottom svg { display: block; width: 100%; }
.tm-section-inner { position: relative; z-index: 2; }

/* â”€â”€ Section Header â”€â”€ */
.tm-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 12px;
}
.tm-section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--clr-accent);
    border-radius: var(--radius-sharp);
    flex-shrink: 0;
}

.tm-section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.2;
    margin-bottom: 12px;
}
.tm-section-intro {
    font-size: var(--fs-base);
    color: var(--clr-text-light);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 0;
}

/* â”€â”€ Leadership Cards (large, portrait style) â”€â”€ */
.tm-leader-card {
    position: relative;
    background: var(--clr-white);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    height: 100%;
}
.tm-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--clr-primary) 15%, transparent);
    border-color: var(--clr-accent);
}

.tm-leader-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    background: var(--clr-light-bg);
}
.tm-leader-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(var(--fspl-image-scale, 1));
    transition: transform var(--t-slow);
    display: block;
}
.tm-leader-card:hover .tm-leader-photo-wrap img {
    transform: scale(calc(var(--fspl-image-scale, 1) * 1.04));
}

.tm-leader-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-light-bg), color-mix(in srgb, var(--clr-accent) 8%, transparent));
    font-size: 3.5rem;
    color: var(--clr-accent);
    opacity: 0.5;
}

/* Accent ribbon top-left */
.tm-leader-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
    z-index: 2;
    border-radius: 0 0 4px 0;
    opacity: 0;
    transition: opacity var(--t-base);
}
.tm-leader-card:hover::before { opacity: 1; }

.tm-leader-body {
    padding: 24px 24px 26px;
}
.tm-leader-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 6px;
    line-height: 1.2;
}
.tm-leader-designation {
    font-size: var(--fs-sm);
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 4px;
}
.tm-leader-dept {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
    background: var(--clr-light-bg);
    border: 1px solid var(--clr-border);
    padding: 3px 9px;
    border-radius: var(--radius-capsule);
    margin-bottom: 10px;
}
.tm-leader-bio {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* â”€â”€ Team Member Cards (compact grid) â”€â”€ */
.tm-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tm-member-card {
    background: var(--clr-white);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
}
.tm-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px color-mix(in srgb, var(--clr-primary) 12%, transparent);
    border-color: var(--clr-accent);
}

.tm-member-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--clr-light-bg);
}
.tm-member-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform: scale(var(--fspl-image-scale, 1));
    transition: transform var(--t-slow);
}
.tm-member-card:hover .tm-member-photo-wrap img {
    transform: scale(calc(var(--fspl-image-scale, 1) * 1.06));
}

.tm-member-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-light-bg), color-mix(in srgb, var(--clr-accent) 10%, transparent));
    font-size: 2.8rem;
    color: var(--clr-accent);
    opacity: 0.45;
}

/* Gradient overlay on hover for photo */
.tm-member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--clr-primary) 75%, transparent) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--t-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
}
.tm-member-card:hover .tm-member-overlay { opacity: 1; }
.tm-member-overlay-icon {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.85;
}

.tm-member-body {
    padding: 18px 16px 20px;
}
.tm-member-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.tm-member-role {
    font-size: var(--fs-xs);
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 6px;
}
.tm-member-bio {
    font-size: var(--fs-xs);
    color: var(--clr-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* â”€â”€ Values strip inside alt section â”€â”€ */
.tm-value-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    margin-top: 56px;
}
.tm-value-cell {
    background: var(--clr-white);
    padding: 28px 24px;
    text-align: center;
    transition: background var(--t-base);
}
.tm-value-cell:hover { background: color-mix(in srgb, var(--clr-accent) 4%, transparent); }

.tm-value-icon {
    font-size: 1.6rem;
    color: var(--clr-accent);
    margin-bottom: 10px;
    display: block;
}
.tm-value-title {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--clr-text);
    margin-bottom: 4px;
}
.tm-value-desc {
    font-size: var(--fs-xs);
    color: var(--clr-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes tm-enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tm-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tm-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.tm-reveal.tm-visible {
    opacity: 1;
    transform: none;
}
.tm-reveal-delay-1 { transition-delay: 80ms; }
.tm-reveal-delay-2 { transition-delay: 160ms; }
.tm-reveal-delay-3 { transition-delay: 240ms; }
.tm-reveal-delay-4 { transition-delay: 320ms; }
.tm-reveal-delay-5 { transition-delay: 400ms; }
.tm-reveal-delay-6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    .tm-reveal { opacity: 1; transform: none; transition: none; }
    .tm-hero-orb { animation: none; }
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 991.98px) {
    .tm-value-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .tm-hero { padding: 72px 0 100px; }
    .tm-section { padding: 64px 0; }
    .tm-member-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-count-sep { display: none; }
    .tm-value-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .tm-member-grid { grid-template-columns: 1fr; }
}
