/* MARK: FONT FAMILIES
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/fonts/inter-400.woff2) format('woff2');
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/fonts/inter-500.woff2) format('woff2');
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/fonts/inter-600.woff2) format('woff2');
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/fonts/inter-700.woff2) format('woff2');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --body-bg-color: var(--white-100);
  --body-text-color: var(--black-100);
  background-color: var(--body-bg-color);
  color: var(--body-text-color);
  interpolate-size: allow-keywords;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

main {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
  margin-block: 2.5rem;

  @media (width >= 56.25rem) {
    row-gap: 4rem;
    margin-block: 4rem;
  }
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

video {
  max-width: 100%;
  height: auto;
  width: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10;
  padding: 1rem;
  background-color: var(--black-100);
  color: var(--white-100);
  opacity: 0;

  &:focus-visible {
    left: 50%;
    translate: -50% 0;
    opacity: 1;
    outline-offset: 5px;
  }
}

.visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: clip;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  left: -9999px;
}

hgroup {
  display: flex;
  flex-direction: column;
  row-gap: 1.25rem;

  &.flipped {
    flex-direction: column-reverse;
  }
}

:where([class*="section"] > .container) {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: auto;
}

:where([class*="section"] .container) > * {
  grid-column: span 16;
}

.container {
  max-inline-size: var(--page-width);
  margin-inline: 1rem;
  width: 100%;

  &.narrow {
    max-inline-size: calc(var(--page-width) / 1.5);
  }
}

[class*="section"] {
  width: 100%;
  display: flex;
  justify-content: center;

  &.bg-primary {
    background-color: var(--primary-bg-color);
  }

  &.bg-secondary {
    background-color: var(--secondary-bg-color);
  }
}

.heading {
  --primary-color: var(--primary-text-color);
  --secondary-color: var(--secondary-text-color);

  line-height: var(--line-height-m);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-xxs);
  color: var(--primary-text-color);
  text-align: center;

  &.h1 {
    font-size: var(--font-size-2xl);

    @media (width >= 37.5rem) {
      font-size: var(--font-size-4xl);
    }

    @media (width >= 56.25rem) {
      font-size: var(--font-size-6xl);
    }
  }

  &.h2 {
    font-size: var(--font-size-2xl);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-4xl);
    }
  }

  &.h3 {
    font-size: var(--font-size-xl);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-2xl);
    }
  }

  &.h4 {
    font-size: var(--font-size-l);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-xl);
    }
  }

  &.h5 {
    font-size: var(--font-size-m);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-l);
    }
  }

  &.h6 {
    font-size: var(--font-size-s);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-m);
    }
  }

  &.h7 {
    font-size: var(--font-size-s);
  }

  &.h8 {
    font-size: var(--font-size-xxs);

    @media (width >= 56.25rem) {
      font-size: var(--font-size-xs);
    }
  }

  &.h9 {
    font-size: var(--font-size-xxs);
    letter-spacing: var(--letter-spacing-xs);
    line-height: var(--line-height-s);
  }

  &.secondary-color {
    color: var(--secondary-color);
  }
}

.text {
  --primary-color: var(--primary-text-color);
  --secondary-color: var(--secondary-text-color);

  line-height: var(--line-height-m);
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-xxs);
  color: var(--primary-text-color);

  &.t1 {
    font-size: var(--font-size-xl);
  }

  &.t2 {
    font-size: var(--font-size-l);
  }

  &.t3 {
    font-size: var(--font-size-m);
  }

  &.t4 {
    font-size: var(--font-size-s);
  }

  &.t5 {
    font-size: var(--font-size-xs);
  }

  &.t6 {
    font-size: var(--font-size-xxs);
  }

  &.secondary-color {
    color: var(--secondary-color);
  }
}

.wysiwyg {
  --primary-color: var(--primary-text-color);
  --secondary-color: var(--secondary-text-color);

  display: flex;
  flex-direction: column;
  gap: 1rem;

  line-height: var(--line-height-m);
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-xxs);
  color: var(--primary-text-color);

  &.t1 {
    font-size: var(--font-size-xl);
  }

  &.t2 {
    font-size: var(--font-size-l);
  }

  &.t3 {
    font-size: var(--font-size-m);
  }

  &.t4 {
    font-size: var(--font-size-s);
  }

  &.t5 {
    font-size: var(--font-size-xs);
  }

  &.t6 {
    font-size: var(--font-size-xxs);
  }

  &.secondary-color {
    color: var(--secondary-text-color);
  }
}

.wysiwyg a {
  display: inline;
  color: var(--primary-link-color);

  &:hover {
    text-decoration: underline;
  }
}

.wysiwyg :is(ul, ol) {
  list-style: initial;
  list-style-position: inside;
}

.wysiwyg li {
    padding-block: 0.5rem;
  }

.wysiwyg :is(h1, h2) {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
}

.wysiwyg :is(h3, h4, h5, h6) {
  margin-block: 1rem 0;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
}

:where(.icon)::before,
:where(.icon)::after {
  content: "";
  background-color: currentcolor;
  mask-repeat: no-repeat;
  mask-size: contain;
  display: none;
  width: var(--icon-size, 1.5rem);
  height: var(--icon-size, 1.5rem);
  min-width: var(--icon-size, 1.5rem);
  min-height: var(--icon-size, 1.5rem);
}

.icon.icon-xxxl { --icon-size: 4rem; }
.icon.icon-xxl { --icon-size: 3rem; }
.icon.icon-xl { --icon-size: 2rem; }
.icon.icon-l  { --icon-size: 1.75rem; }
.icon.icon-m  { --icon-size: 1.5rem; }
.icon.icon-s  { --icon-size: 1.25rem; }
.icon.icon-xs { --icon-size: 1rem; }

.button-container {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  width: 100%;

  @media (width >= 56.25rem) {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: fit-content;
  }
}

.button-container .button {
  height: 100%;
}

.button {
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family-button);
  letter-spacing: var(--letter-spacing-xxs);
  font-size: var(--font-size-s);
  line-height: var(--line-height-m);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  justify-content: center;
  transition: background-color 0.3s, border 0.3s, color 0.3s;
  width: 100%;
  text-align: center;
  height: fit-content;
  border-radius: 0.25rem;

  @media (width >= 56.25rem) {
    width: fit-content;
  }

  &:focus-visible {
    outline-offset: 5px;
  }

  &.primary-button {
  background-color: var(--primary-button-bg-color);
  color: var(--primary-button-text-color);
  border: var(--border-transparent);

    &:hover {
      background-color: var(--primary-button-hover-bg-color);
      color: var(--primary-button-hover-text-color);
    }
  }

  &.secondary-button {
    background-color: var(--secondary-button-bg-color);
    color: var(--secondary-button-text-color);
    border: var(--border-transparent);

    &:hover {
      background-color: var(--secondary-button-hover-bg-color);
      color: var(--secondary-button-hover-text-color);
    }
  }

  &.tertiary-button {
    background-color: var(--tertiary-button-bg-color);
    color: var(--tertiary-button-text-color);
    border: var(--border-current);

    &:hover {
      background-color: var(--tertiary-button-hover-bg-color);
      color: var(--tertiary-button-hover-text-color);
    }
  }
}

.rounded-button {
  border-radius: 100%;
  padding: 0.75rem;
  box-shadow: var(--box-shadow);
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;

  @media (width >= 56.25rem) {
    padding: 1rem;
  }

  &:focus-visible {
    outline-offset: 5px;
  }

  &.primary-rounded-button {
    background-color: var(--primary-rounded-button-bg-color);
    color: var(--primary-rounded-button-text-color);

    &:hover {
      background-color: var(--primary-rounded-button-hover-bg-color);
      color: var(--primary-rounded-button-hover-text-color);
    }
  }

  &.secondary-rounded-button {
    background-color: var(--secondary-rounded-button-bg-color);
    color: var(--secondary-rounded-button-text-color);

    &:hover {
      background-color: var(--secondary-rounded-button-hover-bg-color);
      color: var(--secondary-rounded-button-hover-text-color);
    }
  }
}

@keyframes skeleton-loading {
  0% {
    background-color: var(--skeleton-start-bg-color);
  }
  100% {
    background-color: var(--skeleton-end-bg-color);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}
:root {

  /* COLOR PALETTE */
  --black-100: #000;
  --black-200: #1c1c1c;
  --black-300: #2e2e2e;
  --white-100: #fff;
  --white-200: #f3f3f3;
  --grey-100: #757575;
  --grey-200: #b4b4b4;
  --grey-300: #666666;
  --yellow-100: #ffd700;
  --yellow-200: #f9d862;
  --yellow-300: #d8c054;
  --blue-100: #0073e6;
  --blue-200: #007acc;
  --blue-300: #1a6fc3;
  --blue-400: #3550a0;
  --red-100: #ff0000;
  --green-100: #00a000;
  --transparent-200: #00000029;
  --transparent-300: #0000004D;
  --transparent-400: #ffffff90;
  --transparent-500: #00000080;

  /* FONT FAMILIES */
  --font-family-heading: "Inter", sans-serif;
  --font-family-text: "Inter", sans-serif;
  --font-family-button: "Inter", sans-serif;
  --font-family-nav: "Inter", sans-serif;

  /* FONT SIZES */
  --font-size-xxs: 0.75rem;   /* 12px */
  --font-size-xs: 0.875rem;   /* 14px */
  --font-size-s: 1rem;        /* 16px */
  --font-size-m: 1.125rem;    /* 18px */
  --font-size-l: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.75rem;   /* 28px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 2.5rem;    /* 40px */
  --font-size-6xl: 3rem;      /* 48px */

  /* FONT WEIGHTS */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* LINE HEIGHTS */
  --line-height-xs: 1.25;
  --line-height-s: 1.5;
  --line-height-m: 1.625;
  --line-height-l: 2;

  /* LETTER SPACING */
  --letter-spacing-xs: 0.1rem;
  --letter-spacing-s: 0.15rem;
  --letter-spacing-m: 0.2rem;
  --letter-spacing-l: 0.25rem;

  /* BUTTON COLORS */
  --primary-button-text-color: var(--black-100);
  --primary-button-hover-text-color: var(--black-100);
  --primary-button-bg-color: var(--yellow-200);
  --primary-button-hover-bg-color: var(--yellow-300);

  --secondary-button-text-color: var(--white-100);
  --secondary-button-hover-text-color: var(--white-100);
  --secondary-button-bg-color: var(--blue-200);
  --secondary-button-hover-bg-color: var(--blue-300);

  --tertiary-button-text-color: var(--white-100);
  --tertiary-button-hover-text-color: var(--black-100);
  --tertiary-button-bg-color: transparent;
  --tertiary-button-hover-bg-color: var(--white-200);

  --primary-rounded-button-bg-color: var(--blue-200);
  --primary-rounded-button-text-color: var(--white-100);
  --primary-rounded-button-hover-bg-color: var(--blue-300);
  --primary-rounded-button-hover-text-color: var(--white-100);

  --secondary-rounded-button-bg-color: var(--white-100);
  --secondary-rounded-button-text-color: var(--blue-200);
  --secondary-rounded-button-hover-bg-color: var(--white-200);
  --secondary-rounded-button-hover-text-color: var(--blue-200);

  --tertiary-rounded-button-bg-color: var(--grey-200);
  --tertiary-rounded-button-text-color: var(--black-100);

  /* THEME COLORS */
  --primary-bg-color: var(--white-100);
  --secondary-bg-color: var(--white-200);
  --tertiary-bg-color: var(--blue-400);
  --primary-text-color: var(--black-300);
  --secondary-text-color: var(--white-100);
  --tertiary-text-color: var(--grey-100);
  --quaternary-text-color: var(--blue-400);
  --primary-link-color: var(--blue-100);
  --error-color: var(--red-100);
  --success-color: var(--green-100);
  --popup-bg-color: var(--primary-bg-color);
  --backdrop-bg-color: var(--transparent-300);
  --inactive-color: var(--grey-200); 

  /* OTHER VARIABLES */
  --box-shadow: 0 2px 10px var(--transparent-200);
  --page-width: 77.5rem;
  --primary-image-overlay: linear-gradient(var(--transparent-500), var(--transparent-500));
  --secondary-image-overlay: linear-gradient(var(--transparent-400), var(--transparent-400));

  --tertiary-image-overlay: linear-gradient(88deg,#3550a0cc 24%,#3550a033 100%);

  --border-primary: 1px solid var(--black-100);
  --border-secondary: 1px solid var(--grey-200);
  --border-transparent: 1px solid transparent;
  --border-current: 1px solid currentColor;
  --skeleton-start-bg-color: var(--grey-200);
  --skeleton-end-bg-color: var(--white-200);
}
.browser-outdated-section {
  --container-bg-color: var(--popup-bg-color);

  position: fixed;
	top: 0;
	left: 0;
	z-index: 3;
  background-color: var(--backdrop-bg-color);
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	display: none;
}

.browser-outdated-section.visible {
  display: flex;
}

.browser-outdated-section .container {
  background-color: var(--container-bg-color);
	position: relative;
	display: flex;
	flex-direction: column;
	width: 45rem;
	height: auto;
	max-width: 95%;
	padding: 2rem;	
	row-gap: 2.5rem;
}

.browser-outdated-section .close-browser-outdated-section {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: fit-content;
}

.browser-outdated-section .close-browser-outdated-section:after {
  display: block;
  mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/close.svg);
  -webkit-mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/close.svg);
}

.browser-outdated-section hgroup {
  text-align: center;
}

.browser-outdated-section .browser-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  row-gap: 2rem;
  flex-wrap: wrap;
}

.browser-outdated-section .browser-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.browser-outdated-section .browser-item a:hover .browser-name {
  text-decoration: underline;
}

.browser-outdated-section .browser-name {
  max-width: 6rem;
  text-align: center;
}
.cookie-popup-section {
  --cookie-popup-bg-color: var(--primary-bg-color);

  position: fixed;
  bottom: 0;
  left: 0;
  display: none;
  width: 100%;
  z-index: 2;

  &[aria-expanded='true'] {
    display: flex;
  }
}

.cookie-popup-section .container {
  row-gap: 1rem;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  background-color: var(--cookie-popup-bg-color);
}

.cookie-popup-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

.cookie-popup-title {
  text-align: left;
}

.cookie-popup-close-button {
  display: flex;

  &:after {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/close.svg);
    display: block;
  }
}
.header-section {
  --nav-bg-color: var(--primary-bg-color);

  --nav-item-text-color: var(--primary-text-color);
  --nav-item-font-weight: var(--font-weight-normal);
  --nav-item-font-size: var(--font-size-l);
  --nav-item-font-family: var(--font-family-nav);
  --nav-item-letter-spacing: var(--letter-spacing-xxs);

  --dropdown-bg-color: var(--primary-bg-color);

  --dropdown-item-text-color: var(--primary-text-color);
  --dropdown-item-text-hover-color: var(--tertiary-text-color);
  --dropdown-item-font-weight: var(--font-weight-normal);
  --dropdown-item-font-size: var(--font-size-m);
  --dropdown-item-font-family: var(--font-family-nav);
  --dropdown-item-letter-spacing: var(--letter-spacing-xxs);

  @media (width >= 56.25rem) {
    --nav-item-font-size: var(--font-size-xs);
    --dropdown-item-font-size: var(--font-size-xs);
  }

  top: 0;
  z-index: 3;
  background-color: var(--nav-bg-color);
  transition: translate 0.3s;
  position: sticky;
  box-shadow: var(--box-shadow);

  &.not-scrolling-up:not(:focus-visible):has(:not(.mobile-menu-button[aria-expanded="true"])) {
    translate: 0 -100%;
    box-shadow: none;
  }

  &.not-scrolling-up:not(:focus-visible):has(:not(.mobile-menu-button[aria-expanded="true"])) .has-dropdown:has(.dropdown-button[aria-expanded="true"]) .dropdown-menu {
    translate: -50% -100%;
  }

  &:has(.mobile-menu-button[aria-expanded="true"]) .header-navigation {
    display: flex;

    @media (width < 56.25rem) {
      @supports (transition-behavior: allow-discrete) {
        transform: translateX(0);

        @starting-style {
          transform: translateX(100%);
        }
      }
    }
  }

  &:has(.mobile-menu-button[aria-expanded="true"]):after {
    @media (width < 56.25rem) {
      content: '';
      position: fixed;
      height: 100%;
      width: 100%;
      inset: 0;
      background-color: var(--backdrop-bg-color);
      z-index: 1;
    }
  }
}

.header-section .container {
  align-items: center;
  display: flex;
  gap: 2rem;
  padding-block: 1.25rem;
  justify-content: space-between;
}

body:has(.mobile-menu-button[aria-expanded="true"]) .skip-link {
  display: none;
}

body:has(.mobile-menu-button[aria-expanded="true"]) {
  @media (width < 56.25rem) {
    overflow: hidden;
  }
}

.header-logo,
.header-mobile-logo {
  transition: opacity 0.3s;

  &:hover {
    opacity: 0.5;
  }
}

.header-logo img,
.header-mobile-logo img {
  width: 16rem;
  min-width: 3rem;

  @media (width >= 56.25rem) {
    width: 25rem;
  }
}

.header-mobile-logo-container {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  justify-content: space-between;
  flex-direction: row-reverse;

  @media (width >= 56.25rem) {
    display: none;
  }
}

.header-menu-close-button:after {
  mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/close.svg);
  display: block;
}

.header-navigation {
  display: none;
  width: 100%;
  flex-direction: column;
  position: fixed;
  height: 100%;
  top: 0;
  right: 0;
  overflow: auto;
  padding: 2rem;
  background-color: var(--nav-bg-color);
  max-width: 30rem;
  row-gap: 2rem;
  z-index: 2;

  @media (width >= 56.25rem) {
    width: 100%;
    flex-direction: row;
    position: initial;
    height: auto;
    display: flex;
    justify-content: space-between;
    column-gap: 0.5rem;
    row-gap: 0;
    overflow: initial;
    padding: 0;
    max-width: none;
    z-index: unset;
  }

  @media (width < 56.25rem) {
    @supports (transition-behavior: allow-discrete) {
      transition: transform 0.3s, overlay 0.3s, display 0.3s;
      transition-behavior: allow-discrete;
      transform: translateX(100%);
    }
  }
}

.header-menu {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;

  @media (width >= 56.25rem) {
    flex-direction: row;
    align-items: center;
    justify-content: end;
    width: 100%;
    row-gap: 0;
  }
}

.header-menu-item .dropdown-button,
.header-menu-item > a,
.header-menu-item-label {
  font-weight: var(--nav-item-font-weight);
  font-size: var(--nav-item-font-size);
  font-family: var(--nav-item-font-family);
  letter-spacing: var(--nav-item-letter-spacing);
  color: var(--nav-item-text-color);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5rem;
  transition: text-decoration-color 0.3s;
  min-height: 1.5rem;
  align-items: center;
  display: flex;
  text-wrap: nowrap;
}

.header-menu-item-label > a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5rem;
  transition: text-decoration-color 0.3s;
  text-wrap: nowrap;


  @media (width < 56.25rem) {
    display: none;
  }
}

.header-menu-item.has-link .dropdown-button-label { 
  @media (width >= 56.25rem) {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: clip;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
}

.dropdown-menu-item.overview-link {
  @media (width >= 56.25rem) {
    display: none;
  }
}

.header-menu-item {
  &:hover .dropdown-button,
  &:hover > a,
  &:hover .header-menu-item-label > a {
    text-decoration-color: currentColor;
  }

  &:has([aria-current="page"]) > a,
  &:has([aria-current="page"]) > .dropdown-button,
  &:has([aria-current="page"]) .header-menu-item-label > a {
    text-decoration-color: currentColor;
  }
}

.has-dropdown {
  position: relative;

  &:has(.dropdown-button[aria-expanded="true"]):after {
    @media (width >= 56.25rem) {
      content: "";
      height: 1.25rem;
      left: 0;
      position: absolute;
      width: 100%;
    }
  }

  &:has(.dropdown-button[aria-expanded="true"]) .dropdown-menu {
    display: flex;

    @supports (transition-behavior: allow-discrete) and (interpolate-size: allow-keywords) {
      @media (width < 56.25rem) {
        height: auto;
        padding-block: 1.25rem;
        margin-block: 1.25rem;

        @starting-style {
          height: 0;
          padding-block: 0;
          margin-block: 0;
        }
      }
    }
  }
}

.dropdown-button {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;

  &:after {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/angle-down.svg);
    display: block;
    transition: rotate 0.3s;
    margin-left: 0.25rem;
  }

  &[aria-expanded="true"]:after {
    rotate: -180deg;
  }
}

.dropdown-menu {
  display: none;
  row-gap: 1.5rem;
  justify-content: space-between;
  margin-block: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--box-shadow);
  flex-direction: column;

  @media (width >= 56.25rem) {
    left: 50%;
    position: absolute;
    translate: -50% 0;
    width: max-content;
    background-color: var(--dropdown-bg-color);
    margin-block: 1.25rem 0;
  }

  @supports (transition-behavior: allow-discrete) and (interpolate-size: allow-keywords) {
    @media (width < 56.25rem) {
      transition: height 0.3s, display 0.3s, padding-block 0.3s, margin-block 0.3s;
      transition-behavior: allow-discrete;
      height: 0;
      padding-block: 0;
      margin-block: 0;
      overflow: hidden;
    }
  }
}

.dropdown-menu-item {
  width: 100%;
  display: flex;
}

.dropdown-menu-item > a {
  width: 100%;
  font-weight: var(--dropdown-item-font-weight);
  font-size: var(--dropdown-item-font-size);
  font-family: var(--dropdown-item-font-family);
  letter-spacing: var(--dropdown-item-letter-spacing);
  color: var(--dropdown-item-text-color);
  transition: color 0.3s;

  &:hover {
    color: var(--dropdown-item-text-hover-color);
  }

  &[aria-current="page"] {
    color: var(--dropdown-item-text-hover-color);
  }
}

.header-utils {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.mobile-menu-button {
  &:after {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/bars.svg);
    display: block;
  }

  @media (width >= 56.25rem) {
    display: none;
  }
}

#header-cta {
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  text-decoration: none;
  width: fit-content;

  &:hover {
    text-decoration: none;
  }

  &:before {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/phone.svg);
    display: block;
  }
}
.bottombar-section {
  background:
    var(--primary-image-overlay),
    var(--bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

}

.bottombar-section .container {
  padding-block: 4rem;
  row-gap: 2rem;
}

.bottombar-title {
  text-align: left;
}

.bottombar-section .button-container {
  display: flex;
  flex-direction: column;
  align-items: start;

  @media (width >= 56.25rem) {
    grid-column: 6 / 14;
  }
}

.bottombar-section hgroup {
  @media (width >= 56.25rem) {
    grid-column: 6 / 14;
  }
}

.bottombar-feature-list {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  @media (width >= 56.25rem) {
    grid-column: 6 / 14;
  }
}

.bottombar-feature-item {
  display: flex;
  align-items: center;
  column-gap: 1rem;

  &:before {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/check.svg);
    display: block;
    background-color: var(--primary-button-bg-color);
  }
}
.contact-bubble-section {
  --contact-bubble-label-bg-color: var(--primary-bg-color);

  position: fixed;
  bottom: 1.25rem;
  right: 0;
  display: flex;
  align-items: end;
  width: fit-content;
  z-index: 1;

  &:has(.contact-bubble-button[aria-expanded='true']) .contact-bubble-list {
    display: flex;

    @supports (transition-behavior: allow-discrete) {
      transform: translateY(0);
      opacity: 1;

      @starting-style {
        transform: translateY(1rem);
        opacity: 0;
      }
    }
  }
}

.contact-bubble-section .container {
  row-gap: 0.5rem;
}

.contact-bubble-button {
  transition: background-color 0.3s, color 0s;
  grid-row: 2;
  justify-self: end;

  &:after {
    display: block;
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/contact.svg);
  }

  &[aria-expanded='true']:after {
    mask-image: url(https://flevobeveiliging.kamedia.nl/wp-content/themes/acf/assets/icons/close.svg);
  }
}

.contact-bubble-list {
  display: none;
  flex-direction: column;
  align-items: end;
  row-gap: 0.5rem;

  @supports (transition-behavior: allow-discrete) {
    transition: transform 0.3s, display 0.3s, opacity 0.3s;
    transition-behavior: allow-discrete;
    transform: translateY(1rem);
    opacity: 0;
  }
}

.contact-bubble-item {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.contact-bubble-link {
  &:after {
    display: block;
    mask-image: var(--icon);
  }
}

.contact-bubble-label {
  box-shadow: var(--box-shadow);
  background-color: var(--contact-bubble-label-bg-color);
  padding: 0.5rem;
  border-radius:  0.5rem 0 0 0.5rem;
}
footer {
  --footer-bg-color : var(--tertiary-bg-color);

  display: flex;
  flex-direction: column;
}


.footer-section {
  background-color: var(--footer-bg-color);
}

.footer-section .container {
  row-gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-logo {
  transition: opacity 0.3s;
  width: fit-content;
  
  &:hover {
    opacity: 0.5;
  }
}

.footer-logo img {
  width: 16rem;
  min-width: 3rem;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  column-gap: 4rem;
  row-gap: 2rem;
}

.footer-menu-item {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.footer-menu-title {
  text-align: left;
  font-weight: var(--font-weight-semibold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.footer-link a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
  transition: text-decoration-color 0.3s;
  display: flex;
  column-gap: 0.5rem;
  align-items: center;

  &:hover {
    text-decoration-color: currentColor;
  }

  &:before {
    mask-image : var(--icon);
    display: block;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: var(--border-secondary);
}

.footer-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-icon-item {
  display: flex;
}

.footer-icon-item img {
  width: auto;
  height: 2rem;
}

.footer-socials-and-certifications {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-socials {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
}

.footer-socials a:before {
  mask-image : var(--icon);
  display: block;
} 

.footer-certifications {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
}

.footer-certifications img {
  width: auto;
  height: 5rem;
}
main:has(.intro-section) {
  margin-top: 0;
}

.intro-section .container {
  background-image:
    var(--primary-image-overlay),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.5rem;
  margin-top: 1rem;
  padding: 3rem 2rem;

  @media (width >= 56.25rem) {
    padding: 5rem 4rem; 
  }
}

.intro-title {
  max-width: 40rem;
  justify-self: center;
  align-self: center;
}
.security-services-section .container {
  row-gap: 2rem;
}

.security-services-title,
.security-services-text {
  max-width: 35rem;
  align-self: center;
  text-align: center;
  width: 100%;
  text-wrap: balance;
}

.security-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr));
  gap: 1rem;
}

.security-service-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  height: 100%;
  background-color: var(--primary-bg-color);
  transition: background-color 0.3s ease;

  &:hover {
    background-color: var(--secondary-bg-color);
  }
}

.security-service-name {
  color: var(--quaternary-text-color);
}
