/*
Theme Name: SUPRENO
Theme URI: https://supreno.be
Author: Emiel Dewulf
Author URI: https://emieldewulf.be
Description: Theme for Supreno
Version: 1.0
Text Domain: base-theme
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
*/

body {
    font-family: 'Inter', sans-serif;
}

section[id] {
    scroll-margin-top: 120px;
}

[data-hero] {
    background: var(--color-primary);
}

.dienst-icon svg,
.dienst-icon img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dienst-icon svg * {
    stroke-width: 1.5px;
}

.dienst-section-icon {
    padding: 10px !important;
}

.dienst-section-icon svg,
.dienst-section-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 0%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* ============================================
   DIENSTEN SLIDER
   ============================================ */

.diensten-slider-outer {
    flex: 1;
    min-width: 0;
    /* breekt rechts uit tot aan de schermrand */
    margin-right: calc(-1 * var(--spacing-x, 48px) - max(0px, (100vw - var(--container-width, 1800px)) / 2));
    overflow: hidden;
}

.diensten-slider {
    cursor: grab;
    user-select: none;
    height: 100%;
}

.diensten-slider:active {
    cursor: grabbing;
}

.diensten-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

.dienst-card {
    flex: 0 0 auto;
    background: #EDEDED;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    color: #151515;
    transition: color 0.45s ease;
}

.dienst-card__bg {
    position: absolute;
    inset: 0;
    background-image: var(--card-img);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.dienst-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
}

.dienst-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dienst-card__number {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.5;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.dienst-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.dienst-card__spacer {
    flex: 1;
}

.dienst-card__link {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    align-self: flex-start;
    transition: text-decoration 0.2s ease;
}

/* Nav buttons */
.diensten-nav {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.diensten-nav__btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #EDEDED;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17221B;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.diensten-nav__btn:hover {
    background: #17221B;
    color: #ffffff;
}

.diensten-nav__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Review slider — Sensy-stijl grid stacking */
.review-track {
    display: grid;
}

.review-item {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(.3, 0, .3, 1), visibility 0.45s cubic-bezier(.3, 0, .3, 1);
}

.review-item.is--active {
    opacity: 1;
    visibility: visible;
}

/* Hover state */
.dienst-card:hover .dienst-card__bg,
.dienst-card:hover .dienst-card__overlay {
    opacity: 1;
}

.dienst-card:hover {
    color: #ffffff;
}

.dienst-card:hover .dienst-card__number {
    opacity: 0.7;
}

.dienst-card:hover .dienst-card__link {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   REALISATIES SLIDER
   ========================================= */

.realisaties-slider {
    width: 100%;
    overflow: visible;
}

.realisaties-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

.realisatie-card {
    flex: 0 0 auto;
    height: 500px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.45s ease;
    cursor: pointer;
}

.realisatie-card.is--active {
    opacity: 1;
}

.realisatie-card__bg {
    position: absolute;
    inset: 0;
    background-image: var(--card-thumb);
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.6s ease;
}

.realisatie-card:hover .realisatie-card__bg {
    transform: scale(1.04);
}

.realisatie-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 1;
}

.realisatie-card__content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 20px;
    pointer-events: none;
}


.realisatie-card__top {
    display: flex;
}

.realisatie-card__cat {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 4px 10px;
    letter-spacing: 0.03em;
}

.realisatie-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.realisatie-card__title {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.realisatie-card__cta {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.realisatie-card:hover .realisatie-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery overlay */

.realisatie-card__gallery {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    overflow: hidden;
}

.realisatie-card:hover .realisatie-card__gallery {
    opacity: 1;
    pointer-events: auto;
}

.realisatie-card__gallery-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.realisatie-card__gallery-slide {
    flex: 0 0 100%;
    height: 100%;
}

.realisatie-card__gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.realisatie-card__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #17221B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 4;
}

.realisatie-card__gallery-arrow:hover {
    background: #17221B;
    color: #fff;
}

.realisatie-card__gallery-arrow.is--prev { left: 12px; }
.realisatie-card__gallery-arrow.is--next { right: 12px; }

.realisatie-card__gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}

.realisatie-card__gallery-dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.realisatie-card__gallery-dots button.is--active {
    background: #fff;
    transform: scale(1.3);
}

/* Realisaties filter buttons */

.realisaties-filter-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: fit-content;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.realisaties-filter-btn svg,
.realisaties-filter-btn img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.realisaties-filter-btn.is--active svg,
.realisaties-filter-btn.is--active img {
    filter: brightness(0);
}

.realisaties-filter-btn:hover {
    background: rgba(255, 255, 255, 0.20);
}

.realisaties-filter-btn.is--active {
    background: #ffffff;
    color: #17221B;
}

/* Realisaties page cards */

.realisatie-page-card {
    background: #EDEDED;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 2;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.45s ease;
}

.realisatie-page-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

.realisatie-page-card:hover .realisatie-page-card__bg {
    transform: scale(1.05);
}

.realisatie-page-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 1;
    z-index: 1;
}

.realisatie-page-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.realisatie-page-card__cat {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.realisatie-page-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.realisatie-page-card__spacer {
    flex: 1;
}

.realisatie-page-card__link {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    align-self: flex-start;
}

.realisatie-page-card:hover .realisatie-page-card__link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Nav buttons */

.realisaties-slider-wrap {
    position: relative;
}

.realisaties-nav__btn--prev,
.realisaties-nav__btn--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.realisaties-nav__btn--prev {
    left: calc(var(--spacing-x, 48px) + max(0px, (100vw - var(--container-width, 1800px)) / 2));
    transform: translateY(-50%) translateX(-50%);
}

.realisaties-nav__btn--next {
    right: calc(var(--spacing-x, 48px) + max(0px, (100vw - var(--container-width, 1800px)) / 2));
    transform: translateY(-50%) translateX(50%);
}

.realisaties-nav__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #17221B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.realisaties-nav__btn:hover {
    background: #17221B;
    color: #fff;
}

.realisaties-nav__btn:disabled {
    opacity: 0.3;
    cursor: default;
}


/* ============================================
   CTA PAINT EFFECT
   ============================================ */

.cta-paint {
    cursor: none;
}

.cta-paint * {
    cursor: none;
}

.cta-paint__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Single realisatie navigatie */

.realisatie-nav-card {
    color: #17221B;
    transition: opacity 0.2s ease;
}

.realisatie-nav-card:hover {
    opacity: 0.6;
}

.realisatie-nav-card__img {
    width: 56px;
    height: 56px;
}

.realisatie-nav-card__arrow {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #EDEDED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17221B;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.realisatie-nav-card:hover .realisatie-nav-card__arrow {
    background: #17221B;
    color: #ffffff;
}

.realisatie-nav-overview {
    color: #17221B;
    transition: opacity 0.2s ease;
}

.realisatie-nav-overview:hover {
    opacity: 0.6;
}

.realisatie-nav-overview__dots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.realisatie-nav-overview__dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(23, 34, 27, 0.25);
    transition: background 0.2s ease;
}

.realisatie-nav-overview:hover .realisatie-nav-overview__dots span {
    background: rgba(23, 34, 27, 0.60);
}

/* Masonry gallery */

.masonry-grid {
    columns: 2;
    column-gap: 16px;
}

.masonry-grid__item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-grid__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.masonry-grid__item:hover img {
    transform: scale(1.03);
}

@media (max-width: 818px) {
    .masonry-grid { columns: 1; }
}

.cta-paint__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.cta-paint__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: block;
}


.cta-paint .w--container {
    display: grid;
}

.cta-paint__media,
.cta-paint .cta-paint__content {
    grid-row: 1;
    grid-column: 1;
}

.cta-paint__media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.cta-paint .cta-paint__content {
    position: relative;
    z-index: 3;
}

.cta-paint .cta-paint__text {
    position: relative;
    z-index: 3;
    mix-blend-mode: difference;
}

.cta-paint .cta-paint__buttons {
    position: relative;
    z-index: 3;
}

.cta-paint__cursor {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: left, top;
}


/* ============================================
   MOBILE (≤ 818px)
   ============================================ */

@media (max-width: 818px) {
    .realisatie-card{
        height:250px;
    }
    .diensten-nav{
        margin-top:0;
    }
    .realisaties-nav__btn--prev,
    .realisaties-nav__btn--next {
        display: none;
    }
}

@media (max-width: 1024px) {
  .realisatie-card{
        height:400px;
    }
    h2 br, h1 br{
        display:none;
    }
}

/* ============================================
   WPFORMS (≤ 818px)
   ============================================ */
.wpforms-container {
    margin: 0 !important;
}
.wpforms-field-container input, .wpforms-field-container textarea {
    border-radius: 8px !important;
    color: #17221B !important;
    outline:none !important;
    height:60px !important;
}

.wpforms-field{
    padding-top:0 !important;
}

.wpforms-field-container input::placeholder {
    color: #17221B !important;
}

.wpforms-field-container textarea{
    height:250px !important;
}
.wpforms-submit{
    width:100% !important;
    background:transparent !important;
    color:#FFF !important;
    border:1px solid #FFF !important;
    border-radius:8px !important;
    height:60px !important;
}
.wpforms-submit:hover{
    width:100% !important;
    background:#fff !important;
    color:#17221B !important;
    border:1px solid #FFF !important;
    border-radius:8px !important;
    height:60px !important;
}

@media (max-width: 818px) {
    .dienst-card .dienst-card__bg,
    .dienst-card .dienst-card__overlay {
        opacity: 1;
    }
    .dienst-card {
        color: #ffffff;
    }
    .dienst-card .dienst-card__number {
        opacity: 0.7;
    }
}