/* =========================================================
   Spinwinners España
   Custom Header
   ========================================================= */


/* ---------------------------------------------------------
   Header basis
   --------------------------------------------------------- */

.sw-header {
	width: 100%;
	margin: 0;
	padding: 0;

	background-color: #350156;

	position: relative;
	z-index: 1000;

	box-sizing: border-box;
}


.sw-header *,
.sw-header *::before,
.sw-header *::after {
	box-sizing: border-box;
}


/* ---------------------------------------------------------
   Container
   --------------------------------------------------------- */

.sw-header__container {
	display: grid;

	grid-template-columns:
		1fr
		auto
		1fr;

	align-items: center;

	position: relative;

	width: 100%;
	min-height: 60px;

	margin: 0 auto;
	padding: 10px 20px;
}


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.sw-header__logo {
	grid-column: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	line-height: 0;
}


.sw-header__logo a {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0;

	text-decoration: none;

	box-shadow: none;
}


.sw-header__logo img {
	display: block;

	width: 202px;
	max-width: 100%;
	height: auto;

	margin: 0;
	padding: 0;

	border: 0;
}


/* ---------------------------------------------------------
   Hamburger
   --------------------------------------------------------- */

.sw-header__menu-button {
	grid-column: 3;

	justify-self: end;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 5px;

	background: transparent;

	color: #ffffff;

	font-family: inherit;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;

	cursor: pointer;

	box-shadow: none;
	appearance: none;

	transition:
		background-color 0.18s ease,
		opacity 0.18s ease;
}


.sw-header__menu-button:hover,
.sw-header__menu-button:focus {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;

	outline: none;

	box-shadow: none;
}


.sw-header__menu-button:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}


/* ---------------------------------------------------------
   Dropdown menu
   --------------------------------------------------------- */

.sw-header__dropdown {
	display: none;

	position: absolute;

	top: 100%;
	right: 20px;

	min-width: 210px;

	margin: 0;
	padding: 8px;

	background-color: #4c1a85;

	border-radius: 8px;

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.18);

	z-index: 1100;
}


/* Open status */

.sw-header__dropdown--open {
	display: block;
}


/* ---------------------------------------------------------
   Dropdown links
   --------------------------------------------------------- */

.sw-header__dropdown a {
	display: block;

	width: 100%;

	margin: 0;
	padding: 10px 13px;

	border-radius: 5px;

	color: #ffffff;

	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;

	text-decoration: none;

	box-shadow: none;

	transition:
		background-color 0.18s ease,
		color 0.18s ease;
}


.sw-header__dropdown a:hover,
.sw-header__dropdown a:focus {
	background-color: #5d249e;

	color: #ffffff;

	text-decoration: none;

	outline: none;
}


.sw-header__dropdown a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -2px;
}


/* =========================================================
   Mobiel
   ========================================================= */

@media (max-width: 768px) {

	.sw-header__container {
		min-height: 58px;

		padding:
			9px
			15px;
	}


	.sw-header__logo img {
		width: 185px;
	}


	.sw-header__menu-button {
		width: 40px;
		height: 40px;

		font-size: 24px;
	}


	/*
	 * Mobiel dropdown over volledige breedte.
	 */

	.sw-header__dropdown {
		top: 100%;

		right: 0;
		left: 0;

		width: 100%;
		min-width: 0;

		padding:
			8px
			15px
			12px;

		border-radius: 0 0 8px 8px;
	}


	.sw-header__dropdown a {
		padding:
			11px
			13px;

		font-size: 14px;
	}

}


/* =========================================================
   Kleine telefoons
   ========================================================= */

@media (max-width: 420px) {

	.sw-header__container {
		padding-left: 12px;
		padding-right: 12px;
	}


	.sw-header__logo img {
		width: 165px;
	}


	.sw-header__menu-button {
		width: 38px;
		height: 38px;

		font-size: 22px;
	}

}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.sw-header__menu-button,
	.sw-header__dropdown a {
		transition: none;
	}

}

/* =========================================================
   Override Hello Elementor button styling
   ========================================================= */

.sw-header .sw-header__menu-button,
.sw-header .sw-header__menu-button:hover,
.sw-header .sw-header__menu-button:focus,
.sw-header .sw-header__menu-button:active {
	background-color: transparent !important;
	border: 0 !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

.sw-header .sw-header__menu-button span {
	color: #ffffff !important;
}