/* =============================================================================
   CSS Custom Properties
   ============================================================================= */
@font-face {
  font-family: circularBold;
  src: url('../../fonts/CircularStd-Bold.otf');
}

@font-face {
  font-family: circular;
  src: url('../../fonts/CircularStd-Book.otf');
}

@font-face {
  font-family: circularItalic;
  src: url('../../fonts/CircularStd-BookItalic.otf');
}

@font-face {
  font-family: circularBlack;
  src: url('../../fonts/CircularStd-Black.otf');
}

@font-face {
  font-family: circularMedium;
  src: url('../../fonts/CircularStd-Medium.otf');
}


:root {
  /* Colors */
  --color-orange:     #f58220;
  --color-orange-900: #ea7b22;
  --color-orange-100: #fdf2e9;

  --color-purple:     #642978;
  --color-purple-900: #55276a;
  --color-purple-100: #eee9f0;

  --color-blue:       #0380f7;
  --color-beige:      #f0ece5;

  --color-black:      #000000;
  --color-black-700:  #333231;
  --color-black-300:  #dcdcdc;

  --color-white:      #ffffff;
}

body {
	font-family: 'circular', sans-serif;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
  background-color: var(--color-purple);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
  transition: all .2s ease;
}

.header__container {
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 1200px) {
	.header__container {
		max-width: calc(100% - 40px);
	}
}

.header__inner {
	padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 200ms ease, transform 200ms ease, visibility 200ms;
  border: 1px solid var(--color-purple);
}

/* Logo */

.header__logo {
  position: relative;
  display: inline-block;
  line-height: 0;
  width: 219px;
  height: 32px;
}

.header__logo .logo-white,
.header__logo .logo-color {
	position: absolute;
	top: 0;
	left: 0;
}

.header__logo .logo-color {
	opacity: 0;
}

.header__logo .logo-white {
	opacity: 1;
}

/* Nav */

.header__nav {
  display: none;
}

@media (min-width: 1200px) {
  .header__nav {
    display: block;
  }
}

.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__nav .menu-item a {
  font-size: 1rem;
  color: var(--color-white);
  text-decoration: none;
}

.header__nav .menu-item a:hover,
.header__nav .menu-item a:focus-visible {
  text-decoration: underline;
}

.header__nav-list > li > a {
	padding: 20px 0;
}

/* Submenu */

.header .menu-item {
  position: relative;
}

.header .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 1rem);
  left: -20px;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  min-width: 240px;
  display: flex;
  flex-direction: column;

  /* Verborgen standaard */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.header .menu-item:hover > .sub-menu,
.header .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header .sub-menu .menu-item a {
  display: block;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  color: var(--color-black);
}

.header .sub-menu .menu-item a:hover,
.header .sub-menu .menu-item a:focus-visible {
  text-decoration: underline;
}

/* Pijltje indicator op parent link */
.header .menu-item-has-children > a::after {
  content: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.70625 6.4125L6.05937 6.05937L11.0594 1.05938L11.4125 0.70625L10.7063 0L10.3531 0.353125L5.70625 5L1.05938 0.353125L0.70625 0L0 0.70625L0.353125 1.05938L5.35313 6.05937L5.70625 6.4125Z' fill='white'/%3E%3C/svg%3E");
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: transform 200ms ease;
  transform: translateY(-3px);
}

.header .menu-item-has-children:hover > a::after,
.header .menu-item-has-children:focus-within > a::after {
  transform: rotate(-180deg);
}

/* Nested submenu — klapt rechts uit */

.header .sub-menu .menu-item-has-children {
  position: relative;
}

.header .sub-menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.header .sub-menu .menu-item-has-children > a::after {
  content: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.353125 0.70625L0 1.05938L5 6.05937L0 11.0594L0.353125 11.4125L0.70625 11.0594L6.05938 5.70625L6.4125 5.35313L6.05938 5L0.70625 0.353125L0.353125 0.70625Z' fill='black'/%3E%3C/svg%3E");
  margin-left: auto;
  transform: none;
}

.header .sub-menu .menu-item-has-children:hover > a::after,
.header .sub-menu .menu-item-has-children:focus-within > a::after {
  transform: none;
}

.header .sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 4px);
  transform: translateX(-6px);
}

.header .sub-menu .menu-item:hover > .sub-menu,
.header .sub-menu .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* CTA */

.header__cta {
  display: flex;
  gap: 12px;
}

.header__mobile-nav-toggle  {
	width: 48px;
	justify-content: center;
	align-items: center;
	border: none;
}


@media (min-width: 1200px) {
	.header__mobile-nav-toggle  {
		display: none !important;
	}
}

.header__mobile-nav-toggle .menu-open {
	display: none;
}

.header__mobile-nav-toggle.is-open .menu-closed {
	display: none;
}

.header__mobile-nav-toggle.is-open .menu-open {
	display: block; 
}

@media (max-width: 767px) {
	.header__cta .button:not(.header__mobile-nav-toggle) {
		display: none;
	}
}
/* =============================================================================
   Header Scrolled
   ============================================================================= */
.header--scrolled {
	background-color: transparent;
}
.header--scrolled .header__inner {
	background-color: var(--color-white);
	border: 1px solid var(--color-black-300);
}

.header--scrolled .menu-item a {
	color: var(--color-black);
}

.header--scrolled  .menu-item-has-children > a::after {
  content: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.70625 6.4125L6.05937 6.05937L11.0594 1.05938L11.4125 0.70625L10.7063 0L10.3531 0.353125L5.70625 5L1.05938 0.353125L0.70625 0L0 0.70625L0.353125 1.05938L5.35313 6.05937L5.70625 6.4125Z' fill='black'/%3E%3C/svg%3E");
}

.header--scrolled .header__logo .logo-color {
	opacity: 1;
}

.header--scrolled .header__logo .logo-white {
	opacity: 0;
}

@media (min-width: 1200px) {
	.header--scrolled {
		top: 16px;
	}
	
	.header--scrolled .header__inner {
		border-radius: 16px;
	}
}

/* =============================================================================
   Button (shared utility — include once in your global CSS)
   ============================================================================= */

.button {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 300ms, color 300ms;
  height: 48px;
}

.button--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background-color: #036dd2;
  color: white;
  text-decoration: none;
}