/*
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;
}

.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;
}

/* 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: 50vh;
    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);
}

/* 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;
}

.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;
}
