/* ============================================================
   PORSCHE-STYLE FULL-SCREEN SLIDE-OUT MENU
   Replaces Divi's default #top-menu-nav / mobile hamburger with
   a "Menu" trigger injected into .et_menu_container by
   fullscreen-menu.js. Uses the --mch-* tokens from custom.css.

   Layout is defined MOBILE/TABLET FIRST (<= 980px), with a
   min-width override for desktop (> 980px):

     <= 980px (tablet + mobile)   > 980px (desktop)
     Menu trigger: right           Menu trigger: left
     Book Now: hidden              Book Now: shown, right
     Panel slides in from: right   Panel slides in from: left
   ============================================================ */

#top-menu-nav,
#et_mobile_nav_menu {
	display: none !important;
}

.et_menu_container {
	position: relative !important;
}


/* ---- Menu trigger --------------------------------------------------- */

.mch-menu-toggle {
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	z-index: 10;
	-webkit-tap-highlight-color: transparent;
}

.mch-menu-toggle__icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 26px;
}

.mch-menu-toggle__icon span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--mch-cream);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.mch-menu-toggle.is-active .mch-menu-toggle__icon span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.mch-menu-toggle.is-active .mch-menu-toggle__icon span:nth-child(2) {
	opacity: 0;
}
.mch-menu-toggle.is-active .mch-menu-toggle__icon span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mch-menu-toggle__label {
	font-family: var(--mch-font-body);
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mch-cream);
	font-weight: 500;
}


/* ---- Book Now (mobile only) ---------------------------------------- */

.mch-header-book-now {
	display: none;
}


/* ---- Slide-out panel (default = from the right) --------------------- */

.mch-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	opacity: 0;
	background: rgba(0, 0, 0, 0.4);
	transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

body.mch-menu-open .mch-menu-overlay {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.4s ease;
}

body.mch-menu-open {
	overflow: hidden;
}

.mch-menu-overlay__inner {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(480px, 100%);
	background: var(--mch-black);
	transform: translateX(100%);
	transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 60px;
	box-sizing: border-box;
}

body.mch-menu-open .mch-menu-overlay__inner {
	transform: translateX(0);
}

.mch-menu-close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
}

.mch-menu-close span {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--mch-white);
}

.mch-menu-close span:nth-child(1) {
	transform: rotate(45deg);
}
.mch-menu-close span:nth-child(2) {
	transform: rotate(-45deg);
}

.mch-menu-overlay__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mch-menu-overlay__list li {
	margin: 0 0 18px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

body.mch-menu-open .mch-menu-overlay__list li {
	opacity: 1;
	transform: translateY(0);
}

.mch-menu-overlay__list li:nth-child(1) { transition-delay: 0.1s; }
.mch-menu-overlay__list li:nth-child(2) { transition-delay: 0.15s; }
.mch-menu-overlay__list li:nth-child(3) { transition-delay: 0.2s; }
.mch-menu-overlay__list li:nth-child(4) { transition-delay: 0.25s; }
.mch-menu-overlay__list li:nth-child(5) { transition-delay: 0.3s; }
.mch-menu-overlay__list li:nth-child(6) { transition-delay: 0.35s; }

.mch-menu-overlay__list a {
	font-family: var(--mch-font-display);
	color: var(--mch-cream);
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: color 0.25s ease;
}

.mch-menu-overlay__list a:hover {
	color: var(--mch-gold);
}

.mch-menu-overlay__footer {
	margin-top: 50px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.mch-menu-overlay__cta {
	padding: 12px 28px;
	font-family: var(--mch-font-body);
	background-color: var(--mch-gold);
	border-radius: var(--mch-radius-pill);
	color: var(--mch-black);
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-weight: 700;
	transition: background-color 0.25s ease;
}
.mch-menu-overlay__cta:hover { background-color: var(--mch-gold-hover); color: var(--mch-black); }

.mch-menu-overlay__phone {
	font-family: var(--mch-font-body);
	color: #aaa;
	font-size: 14px;
}
.mch-menu-overlay__phone:hover { color: var(--mch-gold); }

.et_header_style_centered #logo {
	max-height:30px;
	left:0px;
}


/* ---- Small-screen refinements (still <= 980px) ----------------------- */

@media (max-width: 479px) {
	.mch-menu-toggle {
		right: 20px;
	}
	.mch-menu-toggle__label {
		display: none;
	}

	.mch-menu-overlay__list a {
		font-size: 26px;
	}
}


/* ---- Desktop overrides (> 980px) -------------------------------------
   Menu trigger moves to the left, Book Now appears on the right,
   and the panel slides in from the left instead of the right. */

@media (min-width: 981px) {

	.et_header_style_centered #logo{
		max-height:80px;
	}
	.mch-menu-toggle {
		left: 30px;
		right: auto;
	}

	.mch-header-book-now {
		display: inline-block;
		position: absolute;
		right: 30px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 10;
		padding: 10px 24px;
		font-family: var(--mch-font-body);
		background-color: var(--mch-gold);
		border: 1.5px solid var(--mch-gold);
		border-radius: var(--mch-radius-pill);
		color: var(--mch-black);
		font-size: 13px;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		font-weight: 500;
		transition: background-color 0.25s ease, border-color 0.25s ease;
	}

	.mch-header-book-now:hover {
		background-color: var(--mch-gold-hover);
		border-color: var(--mch-gold-hover);
		color: var(--mch-black);
	}

	.mch-menu-overlay__inner {
		right: auto;
		left: 0;
		transform: translateX(-100%);
	}

	body.mch-menu-open .mch-menu-overlay__inner {
		transform: translateX(0);
	}
}
