/**
 * Navbar Styles
 *
 * @package Olive
 */

/* Navbar Container */

/* FuturaLT-300 - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: normal;
	font-weight: 300;
	src: url(../../src/library/font/futura/FuturaLT-Light-300.eot); /* IE9 Compat Modes */
	src:
		local('FutraLT Light'),
		local('FuturaLT-Light'),
		url(../../src/library/fonts/futura/FuturaLT-Light.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-Light.woff2) format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-Light.woff) format('woff'),
		url(../../src/library/fonts/futura/FuturaLT-Light.ttf) format('truetype');
	/* url(../../src/library/fonts/lato-v16-latin/lato-v16-latin-300.svg#Lato) format('svg'); /* Legacy iOS */
}

/* FuturaLT-LightOblique - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: oblique;
	font-weight: 300;
	src: url(../../src/library/fonts/futura/FuturaLT-LightOblique.eot); /* IE9 Compat Modes */
	src:
		local('FuturaLT Light Italic'),
		local('FuturaLT-LightItalic'),
		url(../../src/library/fonts/futura/FuturaLT-LightOblique.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-LightOblique.woff2)
			format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-LightOblique.woff)
			format('woff'),
		url(../../src/library/fonts/futura/FuturaLT-LightOblique.ttf)
			format('truetype');
	/* url(../../src/library/fonts/futura/FuturaLT-Light-300italic.svg#Lato) format('svg'); /* Legacy iOS */
}

/* FuturaLT-Book - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: normal;
	font-weight: 400;
	src: url(../../src/library/fonts/futura/FuturaLT-Book.eot); /* IE9 Compat Modes */
	src:
		local('FuturaLT Book'),
		local('FuturaLt-Book'),
		url(../../src/library/fonts/futura/FuturaLT-Book.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-Book.woff2) format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-Book.woff) format('woff'),
		url(../../src/library/fonts/futura/FuturaLT-Book.ttf) format('truetype');
	/* url(../../src/library/fonts/lato-v16-latin/lato-v16-latin-regular.svg#Lato) format('svg'); /* Legacy iOS */
}

/* FuturaLT-BookOblique - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: italic;
	font-weight: 400;
	src: url(../../src/library/fonts/futura/FuturaLT-BookOblique.eot); /* IE9 Compat Modes */
	src:
		local('FuturaLT Book Oblique'),
		local('FuturaLT-BookOblique'),
		url(../../src/library/fonts/futura/FuturaLT-BookOblique.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-BookOblique.woff2)
			format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-BookOblique.woff)
			format('woff'),
		url(../../src/library/fonts/futura/FuturaLT-BookOblique.ttf)
			format('truetype');
	/* url(../../src/library/fonts/lato-v16-latin/lato-v16-latin-italic.svg#Lato) format('svg'); /* Legacy iOS */
}
/* FuturaLT-Bold - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: normal;
	font-weight: 700;
	src: url(../../src/library/fonts/futura/FuturaLT-Bold.eot); /* IE9 Compat Modes */
	src:
		local('FouturaLT BoldOblique'),
		local('FuturaLT-boldOblique'),
		url(../../src/library/fonts/futura/FuturaLT-Bold.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-Bold.woff2) format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-Bold.woff) format('woff'),
		url(../../src/library/fonts/lfutura/FuturaLT-Bold.ttf) format('truetype');
	/* url(../../src/library/fonts/lato-v16-latin/lato-v16-latin-700.svg#Lato) format('svg'); /* Legacy iOS */
}
/* futura-boldoblique - latin */
@font-face {
	font-family: 'FuturaLT';
	font-style: italic;
	font-weight: 700;
	src: url(../../src/library/futura/FuturaLT-BoldOblique.eot); /* IE9 Compat Modes */
	src:
		local('FuturaLT Bold Oblique'),
		local('FuturaLT-BoldOblique'),
		url(../../src/library/fonts/futura/FuturaLT-BoldOblique.eot?#iefix)
			format('embedded-opentype'),
		url(../../src/library/fonts/futura/FuturaLT-BoldOblique.woff2)
			format('woff2'),
		url(../../src/library/fonts/futura/FuturaLT-BoldOblique.woff)
			format('woff'),
		url(../../src/library/fonts/futura/FuturaLT-BoldOblique.ttf)
			format('truetype');
	/* url(../../src/library/fonts/lato-v16-latin/lato-v16-latin-700italic.svg#Lato) format('svg'); /* Legacy iOS */
}

/*---------------------------------
		Colors Variables
    
-----------------------------------*/
:root {
	--black: #06021d;
	--light: #e0dfe4;
	--link-on-light: #2111dd;
	--link-on-dark: #8980ec;
	--hover: #ecb40a;
	--danger: #ec4811;

	--new-theme-color: #929479;
	--new-theme-color-2: #2d2f26;
	--new-theme-color-3: #dd3c0b;

	/*----------------
		Border Radius
	------------------*/
	/* Fluid Border Radius: 0.8rem to 2.5rem */
	/* 0.8rem = Min | 2vw + 0.5rem = Preferred | 2.5rem = Max */
	--radius-fluid-rem: clamp(0.8rem, 2vw + 0.5rem, 2.5rem);
	--border-radius-sm: 16px;
	--border-radius-lg: 24px;

	/*----------------
		Paddings and margins
	------------------*/
	/* Fluid Padding (Top/Bottom): 0.5rem to 2rem */
	--btn-padding-y: clamp(0.5rem, 2vw + 0.2rem, 2rem);
	/* Fluid Padding (Left/Right): 1rem to 2rem */
	--btn-padding-x: clamp(1rem, 2vw + 0.5rem, 2rem);
	/* Fluid inner spacing */
	--pad-xy-fluid: clamp(1rem, 2vw, 2rem);
	--padding-left-fluid: clamp(1rem, 5vw, 3rem);
	--padding-right-fluid: clamp(1rem, 5vw, 3rem);
	--padding-top-fluid: clamp(0.5rem, 5vh, 3rem);
	--padding-y-fluid: clamp(1.5rem, 2vh, 4rem);
	--padding-y-fluid-lg: clamp(2rem, 2vh, 8rem);
	--padding-y-fluid-md: clamp(0.5rem, 2.5vh, 1rem);
	--padding-bottom-fluid: clamp(0.5rem, 5vh, 3rem);
	--padding-sm: 0.5rem;
	--padding-md: 1rem;
	--padding-lg: 1.5rem;
	--padding-xl: 2rem;
	--padding-xxl: 4rem;

	/* Fluid Margin (Top/Bottom): 0.5rem to 2rem */
	--margin-y-fluid: clamp(0.5rem, 2vw + 0.2rem, 2rem);
	/* Fluid Margin (Left/Right): 1rem to 2rem */
	--margin-x-fluid: clamp(1rem, 2vw + 0.5rem, 2rem);
	--margin-sm: 0.5rem;
	--margin-md: 1rem;
	--margin-lg: 1.5rem;
	--margin-xl: 2rem;
	--margin-xxl: 4rem;

	/* Fluid Column Gap: 0.5rem to 4rem */
	--column-gap-fluid: clamp(0.5rem, 4vw + 0.25rem, 2rem);
	/* Fluid Row Gap: 0.5rem to 4rem */
	--row-gap-fluid: clamp(0.5rem, 4vw + 0.25rem, 2rem);
	--gap-sm: 0.5rem;
	--gap-md: 1rem;
	--gap-lg: 1.5rem;
	--gap-xl: 2rem;
	--gap-xxl: 4rem;

	/*----------------
		Images and boxes aspect ratios
	------------------*/
	--horizontal: 16/9;
	--vertical: 4/5;
	--square: 1/1;

	/*----------------
		Font sizes
	------------------*/

	/* Paragraph sizes */
	--paragraph-base: clamp(1rem, 1vw + 1rem, 1.25rem);
	--paragraph-large: clamp(2rem, 1vw + 2rem, 2rem);
	--paragraph-md: clamp(1rem, 1vw + 0.8rem, 1.1rem);
	--heading-in-page-sm: clamp(1.2rem, 2vw, 3rem);
	--p-sm: 0.8rem;
	--p-md: 1.2rem;
	--p-lg: 1.5rem;
	--p-xl: 2rem;
	--p-xxl: 3rem;

	/* H1 sizes */
	--heading-base: clamp(4rem, 16vw, 22rem);
	--heading-in-page: clamp(4rem, 8vw, 11rem);
	--heading-in-page-md: clamp(2rem, 4vw, 5.5rem);
	--h1-sm: 2rem;
	--h1-md: 3rem;
	--h1-lg: 4rem;
	--h1-xl: 5rem;
	--h1-xxl: 6rem;

	/* H2 sizes */
	--h2-fluid-lg: clamp(3.5rem, 16vw - 2.2rem, 18rem);
	--h2-fluid-md: clamp(2.5rem, 12vw - 1.8rem, 13.5rem);
	--h2-fluid-sm: clamp(1.75rem, 8vw - 1.1rem, 9rem);
	--h2-fluid: clamp(1.3rem, 2.5vw, 3.3rem);
	--h2-sm: 1.5rem;
	--h2-md: 2rem;
	--h2-lg: 2.5rem;
	--h2-xl: 3rem;
	--h2-xxl: 4rem;

	/* H3 sizes */
	--h3-fluid: clamp(1.2rem, 2vw, 3rem);
	--h3-sm: 1.2rem;
	--h3-md: 1.5rem;
	--h3-lg: 2rem;
	--h3-xl: 2.5rem;
	--h3-xxl: 3rem;

	/*Links and buttons variables*/
	--link-text-fluid: clamp(1.2rem, 2.5vw, 3rem);
	--link-text-fluid-md: clamp(1rem, 2vw, 2rem);
	--link-text-fluid-sm: clamp(1rem, 1vw, 1.5rem);
	--link-text-fluid-xs: clamp(0.5rem, 1vw, 1rem);
	--link-text-sm: 1.3rem;
	--link-text-md: 1.8rem;
	--link-text-lg: 2.5rem;
	--link-text-xl: 3rem;
	--link-text-xxl: 4rem;

	/*---------------- Icons ----------------*/
	--icon-fluid-md: clamp(4rem, 2vw + 0.5rem, 6rem);
	--icon-fluid: clamp(1.2rem, 2vw + 0.5rem, 3rem);

	/*---------------- 
	Divs
	----------------*/
	--div-fluid-width: clamp(300px, 25%, 1440px);
	--div-fluid-width: clamp(300px, 25%, 1440px);
	--div-fluid-height: clamp(22rem, 65vh, 60rem);
	--fw-container: clamp(90%, 90%, 90%);
}

.navbar-container {
	position: fixed;
	top: 2rem;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-height: 72px;
	padding: 8px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 1000;
	transition: background-color 0.6s ease-in-out;
}

.menu {
	width: 100%;
	flex-direction: row;
	justify-content: space-between;
}

/* Logo Container */
.logo-container {
	display: flex;
	align-items: start;
	justify-content: start;
}

.custom-logo-link img svg {
	margin-right: 20px;
	justify-content: start;
	align-items: start;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
}

.site-title {
	font-size: 1.5rem;
	text-decoration: none;
	color: inherit;
}

/* Navigation Wrapper */
.navigation-wrapper {
	flex: 1;
	display: flex;
	justify-content: center;
}

/* Navigation */
.main-navigation {
	display: flex;
	justify-content: center;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
	margin: 0 1rem;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0;
	text-decoration: none;
	transition: color 0.6s ease;
}

/* Mobile/Desktop Visibility */
.mobile-only {
	display: none;
}

.desktop-only {
	display: flex;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: inherit;
	padding: 8px;
	cursor: pointer;
	z-index: 1001;
}

.menu-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	height: 24px;
}

.menu-icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
}

.menu-icon-close {
	display: none;
}

/* Screen Reader Text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
	.navbar-container {
		width: 100%;
		padding: 5%;
		top: 0;
	}

	.menu {
	}

	.mobile-only {
		display: flex;
	}

	.desktop-only {
		display: none;
	}

	/* Mobile Menu Toggle */
	.mobile-menu-toggle {
		display: block;
		order: 2;
	}

	/* Navigation Wrapper */
	.navigation-wrapper {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 0;
		overflow: hidden;
		transition:
			height 0s 0.6s,
			background-color 0.6s ease;
		z-index: 100;
	}

	.navigation-wrapper.active {
		height: 100vh;
		width: 100%;
		margin: 0;
		background-color: var(--black);
		transition: background-color 0.6s ease;
	}

	/* Main Navigation */
	.main-navigation {
		position: absolute;
		top: 0;
		right: 0;
		width: 100%;
		height: 100vh;
		flex-direction: column;
		justify-content: flex-start;
		row-gap: var(--gap-lg);
		align-items: end;
		padding: 5rem 5% 2rem 5%;
		transition: right 0.6s ease;
		overflow-y: auto;
	}

	.main-navigation ul {
		flex-direction: column;
		justify-content: end;
		align-items: end;
		width: 100%;
	}

	.main-navigation li {
		width: 100%;
		display: flex;
		justify-content: end;
		align-items: end;
		margin: 0;
	}
	body.theme-light .main-navigation li {
		border-bottom: 1px solid var(--black);
	}
	body.theme-dark .main-navigation li {
		border-bottom: 1px solid var(--light);
	}

	.main-navigation a {
		width: 100%;
		display: flex;
		justify-content: end;
		align-items: end;
		padding: var(--padding-y-fluid) 0;
		font-size: var(--link-text-fluid-md);
	}

	.theme-light .main-navigation {
		background-color: var(--black);
	}

	.theme-dark .main-navigation {
		background-color: var(--light);
	}

	.navigation-wrapper.active .main-navigation {
		right: 0;
	}

	.theme-dark .main-navigation li {
		border-bottom-color: rgba(0, 0, 0, 0.1);
	}

	/* Mobile Theme Switch */

	.theme-switch-container.mobile-only {
		position: absolute;
		bottom: 20px;
		right: 20px;
		margin-top: 20px;
		margin-bottom: 100px;
		padding-top: 20px;
		border-top: 1px solid var(--light);
	}

	.theme-dark .theme-switch-container.mobile-only {
		border-top-color: var(--black);
	}

	/* Toggle Icon States */
	.mobile-menu-toggle[aria-expanded='true'] .menu-icon-open {
		display: none;
	}

	.mobile-menu-toggle[aria-expanded='true'] .menu-icon-close {
		display: block;
	}
}

/* Animation for Mobile Menu */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		transform: translateX(30px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.navigation-wrapper.active .main-navigation li {
	animation: slideIn 0.6s ease forwards;
	opacity: 0;
}

.navigation-wrapper.active .main-navigation li:nth-child(1) {
	animation-delay: 0.1s;
}
.navigation-wrapper.active .main-navigation li:nth-child(2) {
	animation-delay: 0.15s;
}
.navigation-wrapper.active .main-navigation li:nth-child(3) {
	animation-delay: 0.2s;
}
.navigation-wrapper.active .main-navigation li:nth-child(4) {
	animation-delay: 0.25s;
}
.navigation-wrapper.active .main-navigation li:nth-child(5) {
	animation-delay: 0.3s;
}
.navigation-wrapper.active .main-navigation li:nth-child(6) {
	animation-delay: 0.35s;
}
.navigation-wrapper.active .main-navigation li:nth-child(7) {
	animation-delay: 0.4s;
}
.navigation-wrapper.active .main-navigation li:nth-child(8) {
	animation-delay: 0.45s;
}

.navigation-wrapper.active .theme-switch-container.mobile-only {
	animation: fadeIn 0.6s ease 0.6s forwards;
	opacity: 0;
}

.switch-wrapper {
	border-radius: 30px;
	overflow: hidden;
	width: 58px;
}

.switch-wrapper input[type='checkbox'] {
	visibility: hidden;
	display: none;
}

.switch-wrapper *,
.switch-wrapper ::after,
.switch-wrapper ::before {
	box-sizing: border-box;
}

/* The switch - the box around the slider */
.switch-wrapper .switch {
	--width-of-switch: 3.5em;
	--height-of-switch: 2em;
	/* size of sliding icon -- sun and moon */
	--size-of-icon: 1.4em;
	/* it is like a inline-padding of switch */
	--slider-offset: 0.3em;
	position: relative;
	width: var(--width-of-switch);
	height: var(--height-of-switch);
	display: inline-block;
}

/* The slider */
.switch-wrapper .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--black);
	transition: 0.6s;
	border-radius: 30px;
}

.switch-wrapper input:checked + .slider:before {
	left: var(--slider-offset, 0.3em);

	background: var(--hover);
	/* change the value of second inset in box-shadow to change the angle and direction of the moon  */

	background: linear-gradient(40deg, var(--hover), var(--danger) 50%);
	box-shadow: none;
}

/* slider background color */
.switch-wrapper input:checked + .slider {
	background-color: var(--light);
}

.switch-wrapper .slider:before {
	position: absolute;
	content: '';
	height: var(--size-of-icon, 1.4em);
	width: var(--size-of-icon, 1.4em);
	border-radius: 20px;

	left: calc(
		100% - (var(--size-of-icon, 1.4em) + var(--slider-offset, 0.3em))
	);

	top: 50%;
	transform: translateY(-50%);

	box-shadow:
		inset -3px -2px 5px -2px var(--link-on-light),
		inset -10px -4px 0 0 var(--link-on-dark);

	transition: 0.6s ease-in-out;
}
