/*
Theme Name: Extendable
Theme URI: https://github.com/extendify/extendable
Author: Extendify
Author URI: https://extendify.com
Description: Extendable is a distinct, dynamic block theme designed as a canvas for your next online venture. Sporting multiple style variations, Extendable is the most expressive block theme yet. Go fresh, bold, bohemian or minimal — with a single click.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.26
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: extendable
Tags: one-column, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments

Extendable is a derivative work of the code from the
Twenty Twenty-Two WordPress Theme, which is licensed GPLv2.

Extendable WordPress Theme, (C) 2022 Extendify Inc.
Extendable therefore is also distributed under the terms of the GNU GPL.
*/


/* Fallback for deprecate variables.
---------------------------------------------------------------------------- */
:root {
	--wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1.5rem, 5vw, 2rem));
	--wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2.5rem, 8vw, 4rem));
	--wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 8vw, 6rem));
	--wp--custom--spacing--outer: max(1.25rem, 4vw);
}

/*
 * Smooth scrolling
 */

 html {
	scroll-behavior: smooth;
  }

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

:where(.wp-site-blocks *:focus) {
	outline-width:1px;
	outline-style:solid
}

@media (min-width: 600px) {
    .site-logo-title {
        display:none
    }

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item, 
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, 
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

@media (max-width: 600px) {
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item, 
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, 
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title {
	max-width: 100%;
    align-items: center;
    padding-bottom: 22px;
    position: relative;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--wp--preset--spacing--30));
    right: calc(-1 * var(--wp--preset--spacing--30));
    bottom: 0;
    height: 2px;
    background: #778DA450;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title img {
	max-height: 80px !important;
	height: auto !important;
	width: auto !important;

}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title .site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	text-transform: uppercase;
    letter-spacing: -0.02em;
    box-sizing: border-box;
    line-height: 1.15;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--30);
}


/* Custom - General - Mobile menu
 * -------------------------------------------------------- */
html.has-modal-open {
	nav.wp-block-navigation-is-layout-flex {
		button.wp-block-navigation__responsive-container-close {
			background-color: #ECEDEE;
			padding: 16px;
			border-radius: 100%;
			top: 12px;
		}
		
		div.wp-block-navigation__responsive-container {
			background-color: #313540 !important;
			
			div.wp-block-navigation__responsive-close div.wp-block-navigation__responsive-dialog {
				margin-top: 0px;
				
				ul.wp-block-navigation__container {
					row-gap: 0px;
					width: -webkit-fill-available;
					max-width: 100%;
					
					li {
						border-bottom: 4px solid #778DA450;
						padding-top: 36px;
						padding-bottom: 36px;
						width: -webkit-fill-available;
						max-width: 100%;

						a.wp-block-navigation-item__content {
							font-size: 32px;
							margin-left: 16px;
							font-weight: bold;
							color: #ECEDEE;
						}
					}
				}
			}
		}
	}
}


.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/* Don't display the homepage in the Page List block, when located inside a navigation element. */
nav .wp-block-pages-list__item.wp-block-navigation-item.menu-item-home {
	display: none;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

/*
 * --------------------------------------------------------
 *  CUSTOM CODE BY DENNIS
 * --------------------------------------------------------
 */

/* Custom - General - Header
 * -------------------------------------------------------- */
header.wp-block-template-part {
	position: sticky;
	top: 0px;
	z-index: 1000;
}

@media (max-width: 1279px) {
	header.wp-block-template-part {
		div.wp-block-navigation__responsive-container-content ul {
			gap: 16px 24px;
		}
	}
}

@media (max-width: 600px) {
	header.wp-block-template-part div.wp-block-group-is-layout-constrained {
		button.wp-block-navigation__responsive-container-open {
			margin-right: 10px;
			
			svg {
				width: 36px;
				height: 36px;
			}
		}
	}
}

/* Custom - General - Header & Footer
 * -------------------------------------------------------- */
header.wp-block-template-part {
	[aria-current] {
		text-decoration: underline;
		text-decoration-color: #778DA4;
	}
}

@media (max-width: 1279px) {
	footer.wp-block-template-part div.custom-footer {
		div.custom-footer-grid {
			display: flex;
			flex-wrap: wrap;
			row-gap: 80px;
			justify-content: center;
			padding: 0 10%;
		}
		
		div.custom-footer-row {
			padding-top: 80px !important;
		}
	}
}

@media (max-width: 768px) {
	footer.wp-block-template-part div.custom-footer {
		div.custom-footer-row {
			flex-direction: column;
		}
	}
}


/* Custom - Homepage - Heading
 * -------------------------------------------------------- */
@media (max-width: 1279px) {
	div.custom-home-heading div.wp-block-group {
		display: flex;
		flex-direction: column;
		
		div.custom-heading-logo {
			display: none;
		}
		
		div.custom-heading-text {
			padding: 0 10%;
		}
	}
}

@media (max-width: 768px) {
	div.custom-home-heading div.wp-block-group div.custom-heading-text {
		padding: 0;
	}
}

/* Custom - Homepage - Style separators
 * -------------------------------------------------------- */
hr.custom-style-bar {
	height: 6px !important;
}


/* Custom - Homepage - Buttons
 * -------------------------------------------------------- */
div.custom-button div.wp-block-button a.wp-block-button__link {
	&:hover {
		text-decoration: underline;
	}
}


/* Custom - Homepage - Service Cards
 * -------------------------------------------------------- */
div.custom-services div.custom-service-grid div.custom-service-card {
	position: relative;

	p.custom-lees-meer a:hover {
		color: #778DA4;
	}
}

@media (max-width: 1279px) {
	div.custom-services div.custom-service-grid {
		display: flex;
		flex-direction: column;
		align-items: center;
		
		div.custom-service-card {
			width: 60%;
		}
	}
}

@media (max-width: 768px) {
	div.custom-services div.custom-service-grid div.custom-service-card {
		width: 100%;
		
		h2 {
			font-size: 32px !important;
		}
	}
}

/* Custom - Homepage - About me
 * -------------------------------------------------------- */
@media (max-width: 1279px) {
	div.custom-aboutme div.custom-aboutme-column {
		flex-direction: column;
		padding: 0 10%;
	}
}

@media (max-width: 768px) {
	div.custom-aboutme div.custom-aboutme-column {
		flex-direction: column;
		padding: 0;
	}
}


/* Custom - Homepage - Banner
 * -------------------------------------------------------- */
div.custom-banner div.wp-block-columns {
	div.custom-banner-column {
		display: flex;
		justify-content: center;

		div.custom-banner-row {
			background-color: white;
		}
	}
	&:before {
		height: 4px;
		background-color: #778DA4;
		content: '';
		position: absolute;
		width: 100%;
		left: 0;
		top: 73px;
		z-index: -10;
	}
}

@media (max-width: 782px) {
	div.custom-banner {
		padding-left: 0px;
		padding-right: 0px;
		
		div.wp-block-columns {
			display: flex;
			flex-direction: column;
			gap: 16px;
			position: relative;

			&:before {
				display: none;
			}

			div.custom-banner-column {
				align-items: center;
				
				&:before {
					height: 4px;
					background-color: #778DA4;
					content: '';
					position: absolute;
					width: 100%;
					left: 0;
					z-index: -10;
				}
			}	
		}
	}
}


/* Custom - Homepage - References Carousel
 * -------------------------------------------------------- */
div.custom-reference div.wp-block-group div.wp-block-group div.wp-block-group {
	hr.wp-block-separator {
		height: 2px;
		opacity: 0.5;
	}
	
	div.custom-carousel {
		width: 912px;
		padding: 50px 0;

		div.swiper {
			margin-bottom: 0px;

			div.custom-slide div.custom-slide-row {
				ul li {
					width: 80%;
					margin: auto;

					div.wp-block-latest-posts__featured-image {
						margin-right: 32px;

						img {
							border-radius: 50%;
						}
					}

					a.wp-block-latest-posts__post-title {
						font-size: 24px;
						font-weight: bold;
						text-decoration: none;
						
						&:hover {
							text-decoration: underline;
							color: #313540;
						}
						
						&:focus {
							text-decoration: underline;
							color: #3f5567;
						}
					}

					div.wp-block-latest-posts__post-excerpt {
						margin-bottom: 0px;
						
						a.wp-block-latest-posts__read-more {
							visibility: hidden;
							
							&:after {
								content: 'Lees meer';
								visibility: visible;
								text-transform: uppercase;
								font-weight: bold;
								font-size: 16px;
								display: flex;
								padding-top: 10px;
							}
							
							&:hover:after {
								color: #778DA4;
								text-decoration-color: #778DA4;
							}
							
							&:focus:after {
								text-decoration: underline;
								color: #3f5567;
							}
						}
					}
				}

				ul.custom-post-1 {
					li:not(:first-child) {
						display: none;
						width: 100%;
					}
				}

				ul.custom-post-2 {
					li:first-child, li:last-child {
						display: none;
					}
				}

				ul.custom-post-3 {
					li:not(:last-child) {
						display: none;
					}
				}
			}
		}

		div.swiper-pagination-bullets {
			bottom: -50px !important;

			span.swiper-pagination-bullet {
				width: 12px;
				height: 12px;
			}
		}
	}
}

@media (max-width: 1279px) {
	div.custom-reference div.wp-block-group {
		div.custom-reference-group {
			width: 80%;
			
			div.is-content-justification-stretch div.custom-carousel {
				width: 100%;
				
				div.custom-slide-row ul li {
					width: 90% !important;
				}
			}
		}
	}
}

@media (max-width: 768px) {
	div.custom-reference div.wp-block-group {
		div.custom-reference-group {
			width: 90%;
			
			div.is-content-justification-stretch div.custom-carousel {
				div.custom-slide div.custom-slide-row ul li {
					display: flex;
					flex-direction: column;
					
					div.wp-block-latest-posts__featured-image {
						margin: 0 auto 12px auto !important;
					}
				}
			}
		}
	}
}


/* Custom - Headings
 * -------------------------------------------------------- */
@media (max-width: 1279px) {
	div.custom-heading div.custom-heading-text {
		padding-left: 10% !important;
		padding-right: 10% !important;
	}
}

@media (max-width: 768px) {
	div.custom-heading div.custom-heading-text {
		padding-right: var(--wp--style--root--padding-right) !important;
		padding-left: var(--wp--style--root--padding-left) !important;
	}
}


/* Custom - Call to Action
 * -------------------------------------------------------- */
@media (max-width: 1279px) {
	div.custom-cta div.custom-cta-grid {
		padding-right: 10% !important;
		padding-left: 10% !important;
		display: flex;
		flex-direction: column;
		row-gap: 50px;
	}
}

@media (max-width: 768px) {
	div.custom-cta div.custom-cta-grid {
		padding-right: 32px !important;
		padding-left: 32px !important;
	}
}


/* Custom - References
 * -------------------------------------------------------- */
div.custom-references div.wp-block-query ul {
	li.wp-block-post {
		margin-block-start: 0;
		
		div.is-nowrap {
			padding: 0 36px;
			
			h2 a {
				&:hover {
					text-decoration: underline;
					color: #313540;
				}
				&:focus {
					text-decoration: underline;
					color: #3f5567;
				}
			}
			
			p.wp-block-post-excerpt__more-text {
				margin-top: 16px;

				a.wp-block-post-excerpt__more-link {
					font-weight: bold;
					font-size: 16px;

					&:hover {
						color: #778DA4;
					}
					
					&:focus {
						text-decoration: underline;
						color: #3f5567;
					}
				}
			}
		}
		
		hr.wp-block-separator {
			height: 2px;
			opacity: 0.5;
		}
	}
}

@media (max-width: 768px) {
	div.custom-references {
		div.custom-reference-row {
			flex-direction: column;
			padding-left: 0 !important;
			padding-right: 0 !important;
		}
	}
}


/* Custom - Reference post
----------------------------------------------------------*/
@media (max-width: 1279px) {
	div.custom-post-heading {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
		
		main.wp-block-group div.wp-block-group {
			width: 80%;
		}
	}
}

@media (max-width: 768px) {
	div.custom-post-heading main.wp-block-group div.wp-block-group {
		width: 100%;
		padding-right: var(--wp--style--root--padding-right);
		padding-left: var(--wp--style--root--padding-left);
		
		div.custom-post-stack {
			padding-right: 0;
			padding-left: 0;
		}
	}
}


/* Custom - Contact
----------------------------------------------------------*/
@media (max-width: 768px) {
	div.custom-contact div.custom-contact-grid {
		display: flex;
		flex-direction: column;
	}	
}


/* Button
----------------------------------------------------------*/
.wp-element-button {
	transition: background-color 0.15s ease;
}
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background):hover,
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: rgba(159, 159, 159, 0.2);
}

/* Table
----------------------------------------------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){
	background-color: var(--wp--custom--blocks--core-table--variant-stripes--color--background, var(--wp--preset--color--tertiary));
}

/* Template Part Block
----------------------------------------------------------*/

/* Temporary fix until template-part blocks support spacing */

footer.wp-block-template-part:not([style*="margin-top"]) {
	margin-top: 0;
}

/* Quote - 'Plain' variation
----------------------------------------------------------*/
blockquote:is(.is-style-plain) {
	border: none;
	padding-left: 0;
}

/* Search Block
----------------------------------------------------------*/
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border-color: var(--wp--custom--elements--input--border--color);
	border-radius: var(--wp--custom--elements--button--border--radius);
	border-width: var(--wp--custom--elements--input--border--width);
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
	border-color: transparent;
}
.wp-block-search .wp-block-search__input {
	border-radius: var(--wp--custom--elements--button--border--radius);
}

/* Image
----------------------------------------------------------*/
.wp-block-image[style*="-radius"]:not([style*="overflow"]) { overflow: hidden }

/*
 * --------------------------------------------------------
 *  Custom - experimental
 * --------------------------------------------------------
 */

.block-editor-block-list__block.wp-block.is-default-size.wp-block-site-logo .components-resizable-box__container,
.wp-block-site-logo.is-default-size img {
    max-height: 42px !important;
    height: auto !important;
    width: auto !important;
}

/* Ensure default logo works well on light and dark backgrounds
----------------------------------------------------------*/
.wp-block-site-logo img[src*="extendify-demo-"],
.wp-block-site-logo img[src*="ext-custom-logo-"] {
	filter: var(--wp--preset--duotone--primary-foreground);
}


/*
 * Remove all animations, transitions and smooth scroll
 * for people that prefer not to see them.
 */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Matching caret and focus outline colors.
 */
input, textarea {
	caret-color: inherit;
	outline-color: inherit;
}

/*
 * Matching input with outline button style.
 */
:where(.wp-block-post-comments-form) input:not([type=submit]),
:where(.wp-block-post-comments-form) textarea {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	border-color: inherit;
}


/*
 * Woocommerce temporarily customization until the woo blocks offer support
 */

.woocommerce-Tabs-panel--description h2, .woocommerce-Reviews-title {
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-button.wc-block-components-product-button {
	flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
	gap: 1rem;
}
.wp-block-button.wc-block-components-product-button a.added_to_cart {
	margin-top: 0;
}

.woocommerce-checkout.woocommerce-page header.wp-block-template-part nav.wp-block-navigation {
	visibility: hidden;
}

/*
 * Adds offset for sticky header overlap
 */

 .sticky-header-offset-container .entry-content > .wp-block-group {
	scroll-margin-top: var(--wp--preset--spacing--60);
}
