/*
 * Leader Guyana – Meet the Team Page
 * page-team-lg.css  |  leader-child/css/
 */

/* ══════════════════════════════════════════════════════════
   PARENT THEME RESETS
   ══════════════════════════════════════════════════════════ */
.page-template-page-team-lg .site-main,
.page-template-page-team-lg main,
.page-template-page-team-lg .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.page-template-page-team-lg .entry-header { display: none !important; }
.page-template-page-team-lg hr { display: none !important; }

/* ══════════════════════════════════════════════════════════
   SHARED TOKENS — blue for LG
   ══════════════════════════════════════════════════════════ */
:root {
    --lg: #00a8b5;
    --lg-dark: #005a96;
    --lg-navy: #242f3a;
}

.lg-team__eyebrow {
    font-family: var(--font);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--lg);
    display: inline-block;
    border-left: 3px solid var(--lg);
    padding-left: .75rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(0,168,181,.45);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.lg-team-hero {
    position: relative;
    padding: clamp(4rem, 6vw, 5rem) 0 clamp(3.5rem, 5vw, 4.5rem);
    overflow: hidden; z-index: 1;
    background: var(--lg-navy);
    display: flex; align-items: flex-end;
}

.lg-team-hero__bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none; z-index: 1;
}

.lg-team-hero__bg-glow {
    position: absolute; top: -10%; left: -5%;
    width: 40vw; height: 40vw;
    max-width: 480px; max-height: 480px;
    background: radial-gradient(circle, rgba(0,168,181,.10) 0%, transparent 65%);
    pointer-events: none; z-index: 1;
}

.lg-team-hero__bg-image {
    position: absolute; top: 0; right: 0;
    width: 55%; height: 100%;
    background-size: cover; background-position: center 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    pointer-events: none; z-index: 2;
}


.lg-team-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: -1px; right: -1px;
    height: 102px;
    background: #111c26;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none; z-index: 10;
}

.lg-team-hero__inner {
    position: relative; z-index: 3;
    width: 100%; max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px clamp(1.5rem, 3vw, 2.5rem);
}

.lg-team-hero__content { max-width: 660px; }

.lg-team-hero__eyebrow {
    font-family: var(--font);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--lg);
    display: inline-block;
    border-left: 3px solid var(--lg);
    padding-left: .75rem; margin-bottom: 1.4rem;
}

.lg-team-hero__headline {
    font-family: var(--font) !important;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem) !important;
    font-weight: 700 !important; line-height: 1.06 !important;
    color: #ffffff !important;
    margin: 0 0 1.1rem !important; padding: 0 !important;
    letter-spacing: -.02em;
    border: none !important; background: none !important;
}

.lg-team-hero__sub {
    font-family: var(--font);
    font-size: clamp(.95rem, 1.8vw, 1.08rem);
    color: rgba(255,255,255,.68);
    max-width: 520px; line-height: 1.78;
}

/* ══════════════════════════════════════════════════════════
   TRUST STRIP
   ══════════════════════════════════════════════════════════ */
.lg-team-trust {
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    position: relative; z-index: 20;
}

.lg-team-trust__inner {
    max-width: 1280px; margin: 0 auto;
    padding: 28px 32px;
    display: flex; align-items: center; gap: 0;
}

.lg-team-trust__item {
    display: flex; align-items: center; gap: 14px;
    flex: 1; padding: 4px 24px;
}
.lg-team-trust__item:first-child { padding-left: 0; }
.lg-team-trust__item:last-child  { padding-right: 0; }

.lg-team-trust__icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; flex-shrink: 0;
}
.lg-team-trust__icon svg { width: 18px; height: 18px; display: block; }

.lg-team-trust__item strong { display: block; font-family: var(--font); font-size: .88rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
.lg-team-trust__item span   { display: block; font-family: var(--font); font-size: .75rem; color: rgba(255,255,255,.72); line-height: 1.4; margin-top: 2px; }

.lg-team-trust__divider { width: 1px; height: 40px; background: rgba(255,255,255,.22); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   MAIN SECTION
   ══════════════════════════════════════════════════════════ */
.lg-team-main {
    background: #111c26;
    padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(5rem, 8vw, 7rem);
    position: relative; z-index: 20;
}

.lg-team-main::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none; z-index: 0;
}

.lg-team-main__inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    position: relative; z-index: 1;
}

.lg-team-main__header {
    max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lg-team-main__title {
    font-family: var(--font) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    font-weight: 700 !important; color: #ffffff !important;
    line-height: 1.15 !important;
    margin: 0 0 1rem !important; padding: 0 !important; border: none !important;
}

.lg-team-main__intro {
    font-family: var(--font);
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,.55); line-height: 1.78; margin: 0;
}

/* ══════════════════════════════════════════════════════════
   TEAM GRID
   — 4-col desktop → 2-col tablet → 1-col mobile
   — Scales cleanly to 8 or 12 cards
   ══════════════════════════════════════════════════════════ */
.lg-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   TEAM CARD
   ══════════════════════════════════════════════════════════ */
.lg-team-card {
    background: #1a2b3c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-top: 3px solid var(--lg);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.lg-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.40), 0 0 0 1px rgba(0,168,181,.45);
    border-top-color: #5ab0e8;
}

/* Photo */
.lg-team-card__photo-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--lg-navy);
}

.lg-team-card__photo {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    transition: transform .4s ease;
}
.lg-team-card:hover .lg-team-card__photo { transform: scale(1.04); }

.lg-team-card__photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(36,47,58,.70) 100%);
    transition: opacity .25s ease;
}
.lg-team-card:hover .lg-team-card__photo-overlay { opacity: .6; }

/* Badge icon */
.lg-team-card__badge {
    position: absolute; bottom: 1rem; right: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,168,181,.35);
}
.lg-team-card__badge svg { width: 16px; height: 16px; display: block; }

.lg-team-card__badge--group { background: var(--lg-navy); box-shadow: 0 2px 8px rgba(36,47,58,.35); }

/* Body */
.lg-team-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex; flex-direction: column; gap: 0; flex: 1;
}

/* Fixed-height header block — role + name + optional group tag
   All cards align the divider at the same vertical position */
.lg-team-card__header-block {
    min-height: 3rem;
    display: flex; flex-direction: column;
    justify-content: flex-start;
    gap: .3rem;
    margin-bottom: .5rem;
}

.lg-team-card__role {
    font-family: var(--font);
    font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--lg);
    min-height: 2.2em;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.lg-team-card__name {
    font-family: var(--font) !important;
    font-size: 1.15rem !important; font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 !important; padding: 0 !important; border: none !important;
}

.lg-team-card__group-tag {
    display: inline-block;
    font-family: var(--font); font-size: .68rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    padding: .2rem .55rem;
    align-self: flex-start;
    margin-top: .5rem;
}

.lg-team-card__divider {
    width: 32px; height: 2px;
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    border-radius: 2px;
    margin: 0 0 .85rem;
    flex-shrink: 0;
}

.lg-team-card__bio {
    font-family: var(--font);
    font-size: .875rem; color: rgba(255,255,255,.52); line-height: 1.7;
    margin: 0; flex: 1;
}

.lg-team-card__cta {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font); font-size: .75rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--lg); text-decoration: none;
    margin-top: 1.1rem; align-self: flex-start;
    transition: gap .2s ease, color .2s ease;
}
.lg-team-card__cta svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s ease; }
.lg-team-card:hover .lg-team-card__cta { gap: .7rem; color: var(--lg-dark); }
.lg-team-card:hover .lg-team-card__cta svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   OUR PEOPLE SECTION
   ══════════════════════════════════════════════════════════ */
.lg-team-people {
    background: #111c26;
    padding: 0 0 clamp(5rem, 8vw, 7rem);
    position: relative; z-index: 20;
}

.lg-team-people::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,168,181,.4) 30%, rgba(0,168,181,.4) 70%, transparent);
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.lg-team-people__header {
    max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ══════════════════════════════════════════════════════════
   WIDER TEAM STRIP
   ══════════════════════════════════════════════════════════ */
.lg-team-wider {
    background: #111d28;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.lg-team-wider__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.lg-team-wider__text {
    flex: 1;
    min-width: 260px;
}
.lg-team-wider__title {
    font-family: var(--font) !important;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: .35rem 0 .75rem !important;
    padding: 0 !important; border: none !important;
    line-height: 1.2 !important;
}
.lg-team-wider__body {
    font-family: var(--font);
    font-size: .92rem;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
    max-width: 600px;
    margin: 0;
}
@media (max-width: 680px) {
    .lg-team-wider__inner { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════════════════════ */
.lg-team-cta {
    background: #0d1720 !important;
    border-top: 3px solid var(--lg) !important;
    position: relative !important; text-align: center !important;
    padding: clamp(4rem, 7vw, 6rem) 0 !important;
}
.lg-team-cta .lg-cta__title  { color: #ffffff !important; }
.lg-team-cta .lg-cta__body   { color: rgba(255,255,255,.65) !important; }
.lg-team-cta .btn--primary   { background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) !important; border-color: var(--lg) !important; color: #ffffff !important; }
.lg-team-cta .btn--ghost-white { border-color: rgba(255,255,255,.4) !important; color: #ffffff !important; background: transparent !important; }

/* ══════════════════════════════════════════════════════════
   AOS ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.lg-team-main__header.aos,
.lg-team-card.aos-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.lg-team-card.aos-card { transition-duration: .5s; }
.lg-team-card.aos-delay-1 { transition-delay: .10s; }
.lg-team-card.aos-delay-2 { transition-delay: .20s; }
.lg-team-card.aos-delay-3 { transition-delay: .30s; }

.lg-team-main__header.aos.aos-in,
.lg-team-card.aos-card.aos-in {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .lg-team-grid { grid-template-columns: repeat(2, 1fr); }
    .lg-team-card__photo-wrap { height: 320px; }
    .lg-team-card__photo { background-position: center 20%; }
}

@media (max-width: 860px) {
    .lg-team-trust__inner { flex-direction: column; gap: 1.25rem; padding: 28px 24px; }
    .lg-team-trust__item { padding: 0; }
    .lg-team-trust__divider { display: none; }
}

@media (max-width: 560px) {
    .lg-team-grid { grid-template-columns: 1fr; }
    .lg-team-hero__inner,
    .lg-team-main__inner { padding-left: 20px; padding-right: 20px; }
    .lg-team-card__photo-wrap { height: 360px; }
    .lg-team-hero::after { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-team-card,
    .lg-team-card__photo,
    .lg-team-card__cta,
    .lg-team-card__cta svg { transition: none; }
}

/* ── LE teal→blue gradient accents (overrides solid teal) ───────────── */
.lg-team__eyebrow,
.lg-team-hero__eyebrow,
.lg-team-card__role,
.lg-team-card__cta {
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1;
}
/* keep the CTA arrow visible (svg uses currentColor → force teal stroke) */
.lg-team-card__cta svg { -webkit-text-fill-color: initial; color: #00a8b5; }

/* Card top accent → gradient bar over the solid teal border (keeps 1px side borders) */
.lg-team-card { position: relative; }
.lg-team-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    border-radius: 12px 12px 0 0; z-index: 3; pointer-events: none;
}
/* CTA section top border (top-only) → gradient */
.lg-team-cta  { border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1 !important; }

/* Hover feedback: stronger gradient lift on the card */
.lg-team-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,.40), 0 0 0 1px rgba(0,112,185,.55);
}
.lg-team-card:hover .lg-team-card__cta { color: transparent; }
