/*
 * Custom styles for Belgrade Subtheme.
 *
 * This file contains all custom CSS for the subtheme.
 * It's structured to be clean, maintainable, and to leverage
 * Belgrade's existing utility classes and variables.
 */

/* ========================================= */
/* Global Animations and Utilities           */
/* ========================================= */

.animate-fadeInUp {
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.text-shadow-dark {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================= */
/* Algemene Sectie Titels                    */
/* ========================================= */
/* Uniforme styling voor h4.display-6 koppen die als sectietitels dienen */
h4.display-6 {
    line-height: 1.2;
    color: var(--beo-primary); /* Standaard primaire kleur voor sectietitels */
    font-weight: 700; /* Standaard vetgedrukt */
}

/* Uniforme styling voor h3.display-5 koppen die als sectietitels dienen */
h3.display-5 {
    line-height: 1.2;
    color: var(--beo-primary); /* Standaard primaire kleur voor sectietitels */
    font-weight: 700; /* Standaard vetgedrukt */
}

/* ========================================= */
/* Hero Section Styles                       */
/* ========================================= */

.hero-intro-section {
    height: 400px; /* Fixed height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-background-image {
    filter: brightness(0.8) grayscale(0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--beo-primary-rgb), 0.2);
    z-index: 0;
}

.hero-intro-section .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: 100%; /* Zorg dat de container de volle hoogte van de hero-sectie inneemt */
}

.hero-intro-section blockquote {
    border-left: none;
    padding-left: 0;
}

.hero-intro-section .mark {
    background-color: var(--beo-primary);
    color: var(--beo-white) !important;
    border: 2px solid var(--beo-white);
    padding: 0.8rem 1.5rem !important;
    font-size: 1.25rem !important;
}

/* Responsive adjustments for Hero Section */
@media (max-width: 767.98px) {
    .hero-intro-section {
        height: 350px;
    }
    .hero-intro-section h1 {
        font-size: 2.5rem !important;
    }
    .hero-intro-section .mark {
        padding: 0.6rem 1rem !important;
        font-size: 1rem !important;
    }
}

/* ========================================= */
/* Algemene Card Styling (voor service-card, nature-service-card) */
/* ========================================= */

/* Hover effect voor alle kaarten met .object-fit-cover (afbeeldingen in kaarten) */
.card .object-fit-cover {
    filter: brightness(0.7);
    transition: filter 0.3s ease-in-out;
}

.card:hover .object-fit-cover {
    filter: brightness(0.5);
}

/* ========================================= */
/* Mijn Aanbod Sectie (services-card-block)  */
/* ========================================= */

.services-card-block {
    background-color: var(--beo-body-bg); /* Witte achtergrond */
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-card-block .service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.services-card-block .service-card .card-title {
    color: var(--beo-body-color); /* Standaard tekstkleur voor de titel */
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 767.98px) {
    .services-card-block {
        padding: 1.5rem;
    }
    .services-card-block h4.display-6 {
        font-size: 2.25rem !important;
    }
}

/* ========================================= */
/* Actieve Meditaties Blok                   */
/* ========================================= */

.active-meditation-block {
    background-color: var(--beo-body-bg); /* Gebruik de standaard lichte achtergrondkleur */
    padding-left: 2rem;
    padding-right: 2rem;
}

.active-meditation-block .active-meditation-image {
    width: 100%;
    height: 100%; /* Afbeelding neemt volledige hoogte van kolom in */
    object-fit: cover;
    max-height: 550px; /* Behoud deze als een bovenlimiet, aanpasbaar */
}

/* Zorgt ervoor dat de kolommen in de rij dezelfde hoogte hebben en de inhoud centraal wordt uitgelijnd */
.active-meditation-block .row.align-items-center {
    min-height: 400px; /* Geef de rij een minimale hoogte op desktop, aanpasbaar */
}

.active-meditation-block p.lead {
    font-size: 1.125rem;
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 767.98px) {
    .active-meditation-block {
        padding: 1.5rem;
    }
    .active-meditation-block h3.display-5 {
        font-size: 2.25rem !important;
    }
    .active-meditation-block .active-meditation-image {
        margin-bottom: 1.5rem;
        max-height: 300px;
        height: auto;
    }
    .active-meditation-block .row.align-items-center {
        min-height: auto;
    }
}

/* ========================================= */
/* Mist in het Hoofd Quote Section           */
/* ========================================= */
.mist-quote-section {
    height: 350px; /* Vaste hoogte voor de sectie */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/sites/default/files/images/mist-in-je-hoofd.jpg'); /* Achtergrondafbeelding */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mist-quote-section .mist-quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Donkere overlay voor leesbaarheid */
    z-index: 0;
}

.mist-quote-section .blockquote p {
    font-size: 1.8rem; /* Grotere font-size voor impact */
    line-height: 1.4;
    font-style: italic; /* Cursief voor quotes */
    color: var(--beo-white); /* Witte tekst */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Donkere schaduw voor contrast */
    text-align: center; /* Zorgt ervoor dat de tekst in deze specifieke quote ook gecentreerd wordt */
}

.mist-quote-section .blockquote-footer {
    font-size: 1.1em;
    color: var(--beo-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive aanpassingen voor Mist Quote Sectie */
@media (max-width: 767.98px) {
    .mist-quote-section {
        height: 250px; /* Lagere hoogte op mobiel */
    }
    .mist-quote-section .blockquote p {
        font-size: 1.3rem; /* Kleinere font-size op mobiel */
    }
}


/* ========================================= */
/* Natuurlijke Ondersteuning Blok (Afbeelding boven Tekst) */
/* ========================================= */

.nature-text-below-image-block {
    background-color: var(--beo-body-secondary); /* AANGEPAST: Consistent met Contact blok */
    box-shadow: var(--beo-box-shadow-lg);
    border-radius: var(--beo-border-radius-lg);
    padding: var(--beo-spacer-y, 3rem) var(--beo-spacer-x, 1rem);
}

.nature-text-below-image-block .nature-service-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.nature-text-below-image-block .nature-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--beo-box-shadow-lg) !important;
}

.nature-text-below-image-block .nature-service-card .card-img-top {
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease-in-out;
}

.nature-text-below-image-block .nature-service-card:hover .card-img-top {
    filter: brightness(0.7);
}

.nature-text-below-image-block .nature-service-card .card-body .card-title {
    font-size: 1.75rem;
    line-height: 1.2;
}

.nature-text-below-image-block .nature-service-card .card-body .card-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.nature-text-below-image-block .nature-service-card .card-text {
    line-height: 1.6;
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 767.98px) {
    .nature-text-below-image-block {
        padding: 1.5rem;
    }
    .nature-service-card .card-img-top {
        height: 200px;
    }
    .nature-service-card .card-body .card-title {
        font-size: 1.5rem !important;
    }
    .nature-service-card .card-body .card-subtitle {
        font-size: 1rem !important;
    }
}

/* ========================================= */
/* Testimonial Section Styles                */
/* ========================================= */
/* Dit is de CSS voor de Testimonial sectie die eerder in je style.css stond */

.testimonial-section {
    background-color: var(--beo-body-secondary);
    box-shadow: var(--beo-box-shadow-lg);
    border-radius: var(--beo-border-radius-lg);
    padding: var(--beo-spacer-y, 3rem) var(--beo-spacer-x, 1rem);
}

.testimonial-section h4 {
    color: var(--beo-primary);
    font-weight: 700;
}

/* --- KRUCIAAL: Dwingende Bootstrap Grid Regels voor de .row en .col-md-4 --- */
/* Deze regels proberen alle mogelijke conflicten te overschrijven. */

.testimonial-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: calc(var(--beo-gutter-x) * -.5) !important;
    margin-left: calc(var(--beo-gutter-x) * -.5) !important;
    width: auto !important;
}

.testimonial-section .col-md-4 {
    flex: 0 0 auto !important;
    width: 33.33333333% !important;
    max-width: 33.33333333% !important;
    padding-right: calc(var(--beo-gutter-x) * .5) !important;
    padding-left: calc(var(--beo-gutter-x) * .5) !important;
    margin-top: var(--beo-gutter-y) !important;
}

/* Responsieve aanpassing voor kolommen: één kolom op kleine schermen */
@media (max-width: 767.98px) {
    .testimonial-section .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.testimonial-card {
    border: 1px solid var(--beo-border-color);
    border-radius: var(--beo-border-radius);
    background-color: var(--beo-body-bg);
    height: 100%;
    padding: 1.5rem;
    padding-top: 40px;
}

.testimonial-card .blockquote {
    position: relative;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-icon {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-image: url('/themes/custom/belgrade_sub/images/icons/quote.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(0.3) sepia(1) saturate(3) hue-rotate(200deg) brightness(1.2);
    opacity: 0.6;
    z-index: 1;
}

.testimonial-card .blockquote p {
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--beo-body-color);
}

.testimonial-card .blockquote-footer {
    font-family: var(--beo-body-font-family);
    font-size: 0.875em;
    color: var(--beo-secondary-color);
    margin-top: 0.5rem;
    text-align: center;
}

/* Responsive adjustments for Testimonial Card */
@media (max-width: 767.98px) {
    .testimonial-card {
        padding: 1rem;
    }
    .testimonial-card .blockquote {
        padding-top: 30px;
    }
    .testimonial-card .testimonial-icon {
        width: 25px;
        height: 25px;
    }
}

/* ========================================= */
/* Original Quote Section (Jelle Pauwels)    */
/* ========================================= */

.quote-card {
    border: 2px solid var(--beo-border-color);
    border-radius: var(--beo-border-radius-lg);
    padding: 2rem;
    background-color: var(--beo-body-bg);
    box-shadow: var(--beo-box-shadow-sm);
}

.quote-card .blockquote {
    position: relative;
    margin-bottom: 1rem;
    padding-top: 40px;
}

.quote-card .blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-image: url('/themes/custom/belgrade_sub/images/icons/quote.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(0.2) sepia(1) saturate(5) hue-rotate(220deg) brightness(0.8);
    opacity: 0.7;
}

.quote-card .blockquote p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--beo-dark);
    text-align: center; /* AANGEPAST: Om deze specifieke quote te centreren */
}

.quote-card .blockquote-footer {
    font-family: var(--beo-body-font-family);
    font-size: 0.95em;
    color: var(--beo-secondary-color);
    margin-top: 1rem;
    text-align: center;
}

/* Responsive adjustments for Quote Card */
@media (max-width: 767.98px) {
    .quote-card {
        padding: 1.5rem;
    }
    .quote-card .blockquote p {
        font-size: 1.125rem;
    }
    .quote-card .blockquote::before {
        width: 30px;
        height: 30px;
    }
}

/* ========================================= */
/* Contact Blok                              */
/* ========================================= */

.contact-block {
    background-color: var(--beo-body-secondary);
    box-shadow: var(--beo-box-shadow-lg);
    border-radius: var(--beo-border-radius-lg);
    padding: var(--beo-spacer-y, 3rem) var(--beo-spacer-x, 1rem);
}

.contact-block h4.display-6 {
    line-height: 1.2;
}

.contact-block p.lead {
    max-width: 700px;
}

.contact-block .author-info p {
    margin-bottom: 0.25rem;
}

.contact-block .contact-details a {
    color: var(--beo-primary);
    transition: color 0.2s ease-in-out;
}

.contact-block .contact-details a:hover {
    color: var(--beo-primary-hover);
}

.contact-block .contact-details svg {
    vertical-align: middle;
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 767.98px) {
    .contact-block {
        padding: 1.5rem;
    }
    .contact-block p.lead {
        font-size: 1rem !important;
    }
    .contact-block .author-info p {
        font-size: 0.95rem;
    }
    .contact-block .contact-details {
        font-size: 1.125rem;
    }
}