/* ========================================
   STX POWERHOUSE - COACHES PAGE STYLES
   WordPress/WPCode Ready
   ======================================== */

/* ========================================
   CSS VARIABLES (Consistent with Homepage)
   ======================================== */
:root {
    /* Colors */
    --color-black: #000000;
    --color-gold: #d8a957;
    --color-white: #ffffff;
    --color-gray-900: #0a0a0a;
    --color-gray-800: #1a1a1a;
    --color-gray-700: #2a2a2a;
    --color-gray-600: #333333;
    --color-gray-500: #666666;
    --color-gray-400: #999999;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;

    /* Gold variants */
    --color-gold-light: #e5c27d;
    --color-gold-dark: #b88f42;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */

    /* Spacing */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-gold {
    color: var(--color-gold);
}

.section-label {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--color-black);
    line-height: 1.2;
}

/* ========================================
   BUTTONS (Consistent with Homepage)
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* ========================================
   COACHES HERO SECTION
   ======================================== */
.coaches-hero {
    position: relative;
    padding: var(--space-32) 0 var(--space-24);
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-black) 100%);
    overflow: hidden;
}

.coaches-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(216, 169, 87, 0.02) 35px,
            rgba(216, 169, 87, 0.02) 70px);
    pointer-events: none;
}

.coaches-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(216, 169, 87, 0.1) 0%, transparent 50%);
}

.coaches-hero-container {
    position: relative;
    z-index: var(--z-base);
}

.coaches-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.coaches-hero .section-label {
    color: var(--color-gold);
}

.coaches-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.coaches-hero-description {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-300);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   COACH PROFILE SECTIONS
   ======================================== */
.coach-profile {
    padding: var(--space-24) 0;
    background-color: var(--color-white);
    position: relative;
}

.coach-profile-alternate {
    background-color: var(--color-gray-100);
}

.coach-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

/* Image Right Layout */
.coach-profile-image-right .coach-profile-grid {
    grid-template-columns: 1fr 1fr;
}

/* Image Left Layout */
.coach-profile-image-left .coach-profile-grid {
    grid-template-columns: 1fr 1fr;
}

.coach-profile-image-left .coach-profile-image-wrapper {
    order: -1;
}

/* ========================================
   COACH PROFILE CONTENT
   ======================================== */
.coach-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-black);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.coach-profile-name {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--color-black);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.coach-profile-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.coach-profile-tagline {
    font-size: var(--text-xl);
    color: var(--color-gold);
    font-weight: 600;
    font-style: italic;
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

/* ========================================
   COACH STATS
   ======================================== */
.coach-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background-color: rgba(216, 169, 87, 0.05);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
}

.coach-stat {
    text-align: center;
}

.coach-stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.coach-stat-number span {
    font-size: 1.75rem;
}

.coach-stat-label {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   COACH PROFILE SECTIONS
   ======================================== */
.coach-profile-section {
    margin-bottom: var(--space-8);
}

.coach-section-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.coach-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: var(--color-gold);
    border-radius: var(--radius-sm);
}

.coach-bio-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: var(--space-4);
}

.coach-bio-text strong {
    color: var(--color-black);
    font-weight: 700;
}

/* ========================================
   COACH CREDENTIALS LIST
   ======================================== */
.coach-credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coach-credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-left: var(--space-2);
}

.coach-credentials-list li i {
    color: var(--color-gold);
    font-size: var(--text-xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.coach-credentials-list li span {
    font-size: var(--text-lg);
    color: var(--color-gray-700);
    line-height: 1.6;
}

/* ========================================
   COACH PROFILE IMAGE
   ======================================== */
.coach-profile-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.coach-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.coach-profile-image-wrapper:hover .coach-profile-image {
    transform: scale(1.05);
}

.coach-profile-image-border {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    bottom: calc(-1 * var(--space-4));
    left: calc(-1 * var(--space-4));
    border: 3px solid var(--color-gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
}

/* Reverse border position for left-aligned images */
.coach-profile-image-left .coach-profile-image-border {
    top: var(--space-4);
    left: var(--space-4);
    right: calc(-1 * var(--space-4));
    bottom: calc(-1 * var(--space-4));
}

/* ========================================
   TEAM IMPACT SECTION
   ======================================== */
.team-impact {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-black) 100%);
    position: relative;
    overflow: hidden;
}

.team-impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 40px,
            rgba(216, 169, 87, 0.03) 40px,
            rgba(216, 169, 87, 0.03) 80px);
    pointer-events: none;
}

.team-impact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: var(--z-base);
}

.team-impact .section-label {
    color: var(--color-gold);
}

.team-impact .section-title {
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.team-impact-description {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-300);
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   TEAM CREDENTIALS GRID
   ======================================== */
.team-credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.team-credential-card {
    background-color: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(216, 169, 87, 0.35);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.team-credential-card:hover {
    background-color: rgba(216, 169, 87, 0.18);
    border-color: var(--color-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(216, 169, 87, 0.2);
}

.team-credential-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    transition: transform var(--transition-base);
}

.team-credential-card:hover .team-credential-icon {
    transform: scale(1.1) rotate(5deg);
}

.team-credential-icon i {
    font-size: var(--text-4xl);
    color: var(--color-black);
}

.team-credential-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-align: center;
}

.team-credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.team-credential-list li {
    font-size: var(--text-base);
    color: var(--color-gray-300);
    line-height: 1.8;
    padding-left: var(--space-6);
    position: relative;
    margin-bottom: var(--space-3);
}

.team-credential-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: var(--text-xl);
    font-weight: 700;
}

/* ========================================
   TEAM CTA
   ======================================== */
.team-cta-wrapper {
    text-align: center;
    padding-top: var(--space-12);
    border-top: 1px solid rgba(216, 169, 87, 0.2);
}

.team-cta-text {
    font-size: var(--text-2xl);
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below */
@media (max-width: 1023px) {
    :root {
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }

    .coach-profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .coach-profile-image-left .coach-profile-image-wrapper {
        order: -1;
    }

    .coach-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-credentials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --space-20: 3rem;
        --space-24: 4rem;
        --space-32: 5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .coaches-hero {
        padding: var(--space-20) 0 var(--space-16);
    }

    .coaches-hero-title {
        font-size: var(--text-4xl);
    }

    .coaches-hero-description {
        font-size: var(--text-base);
    }

    .coach-profile {
        padding: var(--space-16) 0;
    }

    .coach-profile-grid {
        gap: var(--space-8);
    }

    .coach-profile-name {
        font-size: var(--text-3xl);
    }

    .coach-profile-tagline {
        font-size: var(--text-lg);
    }

    .coach-profile-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: var(--space-4);
    }

    .coach-stat-number {
        font-size: 2.1rem;
    }

    .coach-section-title {
        font-size: var(--text-lg);
    }

    .coach-bio-text {
        font-size: var(--text-base);
    }

    .coach-credentials-list li {
        font-size: var(--text-base);
    }

    .coach-profile-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .coach-profile-image-border {
        top: var(--space-3);
        right: var(--space-3);
        bottom: calc(-1 * var(--space-3));
        left: calc(-1 * var(--space-3));
        border-width: 2px;
    }

    .coach-profile-image-left .coach-profile-image-border {
        top: var(--space-3);
        left: var(--space-3);
        right: calc(-1 * var(--space-3));
        bottom: calc(-1 * var(--space-3));
    }

    .team-impact {
        padding: var(--space-16) 0;
    }

    .team-impact-description {
        font-size: var(--text-base);
        margin-bottom: var(--space-12);
    }

    .team-credential-icon {
        width: 64px;
        height: 64px;
    }

    .team-credential-icon i {
        font-size: var(--text-3xl);
    }

    .team-credential-title {
        font-size: var(--text-lg);
    }

    .team-credential-list li {
        font-size: var(--text-sm);
    }

    .team-cta-text {
        font-size: var(--text-xl);
    }

    .btn-lg {
        width: auto;
        min-width: 200px;
        max-width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: var(--text-3xl);
    }

    .coach-profile-name {
        font-size: var(--text-2xl);
    }

    .coach-stat-number {
        font-size: 1.74rem;
    }
}
