/*
Theme Name: Heiko Gorter Makelaars
Theme URI: https://wordpress.org/themes/heikogortermakelaars/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Heiko Gorter Makelaars emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heikogortermakelaars
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

 header{
	background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(3px);
	z-index:9;
	position: sticky;
	top:0;

	.wp-block-site-logo{
		z-index: 10;
	}

 }

 .wp-block-navigation__responsive-container.is-menu-open {
    overflow: auto;
    height: 100vh;
 }


.wp-block-cover>img:hover{
	transition: transform .4s ease;
	transform: scale(1.025);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles – keyboard navigatie (WCAG 2.4.7) */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}
.wp-site-blocks a:focus-visible,
.wp-site-blocks button:focus-visible,
.wp-site-blocks input:focus-visible,
.wp-site-blocks select:focus-visible,
.wp-site-blocks textarea:focus-visible,
.wp-site-blocks [tabindex]:focus-visible {
	outline: 2px dashed var(--wp--preset--color--accent-1);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(255,255,255,.8);
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}


/* Hover effect op alle knoppen: iets donkerder */
.wp-block-button__link:hover,
.wp-element-button:hover,
.is-contact-button:hover {
	filter: brightness(0.85);
	transition: filter .2s ease;
}
.wp-block-button__link,
.wp-element-button,
.is-contact-button {
	transition: filter .2s ease;
}

header {
    .is-contact-button{
        padding: 0.5em 1em!important;
        background-color: var(--wp--preset--color--accent-1)!important;
        color: white!important;
        border-radius: 1em;
        a:hover{
            text-decoration: none;
        }
    }
     img:not(.custom-logo) {
            height:40px!important;
        }
    .wp-block-social-links{
        position: fixed;
        bottom: -100dvh;
        right: 0.5em;
        transform: translateY(-270%);
        transition: transform 0.4s ease;
    }
}


	


/* De overlay (Achtergrond met blur) */
.contact-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Licht donkere laag */
    backdrop-filter: blur(5px); /* Het blur effect */
    -webkit-backdrop-filter: blur(5px); /* Voor Safari */
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Toon de overlay als deze actief is */
.contact-flyout-overlay.is-actief {
    opacity: 1;
    visibility: visible;
}

/* Het Flyout Menu */
.contact-flyout-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px; /* Fullscreen op mobiel, max 600px op desktop */
    height: 100vh;
    background: #ffffff;
    z-index: 100001;
    transform: translateX(100%); /* Schuif hem standaard buiten beeld naar rechts */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Soepele slide animatie */
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    overflow-y: auto; /* Laat het formulier scrollen als het erg lang is */
}

/* Schuif het menu in beeld als het actief is */
.contact-flyout-panel.is-actief {
    transform: translateX(0);
}

/* De Sluitknop */
.contact-flyout-sluiten {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 100002;
    padding: 0;
}

.contact-flyout-sluiten:hover {
    color: #000;
}

/* Zorg voor ruimte bovenin zodat het formulier niet onder de sluitknop valt */
.contact-flyout-content {
    padding: 1em 2em;;
}

/* WhatsApp social link – WCAG override van WP core (:where heeft specificity 0) */
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-whatsapp {
    background-color: #138643;
}
.wp-block-social-links.is-style-logos-only .wp-social-link-whatsapp {
    color: #138643;
}

/* WhatsApp knop in flyout */
.contact-flyout-whatsapp {
    display: block;
}

/* Cover block volledig klikbaar via de titel-link */
.wp-block-query .wp-block-cover {
    position: relative;
}
.wp-block-query .wp-block-cover .wp-block-cover__inner-container {
    position: static;
}
.wp-block-query .wp-block-cover .wp-block-post-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Cover blocks in grids/query: klikbaar hover effect */
:is(.wp-block-query, .wp-block-columns, .wp-block-group.is-layout-grid, .wp-block-group.is-layout-flex) .wp-block-cover {
    overflow: hidden;
    transition: box-shadow .4s ease;
}
:is(.wp-block-query, .wp-block-columns, .wp-block-group.is-layout-grid, .wp-block-group.is-layout-flex) .wp-block-cover img {
    transition: transform .4s ease;
}
:is(.wp-block-query, .wp-block-columns, .wp-block-group.is-layout-grid, .wp-block-group.is-layout-flex) .wp-block-cover:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
}
:is(.wp-block-query, .wp-block-columns, .wp-block-group.is-layout-grid, .wp-block-group.is-layout-flex) .wp-block-cover:hover img {
    transform: scale(1.025);
}
:is(.wp-block-query, .wp-block-columns, .wp-block-group.is-layout-grid, .wp-block-group.is-layout-flex) .wp-block-cover :is(a, .wp-block-button__link):hover {
    text-decoration: none;
}

/* Kleine aanpassing voor smalle telefoons */
@media (max-width: 480px) {
    .contact-flyout-content {
        padding: 60px 20px 20px 20px;
    }
}

.gform_wrapper{

	h2 {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.gfield_required,
	.gform_validation_errors,
	.gfield_description{
		display:none!important;
	}

	/* Container relatief maken */
	.gfield {
		position: relative;		
	}

	/* Label startpositie */
	.gfield.gfield--type-text .gfield_label,
	.gfield.gfield--type-textarea .gfield_label {
		position: absolute;
		top: 35px; 
		left: 15px; 
		font-size: 16px;
		color: #777;
		transition: all 0.2s ease-out;
		pointer-events: none;
		z-index: 10;
	}

	/* Basis input styling */
	input {
		width: 100%;
		padding: 10px!important;
		box-sizing: border-box;
		border-radius: 4px;
		border: 1px solid lightgrey;
	}

	textarea {
		height: 100px!important;
		border-radius: 4px;
		border: 1px solid lightgrey!important;
	}

	.gform_button{
		background-color: var(--wp--preset--color--accent-3);
		color: white;
		border: none;
		padding: 12px 20px;
		border-radius: 4px;
		cursor: pointer;
	}

	/* DE MAGIE: Als de .gfield een gefocuste input heeft, OF een input met waarde */
	/* .gfield.gfield--type-text:has(input:focus) .gfield_label, */
	.gfield.gfield--type-text:has(input:not(:placeholder-shown)) .gfield_label,
	/* .gfield.gfield--type-textarea:has(textarea:focus) .gfield_label, */
	.gfield.gfield--type-textarea:has(textarea:not(:placeholder-shown)) .gfield_label {
		top: -7px;
		left: 8px;
		font-size: 12px;
		color: #333;
		background: white;	
	}

}


/* Container van de slideshow */
.review-slideshow-container {
    max-width: 800px;
    position: relative;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px 60px; /* Ruimte vrijhouden voor pijltjes */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eaeaea;
}

/* Verberg slides standaard */
.review-slide {
    display: none;
}

/* Inhoud van de review */
.review-content {
    font-size: 1em;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

.review-content p {
    margin-bottom: 0; /* Voorkomt te veel ruimte aan de onderkant */
}

/* Meta informatie (afzender en cijfer) */
.review-meta {
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cijfer badge */
.review-rating {
    background: #ffcc00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
}

/* Navigatie pijltjes */
.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px 15px;
    color: #888;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
}

.prev-slide {
    left: 10px;
	text-decoration: none;
}

.next-slide {
    right: 10px;
	text-decoration: none;
}

.prev-slide:hover, .next-slide:hover {
    color: #000;
    background-color: #f1f1f1;
}

/* Fading animatie */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from { opacity: 0.2; } 
    to { opacity: 1; }
}

/* Mobiele optimalisatie */
@media screen and (max-width: 600px) {
    .review-slideshow-container {
        padding: 30px 20px;
    }
    .prev-slide, .next-slide {
        font-size: 18px;
        padding: 5px 10px;
    }
}

