/* =============================================================
   Job Vacancies Page — job-vacancies.css
   Matches cannonparkshopping theme variables & conventions
   ============================================================= */

/* ------------------------------------------------------------------
   Hero — reuses .inner_hero_section base from style.css,
   no overrides needed unless specific tweaks are required.
   ------------------------------------------------------------------ */
.jv_hero_section .inner_hero__asset {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--block-img-radius);
    max-height: 23rem;
}

.jv_hero_section .inner_hero__asset picture,
.jv_hero_section .inner_hero__asset img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.jv_hero_section .inner_hero_content {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

.jv_hero_section .inner_hero_content .h1 {
    color: var(--color-1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    font-family: var(--secondary-font);
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------
   Join Us Section
   ------------------------------------------------------------------ */
.jv_join_section {
    padding: 3rem 0 2rem;
    text-align: center;
}

.jv_join_inner {
    max-width: 42rem;
    margin: 0 auto;
}

.jv_join_title {
    font-family: var(--secondary-font);
    font-size: var(--h2);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    color: var(--color-5);
    margin-bottom: 1rem;
}

.jv_join_text {
    font-family: var(--primary-font);
    font-size: var(--size-xl);
    font-weight: var(--font-weight-light);
    color: var(--color-3);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Listings Section
   ------------------------------------------------------------------ */
.jv_listings_section {
    padding: 0 0 5rem;
}

/* Arch-topped magenta background panel */
.jv_listings_bg {
    background-color: var(--color-4);
    border-radius: 50% 50% 2.375rem 2.375rem / 3.5rem 3.5rem 2.375rem 2.375rem;
    padding: 3.5rem 0 3.5rem;
    position: relative;
}

/* 3-column card grid */
.jv_listings_grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 560px) {
    .jv_listings_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .jv_listings_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------------------------------------------------------------------
   Job Card
   ------------------------------------------------------------------ */
.jv_job_card {
    position: relative;
    background-color: var(--color-12); /* blush pink — #D6B8B8 */
    border-radius: var(--block-img-radius);
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 11rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

/* Featured (first) card — white background */
.jv_job_card--featured {
    background-color: var(--color-1);
}

/* Hover state */
.jv_job_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Full-card click target */
.jv_job_card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--block-img-radius);
}

/* Logo area */
.jv_job_card__logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-bottom: 1rem;
}

.jv_job_card__logo img {
    max-width: 8rem;
    max-height: 3.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Job title */
.jv_job_card__content {
    width: 100%;
}

.jv_job_card__title {
    font-family: var(--secondary-font);
    font-size: var(--text-md);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-4);
    margin-bottom: 0;
    line-height: 1.3;
}

/* ------------------------------------------------------------------
   Responsive tweaks
   ------------------------------------------------------------------ */
@media (min-width: 768px) {
    .jv_hero_section .inner_hero__asset {
        max-height: 30rem;
    }

    .jv_join_section {
        padding: 4rem 0 2.5rem;
    }

    .jv_listings_bg {
        border-radius: 50% 50% 2.375rem 2.375rem / 5rem 5rem 2.375rem 2.375rem;
        padding: 5rem 0 4.5rem;
    }

    .jv_listings_grid {
        gap: 1.5rem;
    }

    .jv_job_card {
        min-height: 13rem;
        padding: 2.25rem 1.75rem 1.75rem;
    }
}

@media (min-width: 1200px) {
    .jv_hero_section .inner_hero__asset {
        max-height: 36rem;
    }

    .jv_join_section {
        padding: 5rem 0 3rem;
    }

    .jv_listings_bg {
        border-radius: 50% 50% 2.375rem 2.375rem / 7rem 7rem 2.375rem 2.375rem;
        padding: 7rem 0 6rem;
    }

    .jv_job_card {
        min-height: 15rem;
    }

    .jv_job_card__logo img {
        max-width: 10rem;
        max-height: 4.5rem;
    }
}
