/*
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
*/

:root {
  --text-main: hsla(245, 62%, 15%, 1);

  --white: hsla(0, 0%, 100%, 1);
  --white-opaque: hsla(0, 0%, 100%, 0.25);

  --red: hsla(0, 79%, 43%, 1);

  --kobalt: hsla(245, 62%, 15%, 1);
  --kobalt-opaque: hsla(245, 62%, 15%, 0.2);
  --sky: hsla(210, 52%, 92%, 1);
  --linnen: hsla(32, 100%, 97%, 1);

}

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

/* 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;
}

.wpml-ls-statics-footer.wpml-ls.wpml-ls-legacy-list-horizontal,
.otgs-development-site-front-end {
  display: none;
}

.pk-page {
  overflow: clip;
}

.pk-page-content a {
  text-decoration: none;
  transition: color 180ms ease-in-out;
}

.pk-page-content a:hover {
  color: var(--red);
}

/* HEADINGS */
.pk-page-content h1 {
  letter-spacing: -1.04px;
}

.pk-page-content h2 {
  letter-spacing: -0.84px;
}

.pk-page-content h3 {
  letter-spacing: -0.64px;
}

.pk-page-content h4 {
  letter-spacing: -0.48px;
}

.pk-page-content h5 {
  letter-spacing: -0.4px;
}

/* HEADER */
.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 li:not(.menu-button) a {
  text-decoration: none;
  color: black;
}

.pk-menu .pk-submenu {
  min-width: 200px;
}

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

/* BUTTONS */
.pk-page-content .pk-button {
  background-color: var(--red);
  border: 1px solid var(--red);
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 180ms ease-in-out;
}

.pk-page-content .pk-button:active {
  background-color: var(--kobalt);
}

.pk-page-content .pk-button .pk-button-text {
  color: white;
}

.pk-page-content .pk-button .pk-button-icon {
  transition: transform 180ms ease-in-out;
}

.pk-page-content .pk-button .pk-button-icon svg g path {
  transition: fill 180ms ease-in-out;
}

.pk-page-content .pk-button.arrow-right:hover .pk-button-icon {
  transform: rotate(-45deg);
}

.pk-page-content .pk-button.arrow-top:hover .pk-button-icon {
  transform: rotate(45deg);
}

/* PRIMARY */
.pk-page-content .pk-button.primary {
  background-color: var(--red);
  border-color: var(--red);
}

.pk-page-content .pk-button.primary:hover {
  background-color: var(--kobalt);
  border-color: var(--kobalt);
}

.pk-page-content .pk-button.primary .pk-button-icon svg rect {
  fill: var(--white);
}

.pk-page-content .pk-button.primary .pk-button-icon svg g path {
  fill: var(--red);
}

.pk-page-content .pk-button.primary:hover .pk-button-icon svg g path {
  fill: var(--kobalt);
}


/* SECONDARY */
.pk-page-content .pk-button.secondary {
  background-color: transparent;
  border: 1px solid var(--kobalt-opaque);
}

.pk-page-content .pk-button.secondary .pk-button-text {
  color: var(--kobalt);
}

.pk-page-content .pk-button.secondary .pk-button-icon svg rect {
  fill: var(--kobalt);
}

.pk-page-content .pk-button.secondary .pk-button-icon svg g path {
  fill: var(--white);
}

.pk-page-content .pk-button.secondary:hover {
  background-color: var(--kobalt-opaque);
}

/* TERTIARY */
.pk-page-content .pk-button.tertiary {
  background-color: transparent;
  border: 1px solid var(--white-opaque);
}

.pk-page-content .pk-button.tertiary .pk-button-text {
  color: var(--white);
}

.pk-page-content .pk-button.tertiary .pk-button-icon svg rect {
  fill: var(--white);
}

.pk-page-content .pk-button.tertiary .pk-button-icon svg g path {
  fill: var(--kobalt);
}

.pk-page-content .pk-button.tertiary:hover {
  background-color: var(--white-opaque);
}


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 180ms ease-in-out;
}

.faq-item.active .faq-content {
  padding-block: 1rem;
  grid-template-rows: 1fr;
}

.faq-item .faq-inner {
  overflow: hidden;
}


/* LABEL STYLES */
.pk-module.pk-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  margin-bottom: 1.5rem;
}

.pk-module.pk-label .pk-label-image img {
  height: 24px;
  width: 24px;
  aspect-ratio: 1/1;
  object-fit: contain;
  flex-shrink: 0;
}

.pk-module.pk-label .pk-label-text {
  font-weight: 600;
}

@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);
  }
}