/* About Page Specific Styles */
/* Extracted from former shared pages.css for #about */

#about.content-section {
    background-color: #333333;
    color: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 10px;
    padding-bottom: 20px;
    padding-left: 10px;
    max-width: 900px;
    animation: fadeInLeft 0.7s ease-out;
    display: block;
    /* Always visible on dedicated About page */
}

#about.content-section h2.pag-section {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #555555;
}

/* Barber Card Styles (About only) */
/* Legacy single card removed in favor of dynamic grid */

/* Dynamic Team Grid */
.about-barber-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin: 40px auto 10px;
    max-width: 1200px;
}

.about-barber-card {
    background: linear-gradient(160deg, #462e63, #3a2755 55%, #2d2044);
    border-radius: 18px;
    padding: 22px 20px 26px;
    width: clamp(240px, 30%, 300px);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .35s ease, box-shadow .35s ease;
}

.about-barber-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 60%);
    pointer-events: none;
}

.about-barber-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px -10px rgba(0, 0, 0, 0.65);
}

.about-barber-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #6d3aa8, #4f2e84);
    padding: 4px;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.55);
}

.about-barber-photo-wrapper img.about-barber-photo,
.about-barber-photo-wrapper .about-barber-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #555;
}

.about-barber-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: .5px;
    color: #fff;
    text-align: center;
}

.about-barber-role {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #d7c7f5;
    text-align: center;
}

.about-barber-bio {
    font-size: .9rem;
    line-height: 1.45;
    color: #e0d8f3;
    text-align: center;
    margin: 0 0 12px;
    flex-grow: 1;
}

.about-barber-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card action area */
.about-barber-card-actions { margin-top: 12px; }
.about-barber-view-btn {
    background: transparent;
    border:1px solid rgba(255,255,255,0.35);
    color:#f5f5f5;
    padding:8px 22px;
    border-radius:30px;
    font-size:.85rem;
    font-weight:600;
    letter-spacing:.5px;
    cursor:pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
    backdrop-filter: blur(1px);
}
.about-barber-view-btn:hover {
    background: #6a00bf; /* Requested hover color */
    color: #ffffff;
    border-color: #6a00bf;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.6);
    transform: translateY(-2px);
}
.about-barber-view-btn:active { transform:translateY(0); }
.about-barber-view-btn:focus-visible { outline:2px solid #b18cff; outline-offset:3px; }

/* Skeleton / placeholder states */
.skeleton .ph {
    animation: aboutPhPulse 1.4s ease-in-out infinite;
}

.about-barber-card.skeleton {
    background: #3d2c56;
    box-shadow: none;
}

.about-barber-card.skeleton .about-barber-photo {
    background: #5a4776;
}

.about-barber-card.skeleton .line {
    height: 10px;
    border-radius: 6px;
    background: #5a4776;
    width: 70%;
    margin: 8px auto;
}

.about-barber-card.skeleton .line.short {
    width: 45%;
}

@keyframes aboutPhPulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-barber-card {
        width: clamp(240px, 45%, 320px);
    }
}

@media (max-width: 640px) {
    .about-barber-card {
        width: 100%;
    }
}

/* Interactive state */
.about-barber-card {
    cursor: pointer;
}

.about-barber-card:focus {
    outline: 2px solid #b18cff;
    outline-offset: 4px;
}

/* Modal Styles */
.about-barber-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
}

.about-barber-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    /* Removed backdrop-filter blur due to reported blurring of modal */
}

.about-barber-modal-content {
    position: relative;
    background: #1f1f1f;
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    padding: 32px 34px 40px;
    /*box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .55);*/
    display: flex;
    flex-direction: column;
    gap: 26px;
    animation: modalPop .45s cubic-bezier(.16, .8, .3, 1);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    z-index: 10; /* Ensure content sits above backdrop */
    max-height: calc(100vh - 120px); /* leave breathing room top/bottom */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling (WebKit) */
.about-barber-modal-content::-webkit-scrollbar { width: 10px; }
.about-barber-modal-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 12px; }
.about-barber-modal-content::-webkit-scrollbar-thumb { background: linear-gradient(#6f54b9,#51388d); border-radius: 12px; }
.about-barber-modal-content::-webkit-scrollbar-thumb:hover { background: linear-gradient(#8267ce,#5d449c); }

/* Firefox thin scrollbar */
.about-barber-modal-content { scrollbar-width: thin; scrollbar-color: #5d449c rgba(255,255,255,0.08); }

.about-barber-modal-content:focus { outline: 2px solid #b18cff; outline-offset: 4px; }

#aboutBarberModalTitle {
    font-size: 2rem;
    margin: 0 0 6px;
    letter-spacing: .5px;
    color: #f5f5f5;
}

.about-barber-modal-role {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-size: .8rem;
    font-weight: 600;
    color: #b0b0b0;
}

.about-barber-modal-bio {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: #d2d2d2;
    white-space: pre-line;
}

.about-barber-modal-bio h2.about-barber-modal-subheading {
    font-size: 1.25rem;
    margin: 28px 0 14px;
    line-height: 1.3;
    letter-spacing: .5px;
    color: #f0f0f0;
    font-weight: 700;
    text-transform: none;
}

.about-barber-modal-bio p { margin: 0 0 14px; }
.about-barber-modal-bio p:last-child { margin-bottom: 0; }

.about-barber-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 30px;
    color: #c8c8c8;
    cursor: pointer;
    line-height: 1;
    transition: color .25s ease;
}

.about-barber-modal-close:hover {
    color: #ffffff;
}

.about-barber-modal-body {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.about-barber-modal-photo-wrap {
    flex: 0 0 220px;
    position: relative;
}

.about-barber-modal-photo-wrap img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .55);
    background: #55406f;
}

.about-barber-modal-text {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.about-barber-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.about-barber-book-btn {
    background: linear-gradient(135deg, #7c46d4, #5b28a6);
    border: none;
    color: #fff;
    padding: 14px 26px;
    font-size: 1rem;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .55);
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
    z-index: 0; /* establish stacking context for pseudo element */
}

.about-barber-book-btn:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 60%);
    opacity: .35;
    pointer-events: none;
}

.about-barber-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
    background: linear-gradient(135deg,#8c54e4,#6a32bb);
}

.about-barber-book-btn:active {
    transform: translateY(0);
}

.about-barber-book-btn:focus-visible {
    outline: 3px solid #b18cff;
    outline-offset: 3px;
}

@keyframes modalPop {
    0% {
        transform: translateY(30px) scale(.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .about-barber-modal-body {
        flex-direction: column;
        align-items: center;
    }

    .about-barber-modal-photo-wrap {
        flex: 0 0 auto;
        width: 200px;
    }

    #aboutBarberModalTitle {
        text-align: center;
    }

    .about-barber-modal-role,
    .about-barber-modal-bio {
        text-align: center;
    }

    .about-barber-modal-actions {
        justify-content: center;
    }
    .about-barber-modal-content { max-height: calc(100vh - 80px); padding: 26px 24px 34px; }
}

/* Responsive adjustments */
@media (max-width: 700px) {
    /* legacy selectors removed */
}