/* =========================================================
   CHURCH TEAM & ELDERS — premium responsive page styles
   Main theme: Celestial purple with warm gold accents
   ========================================================= */
.church-team-page {
    --team-purple: #7a1d7c;
    --team-purple-dark: #35103d;
    --team-purple-deep: #210b29;
    --team-gold: #d6ad62;
    --team-gold-light: #f0dba7;
    --team-ink: #241c2a;
    --team-muted: #766e7a;
    --team-line: #eee8f0;
    color: var(--team-ink);
    overflow: hidden;
    background: #fff;
}
.church-team-page * { box-sizing: border-box; }
.church-team-page .shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Hero */
.team-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    color: #fff;
    background: radial-gradient(ellipse at 78% 45%, rgba(122,29,124,.48), transparent 38%), linear-gradient(118deg, #210b29 0%, #35103d 53%, #4d1854 100%);
}
.team-hero::before {
    position: absolute; z-index: -1; inset: 0; content: "";
    opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, #000, transparent 90%);
}
.team-hero-inner { position: relative; min-height: 430px; padding-top: 26px; padding-bottom: 42px; }
.team-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .025em; }
.team-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s ease; }
.team-breadcrumb a:hover { color: var(--team-gold-light); }
.team-breadcrumb > i { color: var(--team-gold); font-size: 10px; }
.team-breadcrumb [aria-current="page"] { color: #fff; }
.team-hero-content { position: relative; z-index: 2; max-width: 690px; padding-top: 60px; }
.team-eyebrow, .team-section-kicker { display: inline-flex; align-items: center; gap: 11px; color: var(--team-gold-light); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.team-eyebrow > span { width: 24px; height: 1px; background: var(--team-gold); }
.team-hero h1 { margin: 19px 0 17px; max-width: 720px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 5.3vw, 70px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.team-hero h1 em, .team-section-heading h2 em { color: var(--team-gold-light); font-weight: 400; }
.team-hero-content > p { max-width: 580px; margin: 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.9; }
.team-hero-cta { display: inline-flex; align-items: center; gap: 25px; margin-top: 28px; padding: 13px 17px 13px 20px; border: 1px solid rgba(240,219,167,.55); border-radius: 3px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.team-hero-cta i { color: var(--team-gold-light); font-size: 16px; }
.team-hero-cta:hover { color: var(--team-purple-deep); background: var(--team-gold-light); transform: translateY(-2px); }
.team-hero-cta:hover i { color: var(--team-purple-deep); }
.team-hero-glow { position: absolute; z-index: -1; border: 1px solid rgba(240,219,167,.14); border-radius: 50%; pointer-events: none; }
.team-hero-glow-one { width: 460px; height: 460px; top: -100px; right: -75px; box-shadow: 0 0 0 35px rgba(255,255,255,.018), 0 0 0 75px rgba(255,255,255,.015); }
.team-hero-glow-two { width: 270px; height: 270px; top: -4px; right: 20px; border-color: rgba(240,219,167,.1); }
.team-hero-mark { position: absolute; top: 108px; right: 75px; display: grid; place-items: center; width: 220px; height: 220px; color: var(--team-gold-light); }
.team-hero-mark > i { position: relative; z-index: 2; display: grid; place-items: center; width: 104px; height: 104px; border: 1px solid rgba(240,219,167,.65); border-radius: 50%; background: rgba(255,255,255,.035); font-size: 42px; }
.team-mark-ring { position: absolute; border: 1px solid rgba(240,219,167,.28); border-radius: 50%; }
.team-mark-ring-one { inset: 8px; }
.team-mark-ring-two { inset: 27px; border-style: dashed; border-color: rgba(240,219,167,.23); }
.team-mark-star { position: absolute; top: 26px; right: 21px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--team-purple-deep); background: var(--team-gold-light); font-size: 15px; }
.team-hero-bottomline { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 5px; height: 3px; }
.team-hero-bottomline span:nth-child(1) { width: 64%; background: var(--team-gold); }
.team-hero-bottomline span:nth-child(2) { width: 22%; background: #9d579a; }
.team-hero-bottomline span:nth-child(3) { flex: 1; background: rgba(255,255,255,.2); }

/* Intro and team grid */
.team-intro-section { padding: 88px 0 96px; background: linear-gradient(180deg, #fff 0%, #fdfbfd 100%); }
.team-section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 48px; margin-bottom: 43px; }
.team-section-kicker { color: var(--team-purple); }
.team-section-kicker::before { width: 23px; height: 2px; background: var(--team-gold); content: ""; }
.team-section-heading h2 { margin: 15px 0 0; color: var(--team-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.13; }
.team-section-heading h2 em { color: var(--team-purple); }
.team-section-heading > p { margin: 0 0 4px; color: var(--team-muted); font-size: 14px; line-height: 1.95; }
.team-members-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.team-member-card { min-width: 0; overflow: hidden; border: 1px solid #eee8f0; border-radius: 8px; background: #fff; box-shadow: 0 9px 32px rgba(50,20,55,.045); animation: team-card-in .55s both; animation-delay: calc(var(--team-card-index, 0) * 55ms); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.team-member-card:hover { transform: translateY(-5px); border-color: rgba(122,29,124,.24); box-shadow: 0 20px 45px rgba(50,20,55,.105); }
@keyframes team-card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.team-member-photo-wrap { position: relative; overflow: hidden; height: 285px; background: linear-gradient(145deg, #eee4ef, #d8c5dc); }
.team-member-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.team-member-card:hover .team-member-photo { transform: scale(1.045); }
.team-photo-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgba(122,29,124,.55); background: radial-gradient(circle at 50% 25%, #fff 0, #f1e7f2 40%, #ddcce0 100%); }
.team-photo-fallback i { font-size: 100px; }
.team-photo-number { position: absolute; z-index: 2; top: 15px; left: 15px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: rgba(43,13,49,.62); font-family: Georgia, serif; font-size: 12px; backdrop-filter: blur(8px); }
.team-photo-shine { position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, rgba(33,11,41,.22)); pointer-events: none; }
.team-member-content { padding: 24px 24px 23px; }
.team-member-label { display: flex; align-items: center; gap: 8px; color: #8a7d8d; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.team-member-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--team-gold); }
.team-member-content h3 { margin: 12px 0 5px; overflow-wrap: anywhere; color: var(--team-ink); font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 600; letter-spacing: -.025em; line-height: 1.22; }
.team-member-position { margin: 0; color: var(--team-purple); font-size: 12px; font-weight: 800; letter-spacing: .035em; }
.team-member-bio { display: -webkit-box; min-height: 69px; margin: 16px 0 19px; overflow: hidden; color: var(--team-muted); font-size: 12px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.team-member-bio-empty { font-style: italic; }
.team-member-socials { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--team-line); }
.team-member-socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #eee7f0; border-radius: 50%; color: var(--team-purple); background: #fff; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.team-member-socials a:hover { transform: translateY(-2px); border-color: var(--team-purple); color: #fff; background: var(--team-purple); }
.team-member-divider { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--team-line); color: var(--team-gold); }
.team-member-divider span { width: 32px; height: 1px; background: #e9d9b9; }
.team-member-divider i { font-size: 14px; }

/* Empty/error state */
.team-state-card { display: flex; align-items: center; gap: 20px; padding: 30px; border: 1px solid #eee5f0; border-radius: 8px; background: #fff; box-shadow: 0 10px 35px rgba(50,20,55,.04); }
.team-state-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--team-purple); background: #f5edf6; font-size: 22px; }
.team-state-card h3 { margin: 0 0 5px; color: var(--team-ink); font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.team-state-card p { margin: 0; color: var(--team-muted); font-size: 13px; line-height: 1.7; }

/* Closing banner */
.team-service-banner { padding: 43px 0; color: #fff; background: linear-gradient(110deg, #2a0d32, #4b1851); }
.team-service-inner { display: flex; align-items: center; gap: 24px; }
.team-service-icon { display: grid; flex: 0 0 62px; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(240,219,167,.42); border-radius: 50%; color: var(--team-gold-light); font-size: 22px; }
.team-service-copy { flex: 1; min-width: 0; }
.team-service-copy > span { color: var(--team-gold-light); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.team-service-copy h2 { margin: 7px 0 6px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; letter-spacing: -.025em; }
.team-service-copy p { margin: 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.75; }
.team-service-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 18px; padding: 13px 16px; border: 1px solid rgba(240,219,167,.55); border-radius: 3px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 700; transition: color .2s ease, background .2s ease; }
.team-service-link i { color: var(--team-gold-light); font-size: 15px; }
.team-service-link:hover { color: var(--team-purple-deep); background: var(--team-gold-light); }
.team-service-link:hover i { color: var(--team-purple-deep); }

@media (max-width: 1000px) {
    .team-hero-mark { right: 15px; transform: scale(.82); transform-origin: center right; opacity: .75; }
    .team-hero-content { max-width: 630px; }
    .team-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .team-member-photo-wrap { height: 300px; }
    .team-member-content { padding: 22px; }
}
@media (max-width: 700px) {
    .church-team-page .shell { width: min(100% - 34px, 520px); }
    .team-hero, .team-hero-inner { min-height: auto; }
    .team-hero-inner { padding-top: 19px; padding-bottom: 38px; }
    .team-breadcrumb { gap: 9px; font-size: 11px; }
    .team-hero-content { padding-top: 47px; }
    .team-eyebrow { gap: 7px; font-size: 8px; letter-spacing: .15em; }
    .team-eyebrow > span { width: 16px; }
    .team-hero h1 { max-width: 460px; margin: 16px 0 13px; font-size: clamp(39px, 10vw, 54px); line-height: 1.05; }
    .team-hero-content > p { max-width: 470px; font-size: 13px; line-height: 1.8; }
    .team-hero-cta { margin-top: 22px; padding: 12px 14px 12px 16px; font-size: 11px; }
    .team-hero-mark { top: 24px; right: -72px; transform: scale(.65); opacity: .22; }
    .team-hero-glow-one { top: -150px; right: -230px; }
    .team-hero-glow-two { top: -60px; right: -130px; }
    .team-intro-section { padding: 58px 0 62px; }
    .team-section-heading { grid-template-columns: 1fr; gap: 17px; margin-bottom: 28px; }
    .team-section-kicker { font-size: 9px; letter-spacing: .14em; }
    .team-section-heading h2 { margin-top: 12px; font-size: 37px; }
    .team-section-heading > p { font-size: 13px; line-height: 1.85; }
    .team-members-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .team-member-card { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: stretch; border-radius: 7px; }
    .team-member-photo-wrap { height: 100%; min-height: 240px; }
    .team-member-photo { position: absolute; inset: 0; }
    .team-photo-fallback { position: absolute; inset: 0; }
    .team-photo-number { top: 10px; left: 10px; width: 30px; height: 30px; font-size: 10px; }
    .team-member-content { display: flex; flex-direction: column; justify-content: center; padding: 17px 15px; }
    .team-member-label { gap: 6px; font-size: 7px; letter-spacing: .11em; }
    .team-member-label span { width: 5px; height: 5px; }
    .team-member-content h3 { margin: 9px 0 5px; font-size: clamp(18px, 4.6vw, 23px); line-height: 1.16; }
    .team-member-position { font-size: 10px; line-height: 1.5; }
    .team-member-bio { min-height: 0; margin: 10px 0 13px; font-size: 10px; line-height: 1.7; -webkit-line-clamp: 3; }
    .team-member-socials { gap: 6px; padding-top: 12px; }
    .team-member-socials a { width: 29px; height: 29px; font-size: 12px; }
    .team-member-divider { gap: 7px; padding-top: 12px; }
    .team-member-divider span { width: 19px; }
    .team-state-card { align-items: flex-start; gap: 13px; padding: 20px 16px; }
    .team-state-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 18px; }
    .team-state-card h3 { font-size: 18px; }
    .team-state-card p { font-size: 12px; }
    .team-service-banner { padding: 29px 0; }
    .team-service-inner { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; }
    .team-service-icon { grid-row: 1; grid-column: 1; width: 48px; height: 48px; font-size: 18px; }
    .team-service-copy { grid-row: 1; grid-column: 2; }
    .team-service-copy > span { font-size: 8px; letter-spacing: .13em; }
    .team-service-copy h2 { font-size: 23px; line-height: 1.2; }
    .team-service-copy p { font-size: 11px; }
    .team-service-link { grid-row: 2; grid-column: 2; justify-self: start; margin-top: 2px; padding: 11px 13px; font-size: 10px; }
}
@media (max-width: 390px) {
    .church-team-page .shell { width: calc(100% - 26px); }
    .team-member-card { grid-template-columns: 36% minmax(0, 1fr); }
    .team-member-photo-wrap { min-height: 230px; }
    .team-member-content { padding: 13px 11px; }
    .team-member-content h3 { font-size: 17px; }
    .team-member-position { font-size: 9px; }
    .team-member-bio { font-size: 9px; }
    .team-member-socials { gap: 4px; }
    .team-member-socials a { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .team-member-card { animation: none; transition: none; }
    .team-member-photo, .team-hero-cta, .team-service-link, .team-member-socials a { transition: none; }
}
