/**
 * Barbers Page — The Way Barbershop
 * Styles specific to page-barbers.php sections
 * Uses global design tokens from variables.css
 */


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (centered title + breadcrumb, no background image by default)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-hero {
    position: relative;
    padding: var(--space-5xl) var(--space-lg) var(--space-4xl);
    text-align: center;
    background: var(--color-bg);
    overflow: hidden;
}

.barbers-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.barbers-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.6),
        rgba(15, 15, 15, 0.85),
        var(--color-bg)
    );
    z-index: 1;
}

.barbers-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.barbers-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
}

.barbers-hero__breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.barbers-hero__breadcrumb a:hover {
    opacity: 1;
}

.barbers-hero__breadcrumb-sep {
    color: var(--color-accent);
    opacity: 0.4;
}

.barbers-hero__breadcrumb-current {
    color: var(--color-accent);
}

.barbers-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: var(--space-lg);
}

.barbers-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 300;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BARBERS GRID (flex layout — adapts to any number of barbers)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-grid-section {
    background: var(--color-bg);
    padding-bottom: var(--space-4xl);
}

.barbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.barber-profile-card {
    background: var(--color-bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: border-color var(--transition-slow);
}

.barber-profile-card:hover {
    border-color: rgba(200, 164, 94, 0.3);
}

.barber-profile-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.barber-profile-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 500ms ease, transform 500ms ease;
}

.barber-profile-card:hover .barber-profile-card__image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.barber-profile-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-alt) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.barber-profile-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    color: var(--color-text-subtle);
}

.barber-profile-card__body {
    padding: var(--space-lg);
}

.barber-profile-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.barber-profile-card__specialty {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.barber-profile-card__bio {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.barber-profile-card__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.barber-profile-card__book {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-decoration: none;
    transition: text-decoration var(--transition-fast);
}

.barber-profile-card__book:hover {
    text-decoration: underline;
}

.barber-profile-card__badge {
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.barber-profile-card:hover .barber-profile-card__badge {
    color: var(--color-text-muted);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEAM CULTURE (cream background, 2-column layout)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-culture {
    background: var(--color-cream);
    padding: var(--space-4xl) 0;
}

.barbers-culture__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.barbers-culture__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-cream-heading);
    line-height: 1;
    margin-bottom: var(--space-xl);
}

.barbers-culture__divider {
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin-bottom: var(--space-xl);
}

.barbers-culture__content p {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-cream-text);
    margin-bottom: var(--space-lg);
}

.barbers-culture__content p:last-child {
    margin-bottom: 0;
}

.barbers-culture__image-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 8px solid var(--color-white);
    box-shadow: var(--shadow-xl);
}

.barbers-culture__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.barbers-culture__image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.1);
    color: var(--color-cream-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PROFILES CTA (circular thumbnails row)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-profiles-cta {
    background: var(--color-bg);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.barbers-profiles-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, var(--text-3xl));
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3xl);
}

.barbers-profiles-cta__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
}

.barbers-profiles-cta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.barbers-profiles-cta__thumb {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(200, 164, 94, 0.3);
    padding: 4px;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-slow);
    overflow: hidden;
}

.barbers-profiles-cta__item:hover .barbers-profiles-cta__thumb {
    border-color: var(--color-accent);
}

.barbers-profiles-cta__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    filter: grayscale(100%);
    transition: filter 500ms ease;
}

.barbers-profiles-cta__item:hover .barbers-profiles-cta__photo {
    filter: grayscale(0%);
}

.barbers-profiles-cta__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-subtle);
}

.barbers-profiles-cta__name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.barbers-profiles-cta__item:hover .barbers-profiles-cta__name {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING CTA (centered, gold top border)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-cta {
    background: var(--color-bg);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.barbers-cta__inner {
    max-width: 640px;
    margin: 0 auto;
}

.barbers-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2xl);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — BARBERS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .barbers-hero {
        padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
    }

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

    .barbers-culture__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .barbers-culture__image-wrap {
        order: -1;
    }

    .barbers-profiles-cta__thumb {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {

    .barbers-hero {
        padding: var(--space-4xl) var(--space-md) var(--space-2xl);
    }

    .barbers-hero__title {
        font-size: 3rem;
    }

    .barbers-hero__subtitle {
        font-size: var(--text-base);
    }

    .barbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .barber-profile-card__body {
        padding: var(--space-md);
    }

    .barber-profile-card__name {
        font-size: var(--text-lg);
    }

    .barber-profile-card__bio {
        display: none;
    }

    .barbers-culture {
        padding: var(--space-3xl) 0;
    }

    .barbers-culture__title {
        font-size: var(--text-4xl);
    }

    .barbers-culture__content p {
        font-size: var(--text-base);
    }

    .barbers-profiles-cta {
        padding: var(--space-3xl) 0;
    }

    .barbers-profiles-cta__grid {
        gap: var(--space-lg);
    }

    .barbers-profiles-cta__thumb {
        width: 64px;
        height: 64px;
    }

    .barbers-cta {
        padding: var(--space-3xl) 0;
    }

    .barbers-cta__title {
        font-size: var(--text-3xl);
    }
}
