/*
 Theme Name:   LMPR (GeneratePress Child Theme)
 Theme URI:    https://lamper-design.nl
 Description:  GeneratePress child theme
 Author:       Team Lamper Design
 Author URI:   https://lamper-design.nl
 Template:     generatepress
 Version:      0.1
*/


@font-face {
	font-display: swap;
	font-family: "Outfit";
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/outfit-v15-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "Outfit";
	font-style: normal;
	font-weight: 600;
	src: url('assets/fonts/outfit-v15-latin-600.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: "Outfit";
	font-style: normal;
	font-weight: 700;
	src: url('assets/fonts/outfit-v15-latin-700.woff2') format('woff2');
}

/* Globals */

:root {
    --sitewidth: 1320px;
    --narrow-content: 78ch;
    --site-padding-inline: 1rem;
    --section-margin-block: clamp(4rem, 1.875rem + 8.5vw, 8.25rem);
    --border-radius: .75rem;
    --max-text-width: 85ch;
    --text-underline-offset: .25em;
    --h1-font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    --h2-font-size: clamp(2rem, 1.625rem + 1.5vw, 2.75rem);
    --h3-font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --h4-font-size: 1.5rem;
    --h5-font-size: 1.375rem;
    interpolate-size: allow-keywords;
}

@media (width >= 769px) {

    :root {
        --site-padding-inline: 2.5rem;
    }

}

html {
    overflow-x: clip;
}

html.mobile-menu-open.slide-opened, 
html:has(.facetwp-flyout.active) {
    overflow: clip;
}

@media (prefers-reduced-motion: no-preference) {

    html {
        scroll-behavior: smooth;
    }

    /* @view-transition {
        navigation: auto;
    } */

}

h1, h2, h3, h4, h5, h6, .h1-style, .h2-style, .h3-style, .h4-style {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

:is(h1,h2,h3,h4,h5,h6) a {
    text-decoration: none;
}

:is(h1,h2,h3,h4,h5,h6) a:hover {
    text-decoration: underline;
}

p,
li:not(.comment),
figcaption {
    text-wrap: pretty;
    /* max-width: 85ch; */
}

a {
    text-underline-offset: var(--text-underline-offset);
}

ul, ol {
	margin-left: 1.5em;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--accent);
}

a:not([href]) {
    cursor: pointer;
}

.container-padding {
    padding-inline: var(--container-padding);
}

.entry-content p+:is(h2,h3,h4) {
    margin-top: .75em;
}

.entry-content > figure:not(.wp-block-gallery) img {
    margin-bottom: 1.5rem;
}

.wp-block-gallery {
    margin-block: 1.25rem;
}

.wp-block-gallery img {
    transition: opacity 250ms ease-in-out;
}

.wp-block-gallery img:hover {
    opacity: .8;
}

.entry-content ol li::marker {
    font-weight: 600;
}

.wp-block-embed iframe {
    border-radius: var(--border-radius);
}

.entry-content .wp-block-embed {
    margin-block: 1.5em;
}

.gb-container p:last-child:last-of-type {
    margin-bottom: 0;
}

figcaption {
	margin-top: .375rem;
	font-weight: 500;
    text-align: center;
}

.list-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}

.scroll-offset,
[id] {
    scroll-margin-top: 2rem;
}

.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    -webkit-line-clamp: 4;
}

.line-clamp-10 {
    -webkit-line-clamp: 10;
}

.underline-offset-small,
.underline-offset-small a,
.rank-math-breadcrumb a {
    text-underline-offset: calc( var(--text-underline-offset) / 2 );
}

/* Page margin top */

.separate-containers .site-main {
    margin-top: clamp(2rem, 1rem + 4vw, 4rem);
}

.breadcrumbs-wrapper + .site .site-main {
    margin-top: 0;
}

/* Single Posts adjustment */

.single-post .entry-content,
.single-support .entry-content {
    max-width: var(--max-text-width);
}

:is(.single-post, .single-support, .single-module) .entry-content h2 {
    font-size: var(--h4-font-size);
}

:is(.single-post, .single-support, .single-module) .entry-content h3 {
    font-size: var(--h5-font-size);
}

:is(.single-post, .single-support, .single-module) .entry-content h4 {
    font-size: var(--h6-font-size);
}

/* Details/summary element */

details {
    max-width: 924px;
    margin-inline: auto;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

details::details-content {
    height: 0;
    transition: 
        height 250ms,
        content-visibility 250ms;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    height: auto;
    margin-bottom: 1.5rem;
}

details summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    cursor: pointer;
    gap: 1.25rem;
    padding-block: 1.5rem;
    font-weight: 600;
}

details summary::-webkit-details-marker { /* safari / ios */
    display: none !important;
}

details summary::after {
    content: ''; 
    width: 1.125rem;
    height: 1.125rem;
    background-image: url("/wp-content/themes/generatepress_child/assets/images/plus-regular.svg");    
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
    top: .125rem;
}

details[open] > summary:after {
    background-image: url("/wp-content/themes/generatepress_child/assets/images/minus-regular.svg");   
}

details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-base);
    margin-bottom: 0;
}

details p:last-child {
    margin-bottom: 0;
}

details .btn-text {
    margin-top: 1rem;
}

/* Banner */ 
.banner.gradient-bottom-to-top {
    --bottom-offset: 240px;
    background-image: linear-gradient(180deg, var(--canvas-base) 0%, var(--accent-light) calc(100% - var(--bottom-offset)), var(--canvas-base) calc(100% - var(--bottom-offset)));
    @media ( width < 768px) {
        --bottom-offset: 30vw;
    }
}

/* Review card -- other styling in global class */
.review-card .stars[data-cijfer="1"]::before { width: 12px; }
.review-card .stars[data-cijfer="2"]::before { width: 24px; }
.review-card .stars[data-cijfer="3"]::before { width: 36px; }
.review-card .stars[data-cijfer="4"]::before { width: 48px; }
.review-card .stars[data-cijfer="5"]::before { width: 60px; }
.review-card .stars[data-cijfer="6"]::before { width: 72px; }
.review-card .stars[data-cijfer="7"]::before { width: 84px; }
.review-card .stars[data-cijfer="8"]::before { width: 96px; }
.review-card .stars[data-cijfer="9"]::before { width: 108px; }
.review-card .stars[data-cijfer="10"]::before { width: 120px; }

/* Single Post - Single */

.single-post .entry-header h1 {
    margin-bottom: .25em;
}

.single-post .entry-header .posted-on {
    background-image: url('assets/images/calendar-regular-full.svg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 1.375rem;
    padding-left: 1.75rem;
}

/* CPT - Support/Features - Archive */

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group {
    display: grid;
    column-gap: 3rem;
    margin-block: clamp(4rem, 2.875rem + 4.5vw, 6.25rem);
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group:not(.active) {
    display: none;
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group.active {
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
    margin-top: 2rem;
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group:nth-child(n + 2 of .active) {
    border-top: none;
    padding-top: 0;
    margin-top: clamp(4rem, 2.875rem + 4.5vw, 6.25rem);
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-heading {
    display: flex;
    gap: .375rem;
    flex-shrink: 0;
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-title {
    margin-bottom: 0;
}

:is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-count {
    font-size: 12pt;
    font-weight: 700;
    color: var(--accent-alt);
    letter-spacing: 0.01em;
    line-height: 1.8;
}

@media (width > 768px) {

    :is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group {
        grid-template-columns: 1fr 2fr;
        place-items: start;
    }

    :is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-posts {
        justify-self: end;
        width: 100%;
        max-width: 818px;
    }

    :is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-count {
        font-size: 14pt;
        line-height: 2;
    }

}

@media (width > 1024px) {

    :is(.post-type-archive-support,.post-type-archive-feature) .taxonomy-group {
        grid-template-columns: 1fr 3fr;
    }

}

/* CPT - Features - Archive */

.post-type-archive-feature .taxonomy-group {
    row-gap: .75rem;
}

.features-list {
    list-style-type: none;
    margin: 0;
}

.features-list li {
    display: flex;
    gap: .5rem;
    padding-block: .5rem;
}

.features-list li::before {
    --icon-size: 1.75rem;
    content: '';
    flex-shrink: 0;
    width: var(--icon-size);
    height: var(--icon-size);
    background-image: url("/wp-content/themes/generatepress_child/assets/images/checkmark-green.svg");
    background-size: 1.25rem;
    background-repeat: no-repeat;
    background-position: left center;
    @media ( width > 768px ) {
        --icon-size: 1.5rem;
    }
}

/* .features-list li:nth-of-type(odd) {
    background-color: var(--accent-light);
} */

/* CPT - Support - Single */

.single-support .entry-header iframe {
    width: 100%;
    max-width: 640px;
    margin-top: 1.5rem;
}


/* Currency switcher */

.currency-switcher {
    display: flex;
    justify-content: center;
    position: relative;
    margin-inline: auto;
}

.currency-switcher select {
    background: transparent;
    padding: .125rem .5rem;
    margin-left: 1.675rem;
    font-weight: 600;
    border: none;
}

.currency-switcher:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.75rem;
    height: 1.75rem;
    background-image: url("/wp-content/themes/generatepress_child/assets/images/european-union-flag.svg");
    background-size: 1.75rem;
    background-repeat: no-repeat;
}

.currency-switcher:has(option[value="dollar"]:checked):before {
    background-image: url("/wp-content/themes/generatepress_child/assets/images/united-states-flag.svg");
}

.currency-switcher:has(option[value="pound"]:checked):before {
    background-image: url("/wp-content/themes/generatepress_child/assets/images/united-kingdom-flag.svg");
}

/* Subsciptions & Modules */

.price-switches {
    display: grid;
    align-items: center;
    gap: 1.5rem 1rem;
}

.subscription-model-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-inline: auto;
    background-color: var(--accent-light);
    padding: .5rem;
    border-radius: 100vw;
}

.btn-radio {
    background-color: var(--canvas-light);
    padding: .75rem 1.5rem;
    border-radius: 100vw;
    color: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.btn-radio:has(:checked) {
    background-color: var(--canvas-base);
}

.btn-radio:hover {
  background-color: var(--canvas-base);
}

.btn-radio:has(:focus-visible) {
  outline: 2px solid #ffbf47;
}

.btn-radio .hidden-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subscriptions-wrapper {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.75rem;
}

.subscription {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--canvas-base);
}

.subsciption-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

.subsciption-heading h2 {
    margin-bottom: 0;
}

.subsciption-heading > .label {
    padding: .5rem 1rem;
    background-color: var(--accent-light);
    border-radius: .25rem;
    font-size: .875rem;
    font-weight: 600;
}

.subsciption-prices {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.subsciption-prices .number {
    display: flex;
}

.price-switches:has(#radio-yearly:checked) + .subscriptions-wrapper .price-monthly,
.price-switches:has(#radio-monthly:checked) + .subscriptions-wrapper .price-yearly {
    display: none;
}

.price-euro, .price-dollar, .price-pound {
    display: none;
}

.price-switches:has(option[value="euro"]:checked) + .subscriptions-wrapper .price-euro,
.price-switches:has(option[value="dollar"]:checked) + .subscriptions-wrapper .price-dollar,
.price-switches:has(option[value="pound"]:checked) + .subscriptions-wrapper .price-pound,
.module-currency-switcher:has(option[value="euro"]:checked) ~ article .price-euro,
.module-currency-switcher:has(option[value="dollar"]:checked) ~ article .price-dollar,
.module-currency-switcher:has(option[value="pound"]:checked) ~ article .price-pound {
    display: revert;
}

.currency {
    display: none;
}

.price-switches:has(option[value="euro"]:checked) + .subscriptions-wrapper .currency-euro,
.price-switches:has(option[value="dollar"]:checked) + .subscriptions-wrapper .currency-dollar,
.price-switches:has(option[value="pound"]:checked) + .subscriptions-wrapper .currency-pound {
    display: revert;
}

.subscription .btn-primary {
    width: 100%;
    margin-block: 1.5rem
}

.subscription-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.subscription-spec-row:last-child {
    border-bottom: none;
}

.subscription-spec-row .label {
    display: flex;
    align-items: start;
    gap: .5rem;
}

.subscription-spec-row button {
    display: grid;
    place-items: center;
    padding: 0;
    background-color: var(--canvas-base);
}

.subscription-spec-row .value {
    color: var(--accent);
}

.subscription-spec-row .value img {
    vertical-align: sub;
}

@media ( width > 768px ) {

    .price-switches {
        grid-template-columns: repeat(3, 1fr);
    }

    .subscription-model-switcher {
        grid-column: 2 / 3;
    }

    .currency-switcher {
        margin-right: 0;
    }

    .subscription {
        display: grid;
        grid-template-columns: 285px 1fr;
        column-gap: 2rem;
    }

}

@media ( width > 1024px ) {

    .subscriptions-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .subscription {
        display: block;
    }

}

/* CPT Module */

.single-module .currency-switcher,
.post-type-archive-module .currency-switcher {
    justify-content: flex-start;
}

@media ( width > 768px ) {

    .single-module .site-main,
    .post-type-archive-module .site-main {
        position: relative;
    }

    .single-module .module-currency-switcher,
    .post-type-archive-module .module-currency-switcher {
        position: absolute;
        top: .5rem;
        right: 0;
        padding: 0;
    }

    .single-module .module-currency-switcher {
        padding-right: var(--site-padding-inline);
    }

    .single-module .entry-title,
    .post-type-archive-module .page-title {
        max-width: calc(100% - 180px );
    }

}

/* CPT Module - Archive */

.post-type-archive-module .site-main {
    display: grid;
    gap: 1.5rem;
    padding-inline: var(--site-padding-inline);
}

.post-type-archive-module .page-header {
    grid-column: 1 / -1;
    padding-inline: 0;
}

.post-type-archive-module .module-currency-switcher {
    grid-column: 1 / -1;
    margin-left: 0;
    padding: 0;
}

.post-type-archive-module article {
    margin: 0;
}

.post-type-archive-module article .inside-article {
    display: flex;
    height: 100%;
    padding: 0;
}

.post-type-archive-module article .inside-article img {
    order: -1;
}

@media ( width > 768px ) {

    .post-type-archive-module .site-main {
        grid-template-columns: 1fr 1fr;
    }

}

@media ( width > 1024px ) {

    .post-type-archive-module .site-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

/* FacetWP */

.facetwp-facet-search.facetwp-facet {
    margin-bottom: 0;
}

.facetwp-facet-search .facetwp-input-wrap,
.facetwp-facet-search .facetwp-search {
    width: 100%;
}

.facetwp-facet-search .facetwp-search {
    border-radius: 100vw;
    background-color: #F7F8FA;
    padding: 1.5rem;
}

.facetwp-facet-search .facetwp-icon {
    right: 1rem;
    opacity: 1;
}

.facetwp-facet-search .facetwp-icon:before {
    background-image: url('assets/images/magnifier-icon.svg');
}

.facetwp-type-search i.clear {
    position: absolute;
    right: 3.25rem;
    cursor: pointer;
    display: inline-block;
    opacity: .7;
    width: 1.5rem;
    height: 100%;
    background: transparent url('/wp-content/plugins/facetwp/assets/images/icon-close.png') 6px 50% no-repeat;
    background-size: 1rem;
}

.facetwp-type-search i.clear:hover {
    opacity: 1;
}

/* no clear icon  while the Search facet is loading */
/* and when an auto-refresh is running */
.facetwp-type-search .f-loading + input + i.clear,
.facetwp-type-search .loading + i.clear {
    display: none !important;
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen).facetwp-facet {
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: .75rem;
    margin-bottom: 0;
    padding-bottom: 1rem;
    @media ( width > 1024px ) {
        overflow-x: revert;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen) .facetwp-radio {
    flex-shrink: 0;
    padding: .75rem 1.5rem;
    margin-bottom: 0;
    background-image: none;
    background-color: var(--canvas-base);
    border: 1px solid var(--text-base);
    border-radius: 100vw;
    font-weight: 600;
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen) .facetwp-radio:is(:hover,:focus-visible) {
    background-color: var(--accent-light);
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen) .facetwp-radio.checked {
    background-image: none;
    background-color: var(--accent-light);
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen) .facetwp-display-value {
    padding-right: 0;
}

:is(.facetwp-facet-support_categorieen,.facetwp-facet-features_categorieen) .facetwp-counter {
    display: none;
}

/* Gravity forms */

.gform_wrapper .gform_body .gform_fields :is(input:not([type="submit"],[type="checkbox"],[type="radio"]),textarea,select) {
    padding: .75rem;
    border-radius: .25rem;
}

.gform_fields label.gfield_label.gform-field-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-weight: 600;
    margin-bottom: .25rem;
}

.gfield_description {
    margin-block: -.25rem .5rem !important;
    padding-block: 0 !important;
    color: #555;
}

.gfield_required .gfield_required.gfield_required_text {
    color: var(--text-base);
    font-size: .875rem;
}

.gfield--input-type-consent legend {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.gform-field-label.gfield_consent_label {
    font-size: 1rem;
    margin-left: .25rem;
}

.gfield--type-consent.gfield--type-choice input {
    width: 1rem;
    height: 1rem;
}

.abonnement-aanvraagformulier_wrapper .abonnement-aanvraagformulier .gform_fields {
    row-gap: 1.5rem;
}

form.nieuwsbrief {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem 2rem;
}

form.nieuwsbrief > div:first-child {
    flex-grow: 1;
}

form.nieuwsbrief .gform-footer {
    padding: 0 !important;
    margin: 0 !important;
}

.gform_wrapper input[type=submit].gform_button {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-base);
    text-decoration: underline;
    text-underline-offset: .25em;
    padding: 0 1.25rem 0 0;
    background-color: transparent;
    background-image: url('https://n0devzooeasy.kinsta.cloud/wp-content/uploads/2025/10/angle-right-regular.svg');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: .675rem;
    transition: padding-right 0.25s ease-in-out 0s;
}

.gform_wrapper input[type=submit].gform_button:is(:hover,:focus-visible) {
    padding-right: 1.675rem;
}

.gform_wrapper.abonnement-aanvraagformulier_wrapper input[type=submit].gform_button {
    text-decoration: none;
    color: var(--text-base);
    padding: 1rem 2.75rem 1rem 1.5rem;
    background-color: var(--cta);
    background-position: calc(100% - 1.5rem) center;
    border-radius: 100vw;
}

.gform_wrapper.abonnement-aanvraagformulier_wrapper input[type=submit].gform_button:is(:hover,:focus-visible) {
    background-color: var(--cta-hover);
}
