/**
 * Custom Header Styles
 */

/* Fixed Header Wrapper */
.site-header-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: #ffffff;
}

/* Add padding to body to account for fixed header */
body {
	padding-top: 80px; /* Adjust based on actual header height */
}

/* Main Navigation Bar */
.main-navigation-bar {
	background-color: #ffffff;
	padding: 22px 0;
	height: 101px;
}

.main-nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0px 54px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

/* Site Logo */
.site-logo {
	flex-shrink: 0;
	margin: 0px 0 0 6px;
}

.site-logo a {
	display: block;
	text-decoration: none;
	line-height: 0;
}

.logo-img {
	max-width: 445px;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.site-title {
	font-family: var(--wp--preset--font-family--beach-bound-script);
	font-size: 28px;
	color: #2F2E2C;
	margin: 0;
}

/* Primary Navigation */
.nav-primary {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 30px;
	align-items: center;
}

.primary-menu li {
	position: relative;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: #013D36;
	text-decoration: none;
	font-size: 15px;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 400;
	transition: opacity 0.2s ease;
	display: block;
	padding: 10px 0;
}

.primary-menu a:hover,
.primary-menu a:focus {
	color:#6B7861;
}

/* Button-styled menu items */
.primary-menu li.button a,
.primary-menu a.button {
	background-color: #013D36;
	color: #ffffff;
	padding: 15px 25px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.13rem;
	border-radius: 35px;
	height: 57px;
}

.primary-menu li.button a:hover,
.primary-menu li.button a:focus,
.primary-menu a.button:hover,
.primary-menu a.button:focus {
	opacity: 1;
	outline:none;
	border:none;
	background-color: #6B7861;
}

/* Calendar icon for button items */
.primary-menu li.button a::before,
.primary-menu a.button::before {
	content: '';
	display: inline-block;
	width: 19px;
	height: 19px;
	background-image: url("../images/schedule.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
	margin: 0 3px 0 4px;
}

/* Hamburger Menu Toggle */
.hamburger-toggle {
	background: none;
	border: none;
	color: #013D36;
	cursor: pointer;
	padding: 1px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
	position: relative;
	width: 36px;
	height: 40px;
	margin-left: -2px;
}

.hamburger-toggle:hover,
.hamburger-toggle:focus {
	opacity: 0.7;
}

.hamburger-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 25px;
	height: 9px;
}

.hamburger-icon span {
	display: block;
	width: 100%;
	height: 1px;
	background-color: #013D36;
	transition: all 0.3s ease;
}

.hamburger-toggle[aria-expanded="true"] .hamburger-icon span:first-child {
	transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-toggle[aria-expanded="true"] .hamburger-icon span:last-child {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Slideout Menu */
.slideout-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 100vw;
	height: 100vh;
	background-color: #013D36;
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.slideout-menu[aria-hidden="false"] {
	transform: translateX(0);
}

.slideout-menu-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	max-width: 1400px;
	margin: 0 auto;
	padding: 22px 54px;
}

/* Close Button */
.slideout-close {
	position: absolute;
	top: 42px;
	right: 60px;
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10;
	width: 19px;
	height: 19px;
	border-radius: 50%;
}

.slideout-close:hover {
	opacity: 0.8;
	background-color: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}
,
.slideout-close:focus {
	opacity: 0.8;
}

.slideout-close svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	font-weight: 100;
}

/* Slideout Content */
.slideout-content {
	display: grid;
	grid-template-columns: 527px 1fr;
	gap: 60px;
	align-items: start;
	margin-top: 77px;
	flex: 1;
	padding-left: 45px;
}

/* Left Side: Image, Copy, Buttons */
.slideout-left {
	display: flex;
	flex-direction: column;
	gap: 27px;
}

.slideout-image-wrapper {
	position: relative;
	width: 100%;
	border-radius: 0;
}

.slideout-image {
	width: 100%;
	height: 347px;
	display: block;
	object-fit: cover;
}

.slideout-icon-overlay {
	position: absolute;
	top: 30px;
	left: -39px;
	width: 148px;
	height: 186px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slideout-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.slideout-copy {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.6;
	font-family: var(--wp--preset--font-family--inter);
}

.slideout-copy p {
	margin: 0 0 1em 0;
	font-size: 17px;
	line-height: 26px;
	letter-spacing: -0.004rem;
}

.slideout-copy p:last-child {
	margin-bottom: 0;
}

.slideout-buttons {
	display: flex;
	flex-direction: row;
	gap: 23px;
	margin-top: 11px;
}

.slideout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 14px 27px;
	background-color: transparent;
	color: #ffffff;
	border: 1px solid #ffffff;
	border-radius: 50px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	font-family: var(--wp--preset--font-family--inter);
	transition: all 0.3s ease;
	text-align: center;
	white-space: nowrap;
	height: 57px;
}

.slideout-button__icon {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
	display: inline-block;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
}

.slideout-button__icon.fa-regular,
.slideout-button__icon.fa-solid {
	font-size: 1.25rem;
	line-height: 1;
	width: auto;
	height: auto;
	filter: none;
	color: #ffffff;
	transition: color 0.3s ease;
}

.slideout-button__text {
	flex-shrink: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
}

.slideout-button:hover,
.slideout-button:focus {
	background-color: #6B7861;
	border:1px solid #6B7861;
}

/* Right Side: Slideout Navigation */
.slideout-right {
	display: flex;
	flex-direction: column;
}

.slideout-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.slideout-menu-list li {
	margin: 0;
	padding: 0;
}

.slideout-menu-list a {
	color: #ffffff;
	text-decoration: none;
	font-size: 46px;
	font-family: var(--wp--preset--font-family--times-now);
	font-weight: 100;
	padding: 10px 4px;
	display: block;
	transition: opacity 0.2s ease, padding-left 0.2s ease;
	text-align: right;
	margin-bottom: 23px;
}

.slideout-menu-list a:hover,
.slideout-menu-list a:focus {
	color:#6B7861;
	opacity:1;
}

/* Body scroll lock when slideout is open */
body.slideout-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

@media (max-width: 1180px){
	.main-nav-container {
		padding:0 10px;
	}
	.slideout-menu-container {
		padding: 24px 10px;
	}
	.slideout-close {
		right:20px;
	}
}
/* Responsive Styles */
@media (max-width: 1080px) {
	.primary-menu {
		display:none;
	}
	.main-navigation-bar {
		height:80px;
	}
	.slideout-menu-list a {
		line-height:1;
	}
}

@media (max-width: 768px) {
	.slideout-icon-overlay {
    position: absolute;
    top: -55px;
    left: 30px;
    width: 148px;
    height: 186px;
    display: flex;
    align-items: center;
    justify-content: center;
	} 
	.slideout-copy p {
		text-align:center;
	}
	 .slideout-buttons {
		 display: flex;
		 flex-direction: column;
		 padding-bottom: 50px;
		}
	body {
		padding-top: 65px;
	}
	.slideout-right {
		width:100%;
		padding-top: 30px;
	}
	
	.main-navigation-bar {
		padding: 19px 0;
		height: 78px;
	}
	
	.main-nav-container {
		padding: 0 15px;
		gap: 15px;
	}
	
	.logo-img {
		max-width: 356px;
	}
	
	.primary-menu {
		gap: 12px;
	}
	
	.primary-menu a {
		font-size: 13px;
		padding: 6px 0;
	}
	
	.primary-menu li.button a,
	.primary-menu a.button {
		padding: 10px 18px;
		font-size: 13px;
	}
	
	.slideout-menu-container {
		padding: 30px 15px;
	}
	
	.slideout-content {
		margin-top: 40px;
		gap: 20px;
		display: flex;
		flex-direction: column-reverse;
		padding: 0;
	}
	
	.slideout-copy {
		font-size: 15px;
	}
	
	.slideout-button {
		padding: 12px 24px;
		font-size: 15px;
		width: fit-content;
		margin: 0 auto;
	}
	
	.slideout-menu-list a {
		font-size: 38px;
		padding: 0;
	}
}

@media (max-width: 500px) {
	.slideout-icon-overlay {
		width:130px;
	}
	.slideout-image {
		height:300px;
	}
}
@media (max-width:450px) {
	.logo-img {
        max-width: 300px;
    }
}

@media (max-width:400px) {
	.logo-img {
        max-width: 250px;
    }
}
