/*
Theme Name: MKB Punt
Theme URI: 
Author: MKB-Punt
Author URI: 
Description: Thema op Maat voor: Winkelcentrum De Groote Wielen!
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: mkb-punt
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks

/* Defaults
---------------------------------------- */

/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}


/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Code -- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

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

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

@media only screen and (max-width: 782px) {

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

}
.page-template-no-title :where(.wp-site-blocks)>* {
	margin-block-start: 0 !important;
}

.single-winkel .wp-site-blocks > .wp-block-group{
	margin-block-start: var(--wp--preset--spacing--medium) !important;
	margin-block-end: var(--wp--preset--spacing--medium) !important;
}


.single-winkel .wp-block-post-featured-image img {
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	margin-top: 18px;
	border-radius: 10px;
	width: 100%;
	height: auto;
}
.single-winkel  figure.wp-block-post-featured-image {
	max-height: 812px;
}

/* Tables - Zebra Styling */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    width: 100%;
    margin-bottom: 1em;
    background: var(--wp--preset--color--base);
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-right: 1px solid #e0e0e0;
}

/* WordPress Block Table Override */
.wp-block-table td, 
.wp-block-table th {
    border: 1px solid #e0e0e0 !important;
    border-left: none !important;
    border-top: none !important;
}

.wp-block-table th {
    background-color: #f8f9fa;
    font-weight: var(--wp--custom--font-weight--medium);
    border-bottom: 2px solid #d0d0d0 !important;
}

/* Zebra striping - even rows lichtgrijs */
tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:nth-child(odd),
.wp-block-table tbody tr:nth-child(odd) {
    background-color: var(--wp--preset--color--base);
}

/* Hover effect voor table rows */
tbody tr:hover,
.wp-block-table tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

/* Remove border from last column */
th:last-child,
td:last-child,
.wp-block-table th:last-child,
.wp-block-table td:last-child {
    border-right: none !important;
}

/* Round corners for first and last cells */
tr:first-child th:first-child {
    border-top-left-radius: 9px;
}

tr:first-child th:last-child {
    border-top-right-radius: 9px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 9px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 9px;
}

/* Navigation Menu Items - Active & Hover States */
.wp-block-navigation .wp-block-navigation-item a {
    position: relative;
    transition: all 0.3s ease;
}

/* Hover state voor menu items */
.wp-block-navigation .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
    transform: translateY(-1px);
}

/* Active/current page state - alle mogelijke selectors */
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation .wp-block-navigation-item.current_page_item > a,
.wp-block-navigation .wp-block-navigation-item.current-page-ancestor > a,
.wp-block-navigation .wp-block-navigation-item.current-menu-ancestor > a,
.wp-block-navigation .wp-block-navigation-item a[aria-current="page"],
.wp-block-navigation .wp-block-navigation-item a.wp-block-navigation-item__content[aria-current="page"],
.wp-block-navigation .wp-block-navigation-link[aria-current="page"] {
    color: var(--wp--preset--color--primary) !important;
    font-weight: var(--wp--custom--font-weight--medium);
}

/* Underline effect voor hover */
.wp-block-navigation .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--wp--preset--color--primary);
    transition: width 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover::after {
    width: 100%;
}

/* Active page krijgt altijd de underline - alle mogelijke selectors */
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a::after,
.wp-block-navigation .wp-block-navigation-item.current_page_item > a::after,
.wp-block-navigation .wp-block-navigation-item.current-page-ancestor > a::after,
.wp-block-navigation .wp-block-navigation-item.current-menu-ancestor > a::after,
.wp-block-navigation .wp-block-navigation-item a[aria-current="page"]::after,
.wp-block-navigation .wp-block-navigation-item a.wp-block-navigation-item__content[aria-current="page"]::after,
.wp-block-navigation .wp-block-navigation-link[aria-current="page"]::after {
    width: 100%;
}

/* Submenu items styling */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    border-radius: 4px;
}

/* Mobile menu styling */
@media (max-width: 781px) {
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 10px;
        border-radius: 4px;
    }
}


.home iframe {
	border: 0;
	width: 100%;
	height: 200px;
}

:root :where(.wp-block-separator) {
	border-color: var(--wp--preset--color--primary);
	border-width: 4px 0 0;
	border-style: solid;
	border-radius: 16px;
}

.wpcf7-submit {
	background-color: var(--wp--preset--color--primary);
		border-radius: 16px;
		border-color: #008e70;
}