/**
 * Header Widget Styles
 * Using style-guide CSS variables
 * Mobile-first approach (WordPress standard)
 */

 @keyframes ani {
	0% {
	  opacity: 0;
	  transform: scale(0.5) translateY(-10px);
	}

	50% {
	  opacity: 1;
	  transform: scale(1) translateY(5px);
	}

	100% {
	  opacity: 0;
	  transform: scale(0.5) translateY(10px);
	}
}

@keyframes slideInLeft {
	from {
		transform: translateX(-50px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

body.menu-open {
	overflow: hidden;
}

html.menu-open {
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* Hide header elements when mobile menu is open */
body.menu-open .ce-header__logo,
body.menu-open .ce-header__divider-line,
body.menu-open .ce-header__divider {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ce-header__mobile-toggle.active {
	transform: rotate(90deg) scale(1.1);
}

.ce-header__mobile-toggle:active {
	transform: scale(0.95);
}

body.menu-open .ce-header__nav--mobile {
	transform: translateX(0%);
	opacity: 1;
}

/* Enhanced mobile menu animations */
body.menu-open .ce-header__nav--mobile::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Menu items stagger animation */
.ce-header__nav-list {
	position: relative;
}

body.menu-open .ce-header__nav-list .ce-header__nav-item {
	animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(1) { animation-delay: 0.1s; }
body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(2) { animation-delay: 0.15s; }
body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(3) { animation-delay: 0.2s; }
body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(4) { animation-delay: 0.25s; }
body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(5) { animation-delay: 0.3s; }
body.menu-open .ce-header__nav-list .ce-header__nav-item:nth-child(6) { animation-delay: 0.35s; }

body.modal-open {
	overflow: hidden !important;
	position: fixed;
	width: 100%;
	height: 100vh;
	margin: 0;
	padding: 0;
}

html.modal-open {
	overflow: hidden !important;
	margin: 0;
	padding: 0;
}

.ce-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	background-color: transparent;
	will-change: transform;
	padding-left: var(--elementor-container-padding-mobile-left, 16px);
	padding-right: var(--elementor-container-padding-mobile-right, 16px);
}

.ce-header--overlap {
	position: fixed !important;
}

.ce-header--colored {
	position: fixed !important;
}

.ce-header--colored .ce-header__logo img {
	filter: brightness(0) invert(1);
	transition: none;
}

.ce-header--colored .ce-header__logo-placeholder {
	filter: brightness(0) invert(1);
	transition: none;
}

.ce-header--colored .ce-header__nav-link {
	transition: none !important;
}

.ce-header--colored .ce-header__divider-icon {
	transition: transform 0.3s ease, color 0s ease !important;
}

.ce-header--colored .ce-header__divider-line {
	transition: background-color 0s ease !important;
}

.ce-header--colored .ce-header__mobile-toggle-line {
	transition: background-color 0s ease !important;
}

.ce-header__divider {
	width: 100%;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	overflow: hidden;
	margin-bottom: 22px;
	margin-top: 0px;
	position: relative;
	padding: 0px 15px;
}

.ce-header__divider-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--elementor-color-text, #000000);
	opacity: 0;
	will-change: opacity;
	transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
	transform-style: preserve-3d;
	transition: transform 0.3s ease, color 0s ease;
}

.ce-header__divider-icon:hover {
	transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(180deg) skew(0deg, 0deg);
	transform-style: preserve-3d;
}

.ce-header__divider-icon svg {
	width: 13px;
	height: 16px;
	display: block;
}

.ce-header__divider-line {
	flex: 1;
	height: 1px;
	background-color: var(--elementor-color-text, #000000);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
	transition: background-color 0s ease;
}

.ce-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 auto auto;
	padding: 0;
	height: 100%;
	position: relative;
}

.ce-header__container--left {
	justify-content: space-between;
}

.ce-header__container--center {
	justify-content: center;
	flex-direction: column;
	gap: var(--spacing-md, 16px);
}

.ce-header__container--right {
	justify-content: space-between;
	flex-direction: row-reverse;
}

.ce-header__logo {
	flex-shrink: 0;
	min-height: 65px;
	order: 2;
	margin-left: auto;
}

.ce-header__logo a {
	display: flex;
	align-items: center;
	line-height: 0;
}

.ce-header__logo img {
	max-height: 40px;
	width: auto;
	display: block;
	transition: none;
}

.ce-header__logo-placeholder {
	opacity: 0.6;
	transition: opacity 0.3s ease, filter 0s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 40px;
}

.ce-header__logo-placeholder:hover {
	opacity: 0.8;
}

.ce-header__logo-placeholder svg {
	height: 65px;
	width: auto;
	display: block;
}

.ce-header__nav--desktop {
	display: none;
}

.ce-header__nav--mobile {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vh;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transform: translateX(-100%);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease-out;
}

.ce-header__container--center .ce-header__nav--desktop {
	justify-content: center;
}

.ce-header__container--right .ce-header__nav--desktop {
	justify-content: flex-start;
}

.ce-header__nav-list {
	list-style: none;
	margin: 0;
	padding: 60px 24px;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.ce-header__nav-item {
	opacity: 1;
	will-change: opacity, transform;
}

.ce-header--animating .ce-header__nav-item {
	opacity: 1;
	transform: translateY(-20px);
	margin-bottom: 0;
}

.elementor a.ce-header__nav-link {
	text-decoration: none;
	font-family: var(--elementor-typography-primary-font-family, 'Unbounded', sans-serif);
	font-weight: var(--elementor-typography-primary-font-weight, 300);
	font-size: 40px;
	line-height: 1.24;
	color: var(--elementor-color-text, #000000);
	display: block;
	position: relative;
	transition: none;
}

.elementor a.ce-header__nav-link:focus-visible {
	outline: none;
}

.elementor a.ce-header__nav-link::after {
	display: none;
}

/* Header States - Ready for new scroll animation */
.ce-header__mobile-toggle {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: none;
	border: none;
	padding: 8px 0;
	cursor: pointer;
	position: fixed;
	z-index: 9999;
	will-change: transform;
	order: 1;
	align-self: center;
}

.ce-header__mobile-toggle-line {
	width: 40px;
	height: 5px;
	display: block;
	transition: background-color 0s ease;
}

.ce-header__mobile-toggle:focus,
.ce-header__mobile-toggle:active,
.ce-header__mobile-toggle:hover {
	background-color: transparent;
}

@media (min-width: 481px) {
	.ce-header__nav-list {
		padding: 80px 40px;
		gap: 0;
	}
}

@media (max-width: 768px) {
	.ce-header__logo{
		margin-left: auto !important;
		display: flex;
	}
}

/* Tablet: 769px and up */
@media (min-width: 769px) {
	.elementor a.ce-header__nav-link {
		font-size: 20px;
	}
	
	.ce-header--colored .ce-header__container{
		padding: 20px 20px 0px 20px;
	}

	.ce-header {
		padding-left: var(--elementor-container-padding-tablet-right, 50px);
		padding-right: var(--elementor-container-padding-tablet-left, 50px);
	}

	.ce-header__divider {
		height: 16px;
		padding: 0;
		margin-top: 10px;
	}

	.ce-header__divider-icon {
		opacity: 0;
	}

	.ce-header__divider-icon svg {
		width: 13px;
		height: 16px;
	}

	.ce-header__divider-line {
		transform: scaleX(0);
	}

	.ce-header__container {
		padding: 18px 20px 0px 20px;
	}

	.ce-header--colored .ce-header__container{
		padding: 20px 20px 0px 20px;
	}

	.ce-header__logo {
		order: unset;
		min-height: 65px;
	}

	.ce-header__logo a {
		display: block;
	}

	.ce-header__logo img {
		max-height: 65px;
	}

	.ce-header__logo-placeholder {
		max-height: 55px;
	}

	.ce-header__nav--desktop {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.ce-header__nav--mobile {
		display: none;
	}

	.ce-header__nav-list {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 20px;
		padding: 0;
	}

	.ce-header__nav-item {
		opacity: 0;
		transform: translateY(0);
	}

	.ce-header--animating .ce-header__nav-item {
		opacity: 0;
		transform: translateY(-20px);
		margin-bottom: 0;
	}

	.ce-header__nav-link {
		font-family: var(--elementor-typography-body-font, 'Montserrat', sans-serif);
		font-weight: var(--elementor-typography-body-font-weight, 400);
		font-size: 20px;
		line-height: 1.2;
	}

	.ce-header__nav-link::after {
		display: block;
	}

	.ce-header__mobile-toggle {
		display: none;
	}
}

@media (min-width: 1025px) {
	.ce-header {
		padding-left: var(--elementor-container-padding-right, 87px);
		padding-right: var(--elementor-container-padding-left, 87px);
	}
	
	.ce-header__logo img {
		max-height: 65px;
	}

	.ce-header__logo-placeholder {
		max-height: 55px;
	}

	.ce-header__nav-list {
		gap: 50px;
	}

	.ce-header__nav-link {
		font-size: 20px;
	}
}

.ce-header__popup-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background-color: #0000005C;
	z-index: 9999;
	cursor: pointer;
	opacity: 0;
}

.ce-header__popup {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	pointer-events: none;
}

.ce-header__popup .modal__dialog {
	pointer-events: auto; 
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: 0px;
	overflow-y: auto;
	overflow-x: hidden;
}

.ce-header__popup--contact-form {
	align-items: flex-start;
	justify-content: flex-end;
	padding: 0;
	padding-top: 120px; 
}

.ce-header__popup--contact-form .modal__dialog {
	max-width: 464px;
	width: 464px;
	position: relative;
	border-radius: 10px; 
	transform: translateX(100%);
	transition: transform 0.4s ease-in-out;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ce-header__popup--contact-form.modal--active .modal__dialog {
	transform: translateX(0);
}

.ce-header__popup-form-wrapper {
	background-color: #481a28;
	padding-bottom: 60px;
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	border-radius: 10px 0 0 10px;
	-webkit-overflow-scrolling: touch;
}

.ce-header__popup--content {
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ce-header__popup-content-dialog {
	position: relative;
	width: 100%;
	max-width: 1200px;
	background-color: var(--elementor-body-background-color, #eae7e4);
	border-radius: 0;

	box-sizing: border-box;
	transform: scale(0.95) translateY(20px);
	transition: transform 0.4s ease-in-out;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.ce-header__popup--contact-form .modal__dialog{
		right: 87px;
		bottom: 15px;
	}

	.ce-header__popup{
		margin: 20px 26px 71px 26px;
	}

	.ce-header__popup-column--1 {
		margin-right: 40px;
	}

	.ce-header__popup-content-dialog {
		padding: 142px 40px 60px 40px;
	}
	
	.ce-header__popup{
		margin: 0px;
	}
}

@media (min-width: 1025px) {
	.ce-header__popup-column--1 {
		margin-right: 150px;
	}
}

@media (min-width: 1201px) {
	.ce-header__popup-content-dialog {
		padding: 242px 80px 60px 154px;
	}
	
	.ce-header__popup .modal__dialog {
		max-width: 1440px;
		max-height: 764px 
	}
}

.ce-header__popup--content.modal--active .ce-header__popup-content-dialog {
	transform: scale(1) translateY(0);
}

.ce-header__popup-close-content {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 53px;
	height: 53px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.ce-header__popup-close-content:hover {
	opacity: 0.7;
}

.ce-header__popup-close-content svg {
	width: 53px;
	height: 53px;
	display: block;
}

.ce-header__popup-content-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0;
	width: 100%;
	justify-content: space-between;
}

.ce-header__popup-column {
	flex: 1 1 0;
	min-width: 0;
}

.ce-header__popup-column--2 {
	margin-right: 99px;
}

.ce-header__popup-column--3 {
	flex: 1 1 0;
}

.ce-header__popup-title {
	color: var(--elementor-color-primary, #481a28);
	font-family: var(--elementor-typography-primary-font-family, 'Unbounded', sans-serif);
	font-weight: var(--elementor-typography-primary-font-weight, 300);
	font-size: 44px;
	line-height: 1.2;
	margin: 0 0 3px 0;
	padding: 0;
}

.ce-header__popup-subtitle {
	font-size: 32px;
	font-family: var(--elementor-typography-primary-font-family, 'Unbounded', sans-serif);
	font-weight: var(--elementor-typography-primary-font-weight, 300);
	line-height: 1.2;
	color: var(--elementor-color-primary, #481a28);
	margin: 0;
	padding: 0;
}

.ce-header__popup-column-content {
	font-size: 16px;
	line-height: 1.5;
	color: var(--elementor-color-text, #000000);
}

.ce-header__popup-column-content p {
	margin: 0 0 35px 0;
}

.ce-header__popup-column-content p:not(:first-child) {
	margin-bottom: 0;
}

.ce-header__popup-column-content p .line {
	display: block !important;
	text-align: left !important;
}

.ce-header__popup-column-content ul,
.ce-header__popup-column-content ol {
	margin: 0;
	padding-left: 20px;
}

.ce-header__popup-column-content li {
	margin: 0 0 8px 0;
}

@media (max-width: 768px) {
	.ce-header__popup-content-dialog {
		padding: 70px 31px;
		max-width: 100%;
	}
	
	.ce-header__popup .modal__dialog{
		border-radius: 10px;
	}

	.ce-header__popup {
		top: 21px;
		left: 26px;
		right: 26px;
		bottom: 71px;
	}
	.ce-header__popup-content-wrapper {
		flex-direction: column;
		gap: 35px;
	}
	
	.ce-header__popup-column--2,
	.ce-header__popup-column--3 {
		margin-left: 0;
		margin-right: 0;
	}
	
	.ce-header__popup-title {
		font-size: 44px;
	}

	.ce-header__popup-subtitle {
		font-size: 32px;
	}
	
	.ce-header__popup-close-content {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
	}
	
	.ce-header__popup-close-content svg {
		width: 40px;
		height: 40px;
	}
}

.ce-header__popup-form-wrapper::-webkit-scrollbar {
	width: 8px;
}

.ce-header__popup-form-wrapper::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.ce-header__popup-form-wrapper::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

.ce-header__popup-form-wrapper::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.ce-header__popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
	color: var(--color-white, #ffffff);
	background: transparent;
	border: none;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: opacity 0.2s ease;
}

.ce-header__popup-close:hover {
	opacity: 0.7;
}

.ce-header__popup-close svg {
	width: 20px;
	height: 20px;
}

.ce-header__popup-form {
	width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

@media (max-width: 768px) {
	.ce-header__popup--contact-form {
		padding-top: 0;
		align-items: stretch;
	}
	
	.ce-header__popup--contact-form .modal__dialog {
		width: 100%;
		max-width: 100%;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
		box-shadow: none;
	}
	
	.ce-header__popup-form-wrapper {
		padding-top: 25px;
		padding-bottom: 60px;
		border-radius: 0;
	}
}

@media (min-width: 1025px) {
	.ce-header__popup-title {
		font-size: 48px;
	}

	.ce-header__popup-close{
		display: none;
	}
}


ul#downArrow {
	z-index: 999;
	position: fixed;
	bottom: 20px;
	left: 50%;
	padding-left: 0;
	width: 40px;
	display: flex;
	transform: translateX(-50%);
	align-items: center;
	flex-flow: column;
	cursor: pointer;
	margin-bottom: 0px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  ul#downArrow.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
  }

  ul#downArrow.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
  }
  
  ul#downArrow li {
	list-style: none;
	width: 8px;
	height: 8px;
	background-color: var(--elementor-color-primary, #481a28);
	border-radius: 100%;
	margin-bottom: 10px;
	animation: ani 1.5s infinite ease-in-out;
	animation-delay: calc(0.3s * var(--i));
  }
  
  ul#downArrow::before,
  ul#downArrow::after {
	position: absolute;
	content: "";
	background-color: var(--elementor-color-primary, #481a28);
	width: 30px;
	height: 3px;
	bottom: 15px;
  }
  
  ul#downArrow::before {
	right: -1px;
	transform: rotate(-45deg);
	transform-origin: center right;
  }
  
  ul#downArrow::after {
	left: 0;
	transform: rotate(45deg);
	transform-origin: center left;
  }
