/* ============================================
   ZMLC TEAM PAGE — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #c4a536;
    --gold-light: #d4b84a;
    --gold-dim: #8a7325;
    --gold-ultra-light: rgba(196, 165, 54, 0.1);
    --dark: #0a0a0f;
    --dark-2: #111118;
    --dark-3: #1a1a24;
    --cream: #f8f7f0;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
    --radius-sm: 8px;
}

/* ===== BASE ===== */
body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: #1a1a24;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-dim));
    border-radius: 3px;
}

/* ===== TEAM PAGE HERO ===== */
.team-hero-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-3) 100%);
    position: relative;
    overflow: hidden;
}

.team-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(196, 165, 54, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.team-hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 165, 54, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 165, 54, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ===== TEAM MEMBER CARDS ===== */
.team-member-card {
    border-radius: var(--radius) !important;
    overflow: hidden;
    background: white !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: var(--shadow-card) !important;
    transition: var(--transition);
    position: relative;
}

.team-member-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.team-member-card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-6px);
    border-color: rgba(196, 165, 54, 0.2) !important;
}

.team-member-card:hover::after {
    transform: scaleX(1);
}

/* ===== TEAM IMAGE WRAPPER ===== */
.team-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%; /* slightly less tall for better look */
    background: linear-gradient(160deg, #1a1a24 0%, #2a2a38 100%);
    overflow: hidden;
}

.member-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-image img,
.member-image svg {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center !important;
    display: block;
}

/* ===== HOVER OVERLAY ===== */
.member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .member-image {
    transform: scale(1.06);
}

.team-member-card:hover .member-overlay {
    opacity: 1;
}

/* ===== CONTACT BUTTONS IN OVERLAY ===== */
.member-contact-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.member-contact-btn:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #0a0a0f !important;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(196, 165, 54, 0.4);
}

/* ===== CARD BODY TEXT ===== */
.team-member-card .p-5 h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a24;
    line-height: 1.3;
}

/* Practice area tags */
.team-member-card .p-5 .bg-yellow-50 {
    background: var(--gold-ultra-light) !important;
    border-color: rgba(196, 165, 54, 0.2) !important;
    color: #7a6020 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== MOBILE CONTACT (always visible) ===== */
.member-mobile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.member-mobile-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.member-mobile-contact a i {
    color: var(--gold);
    font-size: 0.7rem;
}

.member-mobile-contact a:hover { color: var(--gold); }

/* ===== FILTER TABS ===== */
.team-filter, .practice-filter {
    border-radius: 50px !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1.5px solid transparent !important;
    padding: 8px 18px !important;
}

.team-filter:not(.filter-active), .practice-filter:not(.filter-active) {
    background: rgba(0,0,0,0.04) !important;
    color: #6b7280 !important;
    border-color: rgba(0,0,0,0.08) !important;
}

.team-filter:not(.filter-active):hover, .practice-filter:not(.filter-active):hover {
    background: var(--gold-ultra-light) !important;
    border-color: rgba(196, 165, 54, 0.3) !important;
    color: var(--gold-dim) !important;
}

.filter-active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: #0a0a0f !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(196, 165, 54, 0.25) !important;
}

/* ===== TAB NAVIGATION ===== */
.tab-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    padding-bottom: 12px;
    color: #6b7280;
}

.tab-active {
    color: var(--gold) !important;
    border-bottom-color: var(--gold) !important;
}

/* ===== SEARCH BOX ===== */
#team-search {
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: white;
    transition: var(--transition);
    font-size: 0.85rem;
}

#team-search:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 165, 54, 0.1);
}

/* ===== SECTION GOLD GOLD UNDERLINE ===== */
.w-20.h-1.bg-gold-500,
.h-1.bg-gold-500 {
    background: linear-gradient(90deg, var(--gold), rgba(196, 165, 54, 0.3)) !important;
    height: 3px !important;
    border-radius: 2px;
}

/* ===== CONTACT CTA SECTION ===== */
#contact-cta {
    background: var(--cream) !important;
    position: relative;
}

#contact-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== NAVIGATION ===== */
header {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

header nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a24;
    transition: color 0.25s ease;
}

header nav a:hover { color: var(--gold) !important; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .team-img-wrapper { padding-top: 130%; }
    .team-member-card:hover { transform: none; }
    .team-member-card:hover .member-overlay { opacity: 0; }

    /* Mobile: show always-visible contact info more prominently */
    .member-mobile-contact a {
        font-size: 0.75rem;
    }

    body { overflow-x: hidden; }
    section { overflow-x: hidden; }
}

/* ===== UTILITY ===== */
.text-gold-600 { color: var(--gold) !important; }
.border-gold-500 { border-color: var(--gold) !important; }
.bg-gold-500 { background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important; }
