/*
* Contentblokken voor 't Boerenerf
* USP's, feiten, opsommingen, dagritme, stappen, tijdlijn, callouts en CTA.
* Alle klassen zijn geprefixt met .be- zodat ze los staan van de themastijlen.
*/

:root {
    --be-groen: var(--maincolor, #93c93c);
    --be-groen-licht: #f2f8e8;
    --be-geel: var(--subcolor, #ffd300);
    --be-geel-licht: #fff9e0;
    --be-tekst: #303030;
    --be-tekst-zacht: #5f6b52;
    --be-rand: #e6e6e6;
    --be-vlak: #f7f7f5;
    --be-radius: 8px;
    --be-schaduw: 0 2px 14px rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------------------- basis */

.be-blok,
.be-feiten,
.be-usps,
.be-lijst,
.be-dagritme,
.be-stappen,
.be-tijdlijn,
.be-kaarten,
.be-cta,
.be-quote {
    margin: 35px 0;
    box-sizing: border-box;
}

.be-blok *,
.be-feiten *,
.be-usps *,
.be-dagritme *,
.be-stappen *,
.be-tijdlijn *,
.be-kaarten *,
.be-cta *,
.be-quote * {
    box-sizing: border-box;
}

.be-blok p:last-child,
.be-usps p:last-child,
.be-kaarten p:last-child,
.be-stappen p:last-child,
.be-tijdlijn p:last-child,
.be-cta p:last-child,
.be-quote p:last-child {
    margin-bottom: 0;
}

.be-blok a,
.be-usps a,
.be-kaarten a,
.be-stappen a,
.be-tijdlijn a,
.be-lijst a {
    color: var(--be-groen);
    font-weight: 600;
    display: inline;
    text-decoration: none;
}

.be-blok a:hover,
.be-usps a:hover,
.be-kaarten a:hover,
.be-stappen a:hover,
.be-tijdlijn a:hover,
.be-lijst a:hover {
    text-decoration: underline;
}

/* Kop boven een blokkenrij. De themastijlen zetten koppen op de homepage op
   display: table; binnen de blokken moeten ze gewoon blokniveau houden. */
.be-koptekst h2,
.be-koptekst h3,
.be-blok h2,
.be-blok h3,
.be-usp h3,
.be-kaart h3,
.be-stap h3,
.be-cta h3,
.be-tijdlijn h3 {
    display: block;
}

.be-koptekst {
    margin: 45px 0 20px 0;
}

.be-koptekst h2,
.be-koptekst h3 {
    margin: 0 0 8px 0;
}

.be-koptekst p {
    margin: 0;
    color: var(--be-tekst-zacht);
}

/* ------------------------------------------------------------- feitenrij */

.be-feiten {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.be-feit {
    flex: 1 1 0;
    min-width: 170px;
    background: var(--be-groen-licht);
    border-radius: var(--be-radius);
    padding: 25px 20px;
    text-align: center;
}

.be-feit .be-feit-getal {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--be-groen);
}

.be-feit .be-feit-label {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 22px;
    color: var(--be-tekst-zacht);
}

/* ----------------------------------------------------------------- usp's */

.be-usps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.be-usp {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid var(--be-rand);
    border-radius: var(--be-radius);
    padding: 28px 26px;
    box-shadow: var(--be-schaduw);
}

.be-usps.-drie .be-usp {
    flex: 1 1 280px;
}

.be-usps.-vier .be-usp {
    flex: 1 1 220px;
}

.be-usp .be-usp-icoon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--be-groen-licht);
    color: var(--be-groen);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.be-usp h3,
.be-usp h4 {
    margin: 0 0 8px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--be-groen);
}

.be-usp p {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
    color: var(--be-tekst);
}

/* --------------------------------------------------------------- kaarten */

.be-kaarten {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.be-kaart {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid var(--be-rand);
    border-radius: var(--be-radius);
    padding: 26px 24px;
    box-shadow: var(--be-schaduw);
}

.be-kaart h3,
.be-kaart h4 {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--be-groen);
}

.be-kaart p {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
}

/* ------------------------------------------------------------ opsomming */

ul.be-lijst {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

ul.be-lijst li {
    list-style-type: none;
    position: relative;
    padding: 0 0 0 34px;
    margin: 0 0 12px 0;
    line-height: 27px;
}

ul.be-lijst li:last-child {
    margin-bottom: 0;
}

ul.be-lijst li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--be-groen);
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
}

ul.be-lijst.-kruis li:before {
    content: "\f00d";
    background: #c9553c;
}

ul.be-lijst.-twee-koloms {
    display: flex;
    flex-wrap: wrap;
    gap: 0 30px;
}

ul.be-lijst.-twee-koloms li {
    flex: 1 1 300px;
}

/* --------------------------------------------------------------- callout */

.be-blok {
    border-radius: var(--be-radius);
    padding: 30px 32px;
    background: var(--be-vlak);
}

.be-blok.-groen {
    background: var(--be-groen-licht);
}

.be-blok.-geel {
    background: var(--be-geel-licht);
}

.be-blok h2,
.be-blok h3,
.be-blok h4 {
    margin: 0 0 12px 0;
    color: var(--be-groen);
    font-weight: 600;
}

.be-blok.-geel h2,
.be-blok.-geel h3,
.be-blok.-geel h4 {
    color: #8a6d00;
}

.be-blok p {
    margin: 0 0 14px 0;
    line-height: 28px;
}

.be-blok ul.be-lijst {
    margin: 18px 0 0 0;
}

/* Klein blok met icoon voor een losse mededeling */
.be-melding {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--be-geel-licht);
    border-radius: var(--be-radius);
    padding: 24px 26px;
    margin: 35px 0;
}

.be-melding .be-melding-icoon {
    flex: 0 0 auto;
    color: #c9a227;
    font-size: 22px;
    line-height: 28px;
}

.be-melding p {
    margin: 0;
    line-height: 28px;
}

/* -------------------------------------------------------------- dagritme */

.be-dagritme {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.be-dagritme .be-moment {
    display: flex;
    gap: 24px;
    align-items: baseline;
    background: var(--be-vlak);
    border-radius: var(--be-radius);
    padding: 18px 26px;
}

.be-dagritme .be-tijd {
    flex: 0 0 130px;
    font-weight: 700;
    color: var(--be-groen);
    font-size: 16px;
}

.be-dagritme .be-moment-tekst {
    flex: 1 1 auto;
    line-height: 27px;
}

.be-dagritme .be-moment-tekst strong {
    display: block;
    font-weight: 600;
}

/* --------------------------------------------------------------- stappen */

.be-stappen {
    counter-reset: be-stap;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.be-stap {
    flex: 1 1 260px;
    background: #fff;
    border: 1px solid var(--be-rand);
    border-radius: var(--be-radius);
    padding: 26px 24px;
    box-shadow: var(--be-schaduw);
}

.be-stap:before {
    counter-increment: be-stap;
    content: counter(be-stap);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--be-groen);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 15px;
}

.be-stap h3,
.be-stap h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--be-groen);
}

.be-stap p {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
}

/* -------------------------------------------------------------- tijdlijn */

.be-tijdlijn {
    display: block;
}

.be-tijdlijn .be-mijlpaal {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding-bottom: 26px;
}

.be-tijdlijn .be-mijlpaal:last-child {
    padding-bottom: 0;
}

.be-tijdlijn .be-jaar {
    flex: 0 0 96px;
    position: relative;
    text-align: center;
}

.be-tijdlijn .be-jaar span {
    display: inline-block;
    background: var(--be-groen);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 0;
    width: 96px;
    border-radius: 40px;
    position: relative;
    z-index: 2;
}

/* Verbindingslijn tussen de jaartallen */
.be-tijdlijn .be-mijlpaal:not(:last-child) .be-jaar:after {
    content: "";
    position: absolute;
    top: 40px;
    bottom: -30px;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #dfe8cf;
    z-index: 1;
}

.be-tijdlijn .be-mijlpaal-tekst {
    flex: 1 1 auto;
    background: var(--be-vlak);
    border-radius: var(--be-radius);
    padding: 22px 26px;
}

.be-tijdlijn .be-mijlpaal-tekst h3,
.be-tijdlijn .be-mijlpaal-tekst h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--be-groen);
}

.be-tijdlijn .be-mijlpaal-tekst p {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
}

/* ----------------------------------------------------------------- quote */

.be-quote {
    background: var(--be-groen-licht);
    border-radius: var(--be-radius);
    padding: 32px 36px;
}

.be-quote .be-quote-icoon {
    color: var(--be-groen);
    font-size: 26px;
    margin-bottom: 12px;
}

.be-quote p {
    margin: 0 0 16px 0;
    line-height: 30px;
    font-size: 16px;
}

.be-quote p:last-of-type {
    margin-bottom: 0;
}

.be-quote p.be-bron {
    display: block;
    margin: 18px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--be-tekst-zacht);
}

/* ------------------------------------------------------------------- cta */

.be-cta {
    background: var(--be-groen);
    border-radius: var(--be-radius);
    padding: 34px 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
}

.be-cta .be-cta-tekst {
    flex: 1 1 380px;
}

.be-cta h2,
.be-cta h3 {
    margin: 0 0 6px 0;
    color: #fff;
    font-weight: 600;
    font-size: 23px;
}

.be-cta p {
    margin: 0;
    color: #fff;
    line-height: 28px;
}

.be-cta .be-cta-knoppen {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.be-knop {
    display: inline-block;
    background: #fff;
    color: var(--be-groen);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 26px;
    border-radius: 3px;
    text-decoration: none;
}

.be-knop:hover {
    background: #f3f3f3;
    text-decoration: none;
}

.be-cta .be-knop.-lijn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
}

.be-cta .be-knop.-lijn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* De contentstijl van het thema maakt links groen en vet; binnen de CTA
   moeten ze wit blijven. */
body.page-template-default .content .be-cta a,
body.page-template-default .content .be-cta a:hover {
    color: var(--be-groen);
    text-decoration: none;
}

body.page-template-default .content .be-cta a.-lijn,
body.page-template-default .content .be-cta a.-lijn:hover {
    color: #fff;
}

body.page-template-default .content ul.be-lijst {
    margin-left: 0;
}

body.page-template-default .content ul.be-lijst li {
    list-style-type: none;
}

/* ------------------------------------------------------------ responsive */

@media screen and (max-width: 1000px) {

    .be-usps.-vier .be-usp {
        flex: 1 1 45%;
    }

    .be-cta {
        padding: 28px 26px;
    }

}

@media screen and (max-width: 800px) {

    .be-feit {
        flex: 1 1 45%;
    }

    .be-usp,
    .be-kaart,
    .be-stap {
        flex: 1 1 100%;
    }

    .be-dagritme .be-moment {
        display: block;
    }

    .be-dagritme .be-tijd {
        display: block;
        margin-bottom: 4px;
    }

}

@media screen and (max-width: 600px) {

    .be-feit {
        flex: 1 1 100%;
    }

    .be-blok,
    .be-quote {
        padding: 24px 22px;
    }

    .be-tijdlijn .be-mijlpaal {
        display: block;
        padding-bottom: 20px;
    }

    .be-tijdlijn .be-jaar {
        text-align: left;
        margin-bottom: 10px;
    }

    .be-tijdlijn .be-mijlpaal:not(:last-child) .be-jaar:after {
        display: none;
    }

    .be-cta {
        display: block;
    }

    .be-cta .be-cta-knoppen {
        margin-top: 20px;
    }

    .be-knop {
        display: block;
        text-align: center;
    }

}
