/**
Theme Name: I-match
Author: I-match child theme
Author URI: https://i-match.nl
Description: I-match child theme 2024
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: i-match
Template: astra
*/

/* Specifieke selector voor de Astra Sticky Header */
.main-header-bar.ast-sticky-active .afspraak-wrapper,
.ast-sticky-active .afspraak-wrapper {
    padding: 2px 22px !important;
}


/* Container padding om de 'Een greep uit onze cases' titel ruimte te geven */
.vastgoed-slider-wrapper {
    padding-top: 40px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    max-width: 100%;
}

/* De kaart zelf */
.case-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: #002c3d !important;
}

/* De afbeelding: exact de verhouding uit je screenshot */
.case-image-container {
    width: 100%;
    aspect-ratio: 1.57 / 1; /* Matcht ongeveer de 767x410 uit je inspect tool */
    border-radius: 8px; /* Iets subtielere hoeken zoals in de foto */
    overflow: hidden;
    margin-bottom: 20px;
}

.case-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.05); /* Subtiele zoom bij hover */
}

/* Titels: Bold en strak */
.case-content h3 {
    font-size: 22px !important;
    font-weight: 800 !important; /* Extra dik voor de 'Vastgoed' look */
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.5px;
}

/* De kleine tekst (bijv. 'Onderwijs' of 'Webshop, Maatwerk') */
.case-meta {
    font-size: 15px;
    color: #6d6d6d;
    font-weight: 400;
}

/* Zet de progressiebalk onder de kaarten in plaats van bovenaan */
.project-swiper .swiper-pagination-progressbar {
    top: auto !important;
    bottom: 0 !important;
    height: 2px !important;
    background: rgba(0,0,0,0.1); /* Lichte achtergrond van de balk */
}
.project-swiper {
    padding-bottom: 60px !important; /* Pas dit getal aan voor meer of minder ruimte */
}
.project-swiper .swiper-pagination-progressbar-fill {
    background: #43a047 !important; /* Jouw groene kleur voor de actieve voortgang */
}
















/* ============================================================
   1. DE KNOP (Sectie op de pagina)
   ============================================================ */
.afspraak-wrapper {
    display: flex !important;
    background-color: #fffaf2 !important;
    padding: 12px 22px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.afspraak-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.afspraak-tekst {
    color: #f9a825 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-right: 15px !important;
}

.afspraak-icon-box {
    width: 32px !important;
    height: 32px !important;
    background-color: #f9a825 !important; /* Blauw uit screenshot */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: rotate(45deg) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.pijl-symbool {
    color: white !important;
    font-size: 18px !important;
    transform: rotate(-45deg) !important;
    display: block !important;
}



/* Hover effecten */

.afspraak-wrapper:hover {
    background-color: #fdf2e0 !important;
}

.afspraak-link:hover .afspraak-icon-box {
    background-color: #004481 !important; /* Jouw logo blauw */
    transform: rotate(45deg) scale(1.1) !important;

}

/* ============================================================
   2. DE SIDEBAR (Slide-in effect)
   ============================================================ */

/* De donkere achtergrond laag */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999998 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

/* Het paneel zelf */
.sidebar-panel {
    position: fixed !important;
    top: 0 !important;
    right: -550px !important; /* Start volledig buiten beeld */
    width: 500px !important;
    max-width: 90% !important;
    height: 100vh !important;
    background: #f4f4f4 !important; /* Lichtgrijs zoals screenshot */
    z-index: 999999 !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 80px 40px 40px 40px !important;
    box-sizing: border-box !important; /* Voorkomt witte randen/scroll */
    overflow-y: auto !important;
}

/* Actieve status (wanneer JS de class toevoegt) */
.sidebar-overlay.is-open {
    visibility: visible !important;
    opacity: 1 !important;
}

.sidebar-overlay.is-open .sidebar-panel {
    right: 0 !important; /* Schuift naar binnen */
}

/* ============================================================
   3. DETAILS & SLUITKNOP
   ============================================================ */

.sidebar-close {
    position: absolute !important;
    top: 25px !important;
    left: 20px !important; /* Of gebruik 'right: 20px' als je hem binnenin wilt */
    width: 45px !important;
    height: 45px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f9a825 !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1000001 !important;
}

.sidebar-content h2 {
    color: #004481 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

/* Styling voor de invoervelden in de sidebar */
.sidebar-form-wrapper input:not([type="submit"]), 
.sidebar-form-wrapper textarea {
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.sidebar-form-wrapper input[type="submit"] {
    background-color: #f9a825 !important;
    color: #fff !important;
    border: none !important;
    width: 100% !important;
    padding: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

.sidebar-form-wrapper input[type="submit"]:hover {
    background-color: #004481 !important;
}

/* Stop body scroll als sidebar open is */
body.modal-open {
    overflow: hidden !important;
}