/* ==========================================================================
   Homepage-Specific Styles
   AgriTegel Landing Page
   ========================================================================== */

/* --------------------------------
   Header Enhancements
   -------------------------------- */

.header__nav--desktop {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header__link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header__link:hover {
    color: var(--accent-primary);
}

/* Header Cart */
.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.header__cart:hover {
    color: var(--accent-primary);
}

.header__mobile-actions {
    display: none;
    align-items: center;
    gap: var(--space-2);
    z-index: 1001;
}

.header__cart--mobile {
    display: none;
    z-index: 1001;
    /* Ensure it's above other elements but below modal */
}

@media (max-width: 900px) {
    .header__mobile-actions {
        display: flex;
    }

    .header__cart--mobile {
        display: flex;
        margin-right: 0;
    }
}

.header__cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    font-size: 11px;
    font-weight: var(--font-bold);
    line-height: 20px;
    text-align: center;
    border-radius: var(--radius-full);
    animation: cartBounce 0.3s ease-out;
}

@keyframes cartBounce {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --------------------------------
   Hero Section
   -------------------------------- */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    padding: var(--space-20) 0 var(--space-24);
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-secondary-dim);
    color: var(--color-wheat-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.hero__highlight {
    color: var(--accent-primary);
    position: relative;
}

.hero__highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--accent-primary-dim);
    z-index: -1;
    border-radius: 4px;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 480px;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.hero__trust-item svg {
    color: var(--success);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__tile-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.hero__tile {
    position: absolute;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero__tile--main {
    width: 80%;
    aspect-ratio: 1;
    top: 10%;
    left: 10%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero__tile--small {
    width: 35%;
    aspect-ratio: 1;
    opacity: 0.9;
}

.hero__tile--1 {
    top: 0;
    left: 0;
    z-index: 1;
    animation: float 6s ease-in-out infinite 1s;
}

.hero__tile--2 {
    bottom: 5%;
    right: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite 2s;
}

.hero__tile-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    border: 8px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__tile-image {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: var(--radius-md);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: auto;
}

/* --------------------------------
   Section Headers
   -------------------------------- */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

.section-label {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-heading {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* --------------------------------
   How It Works Section
   -------------------------------- */

.how-it-works {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 1;
}

.step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--accent-primary-dim);
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    position: relative;
}

.step__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.step__description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

.step__connector {
    display: flex;
    align-items: center;
    padding-top: var(--space-20);
}

@media (max-width: 900px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .step__connector {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .footer__brand {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__links,
    .footer__social {
        align-items: center;
    }

    .testimonial {
        text-align: center;
    }

    .testimonial__author {
        justify-content: center;
        flex-direction: column;
    }

    .testimonial__info {
        text-align: center;
    }
}

/* --------------------------------
   Portfolio Section
   -------------------------------- */

.portfolio {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-4);
}

.portfolio__item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.portfolio__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio__item:hover .portfolio__slider {
    transform: scale(1.05);
}

.portfolio__slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.portfolio__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.portfolio__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 2;
}

.portfolio__category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
    align-self: flex-start;
}

.portfolio__caption {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin: 0;
}

/* --------------------------------
   Cinema Mode (Lightbox)
   -------------------------------- */

.cinema-mode {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cinema-mode--active {
    opacity: 1;
    visibility: visible;
}

.cinema-mode__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cinema-mode__content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.cinema-mode__close {
    position: absolute;
    top: calc(var(--space-8) * -1);
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-2);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cinema-mode__close:hover {
    opacity: 1;
}

.cinema-mode__viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: var(--space-4);
}

.cinema-mode__image-container {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cinema-mode__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-mode--active .cinema-mode__image {
    transform: scale(1);
}

.cinema-mode__nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cinema-mode__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cinema-mode__info {
    padding: var(--space-6) 0;
    color: white;
    text-align: center;
}

.cinema-mode__category {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.cinema-mode__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0;
}

@media (max-width: 768px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px);
    }

    .portfolio__item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* --------------------------------
   Testimonials Section
   -------------------------------- */

.testimonials {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

.testimonials__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.testimonials__stars {
    font-size: var(--text-lg);
}

.testimonials__score {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.testimonials__slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.testimonials__track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.testimonial {
    flex: 0 0 100%;
    padding: var(--space-8);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.testimonial__quote {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial__quote::before {
    content: '"';
    font-size: var(--text-4xl);
    color: var(--accent-primary);
    line-height: 0;
    vertical-align: -0.2em;
    margin-right: var(--space-2);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
}

.testimonial__info {
    flex: 1;
}

.testimonial__info strong {
    display: block;
    color: var(--text-primary);
}

.testimonial__info span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.testimonial__stars {
    font-size: var(--text-sm);
}

.testimonials__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.testimonials__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonials__btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.testimonials__dots {
    display: flex;
    gap: var(--space-2);
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    background: var(--border-default);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonials__dot--active {
    background: var(--accent-primary);
    width: 24px;
}

/* --------------------------------
   Social Proof (Masonry Review Grid)
   -------------------------------- */

.social-proof {
    padding: var(--space-16) 0 var(--space-20);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    z-index: 199;
}

/* Compact Header for CRO */
.social-proof__compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    gap: var(--space-8);
    position: relative;
    z-index: 110; /* Hoger dan de hovers van de cards (100) */
}

.social-proof__header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    line-height: 1;
}

.social-proof__header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
    line-height: 1;
}

.social-proof__badge-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-trustpilot);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.social-proof__stars-main {
    display: flex;
    align-items: center;
    gap: 2px;
}

.social-proof__trust-line {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    line-height: 1;
    white-space: nowrap;
    flex-wrap: wrap; /* Allow wrapping only between groups, not within words */
    justify-content: inherit;
}

.social-proof__summary {
    white-space: nowrap;
}

.social-proof__trust-logos {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.social-proof__trust-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* High Contrast CTA */
.btn--trust {
    background: var(--color-trustpilot);
    border-color: var(--color-trustpilot);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.25);
    font-weight: var(--font-bold);
    padding: var(--space-3) var(--space-6);
}

.btn--trust:hover {
    background: #009e6a;
    border-color: #009e6a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 182, 122, 0.35);
}

.social-proof__trust-logos img {
    display: block;
    height: 24px; /* Slightly smaller logo */
    width: auto;
    transition: all var(--transition-normal);
}

.social-proof__trust-logos img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@media (max-width: 900px) {
    .social-proof__compact-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .social-proof__header-left {
        align-items: center;
        gap: var(--space-2);
    }
    
    .social-proof__trust-line {
        justify-content: center;
        width: 100%;
    }
    
    .social-proof__header-right {
        align-items: center;
        width: 100%;
        padding-top: 0;
        border-top: none;
    }

    .social-proof__trust-logos {
        padding: 0;
        background: transparent;
        border: none;
        margin-bottom: var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .social-proof__trust-label {
        display: block;
        font-size: 13px;
        color: var(--text-muted);
        text-align: center;
    }
}

.social-proof__stars-main {
    display: flex;
    gap: 2px;
    color: var(--color-trustpilot);
}

.social-proof__summary {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.social-proof__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    transition: max-height 0.5s ease-in-out;
    padding: 20px;
    margin: -20px auto 0;
}

@media (max-width: 900px) {
    .social-proof__grid {
        padding: 15px;
    }
    
    .review-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
        -webkit-transform: translateY(-4px) scale(1.01) !important;
        z-index: 105;
    }
}

/* Load More Container */
.social-proof__load-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary) 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 200; /* Hoger dan de hovers van de kaarten */
    pointer-events: none;
}

.social-proof__load-more .btn {
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.social-proof--expanded .social-proof__load-more {
    display: none;
}

.social-proof__column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.review-card {
    display: block;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    -webkit-transition: -webkit-transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    border: 1px solid var(--border-subtle);
    position: relative;
    will-change: transform, box-shadow;
     isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.review-card:hover {
    transform: translateY(-4px) scale(1.02);
    -webkit-transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1); /* Krachtiger schaduw */
    border-color: var(--accent-primary);
    z-index: 100; /* Boven de gradient overlay */
}

.review-card__stars svg {
    filter: drop-shadow(0 0 2px rgba(0, 182, 122, 0.3));
}

.review-card--no-photo {
    background: var(--bg-secondary);
}

.review-card__text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    color: var(--color-trustpilot);
    margin-bottom: var(--space-4);
}

/* 4.5 Star Support */
.star-half {
    position: relative;
    display: inline-block;
}

.star-half svg:last-child {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 50% 0 0);
}

.star-empty {
    color: var(--border-default);
}

.review-card__media {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: var(--space-4);
}

.review-card__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.review-card__stars {
    display: flex;
    gap: 2px;
    color: var(--color-trustpilot);
    margin-bottom: var(--space-4);
}

.review-card__author-main {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.review-card__avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-primary);
    color: var(--text-inverse, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.review-card__name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.review-card__meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.review-card__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-xs);
}

.review-card__verified {
    display: flex;
    align-items: center;
    font-weight: var(--font-medium);
    color: var(--color-trustpilot);
}

.review-card__label {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.review-card__badge-sep {
    color: var(--text-muted);
}

/* CTA in social proof header */
.social-proof__cta {
    margin-top: var(--space-6);
}

.social-proof__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

@media (max-width: 1024px) {
    .social-proof__grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--space-4);
    }
}

@media (max-width: 640px) {
    .social-proof__grid {
        grid-template-columns: 1fr;
    }

    .social-proof__header {
        margin-bottom: var(--space-8);
    }
}

/* --------------------------------
   Configurator Section
   -------------------------------- */

.configurator-section {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

/* --------------------------------
   Design History Strip
   -------------------------------- */

.history-strip {
    margin-top: var(--space-6);
    animation: historySlideIn 0.3s ease-out;
}

@keyframes historySlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-strip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.history-strip__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

.history-strip__track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-2) var(--space-1);
    min-height: 140px; /* Prevent layout shift when items are added */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) transparent;
}

.history-strip__track::-webkit-scrollbar {
    height: 4px;
}

.history-strip__track::-webkit-scrollbar-track {
    background: transparent;
}

.history-strip__track::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: var(--radius-full);
}

.history-strip__item {
    flex: 0 0 80px;
    scroll-snap-align: start;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.history-strip__item:hover {
    transform: translateY(-2px);
}

.history-strip__thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--bg-elevated);
}

.history-strip__item:hover .history-strip__thumb {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary-dim);
}

.history-strip__item--active .history-strip__thumb {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-dim);
}

.history-strip__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-strip__time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-strip__remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: var(--error);
    color: white;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.history-strip__item:hover .history-strip__remove {
    display: flex;
}

.history-strip__item {
    position: relative;
}

/* --------------------------------
   Footer
   -------------------------------- */

.footer {
    background: var(--color-delft-blue);
    color: var(--text-inverse);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 280px;
}

.footer__brand .header__logo {
    color: var(--text-inverse);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.footer__brand .header__logo span {
    color: #ffffff;
}

.footer__brand p {
    font-size: var(--text-sm);
    opacity: 1;
    color: #ffffff;
    line-height: var(--leading-relaxed);
}

.footer__links h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    opacity: 1;
    color: #ffffff;
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: var(--space-2);
}

.footer__links a {
    font-size: var(--text-sm);
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.footer__links a:hover {
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: var(--text-inverse);
    opacity: 1;
}

.footer__payment {
    display: flex;
    gap: var(--space-4);
}

.footer__payment span {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__brand {
        grid-column: 1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* --------------------------------
   Responsive Hero
   -------------------------------- */

@media (max-width: 900px) {
    .hero {
        padding: var(--space-12) 0 var(--space-16);
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__tile-showcase {
        max-width: 300px;
    }
}

/* --------------------------------
   Mobile Responsiveness (Added)
   -------------------------------- */

/* Hamburger Menu & Mobile Nav Base Styles */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    /* High z-index */
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.header__nav--mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 900;
    /* Just below hamburger */
    padding: var(--space-20) var(--space-6);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header__nav--mobile.is-open {
    display: flex;
    transform: translateX(0);
}

.header__nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    width: 100%;
}

.header__nav--mobile .header__link {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* Hamburger Animation when Active */
.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


@media (max-width: 900px) {

    /* Header */
    .header__nav--desktop {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .header {
        justify-content: space-between;
        padding: var(--space-4) var(--space-6);
    }

    /* Hero Text alignment from previous media query is sufficient, 
       just ensuring nav is handled. */
}

@media (max-width: 768px) {

    /* Refine Hero CTA */
    .hero__cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Ensure footer aligns center */
    .footer__grid {
        text-align: center;
    }
}

/* ── Klantfoto's Sectie ── */
.portfolio-klanten {
  padding: var(--space-20) 0;
  background: var(--bg-secondary);
}

.klantfotos__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 900px) {
  .klantfotos__tabs {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 var(--space-4);
  }
}

.klantfotos__tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--color-primary, #1f3d2b);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary, #1f3d2b);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.klantfotos__tab:hover {
  background: rgba(31, 61, 43, 0.08);
}

.klantfotos__tab--active {
  background: var(--color-primary, #1f3d2b);
  color: #fff;
  border-color: var(--color-primary, #1f3d2b);
  box-shadow: 0 4px 12px rgba(31, 61, 43, 0.25);
}

.klantfotos__grid {
  column-count: 5;
  column-gap: 10px;
  column-fill: balance;
}

.klantfotos__item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.klantfotos__item.is-hidden {
  display: none;
}

.klantfotos__item img {
  width: 100%;
  display: block;
}

.klantfotos__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
}

.klantfotos__badge {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.klantfotos__name {
  background: rgba(255,255,255,0.9);
  color: #1f3d2b;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

@media (max-width: 1024px) {
  .klantfotos__grid {
    column-count: 4;
  }
}

@media (max-width: 640px) {
  .klantfotos__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .klantfotos__tabs::-webkit-scrollbar { display: none; }

  .klantfotos__tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 14px;
  }

  .klantfotos__grid {
    column-count: 3;
    column-gap: 8px;
  }

  .klantfotos__item {
    margin-bottom: 8px;
  }
}
