/* ==========================================================================
   Executive Director job posting popup (temporary).
   Remove this file when the position is filled. See section-job-popup.php
   ========================================================================== */

.bc-jobpop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.bc-jobpop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bc-jobpop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 54, 61, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bc-jobpop__card {
    position: relative;
    background: var(--warm-white, #fafaf8);
    color: var(--navy, #1a363d);
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    padding: 44px 40px 36px;
    box-shadow:
        0 20px 60px rgba(26, 54, 61, 0.28),
        0 4px 12px rgba(26, 54, 61, 0.10);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
    text-align: left;
    border-top: 4px solid var(--teal, #21a5a5);
}

.bc-jobpop.is-open .bc-jobpop__card {
    transform: scale(1) translateY(0);
}

.bc-jobpop__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(26, 54, 61, 0.45);
    cursor: pointer;
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.bc-jobpop__close:hover,
.bc-jobpop__close:focus-visible {
    color: var(--navy, #1a363d);
}

.bc-jobpop__eyebrow {
    font-family: var(--font-body, 'Karla', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal, #21a5a5);
    margin-bottom: 10px;
}

.bc-jobpop__title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.7rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 14px;
    color: var(--navy, #1a363d);
}

.bc-jobpop__desc {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 20px;
    color: var(--navy, #1a363d);
    opacity: 0.92;
}

.bc-jobpop__meta {
    list-style: none;
    margin: 0 0 26px;
    padding: 18px 20px;
    background: rgba(33, 165, 165, 0.07);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.bc-jobpop__meta li {
    font-size: 0.92rem;
    color: var(--navy, #1a363d);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-jobpop__meta i {
    color: var(--teal, #21a5a5);
    width: 16px;
    text-align: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.bc-jobpop__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.bc-jobpop__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--teal, #21a5a5);
    color: #fff;
    font-family: var(--font-body, 'Karla', sans-serif);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    text-align: center;
}

.bc-jobpop__cta:hover,
.bc-jobpop__cta:focus-visible {
    background: var(--teal-hover, #1a8a8a);
    color: #fff;
    transform: translateY(-1px);
}

.bc-jobpop__cta i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.bc-jobpop__cta:hover i {
    transform: translateX(3px);
}

.bc-jobpop__dismiss {
    background: none;
    border: none;
    color: var(--navy, #1a363d);
    opacity: 0.55;
    cursor: pointer;
    font-family: var(--font-body, 'Karla', sans-serif);
    font-size: 0.88rem;
    padding: 8px;
    transition: opacity 0.2s ease;
}

.bc-jobpop__dismiss:hover,
.bc-jobpop__dismiss:focus-visible {
    opacity: 1;
}

.bc-jobpop__share {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--navy, #1a363d);
    opacity: 0.55;
    font-style: italic;
}

/* Lock body scroll while open */
body.bc-jobpop-locked {
    overflow: hidden;
}

/* Mobile — bottom sheet feel */
@media (max-width: 600px) {
    .bc-jobpop {
        padding: 0;
        align-items: flex-end;
    }

    .bc-jobpop__card {
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 36px 24px 28px;
        max-height: 92vh;
        overflow-y: auto;
        transform: translateY(20px);
    }

    .bc-jobpop.is-open .bc-jobpop__card {
        transform: translateY(0);
    }

    .bc-jobpop__meta {
        grid-template-columns: 1fr;
        padding: 16px 18px;
    }

    .bc-jobpop__title {
        padding-right: 32px; /* breathing room around close button */
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bc-jobpop,
    .bc-jobpop__card,
    .bc-jobpop__cta,
    .bc-jobpop__cta i {
        transition: none;
    }
    .bc-jobpop__card {
        transform: none;
    }
}
