/*
Theme Name: Brink Techniek
Theme URI: https://energized.nl
Description: Child theme voor Brink Techniek, gebaseerd op Energized Base.
Author: Energized
Template: energized-base
Version: 1.0.2
Text Domain: brink-techniek
*/

h1,
h2,
h3,
h1[class],
h2[class],
h3[class] {
    font-weight: var(--font-heading-weight, 900);
}

.module-counters .module-counters__grid {
    align-items: stretch;
}

.module-counters .module-counter {
    background: #f1f2f4;
    border-radius: 1.25rem;
    height: 100%;
    max-width: none;
    padding: clamp(1.5rem, 3vw, 2.25rem) 1rem 1.35rem;
}

.module-counter__suffix {
    display: inline-block;
    font-size: 0.58em;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    margin-left: 0.06em;
    position: relative;
    top: -0.72em;
    vertical-align: baseline;
}

.home .module-card__title {
    font-weight: 700;
}

.home .module-card {
    box-shadow: 0 10px 28px rgba(23, 32, 48, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.home .module-counters .module-counter {
    box-shadow: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home .module-card--link:hover,
.home .module-counters .module-counter:hover {
    box-shadow: 0 18px 40px rgba(23, 32, 48, 0.12);
    transform: translateY(-4px);
}

.module-reviews--slider .module-reviews__viewport {
    cursor: grab;
}

.module-reviews--slider .module-reviews__viewport.is-dragging {
    cursor: grabbing;
}

.home .module-review {
    position: relative;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: none;
    max-height: min(26rem, 70vh);
    padding: 1.45rem 1.45rem 1.2rem;
}

.home .module-review::before {
    content: "\201C";
    position: absolute;
    top: 0.55rem;
    right: 1.15rem;
    color: #ff5921;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.25rem;
    line-height: 1;
    opacity: 0.28;
    pointer-events: none;
}

.home .module-review:hover {
    transform: none;
    box-shadow: none;
}

.home .module-review:hover::before {
    opacity: 0.55;
}

.home .module-review__stars,
.home .module-review__author {
    flex-shrink: 0;
}

.home .module-review__text {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    scrollbar-color: rgba(23, 32, 48, 0.35) transparent;
    scrollbar-width: thin;
}

.home .module-review__text::-webkit-scrollbar {
    width: 8px;
}

.home .module-review__text::-webkit-scrollbar-thumb {
    background: rgba(23, 32, 48, 0.28);
    border-radius: 99px;
}

.home .module-review__author {
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(23, 32, 48, 0.08);
    font-weight: 650;
}

.nav-bar__logo svg.nav-bar__logo-default {
    width: var(--nav-logo-width, var(--logo-width, 180px));
    height: auto;
    display: block;
}

.nav-logo-shrink.nav-is-scrolled .nav-bar__logo svg.nav-bar__logo-default {
    width: var(--nav-logo-width-scrolled, var(--nav-logo-width, var(--logo-width, 180px)));
}

.topbar .site-lang {
    position: relative;
    z-index: 40;
    font-family: inherit;
}

.topbar .site-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.85rem;
    margin: 0;
    padding: 0.16rem 0.55rem 0.16rem 0.22rem;
    border: 0;
    border-radius: 99em;
    background: #fff;
    box-shadow: 0 6px 16px rgba(23, 32, 48, 0.18);
    color: #172030;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.topbar .site-lang__toggle:hover,
.topbar .site-lang__toggle:focus-visible {
    background: #fff7f3;
    box-shadow: 0 8px 20px rgba(255, 89, 33, 0.22);
    outline: none;
}

.topbar .site-lang.is-open .site-lang__toggle {
    background: #172030;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 32, 48, 0.35);
}

.topbar .site-lang__flag {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    overflow: hidden;
    border-radius: 99em;
    background: #f4f5f7;
    box-shadow: 0 0 0 1px rgba(23, 32, 48, 0.12);
}

.topbar .site-lang__flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar .site-lang.is-open .site-lang__flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.topbar .site-lang__current {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.topbar .site-lang__chevron {
    display: block;
    width: 0.34rem;
    height: 0.34rem;
    margin-top: -0.1rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.75;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.topbar .site-lang.is-open .site-lang__chevron {
    margin-top: 0.1rem;
    transform: rotate(-135deg);
}

.topbar .site-lang__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 50;
    min-width: 11.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(23, 32, 48, 0.08);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(23, 32, 48, 0.16);
    transform-origin: top right;
    animation: brink-lang-in 0.16s ease both;
}

.topbar .site-lang__panel[hidden] {
    display: none !important;
}

@keyframes brink-lang-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar .site-lang .gtranslate_wrapper,
.topbar .site-lang .gt_container,
.topbar .site-lang .gt_switcher {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    float: none !important;
    position: static !important;
    font: inherit !important;
}

.topbar .site-lang a.glink {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0 !important;
    padding: 0.55rem 0.7rem !important;
    border: 0 !important;
    border-radius: 99em !important;
    background: transparent !important;
    color: #172030 !important;
    font-family: inherit !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.topbar .site-lang a.glink:hover {
    background: #fff1eb !important;
    color: #ff5921 !important;
    text-decoration: none !important;
}

.topbar .site-lang a.glink.gt-current-lang {
    background: rgba(255, 89, 33, 0.1) !important;
    color: #ff5921 !important;
    font-weight: 700 !important;
}

.topbar .site-lang a.glink img {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 99em;
    object-fit: cover;
    opacity: 1 !important;
}

.topbar .site-lang a.glink span {
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
    .topbar .site-lang__panel,
    .home .module-card,
    .home .module-counters .module-counter {
        animation: none;
        transition: none;
    }
}

.logo-gear,
.logo-bearing {
    transform-box: fill-box;
    transform-origin: center;
}

@media (max-width: 991px) {
    .topbar {
        display: block;
        --topbar-height: 2.5rem;
        font-size: 0.92rem;
    }

    .topbar__inner {
        flex-wrap: nowrap;
        gap: 0.75rem;
        min-height: var(--topbar-height);
    }

    .topbar__left {
        gap: 0.75rem;
        min-width: 0;
    }

    .topbar__left > li:has(> .topbar__link--email) {
        display: none;
    }

    .topbar__link--phone > span:not(.topbar__icon) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-behavior--transparent.nav-has-topbar .nav-bar,
    .nav-behavior--transparent.nav-is-scrolled.nav-has-topbar.nav-topbar-sticky .nav-bar,
    .nav-behavior--fixed.nav-has-topbar.nav-topbar-sticky .nav-bar {
        top: var(--topbar-height, 2.5rem);
    }

    .nav-behavior--fixed.nav-has-topbar.nav-topbar-sticky .site-nav {
        padding-top: calc(var(--nav-height, 4.5rem) + var(--topbar-height, 2.5rem));
    }

    .nav-behavior--transparent.nav-no-hero.nav-has-topbar .main {
        padding-top: calc(var(--nav-height, 4.5rem) + var(--topbar-height, 2.5rem) + 1.25rem);
    }

    .nav-behavior--transparent.nav-no-hero.nav-has-topbar .main--commerce,
    .nav-behavior--transparent.nav-no-hero.nav-has-topbar .woocommerce-main {
        padding-top: calc(var(--nav-height, 4.5rem) + var(--topbar-height, 2.5rem) + clamp(4.5rem, 8vw, 6rem));
    }

    body.nav-open .nav-bar,
    body.nav-open.nav-behavior--transparent .nav-bar,
    body.nav-open.nav-behavior--transparent.nav-is-scrolled .nav-bar,
    body.nav-open.nav-behavior--transparent.nav-is-scrolled.nav-topbar-sticky .nav-bar {
        border-bottom-color: transparent !important;
    }

    body.nav-open .nav-panel {
        top: calc(var(--nav-drawer-top, 4.5rem) - 1px);
    }

    .nav-bar__logo svg.nav-bar__logo-default {
        width: var(--nav-logo-width-mobile, var(--nav-logo-width, var(--logo-width, 180px)));
    }

    .nav-logo-shrink.nav-is-scrolled .nav-bar__logo svg.nav-bar__logo-default {
        width: var(--nav-logo-width-scrolled-mobile, var(--nav-logo-width-mobile, var(--nav-logo-width-scrolled, var(--nav-logo-width, var(--logo-width, 180px)))));
    }
}

.module--media-content {
    position: relative;
    overflow: hidden;
}

.module--media-content::before {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(24rem, 36vw);
    aspect-ratio: 1;
    transform: translate(46%, -10%);
    background: url("assets/img/bearing.svg") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.module--media-content .module-media__inner {
    position: relative;
    z-index: 1;
}

/* Stacked Media–Content blocks alternate the corner: right, left, right… */
.module--media-content + .module--media-content::before,
.module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
.module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
.module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before {
    right: auto;
    left: 0;
    transform: translate(-46%, -10%);
}

.module--media-content + .module--media-content + .module--media-content::before,
.module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
.module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before {
    right: 0;
    left: auto;
    transform: translate(46%, -10%);
}

@media (max-width: 899px) {
    .module--media-content::before {
        width: min(12rem, 48vw);
        opacity: 0.08;
        transform: translate(50%, -8%);
    }

    .module--media-content + .module--media-content::before,
    .module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
    .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
    .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before {
        transform: translate(-50%, -8%);
    }

    .module--media-content + .module--media-content + .module--media-content::before,
    .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before,
    .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content + .module--media-content::before {
        transform: translate(50%, -8%);
    }
}

.site-footer .site-footer__grid--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.75rem;
    width: 100%;
}

.site-footer .site-footer__grid--split > .site-footer__col {
    flex: 0 1 auto;
    width: auto;
    max-width: 22rem;
    min-width: 0;
}

.site-footer .site-footer__grid--split .site-footer__title {
    margin-bottom: 0.85rem;
}

@media (min-width: 900px) {
    .site-footer .site-footer__grid--split {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        column-gap: clamp(1.75rem, 3vw, 3rem);
    }
}

.hero--image-top .hero__image {
    object-position: center top;
}

.hero--image-bottom .hero__image {
    object-position: center bottom;
}

@media (prefers-reduced-motion: reduce) {
    .home .module-card,
    .home .module-counters .module-counter {
        transition: none;
    }

    .home .module-card--link:hover,
    .home .module-counters .module-counter:hover,
    .home .module-review:hover {
        transform: none;
    }
}
