/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
	--color-primary: #C61B8B;
	--color-accent: #A51BC6;
	--color-secondary: #000000;
	--color-text-dark: #4F4F4F;
	--color-text-light: #EFEFEF;
	--color-white: #FFFFFF;
	--color-black: #000000;
	--color-bg-light: #E6E6E6;
	--color-bg-dark: #4F4F4F;
	--color-placeholder: green;
	--text-light: 400;
	--text-bold: 700;
	--headline-bold: 700;

	--fontsize-body: 1.25rem;
	--fontsize-medium: 1.1rem;
	--fontsize-small: .9rem;

	/* Elementor Styles Overwrite */
	--e-global-color-text: #4F4F4F !important;
}

.dark {
	--color-bg-light: #040404;
	--color-bg-dark: #EFEFEF;
	--color-text-dark: #C7C7C7;
	--color-text-light: #4F4F4F;

	/* Elementor Styles Overwrite */
	--e-global-color-text: #C7C7C7 !important;
	--e-global-color-a5ba894: #1E1E1E !important;
}

.dark .elementor-posts .elementor-post__card .elementor-post__meta-data {
	border-top: 1px solid var(--color-text-light) !important;
}

.dark .elementor-108 .elementor-element.elementor-element-f7757ca {
	border-color: var(--color-text-light) !important;
}

.dark .elementor-posts .elementor-post__card .elementor-post__excerpt p {
	color: var(--color-text) !important;
	hyphens: auto;
}


/************************************ 
** Reset Elementor Styling
************************************/
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-icon-box .elementor-icon-box-title {
	color: inherit;
}


/************************************ 
** Settings
************************************/
main {
	overflow-x: hidden;
	overflow-y: visible;
}


/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html, body {
	height: 100%;
}

html {
	box-sizing: border-box;
}

*,
*:before,
*:after { 
	box-sizing: inherit;
}

body {
	background-color: var(--color-bg-light);
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-weight: var(--text-light);
	font-size: var(--fontsize-body);
	line-height: 1.6;
	color: var(--color-text-dark);
	-webkit-font-smoothing: antialiased;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}

blockquote,
q {
	quotes: "" "";
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	padding-left: 12px;
}

.site-navigation ul {
	padding-left: 0;
}

ul li {
	list-style-type: none;
	list-style-position: outside;
	list-style-image: none;
	color: #333;
}

:not(header) ul li:before {
	content: '\0336 ';
	color: #753ba9;
	position: relative;
	left: -7px;
}

.elementor-widget-post-info ul li:before,
header ul li:before {
	content: none;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 0.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Touch helper */
.hover {
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4 {
	font-optical-sizing: auto;
	font-weight: var(--headline-bold);
	font-style: normal;
	margin-top: .5em;
	margin-bottom: .5em;
	line-height: 1.35 !important;
	letter-spacing: -.4px;
	color: var(--color-primary) !important;
	hyphens: none;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 {
	font-size: 1.5rem;
	margin-top: 1.5em;
	margin-bottom: .5em;
	line-height: 1.5 !important;
}

h5 {
	font-size: 1.2rem;
	line-height: 1.2 !important;
	color: var(--color-accent);
	font-weight: var(--text-bold);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

h6 {
	font-size: var(--fontsize-body);
	line-height: 1.2 !important;
	color: var(--color-accent);
	font-weight: var(--text-bold);
	text-transform: uppercase;
	letter-spacing: 2px;
}

p {
	margin-top: 0 !important;
	margin-bottom: .9em;
	hyphens: none;
	transition: color 0.2s ease;
}

.no-hyphens p {
	hyphens: none;
}

strong {
	font-weight: var(--text-bold) !important;
}

/* "italic" is not a real HTML element; keeping selector harmless */
italic {
	font-family: 'Open Sans', sans-serif;
	font-style: italic;
	font-weight: var(--text-light);
}

@media screen and (max-width: 1152px) {
	h2 { font-size: 2rem; }
}

@media screen and (max-width: 1024px) {
	h2 { font-size: 1.9rem; }
}

@media screen and (max-width: 720px) {
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.3rem; }
	h4 { font-size: 1.2rem; }
	h5 { font-size: 1.1rem; }
}

@media only screen and (max-width: 320px) {
	body { hyphens: auto; }
	h1, h2, h3, h4, h5, h6 { hyphens: auto; }
}


/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
/* Keep only the effective link styling (your file had two blocks; this matches final output) */
a:not(.button):not(.btn):not(.wp-element-button):not(.swiper-slide-inner):not(.menu-item a):not(.fp_portfolio_button):not(.elementor-button) {
	color: var(--color-primary);
	-webkit-transition: color 0.2s ease;
	   -moz-transition: color 0.2s ease;
	    -ms-transition: color 0.2s ease;
	     -o-transition: color 0.2s ease;
	        transition: color 0.2s ease;
	text-decoration: underline !important;
}

a:visited {
	color: var(--color-primary);
}

a:not(.swiper-slide-inner):not(.current-menu-item a):hover,
a:focus,
a:active {
	color: var(--color-accent) !important;
}

a:focus {
	outline: none;
}

a:hover,
a:active {
	outline: 0;
}

/* Link Post Overview */
a.elementor-post__read-more {
	text-decoration: underline !important;
	text-transform: lowercase !important;
}

a.elementor-post__read-more:hover {
	color: var(--color-accent) !important;
}



/************************************ 
** List styles
************************************/
main ul {
	margin-bottom: .75em;
}

main li {
	margin-bottom: .2em;
}


/*--------------------------------------------------------------
# Typography specific
--------------------------------------------------------------*/
.text-black {
	color: var(--color-black);
}

.capitalize {
	text-transform: uppercase;
	line-height: 0.8 !important;
}

.moments-title h1,
.moments-title h2 {
	font-size: 12rem !important;
	font-weight: var(--text-bold) !important;
	color: var(--color-white) !important;
	margin: 0;
}

@media only screen and (max-width: 1536px) {
	.moments-title h1,
	.moments-title h2 {
		font-size: 10rem !important;
	}
}

@media only screen and (max-width: 1280px) {
	.moments-title h1,
	.moments-title h2 {
		font-size: 9rem !important;
	}
}


/*--------------------------------------------------------------
# Content + Padding
--------------------------------------------------------------*/
.segment {
	margin-top: 8em;
	margin-bottom: 7em;
}

@media only screen and (max-width: 1024px) {
	.segment {
		margin-top: 4em;
		margin-bottom: 3em;
	}
}

.site-title-box {
	color: var(--color-primary);
}

.site-title-box .e-con-inner {
	margin-top: -1em;
	padding: 0;
}

.site-title-position {
	padding: 1em 2em;
	margin-right: 1.5em;
	width: auto !important;
	height: auto !important;
	color: var(--color-primary);
	border: 1px solid var(--color-secondary);
	background-color: var(--color-secondary);
}

.dark .site-title-position {
	border: 1px solid var(--color-primary);
	background-color: var(--color-secondary);
}

.site-title-box h2 {
	font-size: var(--fontsize-medium);
	font-weight: var(--text-bold) !important;
	text-transform: lowercase;
	line-height: 0.8;
	color: var(--color-primary) !important;
	letter-spacing: 1px;
}


/************************************ 
** Custom Classes
************************************/
.placeholder {
	border: 1px solid var(--color-primary);
	min-height: 30vh;
	font-size: 3rem;
	text-align: center;
	color: var(--color-primary) !important;
}

.primary-color {
	color: var(--color-primary);
}


/************************************ 
** Elementor Fixes
************************************/
.single-moment .e-con.e-flex {
	flex-wrap: initial;
}


/************************************ 
** Frontpage Hero
************************************/
.hero {
	padding: 1em;
	transition: margin 0.3s ease;	
}

.hero .swiper-pagination {
	text-align: left;
	margin-left: 1em;
	margin-right: 1em;
	margin-bottom: 1em;
}

.hero .swiper-slide-inner {
	text-align: left;
	color: var(--color-white);
	padding: 0;
}

.hero .elementor-slide-heading {
	font-size: 3.5rem !important;
}

.hero .swiper-slide-contents {
	margin: auto 2em 0 auto;
	background-color: var(--color-secondary);
	padding: 2em 3em 4em 3em;
}

.hero .swiper-slide-contents .elementor-slide-heading {
	min-width: 500px;
}

.elementor-slides .swiper-slide-inner .elementor-slide-button {
	border: none;
	padding: inherit;
}

@media only screen and (max-width: 1152px) {
	.hero, .hero-subpage {
		margin-top: 4em;
		padding: 0;
	}
}

@media only screen and (max-width: 1024px) {
	.hero, .hero-subpage {
		margin-top: 5.5em;
		padding: 0;
	}
	.hero .swiper-slide-inner {
		padding: 1em;
	}

	.hero .swiper-slide-contents {
		min-width: inherit !important;
		max-width: inherit !important;
		width: 100% !important;
		margin: auto 0 0 0 !important;
		padding: 1em 2em !important;
		text-align: center;
	}

	.hero .elementor-slide-heading {
		font-size: 2rem !important;
		margin: 0 !important;
		min-width: inherit !important;
		max-width: inherit !important;
		padding: 0 0 .5em 0 !important;
	}

	.hero .swiper-pagination {
		text-align: right;
		top: 2em;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 1em 0 1em !important;
		margin: 0;
		height: 10%;
	}
}


/************************************ 
** Frontpage Portfolio
************************************/
.fp_portfolio_wrapper {
	position: relative;
	z-index: 1;
}

.panel {
	margin-bottom: .5em;
}

.fp_portfolio_item {
	position: relative;
	overflow: hidden;
	min-width: 100%;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.fp_portfolio_content_wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	vertical-align: bottom !important;
	padding: 0 2em 2em 4em;
	transition: opacity 0.3s ease;
}

.fp_portfolio_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.panel:hover .fp_portfolio_overlay,
.fp_portfolio_item:hover .fp_portfolio_overlay {
	opacity: 1;
}

.fp_portfolio_category {
	width: auto;
	background-color: var(--color-secondary);
	padding: .5em 1em .2em 1em;
	margin: 0 0 0 .3em;
}

.fp_portfolio_category h6 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-white) !important;
	text-transform: lowercase;
	line-height: 1 !important;
}

.fp_portfolio_wrapper .moments-title {
	padding-bottom: 1em;
}

.fp_portfolio_text {
	color: var(--color-white) !important;
}

.fp_portfolio_button {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	padding: 10px 24px;
	border: 1px solid var(--color-white);
	opacity: 0.2;
	transition:
		background 0.3s ease,
		border-color 0.3s ease,
		opacity 0.3s ease;
	-webkit-user-drag: none;
	user-drag: none;
}

.fp_portfolio_button .button-text {
	padding: 0.9rem 1.9rem;
	color: var(--color-white);
	font-size: var(--fontsize-medium);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: var(--text-bold);
	text-align: center;
	white-space: nowrap;
}

.fp_portfolio_button .button-text .primary-color {
	color: var(--color-white) !important;
	transition: color 0.3s ease;
}

.fp_portfolio_item:hover .fp_portfolio_button {
	opacity: 0.4;
}

.fp_portfolio_item:hover .fp_portfolio_button:hover {
	background-color: var(--color-black);
	border-color: var(--color-black);
	opacity: 1;
}

.fp_portfolio_item:hover .fp_portfolio_button:hover .primary-color {
	color: var(--color-primary) !important;
}

.fp_portfolio_button * {
	user-select: none;
	-webkit-user-select: none;
}

@media only screen and (max-width: 1024px) {
	.fp_portfolio_button {
		padding: 8px 18px;
		opacity: .3;
	}

	.fp_portfolio_button .button-text {
		padding: 0.7rem 1.5rem;
	}
}


/************************************ 
** Portfolio Horizontal Scroll
************************************/
.horizontal-section {
	position: relative;
}

/* Base wrapper */
.fp_portfolio_wrapper.horizontal-wrapper {
	z-index: 1;
	display: flex;
	height: 100%;
	min-height: 100%;
	transition: opacity 0.3s ease;
}

/* Desktop behavior */
@media (min-width: 1025px) {
	.fp_portfolio_wrapper.horizontal-wrapper {
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: auto;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		cursor: grab;

		/* Chrome snap reliability */
		scroll-snap-type: none;
		scroll-snap-stop: normal;
	}

	.fp_portfolio_wrapper.horizontal-wrapper.is-dragging {
		cursor: grabbing;
	}

	/* avoid selecting stuff while dragging (desktop only) */
	.fp_portfolio_wrapper.horizontal-wrapper * {
		user-select: none;
		-webkit-user-select: none;
	}
}

/* Panels */
.panel {
	min-width: 80%;
	min-height: 80vh;
	height: 80vh;
	scroll-snap-align: none;
	scroll-snap-stop: normal;
	box-sizing: border-box;
}

/* Hide scrollbar */
.horizontal-wrapper::-webkit-scrollbar {
	display: none;
}
.horizontal-wrapper {
	scrollbar-width: none;
}


/* Horizontal chapter frame */
#horizontal-section {
	height: 80vh;
	position: relative;
	z-index: 10;
}

/* Pin only on desktop */
@media only screen and (min-width: 1025px) {
	#horizontal-section.is-pinned {
		position: sticky;
		top: 10vh;
	}
}

/* Mobile: disable pinning effects safely */
@media only screen and (max-width: 1024px) {
	#horizontal-section.is-pinned {
		position: relative;
		top: auto;
	}
}

/* Ensure the horizontal scrolling container (kept as before) */
#horizontal-section .horizontal-wrapper {
	height: 100%;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	pointer-events: auto;

	/* Chrome snap reliability (also here, safe redundancy for selector specificity) */
	scroll-snap-type: none;
	scroll-snap-stop: normal;

	/* Important for Chrome responsiveness with JS scrollLeft */
	scroll-behavior: auto;
}

#horizontal-section .horizontal-wrapper > * {
	flex: 0 0 90vw;
	height: 100%;
	pointer-events: auto;
}

#horizontal-section a,
#horizontal-section button {
	pointer-events: auto;
}


/* Desktop only: make snapping reliable in Chrome */
@media (min-width: 1025px) {
  #horizontal-section .horizontal-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scroll-snap-stop: normal;
  }

  /* Center snapping (matches your "snap to center" wish) */
  #horizontal-section .panel {
    scroll-snap-align: center;
  }

  /* Important: don't let CSS smooth scrolling fight JS (Chrome can feel slow) */
  #horizontal-section .horizontal-wrapper,
  .fp_portfolio_wrapper.horizontal-wrapper {
    scroll-behavior: auto;
  }
  /* Disable snap while JS is driving */
  #horizontal-section .horizontal-wrapper.js-scroll-active,
  #horizontal-section .horizontal-wrapper.is-dragging {
    scroll-snap-type: none !important;
  }	
}


/* ===== Mobile layout for Moments ===== */
@media only screen and (max-width: 1024px) {
	#moments {
		display: block !important;
	}

	#horizontal-section {
		display: block;
		overflow: visible;
		height: auto !important;
		min-height: 0 !important;
		max-height: none;
	}

	/* Let wrapper behave like a normal block on mobile */
	#horizontal-section .horizontal-wrapper,
  #horizontal-section .horizontal-wrapper{
		display: block;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible;
	}

	#horizontal-section .horizontal-wrapper > * {
		flex: inherit;
	}

	#horizontal-section,
	.panel {
		width: 100%;
		max-width: none;
		min-height: 0;
		height: auto;
	}

	.fp_portfolio_content_wrapper {
		width: auto;
		padding: 0 1em 1em 1em;
	}

	.fp_portfolio_wrapper .moments-title {
		padding-bottom: 0;
	}

	.moments-title h2 {
		font-size: 3rem !important;
	}

	.panel {
		height: 500px !important;
	}
}

@media only screen and (max-width: 896px) {
	.panel { height: 450px !important; }
}

@media only screen and (max-width: 768px) {
	.panel { height: 400px !important; }
}

@media only screen and (max-width: 640px) {
	.panel { height: 350px !important; }
}


/* ===== Kill ALL scroll snapping (desktop) ===== */
@media (min-width: 1025px) {
  #horizontal-section .horizontal-wrapper,
  .fp_portfolio_wrapper.horizontal-wrapper {
    scroll-snap-type: none !important;
    scroll-snap-stop: normal !important;
  }

  #horizontal-section .panel,
  .panel {
    scroll-snap-align: none !important;
  }
}


/************************************ 
** Blog
************************************/
.post-title {
	padding-right: 20%;
}

@media only screen and (max-width: 1024px) {
	.post-title { padding-right: inherit; }
}


/************************************ 
** Elementor Footer
************************************/
footer {
	margin-top: 5em;
}

footer .footer-text {
	margin: 12em 0 6em;
	max-width: 50%;
}

.footer-top {
	
}

.disclaimer-section p {
	font-size: var(--fontsize-small) !important;
}


/************************************ 
** Contact Form 7
************************************/
.wpcf7 form {
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-bottom: 2px solid var(--color-primary);
	border-radius: 0;
	margin-bottom: 14px;
	background: var(--color-white);
	transition: all 0.25s ease;
	font-size: 15px;
}

.dark .wpcf7 input[type="text"],
.dark .wpcf7 input[type="email"],
.dark .wpcf7 textarea {
	background: var(--color-text-dark);	
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--color-secondary);
	background: var(--color-text-dark);
	outline: none;
}

.dark .wpcf7 input:focus,
.dark .wpcf7 textarea:focus {
	background: var(--color-bg-dark);
}

.wpcf7 input[type="submit"] {
	padding: 14px 22px;
	background: #000;
	color: #fff;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.25s ease;
	width: 100%;
	font-style: normal !important;	
}

.wpcf7 input[type="submit"]:hover {
	opacity: 0.85;
}

.wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

::placeholder {
	color: var(--color-primary);
	opacity: 1;
}


/**********
Buttons
**********/
button, .elementor-button, .readmore,
[type="button"], [type="submit"] {
	border: none;
	border-radius: 0;
	font-weight: var(--text-bold) !important;
	text-transform: uppercase;
	background-color: var(--color-primary) !important;
	color: white !important;
	cursor: pointer;

	display: inline-block;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	padding: 1em 2em !important;
	font-size: var(--fontsize-small);
	transition: all .3s;
}

button,
.elementor-button-text {
	color: white !important;
	font-style: normal !important;
}

button:hover, .elementor-button:hover {
	background-color: var(--color-accent) !important;
	color: white !important;
}

.elementor-button-wrapper a {
	text-decoration: none !important;
}

[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled),
.elementor-button,
.readmore {
	cursor: pointer;
}


/************************************ 
** Header & Navigation
************************************/
/*--------------------------------------------------------------
## Site-Header
--------------------------------------------------------------*/
.site-header {
	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;
	z-index: 999;
	top: 0;
	left: 0;
	max-width: 100% !important;
	padding-block-start: 0;
	padding-block-end: 0;

	padding-left: 2em;
	padding-right: 2em;

	height: 100px;
	position: fixed;
	width: 100%;

	transition: background-color 0.3s ease;
}

.site-branding {
	z-index: 999;
	position: relative;
	margin-left: 2em;
	border: none;
	background-color: var(--color-primary);
	padding-top: 3em;
	transition: background-color ease 0.3s;
}

.site-branding img {
	max-width: 250px;
	width: 200px;
}

.site-branding:hover {
	background-color: var(--color-accent);
}

@media screen and (max-width: 1152px) {
	.site-header {
		max-width: 100% !important;
		align-items: center;
		background-color: var(--color-secondary);
		height: auto;
	}
}

@media screen and (max-width: 1024px) {
	.site-branding {
		margin-left: .5em;
		background-color: var(--color-primary);
		padding-top: 2em;
	}

	.site-branding img {
		max-width: 180px;
		width: 180px;
	}
}

@media screen and (max-width: 350px) {
	.site-branding {
		text-align: center;
		width: 100%;
		position: relative;
		margin-left: 0;
	}
	.menu-toggle {
		position: relative !important;
		margin-right: 0 !important;
	}
}


/************************************ 
** Scrolled
************************************/
.site-header .site-branding {
	transition: padding-top 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
		background-color ease 0.2s;
}

/* Desktop */
@media only screen and (min-width: 1025px) {
	.site-header.scrolled {
		background-color: var(--color-black);
		border-bottom: 1px solid var(--color-primary);
	}
}

/* Mobile */
@media only screen and (max-width: 1024px) {
	.site-header.scrolled {
		background-color: var(--color-black);
		border-bottom: 1px solid var(--color-primary);
	}

	.site-header.scrolled .site-branding {
		transition: height 0.1 ease;
		height: 100%;
	}
}

.site-header.scrolled .site-branding {
	padding-top: 0;
	background-color: rgba(0,0,0,0.00);
}

.site-header.scrolled .site-branding:hover {
	background-color: var(--color-primary);
}


/************************************ 
** Navi Wrappers
************************************/
.theme-menu-toggle-wrapper {
	display: flex;
	align-items: center;
	align-content: center;
}

.theme-toggle-wrapper {
	margin-right: 2em;
}

.menu-toggle-wrapper {
	height: auto;
	padding: 1em;
}

@media only screen and (max-width: 1024px) {
	.theme-toggle-wrapper { margin-right: 1em; }
}


/*--------------------------------------------------------------
## THEME Toggler DARK/LIGHT
--------------------------------------------------------------*/
.theme-toggle {
	z-index: 999;
	position: relative;
	width: 36px;
	height: 36px;
	margin-top: -.3em;
	padding: .5em .9em !important;
	
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-bg-light) !important;
	color: var(--color-primary);
	border: 1px solid var(--color-bg-light);
	cursor: pointer;
	transform: translateY(4px);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.theme-toggle:hover {
	background-color: inherit !important;
	border: 1px solid var(--color-primary);
}

.theme-toggle .icon {
	position: absolute;
	width: 20px;
	height: 20px;
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 2;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}

.theme-toggle .sun {
	opacity: 1;
	transform: scale(1);
}

.theme-toggle .moon {
	opacity: 0;
	transform: scale(0.8);
}

body.dark .theme-toggle {
	border: 1px solid var(--color-black);
}

body.dark .theme-toggle:hover {
	border: 1px solid var(--color-primary);
}

body.dark .theme-toggle .sun {
	opacity: 0;
	transform: scale(0.8);
}

body.dark .theme-toggle .moon {
	opacity: 1;
	transform: scale(1);
}

@media (min-resolution: 2dppx) {
	.theme-toggle .icon { stroke-width: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.theme-toggle,
	.theme-toggle .icon { transition: none; }
}

body {
	transition: background-color 0.2s ease;
}


/*--------------------------------------------------------------
## Navigation
--------------------------------------------------------------*/
.main-navigation a {
	display: block;
	text-decoration: none;
}

.main-navigation a,
.main-navigation a * {
	user-select: none;
}

.custom-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.custom-nav a {
	position: relative;
	color: var(--color-white);
	text-decoration: none;
	padding: .75em 1em;
	transition: color ease 0.3s, background-color ease 0.3s;
}

.custom-nav a:hover {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

.current-menu-ancestor > a,
.current-menu-parent > a,
.current-menu-item > a {
	background-color: var(--color-primary) !important;
}

.custom-nav .menu-item-external a::before {
	position: inline-block;
	margin-right: .2em;
	font-weight: var(--text-bold);
	content: '\2191';
}

.menu {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1em;
}

.menu-main-menu-container {
	position: relative;
	align-self: flex-end;
}

.menu > li {
	position: relative;
}

.menu-item a {
	text-transform: uppercase;
}

.sub-menu li a {
	text-transform: none;
}

.sub-menu a {
	text-transform: lowercase !important;
}

/* Desktop View */
@media only screen and (min-width: 1025px) {
	.custom-nav {
		align-self: end;
	}

	.custom-nav a {
		background-color: var(--color-black);
	}

	.menu-item a {
		font-size: .9rem;
		letter-spacing: .5px;
		font-weight: var(--text-bold) !important;
	}

	.sub-menu li a {
		font-size: .9rem;
		letter-spacing: 0;
		overflow: hidden;
	}

	.custom-nav ul li:not(.menu-item-object-language_switcher) > a::after {
		z-index: 99;
		position: absolute;
		bottom: 0;
		left: 0;
		height: 2px;
		width: 100%;
		content: '';
		background-color: var(--color-accent);
		opacity: 0;
		transition: opacity ease 0.3s;
	}

	.custom-nav ul li > a:hover::after,
	.custom-nav ul li.hovered > a::after {
		opacity: 1;
	}

	.sub-menu a::after {
		opacity: 0 !important;
	}

	.sub-menu {
		display: block;
		position: absolute;
		top: 100%;
		right: -999em;
		background-color: var(--color-black);
		list-style-type: none;
		padding: 0;

		/* Fix invalid 'visibility: 0' while keeping same visual behavior */
		visibility: hidden;
		opacity: 0;

		transition: visibility 0s, opacity ease 0.5s;
		min-width: 160px;
		text-align: center;
	}

	.menu > li:hover .sub-menu {
		display: block;
		top: 1.8em;
		right: -50%;
		visibility: visible;
		opacity: 1;
	}

	.sub-menu li a {
		padding: 1.25em 1.25em;
		display: block;
	}

	.sub-menu li:not(:last-child) {
		width: 100%;
		margin-bottom: .5em;
	}

	.custom-nav .sub-menu a:hover {
		background-color: var(--color-primary);
		color: var(--color-white);
	}
}

/* Mobile Menu */
.menu-toggle {
	display: none;
}

@media only screen and (max-width: 1024px) {
	.custom-nav { flex-direction: column; }

	.menu-toggle-wrapper {
		height: auto;
		padding: 1em;
		background-color: var(--color-secondary);
	}

	.menu-toggle {
		display: block;
		order: 1;
		width: 100%;
		z-index: 999;
	}

	.menu-main-menu-container {
		order: 2;
		width: 100%;
		text-align: center;
	}

	.menu-main-menu-container > .menu {
		padding-top: 256px;
		padding-bottom: 3em;
		width: 100%;
		height: 101vh;
		flex-direction: column;
		gap: 0;
		position: fixed;
		top: 0;
		left: -99em;
		background-color: rgba(0,0,0,.90);
		transition: 0.3s;
		z-index: 990;
		overflow-y: scroll;
	}

	.menu-main-menu-container ul li {
		margin-bottom: 1em;
	}

	.menu-main-menu-container ul li a {
		font-size: 1.5rem;
		padding: 5px 10px;
	}

	.menu-toggle.active + .menu-main-menu-container > .menu {
		left: 0;
	}

	.sub-menu {
		margin-top: .6em;
		margin-bottom: 1em;
		padding: 0;
	}

	.sub-menu li {
		margin-bottom: .6em !important;
	}

	.sub-menu li a {
		font-size: 1.25rem !important;
	}

	.menu > li:hover .sub-menu {
		display: block;
	}

	.menu > li .sub-menu {
		position: static;
		background-color: transparent;
		border: none;
	}

	/* Menu Button (Burger) */
	.menu-toggle {
		position: relative;
		width: 40px;
		height: 40px;
		cursor: pointer;
		z-index: 999;
	}

	.menu-toggle .menu-button-top,
	.menu-toggle .menu-button-bottom {
		position: absolute;
		border-radius: 10px;
		width: 40px;
		height: 3px;
		background-color: #fff;
		transition: opacity 0.3s, background 0.3s;
	}

	.menu-toggle .menu-button-top { top: 18%; }
	.menu-toggle .menu-button-bottom { top: 78%; width: 30px; }

	.menu-toggle.active .menu-button-top,
	.menu-toggle.active .menu-button-bottom {
		opacity: 0;
	}

	.menu-toggle:before,
	.menu-toggle:after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 40px;
		height: 3px;
		border-radius: 10px;
		background-color: #fff;
		transform-origin: 50%;
		transition: transform 0.3s, opacity 0.3s, background 0.3s;
		transform: translate(-50%, -50%);
	}

	.menu-toggle.active:before { transform: translate(-50%, -50%) rotate(45deg); }
	.menu-toggle.active:after { transform: translate(-50%, -50%) rotate(-45deg); }

	.menu-toggle:hover .menu-button-top,
	.menu-toggle:hover .menu-button-bottom,
	.menu-toggle:hover:before,
	.menu-toggle:hover:after {
		background-color: var(--color-accent);
	}
}

@media only screen and (max-width: 640px) {
	.menu-main-menu-container > .menu {
		padding-top: 200px;
	}
}

@media only screen and (max-width: 256px) {
	.menu-main-menu-container > .menu {
		padding-top: 200px;
	}
}



