/*
Theme Name: Pageking Flex (child)
Template: pk-theme
Author: Pageking
Author URI: https://www.pageking.nl/
Description: Pageking is een thema voor WordPress dat is ontworpen voor Pageking websites.
Requires at least: 5.9
Tested up to: 6.7.2
Requires PHP: 8.3
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pk-page{
  overflow: clip;
}

/* SPEED OPTIMIZATIONS */
  /* Layout Shift Prevention - CLS Optimization */
  img {
    max-width: 100%;
    height: auto;
    /* Preserve aspect ratio to prevent layout shifts */
    aspect-ratio: attr(width) / attr(height);
  }

  img[width][height] {
    /* Browser calculates aspect-ratio from width/height attributes */
    aspect-ratio: auto;
  }

  /* Ensure hero images maintain aspect ratio */
  .hero-bg {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

/* HEADER */
.pk-topbar-text {
  background-color: var(--pk-color-primary);
  padding-inline: var(--pk-site-gutter);
}

.pk-topbar-text__inner {
  max-width: var(--pk-container-width);
  margin: 0 auto;
  padding-block: 0.5rem;
  text-align: center;
  font-size: 0.87em;
}

.pk-topbar-text__inner a {
  color: inherit;
  text-decoration: underline;
}

.pk-topmenu {
  background-color: var(--pk-color-secondary);
  padding-inline: var(--pk-site-gutter);
  color: white;
}

.pk-topmenu-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 0.75rem;
  max-width: var(--pk-container-width);
  margin: 0 auto;
}

.pk-topmenu-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pk-topmenu-menu .menu-button a{
  background-color: var(--pk-color-primary);
  padding: 5px 10px;
  border-radius: var(--pk-button-radius, 5px);
}

.pk-topmenu-menu a {
  text-decoration: none;
  color: white;
  font-size: 0.87em;
  transition: color 0.3s ease;
}

.pk-topmenu-menu a:hover {
  color: #000;
}

.pk-header{
  padding-inline: var(--pk-site-gutter);
  background-color: white;
}

body header > .pk-header-wrapper{
  max-width: var(--pk-container-width);
  padding-inline: 0px;
  margin: 0 auto;
  padding-block: 0.5rem;
}

.pk-menu .menu .submenu-toggle{
  border: 0px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.75 0.75L6.75 6.75L12.75 0.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat;
  height: 1em;
}
.pk-menu ul.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.pk-menu ul.menu > li {
  list-style: none;
}

.pk-menu ul.menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background-color: var(--pk-color-secondary);
  color: #ffffff;
  border-radius: var(--pk-button-radius, 5px);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pk-menu ul.menu > li > a::after {
  content: '';
  width: 13px;
  height: 13px;
  display: inline-block;
  background-color: var(--pk-color-tertiary);
  mask-image: var(--pk-header-menu-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317H0.641541ZM12.2317 6.09452L6.75855 0.641602L12.2317 6.09452ZM12.2317 6.09452L6.75855 11.5474L12.2317 6.09452Z' fill='%23000'/%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  -webkit-mask-image: var(--pk-header-menu-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317H0.641541ZM12.2317 6.09452L6.75855 0.641602L12.2317 6.09452ZM12.2317 6.09452L6.75855 11.5474L12.2317 6.09452Z' fill='%23000'/%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.pk-menu ul.menu > li > a:hover,
.pk-menu ul.menu > li > a:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.pk-menu ul.menu > li > a:hover::after,
.pk-menu ul.menu > li > a:focus-visible::after {
  transform: translateX(2px);
}

/* Submenu layout: label row + max 4 columns grid */
.pk-menu ul.menu:not(.open) .pk-submenu {
  background: #ffffff;
  padding: 0;
  margin-top: 0.5rem;
  padding: 2rem 2rem;
  max-width: 920px;
  width: max-content;

  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;

}

body .pk-menu .pk-submenu-wrapper {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 0.25rem;
  align-items: start;
}

/* Switch to 2 columns when there are 5 or more items (excluding label row) */
body .pk-menu ul.menu:not(.open) .pk-submenu-wrapper:has(.pk-menu-item:nth-child(6)) {
  grid-template-columns: repeat(2, 1fr);
}

body .pk-menu ul.menu:not(.open) .pk-submenu-wrapper {
  grid-template-columns: 1fr;
}

body .pk-menu .pk-submenu-wrapper:has(.pk-menu-item:nth-child(6)) {
  grid-template-columns: repeat(2, 1fr);
}

/* Label row (back-button wrapper) */
.pk-menu .pk-submenu .back-button-wrapper {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  list-style: none;
  margin-bottom: 0.3rem;
}

.pk-menu ul.menu:not(.open) .pk-submenu .back-button-wrapper .back {
  display: none;
}

.pk-menu .pk-submenu .back-button-wrapper > a {
  font-weight: 700;
  font-size: 1.25em;
  text-decoration: none;
  pointer-events: none;
  color: var(--pk-color-secondary);
}

/* Submenu items */
.pk-menu .pk-submenu .pk-menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pk-menu .pk-submenu .pk-menu-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  padding: 0.1rem 0;
  box-shadow: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  color: var(--pk-text-color);
  text-decoration: none;
}

.pk-menu .pk-submenu .pk-menu-item a:hover {
  color: var(--pk-color-secondary);
  filter: none !important;
  transform: translateX(3px) !important;
  box-shadow: none !important;
}

.pk-menu .pk-submenu .pk-menu-item a::after {
  content: none !important;
}

.pk-menu .pk-submenu .pk-menu-item a::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background-color: var(--pk-color-tertiary);
  mask-image: var(--pk-header-menu-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  -webkit-mask-image: var(--pk-header-menu-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

@media (max-width: 1200px) {
  body .pk-menu .pk-submenu-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  body .pk-menu .pk-submenu-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body .pk-menu .pk-submenu-wrapper {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
.pk-footer{
  padding-inline: var(--pk-site-gutter);
}

/* BUTTONS */
.pk-button{
  background-color: var(--pk-color-secondary);
  padding: 15px 20px;
  border-radius: var(--pk-button-radius, 100px);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.pk-button::after {
  content: '';
  width: 13px;
  height: 13px;
  background-color: var(--pk-color-tertiary);
  mask-image: var(--pk-button-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317H0.641541ZM12.2317 6.09452L6.75855 0.641602L12.2317 6.09452ZM12.2317 6.09452L6.75855 11.5474L12.2317 6.09452Z' fill='%23000'/%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  -webkit-mask-image: var(--pk-button-icon, url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.641541 6.09452H12.2317H0.641541ZM12.2317 6.09452L6.75855 0.641602L12.2317 6.09452ZM12.2317 6.09452L6.75855 11.5474L12.2317 6.09452Z' fill='%23000'/%3E%3Cpath d='M0.641541 6.09452H12.2317M12.2317 6.09452L6.75855 0.641602M12.2317 6.09452L6.75855 11.5474' stroke='%23000' stroke-width='1.28304' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}
.pk-button:hover{
  background-color: #333;
}
.pk-button:active{
  background-color: #222222;
}
.pk-button span{
  color: white;
}
button{
  font-family: var(--pk-text-font-family);
}

/* DEFAULTS PAGE-CONTENT */
.pk-page-content h1, .pk-page-content h2, .pk-page-content h3, .pk-page-content h4, .pk-page-content h5, .pk-page-content h6 {
  margin-top: 0rem;
  margin-bottom: 1rem;
}
.pk-page-content p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.pk-page-content ul, .pk-page-content ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.1rem;
}
.pk-page-content li {
  margin-bottom: 0.5rem;
}
.pk-page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.pk-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.pk-page-content th, .pk-page-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.pk-page-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
}
.pk-page-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}
@media (max-width: 767px) {
  .pk-page-content ul, .pk-page-content ol { padding-left: 1.1rem; }
}
.sidebar{
  padding: var(--pk-row-spacing);
  border-radius: 5px;
}
.gallery-item,
.image{
  border-radius: 5px;
  overflow: hidden;
}
/* OPTIONAL, NO MARGIN 1 PARAGRAPH */
/* p:only-child,
p:last-child {
    margin: 0;
} */

/* OPTIONAL, NO MARGIN TOP EXEPT FIRST ROW */
/* .flex-content > .flex-layout:not(:first-child) > .pk-row {
	padding-top: 0;
} */

/* DIALOG */
body dialog{
  border-radius: 10px;
}
body dialog h3{
  margin-bottom: 1rem;
}

/* FAQ STYLES */
.faq-items {
	display: flex; flex-direction: column; gap: 1rem;
}
.faq-item {
	background-color: #f1f1f1;
  border-radius: 5px;
}
.faq-item .faq-title {
  width: 100%;
	cursor: pointer;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.5rem; margin: 0; gap: 1rem;
  font-size: var(--pk-text-desktop-font-size);
  outline: unset;
  border: 0px;
  border-radius: 5px;
  background-color: #eaeaea;
}
.faq-item .faq-title .open-icon,
.faq-item .faq-title .close-icon {
	flex-shrink: 0;
}
.faq-item:not(.active) .close-icon {
	display: none;
}
.faq-item.active .open-icon {
	display: none;
}
.faq-item .faq-content {
	display: grid; grid-template-rows: 0fr; padding-inline: 1.5rem;
	overflow: hidden; transition: all 0.3s ease-in-out;
}
.faq-item.active .faq-content {
	padding-block: 1rem;
	grid-template-rows: 1fr;
}
.faq-item .faq-inner {
	overflow: hidden;
}

@media screen and (max-width: 767px) {
	.faq-item .faq-title {
		padding: 1rem;
	}
	.faq-item .faq-content {
		padding-inline: 1rem;
	}
  .faq-item .faq-title {
    font-size: var(--pk-text-mobile-font-size);
  }
}
