/*
Theme Name: rpm-child
Template: astra
*/

/* =========================================================
   ROOT VARIABELEN
========================================================= */

:root {
    --rpm-blue: #1f5fbf;
    --rpm-dark: #111111;
    --rpm-light: #f5f5f5;
    --rpm-white: #ffffff;
}

/* =========================================================
   BASIS STYLING
========================================================= */

body {
    background: var(--rpm-light);
    color: var(--rpm-dark);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: var(--rpm-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: var(--rpm-white);
    border-bottom: 1px solid #e0e0e0;
}

.site-header .site-branding img {
    max-height: 60px;
}

header.wp-block-template-part,
header.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--rpm-white);
}

/* =========================================================
   BUTTONS
========================================================= */

.wp-block-button__link,
.rpm-button {
    background: var(--rpm-blue);
    color: var(--rpm-white);
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

.rpm-button:hover,
.wp-block-button__link:hover {
    background: #163f8f;
}
/* =========================================================
   WHATSAPP STICKY BUTTON (premium versie)
========================================================= */

body .wp-block-group,
body .wp-block-columns,
body .wp-block-cover {
    overflow: visible !important;
}

.whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.whatsapp-sticky:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Mobiel: iets groter en beter bereikbaar */
@media (max-width: 600px) {
    .whatsapp-sticky {
        bottom: 18px;
        right: 18px;
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* =========================================================
   TRANSPARANT VAK (alleen wanneer rpm_pagina_bg is gevuld)
========================================================= */

body.has-bg-image .wp-block-group,
body.has-bg-image .wp-block-columns,
body.has-bg-image .wp-block-cover {
    background: rgba(255,255,255,0.85);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* =========================================================
   SINGLE AUTO LAYOUT
========================================================= */

.rpm-single-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.rpm-single-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.rpm-single-photo img {
    width: 100%;
    border-radius: 12px;
}

.rpm-single-specs h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

.rpm-single-specs p {
    margin: 4px 0;
}

.rpm-single-content {
    margin-top: 20px;
}

/* =========================================================
   SLIDER ONDER HET BLOK
========================================================= */

.rpm-single-slider-row {
    margin-top: 40px;
}

.rpm-auto-slider-wrapper {
    width: 100%;
}

.rpm-auto-slider-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.rpm-auto-slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rpm-auto-slider-thumbs {
    margin-top: 12px;
    height: 90px !important;
}

.rpm-auto-slider-thumbs .swiper-slide {
    opacity: 0.7;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.rpm-auto-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--rpm-blue);
}

.rpm-auto-slider-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Lightbox */
.rpm-lightbox img {
    cursor: zoom-in;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .rpm-single-top {
        grid-template-columns: 1fr;
    }

    .rpm-auto-slider-main {
        height: 260px;
    }

    .rpm-auto-slider-thumbs {
        height: 70px !important;
    }
}
/* =========================================================
   FLOATING INRUILVOORSTEL KNOP
========================================================= */

.floating-inruil-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--rpm-blue);
    color: var(--rpm-white);
    padding: 16px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 999998; /* net onder WhatsApp-sticky */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.floating-inruil-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Mobiel */
@media (max-width: 600px) {
    .floating-inruil-btn {
        bottom: 18px;
        right: 18px;
        padding: 14px 18px;
        font-size: 15px;
    }
}
