/*
 * Vacaturedetail: hero met branche-afbeelding, contactpersoon en vacaturetekst.
 *
 * Deze opmaak hoort bij de placeholders {{vacancy_hero}}, {{vacancy_contact}}
 * en {{vacancy_text}}. Gebruik je die niet in je template, dan doet dit
 * stylesheet niets.
 *
 * Accentkleur: #f26718.
 */

/* ---------------------------------------------------------------------- hero */

.vw-vacancy-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(280px, 32vw, 460px);
    margin: 0 0 32px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0f172a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.vw-vacancy-hero--no-image {
    background-image: linear-gradient(135deg, #1e293b, #0f172a);
}

.vw-vacancy-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(8, 20, 32, 0.92) 0%,
            rgba(8, 20, 32, 0.72) 38%,
            rgba(8, 20, 32, 0.22) 74%,
            rgba(8, 20, 32, 0.04) 100%);
}

.vw-vacancy-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 32px;
    color: #ffffff;
}

.vw-vacancy-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vw-vacancy-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: calc(13px * var(--vw-font-scale, 1));
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
}

.vw-vacancy-hero-badge-contract {
    background: #f26718;
}

.vw-vacancy-hero-badge-priority {
    background: #dc2626;
}

.vw-vacancy-hero-badge-new {
    background: rgba(255, 255, 255, 0.25);
}

.vw-vacancy-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: calc(clamp(28px, 3.4vw, 46px) * var(--vw-font-scale, 1));
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.vw-vacancy-hero-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.vw-vacancy-hero-meta-list:empty {
    display: none;
}

.vw-vacancy-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(16px * var(--vw-font-scale, 1));
    line-height: 1.3;
}

.vw-vacancy-hero-meta-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.vw-vacancy-hero-meta--salary .vw-vacancy-hero-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
}

.vw-vacancy-hero-meta--hours .vw-vacancy-hero-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
}

.vw-vacancy-hero-meta--industry .vw-vacancy-hero-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
}

.vw-vacancy-hero-meta--location .vw-vacancy-hero-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------- vacaturetekst */

.vw-vacancy-text-section + .vw-vacancy-text-section {
    margin-top: 28px;
}

.vw-vacancy-text-heading {
    margin: 0 0 12px;
    font-size: calc(24px * var(--vw-font-scale, 1));
    line-height: 1.2;
}

.vw-vacancy-text ul,
.vw-vacancy-text ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

/* -------------------------------------------------------------- contactpersoon */

.vw-vacancy-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.vw-vacancy-contact-photo {
    flex: 0 0 auto;
}

.vw-vacancy-contact-photo img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    object-fit: cover;
}

.vw-vacancy-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vw-vacancy-contact-intro {
    color: #64748b;
    font-size: calc(14px * var(--vw-font-scale, 1));
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vw-vacancy-contact-name {
    font-size: calc(19px * var(--vw-font-scale, 1));
    line-height: 1.3;
    color: #0f172a;
}

.vw-vacancy-contact-function {
    color: #475569;
    font-size: calc(15px * var(--vw-font-scale, 1));
}

.vw-vacancy-contact-link {
    color: #f26718;
    font-size: calc(15px * var(--vw-font-scale, 1));
    text-decoration: none;
    overflow-wrap: anywhere;
}

.vw-vacancy-contact-link:hover,
.vw-vacancy-contact-link:focus {
    text-decoration: underline;
}

.vw-vacancy-contact-link--phone {
    margin-top: 8px;
}

/* -------------------------------------------------------------------- mobiel */

@media (max-width: 640px) {
    .vw-vacancy-hero {
        border-radius: 0;
        min-height: 320px;
    }

    .vw-vacancy-hero-inner {
        padding: 22px;
    }

    .vw-vacancy-hero-meta-list {
        flex-direction: column;
        gap: 8px;
    }

    .vw-vacancy-contact {
        flex-direction: column;
        align-items: flex-start;
    }
}
