/* ==========================================================================
   Raamfolie Op Maat — Slider Shortcode Styles
   All rules scoped to .rfopm- to avoid theme conflicts.
   v2.3.0 — review text below image, bulletproof logo marquee
   ========================================================================== */
   
   /* ==========================================================================
   Home explicit
   ========================================================================== */

.rfopm-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1200px) {
    .rfopm-home-container { padding: 0 40px; }
}

/* ---------- Hero ---------- */
.rfopm-home-hero {
    padding: 3rem 0 0;
}

.rfopm-home-hero__title {
    font-weight: 900;
    color: #D8B08C;
    line-height: 0.85;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.rfopm-home-hero__badge {
    display: inline-block;
    background: #0f2858;
    color: #fff;
    padding: 8px 22px;
    margin: 16px 0 42px;
}

.rfopm-home-hero__badge:active, .rfopm-home-hero__badge:hover {
    color: white;
}

.rfopm-home-hero__slider {
    padding-top: 2rem;
}

/* ---------- CTA band ---------- */
.rfopm-home-cta {
    text-align: center;
    padding: 2.5rem 0 3rem;
}

.rfopm-home-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: 400;
    border: 2px solid #0f2858;
    background: #0f2858;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    margin-top: 40px;
}

.rfopm-home-btn:hover {
    background: #D8B08C;
    border-color: #D8B08C;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(70 70 70 / 30%);
    color: #fff;
}

.rfopm-home-cta__sub {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #0f2858;
}

/* ---------- About ---------- */
.rfopm-home-about {
    padding: 4rem 0;
    text-align: center;
}

.rfopm-home-about__pretitle {
    font-size: clamp(3rem, 14vw, 6rem);
    color: #D8B08C;
    margin: 0 0 -0.4rem;
    font-weight: 700;
    font-family: geist;
    line-height: 0.85;
}

.rfopm-home-about__title {
    font-size: clamp(3rem, 14vw, 6rem);
    font-weight: 700;
    color: #1B2B4B;
    line-height: .85;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.rfopm-home-about__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.rfopm-home-about__col h3 {
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    font-weight: 300;
    margin: 0 0 0.3rem;
    line-height: 0.9;
    color: #D8B08C;
    text-align: center;
}

.rfopm-home-about__col h3 strong {
    display: block;
    font-size: clamp(1.2rem, 7vw, 2rem);
    font-weight: 800;
}

.rfopm-home-about__col p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

.rfopm-home-about__image {
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.rfopm-home-about__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rfopm-home-about__bottom-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 29vw;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    min-height: 200px;
}

/* ---------- Reviews section wrapper ---------- */
.rfopm-home-reviews-section {
    padding: 4rem 0;
    background: #F7F3EE;
    overflow: hidden;
}

.rfopm-home-reviews-section .rfopm-logos {
    margin-top: 3rem;
}

/* ---------- Offerte ---------- */
.rfopm-home-offerte {
    padding: 4rem 0 5rem;
}

.rfopm-home-offerte__title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #1B2B4B;
    line-height: 1.0;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 786px) {
    .rfopm-home-offerte__title {
        font-size: clamp(3rem, 14vw, 6rem);
        line-height: 0.85;
        text-align: center;
    }
}

.rfopm-home-offerte__checklist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.rfopm-home-offerte__checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1B2B4B;
    font-weight: 300;
    line-height: 1.8rem;
}

.rfopm-home-offerte__checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #D8B08C;
    font-weight: 800;
    font-size: 1.1rem;
}

.rfopm-home-offerte__image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.rfopm-home-offerte__image img {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .rfopm-home-offerte__image img {
        margin: 0 auto;
    }
}

.rfopm-home-offerte__grid {
    display: block;
}

@media (min-width: 900px) {
    .rfopm-home-offerte__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

.gold-text {
    color: #D8B08C;
}

/* --- Form --- */
.rfopm-home-form__group {
    margin-bottom: 18px;
}

.rfopm-home-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1B2B4B;
    margin-bottom: 5px;
}

.rfopm-home-form__input,
.rfopm-home-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D0CCC5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #333;
}

.rfopm-home-form__input:focus,
.rfopm-home-form__textarea:focus {
    outline: none;
    border-color: #E8732A;
    box-shadow: 0 0 0 3px rgba(232, 115, 42, 0.1);
}

.rfopm-home-form__textarea {
    min-height: 110px;
    resize: vertical;
}

.rfopm-home-form__radios,
.rfopm-home-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.rfopm-home-form__checks {
    flex-direction: column;
    gap: 6px;
}

.rfopm-home-form__radios label,
.rfopm-home-form__checks label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    cursor: pointer;
}

.rfopm-home-form__submit {
    width: 100%;
    margin-top: 8px;
}

.rfopm-home-hero__title {
    font-size: clamp(4.6rem, 8.5vw, 6rem);
    color: #D8B08C;
    line-height: 0.85;
}

.rfopm-home-hero__badge {
    font-weight: 400;
    font-size: clamp(1.5rem, 4.8vw, 2.5rem);
    margin: 16px 0 42px;
    background-color: #0f2858;
    border-radius: 0;
}

.wpcf7-submit {
    background-color: #0f2858;
    border: 1px solid #0f2858;
    color: #ffffff;
    font-size: 1.3rem;
    border-radius: 9px;
}

.wpcf7 label {
    font-weight: 700;
    margin-bottom: 11px;
    color: #0f2858;
}

.wpcf7-list-item {
    margin: 0 1em 0 0 !important;
}

.wpcf7-list-item label {
    font-weight: 300;
}

.wpcf7-checkbox .wpcf7-list-item {
    display: block;
}

[type=button], [type=submit], button,
[type=button]:focus, [type=button]:hover,
[type=submit]:focus, [type=submit]:hover,
button:focus, button:hover {
    background-color: #1B2B4B !important;
    border: 1px solid #1B2B4B !important;
    color: white !important;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.rfopm-hero-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.rfopm-hero-slider:active {
    cursor: grabbing;
}

.rfopm-hero-row {
    position: relative;
    overflow-y: hidden;
    touch-action: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none !important;
    overflow-x: clip !important;
    background: linear-gradient(to bottom, rgba(216, 176, 140, 0.14), rgba(216, 176, 140, 0.23));
    padding-bottom: 36px;
}

.rfopm-hero-row::-webkit-scrollbar {
    display: none;
}

.rfopm-hero-row__label {
    color: #0F2858;
    pointer-events: none;
    text-align: center;
    font-size: 24px !important;
    margin: 16px 0;
}

.rfopm-hero-track {
    display: flex;
    gap: 10px;
    will-change: transform;
}

.rfopm-hero-slide {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* Row 1: big, square */
.rfopm-hero-row[data-row="1"] .rfopm-hero-slide {
    width: 200px;
    height: 200px;
}

/* Rows 2 & 3: smaller, 3:2 */
.rfopm-hero-row[data-row="2"] .rfopm-hero-slide,
.rfopm-hero-row[data-row="3"] .rfopm-hero-slide {
    width: 195px;
    height: 130px;
}

.rfopm-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

@media (min-width: 768px) {
    .rfopm-hero-row[data-row="1"] .rfopm-hero-slide { width: 310px; height: 310px; }
    .rfopm-hero-row[data-row="2"] .rfopm-hero-slide,
    .rfopm-hero-row[data-row="3"] .rfopm-hero-slide { width: 270px; height: 180px; }
    .rfopm-hero-row__label { font-size: 0.85rem; padding: 6px 20px; }
}

@media (min-width: 1200px) {
    .rfopm-hero-row[data-row="1"] .rfopm-hero-slide { width: 380px; height: 380px; }
    .rfopm-hero-row[data-row="2"] .rfopm-hero-slide,
    .rfopm-hero-row[data-row="3"] .rfopm-hero-slide { width: 330px; height: 220px; }
}


/* ==========================================================================
   REVIEWS CAROUSEL
   ========================================================================== */

.rfopm-reviews {
    text-align: center;
}

.rfopm-reviews__heading {
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    color: #1B2B4B;
    margin: 0 0 2rem;
    line-height: 1.15;
    font-weight: 800;
}

.rfopm-reviews__heading strong {
    color: #D8B08C;
}

.rfopm-reviews__viewport {
    overflow: visible;
    cursor: grab;
    margin-bottom: 70px;
}

.rfopm-reviews__viewport:active {
    cursor: grabbing;
}

.rfopm-reviews__track {
    display: flex;
    gap: 18px;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.rfopm-reviews__track.is-animating {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Card --- */
.rfopm-review-card {
    flex-shrink: 0;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;     /* clips both image-wrap and content cleanly */
    position: relative;
    display: flex;
    flex-direction: column; /* image on top, content below */
    text-align: left;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.38);
}

/* ── Image wrapper (top half of the card) ── */
.rfopm-review-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 62.5%;    /* 800×500 aspect ratio — adjust if your images differ */
    flex-shrink: 0;
}

.rfopm-review-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.rfopm-review-card__overlay {
    position: absolute;
    inset: 0;
    /* subtle bottom-fade so the image edges don't look too harsh */
    background: linear-gradient(to bottom, rgba(17,29,51,0.05) 60%, rgba(17,29,51,0.25) 100%);
}

/* ── Text content (below the image) ── */
.rfopm-review-card__content {
    padding: 22px 18px;
    color: #0f2858;
    background-color: #fff;
    flex: 1;              /* fills remaining card height */
}

.rfopm-review-card__stars {
    color: #F5A623;
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.rfopm-review-card__text {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: normal;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* smooth height transition when expanding */
    transition: max-height 0.4s ease, opacity 0.2s ease;
    cursor: pointer;
}

/* "read more" hint — only shown when text is actually clamped */
.rfopm-review-card__text[data-overflows="true"]::after {
    content: ' Lees meer…';
    color: #D8B08C;
    font-weight: 600;
    font-style: normal;
}

/* expanded state: remove clamp entirely */
.rfopm-review-card__text.is-expanded {
    display: block;          /* exit -webkit-box formatting context */
    overflow: visible;
    -webkit-line-clamp: unset;
    cursor: default;
}

.rfopm-review-card__text.is-expanded::after {
    display: none;
}

.rfopm-review-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rfopm-review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(27, 43, 75, 0.15);
    flex-shrink: 0;
}

.rfopm-review-card__name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.rfopm-review-card__location {
    display: block;
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 1px;
}

/* Nav */
.rfopm-reviews__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 1.5rem;
}

.rfopm-reviews__prev,
.rfopm-reviews__next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #1B2B4B;
    background: transparent;
    color: #1B2B4B;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rfopm-reviews__prev:hover,
.rfopm-reviews__next:hover {
    background: #1B2B4B;
    color: #fff;
}

.rfopm-reviews__dots {
    display: flex;
    gap: 7px;
}

.rfopm-reviews__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D0CCC5;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.rfopm-reviews__dot.is-active {
    background: #D8B08C !important;
    transform: scale(1.25);
    border-color: #D8B08C !important;
}

@media (min-width: 768px) {
    .rfopm-review-card { width: 370px; }
    .rfopm-review-card__content { padding: 26px 22px; }
    .rfopm-review-card__text { font-size: 0.92rem; -webkit-line-clamp: 5; }
    .rfopm-review-card__text.is-expanded { -webkit-line-clamp: unset; }
}

@media (min-width: 1200px) {
    .rfopm-review-card { width: 400px; }
}


/* ==========================================================================
   BUSINESS LOGOS — pure-CSS marquee, JS-proof
   ========================================================================== */

.rfopm-logos {
    text-align: center;
}

.rfopm-logos__heading {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: #1B2B4B;
    margin: 0 0 1.2rem;
    font-weight: 600;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rfopm-logos__viewport {
    overflow: hidden;
    contain: layout;      /* isolates reflow — prevents pauses from outside layout changes */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.rfopm-logos__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;   /* single-row — prevents logos jumping to a new line */
    animation: rfopm-logo-scroll var(--logo-speed, 30s) linear infinite;
    will-change: transform; /* GPU compositing layer — eliminates stutter */
}

/* Removed hover-pause — it was the primary cause of "stands still" */

@keyframes rfopm-logo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* exactly -50% because PHP outputs 2 identical sets */
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rfopm-logos__track {
        animation-play-state: paused;
    }
}

.rfopm-logos__track a,
.rfopm-logos__track span {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.rfopm-logos__img {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}

.rfopm-logos__img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (min-width: 768px) {
    .rfopm-logos__track { gap: 60px; }
    .rfopm-logos__img { height: 44px; max-width: 160px; }
}