/**
 * EV-voucher campaign styles.
 *
 * Covers the three blocks introduced for the voucher page (usp-strip, steps,
 * card-grid) plus a few helper classes that can be added to core blocks from
 * the editor: .eyebrow, .check-list and .link-arrow.
 */

:root {
    --ev-red: #e8433b;
    --ev-muted: #5a5a5a;
    --ev-border: #e6e6e6;
}


/* Helpers -------------------------------------------------------------- */

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.link-arrow a,
a.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
}
.link-arrow a:after,
a.link-arrow:after {
    content: 'east';
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    line-height: 1;
    transition: transform .25s ease;
}
.link-arrow a:hover,
a.link-arrow:hover {
    text-decoration: none;
}
.link-arrow a:hover:after,
a.link-arrow:hover:after {
    transform: translateX(4px);
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.check-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
}
.check-list li:before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--primary);
}
.check-list--inline {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
}
.check-list--inline li {
    margin-bottom: 0;
    padding-left: 26px;
    font-size: 15px;
}
.check-list--inline li:before {
    font-size: 18px;
    color: var(--dark);
}


/* USP strip ------------------------------------------------------------ */

.usp-strip__item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
}
.usp-strip__icon {
    flex-shrink: 0;
    line-height: 0;
}
.usp-strip__icon .material-symbols-outlined {
    font-size: 40px;
    color: var(--ev-red);
}
.usp-strip__icon-img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.usp-strip__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 25.6px;
    margin: 0;
}
.usp-strip__subtitle {
    font-size: 14px;
    line-height: 22.4px;
    color: var(--ev-muted);
    margin: 2px 0 0 0;
}

.usp-strip--inline .usp-strip__item {
    align-items: center;
}

.usp-strip--stacked .usp-strip__item {
    flex-direction: column;
    gap: 14px;
    padding: 12px 0;
}
.usp-strip--stacked .usp-strip__icon .material-symbols-outlined {
    font-size: 64px;
}
.usp-strip--stacked .usp-strip__icon-img {
    width: 76px;
    height: 76px;
}
.usp-strip--stacked .usp-strip__title {
    font-family: 'komet', sans-serif;
    font-size: 20px;
    line-height: 26px;
}
.usp-strip--stacked .usp-strip__subtitle {
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 4px;
}


/* Steps ---------------------------------------------------------------- */

.steps__list {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 0;
    position: relative;
}
/* Connector line running from the first badge to the last one. */
.steps__list:before {
    content: '';
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 42px;
    width: 2px;
    background: var(--ev-border);
}
.steps__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}
.steps__item:last-child {
    margin-bottom: 0;
}
.steps__badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dark);
    font-family: 'komet', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
}
.steps__body {
    display: block;
    padding-top: 6px;
}
.steps__title {
    display: block;
    font-family: 'komet', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
}
.steps__text {
    display: block;
    font-size: 16px;
    line-height: 25.6px;
    color: var(--ev-muted);
    margin-top: 4px;
}

.steps {
    margin-bottom: 24px;
}
.steps__figure {
    margin: 0;
}
.steps__figure .landscape {
    border-radius: 8px;
}
.steps__figure video.img-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.steps__caption {
    font-size: 14px;
    line-height: 22.4px;
    color: var(--ev-muted);
    margin-top: 12px;
}


/* Card grid ------------------------------------------------------------ */

.card-grid {
    margin-top: 36px;
}
.card-grid .row {
    row-gap: 30px;
}
.card-grid__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    padding: 20px;
}
.card-grid__item--primary {
    background: var(--primary);
    border-color: var(--primary);
}
.card-grid__item--light {
    background: var(--light);
    border-color: var(--light);
}
.card-grid__item--dark {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}
.card-grid__item--dark .card-grid__title,
.card-grid__item--dark .card-grid__link {
    color: #fff;
}

.card-grid__logo {
    margin-bottom: 16px;
}
.card-grid__logo-img {
    display: block;
    width: 100%;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}
.card-grid__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}
.card-grid__item--light .card-grid__label {
    color: var(--ev-muted);
}
.card-grid__title {
    font-size: 20px;
    line-height: 26px;
    margin: 0;
}
.card-grid__text {
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 12px;
}
.card-grid__text p:last-child {
    margin-bottom: 0;
}
.card-grid__action {
    margin-top: auto;
    padding-top: 16px;
}
.card-grid__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22.4px;
    text-decoration: none;
    color: var(--dark);
}
.card-grid__link:hover {
    text-decoration: none;
}
.card-grid__link .material-symbols-outlined {
    font-size: 16px;
    transition: transform .25s ease;
}
.card-grid__link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* The two-door route choice uses roomier cards than the trainer grid. */
.card-grid--2 .card-grid__item {
    border-radius: 12px;
    padding: 28px;
}
.card-grid--2 .card-grid__title {
    font-size: 24px;
    line-height: 30px;
}
.card-grid--2 .card-grid__action {
    padding-top: 24px;
}

@media (min-width: 992px) {
    .card-grid--2 .card-grid__item {
        padding: 36px;
    }
    .card-grid--2 .card-grid__title {
        font-size: 28px;
        line-height: 33.6px;
    }
}


/* Hero ----------------------------------------------------------------- */

/* Red variant of the theme's "info" hero, including a recoloured OOMT arc.
   The wrapper picks up the generic block spacing, so it is reset here. */
.ev-hero {
    margin-top: 0 !important;
}
.ev-hero .hero-info {
    background: var(--ev-red);
}
.ev-hero .hero-info .hero__title,
.ev-hero .hero-info .hero__subtitle,
.ev-hero .hero-info .hero__subtitle p {
    color: #fff;
}
/* The theme draws a yellow marker before an h1; it clashes with the red hero. */
.ev-hero .hero-info .hero__title:before {
    display: none;
}

/* A touch smaller than the theme's 64px, so "jouw EV-opleiding" fits on one
   line in the 535px text column instead of wrapping to a fourth line. */
@media (min-width: 1240px) {
    .ev-hero .hero-info .hero__title {
        font-size: 60px;
    }
}
.ev-hero .hero-info .hero__tag {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* The design puts the hero intro on the 18px lead size. */
.ev-hero .hero-info .hero__subtitle p {
    font-size: 18px;
    line-height: 28.8px;
}
.ev-hero .hero-info .hero__subtitle .hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 28px;
}
.ev-hero .hero-info .hero__subtitle .hero-cta .btn {
    margin-top: 0;
}
.ev-hero .hero-info .hero__subtitle a.link-arrow {
    color: #fff;
}

/* The hero sits flush on the USP strip below it. */
.ev-hero .hero-info {
    margin-bottom: 0;
}

/* The campaign video fills its box completely (object-fit: cover comes from
   .img-cover). The headline has roughly 20% empty margin on either side, and
   the script picks the cut whose shape is closest to the box, so what cover
   trims never reaches the text. */
.ev-hero .hero-info .hero__image {
    background: transparent;
}

/* Stacked layout: a 16:9 box, so the wide cut fills it exactly and the red
   block underneath comes into view sooner than with a square video. */
@media (max-width: 991px) {
    .ev-hero .hero-info .hero__image {
        padding-bottom: 56.25%;
    }
}

@media (min-width: 992px) {
    .ev-hero .hero-info .hero__image:before {
        background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Laag_1' xmlns='http://www.w3.org/2000/svg' width='218' height='1432.83' viewBox='0 0 218 1432.83'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23e8433b;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M22.74,716.42C22.74,454.88,93.94,209.96,218,0H0v1432.83h218C93.94,1222.87,22.74,977.96,22.74,716.42Z'/%3E%3C/svg%3E");
    }
    /* The image is static by default in this hero; positioning it like the
       video keeps the two in register while the video loads. */
    .ev-hero .hero-info .hero__image img,
    .ev-hero .hero-info .hero__image video {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}


/* The closing CTA is a full-bleed block, so the newsletter section below it
   sits flush instead of keeping the theme's default gap. Scoped to this hero
   so other pages keep their spacing. */
main:has(.ev-hero) + .section-newsletter {
    margin-top: 0;
}
