/* 
Theme Name: KD Consulting
Description: KD Consulting Theme, baseret på Hello fra Elementor
Author: Munchhansen
Author URI: https://munchhansen.dk/
Template: hello-elementor
Version: 2.1.5
Text Domain: kd-consulting
*/

/*
 * Sticky Elementor header
 * The state class is toggled by assets/js/sticky-header.js.
 */
header.elementor-location-header {
	position: relative;
	z-index: 1000;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer) {
	transition:
		background-color 350ms ease,
		box-shadow 350ms ease;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled {
	background-color: #fff !important;
	box-shadow: rgba(0, 0, 0, 0.17) 0 0 60px 0;
}

/* Only the first menu level changes colour. */
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item {
	transition: color 350ms ease;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item {
	color: #000 !important;
}

/* Elementor gives submenu indicators their own colour/fill. */
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow,
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg,
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg path {
	transition:
		color 350ms ease,
		fill 350ms ease;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow {
	color: #000 !important;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg,
.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg path {
	fill: #000 !important;
}

/* Match the mobile Off Canvas trigger to the sticky header colour state. */
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon,
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon svg,
.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon svg path {
	transition:
		color 350ms ease,
		fill 350ms ease;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-element-d8de0e6 .elementor-icon {
	color: #000 !important;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-element-d8de0e6 .elementor-icon svg,
.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .elementor-element-d8de0e6 .elementor-icon svg path {
	fill: #000 !important;
}

/* The two logo files are layered so the change is a true crossfade. */
.elementor-element-17b303e .kd-logo-switcher {
	position: relative;
}

.elementor-element-17b303e .kd-logo-switcher .kd-logo--light,
.elementor-element-17b303e .kd-logo-switcher .kd-logo--dark {
	display: block;
	transition: opacity 350ms ease;
}

.elementor-element-17b303e .kd-logo-switcher .kd-logo--dark {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .kd-logo-switcher .kd-logo--light {
	opacity: 0;
}

.elementor-element-17b303e:not(.elementor-sticky__spacer).kd-header-scrolled .kd-logo-switcher .kd-logo--dark {
	opacity: 1;
}

/*
 * Keep the responsive header on one line.
 *
 * Elementor hides the desktop Nav Menu widget at the tablet breakpoint, but
 * its parent container (0b6a762) still takes up space. Combined with the
 * generated mobile flex-wrap rule, that pushes the separate hamburger widget
 * onto another row and makes the sticky header appear as a tall block.
 *
 * These rules also apply to Elementors sticky spacer so its height continues
 * to match the visible header and the page does not jump when sticky activates.
 */
@media (max-width: 1024px) {
	.elementor-element-17b303e > .e-con-inner {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
	}

	.elementor-element-17b303e > .e-con-inner > .elementor-element-0b6a762 {
		display: none !important;
	}

	.elementor-element-17b303e > .e-con-inner > .elementor-element-047efde {
		--width: auto !important;
		width: auto !important;
		max-width: none !important;
		flex: 0 1 auto !important;
	}

	.elementor-element-17b303e .elementor-element-f9bde07 img {
		width: 90px !important;
		max-width: 90px !important;
		height: auto;
	}

	.elementor-element-17b303e > .e-con-inner > .elementor-element-d8de0e6 {
		width: auto !important;
		max-width: none !important;
		flex: 0 0 auto !important;
		margin: 0 0 0 auto !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor-element-17b303e:not(.elementor-sticky__spacer),
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-widget-nav-menu nav > ul.elementor-nav-menu > li > a.elementor-item .sub-arrow svg path,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon svg,
	.elementor-element-17b303e:not(.elementor-sticky__spacer) .elementor-element-d8de0e6 .elementor-icon svg path,
	.elementor-element-17b303e .kd-logo-switcher .kd-logo--light,
	.elementor-element-17b303e .kd-logo-switcher .kd-logo--dark {
		transition-duration: 0.01ms;
	}
}
