/* MDL Custom Header Styles */

/* Override Genesis header constraints */
.site-header {
	padding: 0 !important;
}

.site-header .wrap {
	max-width: none !important;
	padding: 0 !important;
}

.site-header .title-area,
.site-header .header-widget-area {
	display: none !important;
}

/* Match utility bar width to header */
.utility-bar .wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

.mdl-custom-header {
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.mdl-header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 10px 30px;
}

/* Logo */
.mdl-header-logo {
	flex-shrink: 0;
	width: 300px;
}

.mdl-header-logo img {
	max-width: 100%;
	height: auto;
}

/* Main Navigation */
.mdl-header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.mdl-nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 5px;
}

.mdl-nav-menu > li {
	position: relative;
}

.mdl-nav-menu > li > a {
	display: block;
	padding: 12px 16px;
	color: #1C375B;
	font-size: 20px;
	font-weight: 400;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.mdl-nav-menu > li > a:hover,
.mdl-nav-menu > li:hover > a {
	background-color: #1C375B;
	color: #fff;
	border-radius: 4px;
}

/* Dropdown */
.mdl-nav-menu .dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: #f5f5f5;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 1000;
}

.mdl-nav-menu .has-dropdown:hover .dropdown {
	display: block;
}

.mdl-nav-menu .dropdown li {
	border-bottom: 1px solid #e5e5e5;
}

.mdl-nav-menu .dropdown li:last-child {
	border-bottom: none;
}

.mdl-nav-menu .dropdown a {
	display: block;
	padding: 12px 16px;
	color: #444;
	font-size: 18px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.mdl-nav-menu .dropdown a:hover {
	background-color: #6F8197;
	color: #fff;
}

/* Right Side */
.mdl-header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
}

/* Search + Hours Group - always stacked together */
.mdl-search-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	background-color: #CD4236;
	padding: 10px 15px;
	border-radius: 4px;
}

/* Today's Hours */
.mdl-hours-link,
.mdl-hours-link:visited,
.mdl-hours-link:active {
	display: block;
	color: #fff;
	padding: 5px 0;
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
	text-align: center;
}

.mdl-hours-link:hover {
	color: #fff;
	opacity: 0.9;
}

/* Search Box */
.mdl-search-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 260px;
}

.mdl-search-input-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.mdl-search-input-wrap input[type="search"] {
	flex: 1;
	height: 38px;
	border: none;
	border-radius: 4px;
	padding: 0 12px;
	font-size: 16px;
	outline: none;
}

.mdl-search-box #search-button {
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	background-color: transparent;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
	flex-shrink: 0;
}

.mdl-search-box #search-button:hover {
	opacity: 0.8;
}

.mdl-search-options {
	display: flex;
	justify-content: center;
	gap: 15px;
	color: #fff;
	font-size: 14px;
}

.mdl-search-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.mdl-search-options label:hover {
	opacity: 0.9;
}

.mdl-search-options input[type="radio"] {
	accent-color: #fff;
	margin-right: 6px;
}

/* Medium screens - hide menu, keep logo + search/hours side by side */
@media (max-width: 1200px) {
	.mdl-header-wrap {
		flex-wrap: wrap;
		justify-content: space-between;
	}
	
	.mdl-header-logo {
		width: 250px;
		order: 1;
	}
	
	.mdl-header-nav {
		display: none;
	}
	
	.mdl-header-right {
		order: 2;
	}
}

/* Tablet screens - stack logo above search/hours */
@media (max-width: 768px) {
	.mdl-header-wrap {
		flex-direction: column;
		align-items: center;
		gap: 15px;
		padding: 15px 20px 0 20px;
	}
	
	.mdl-header-logo {
		width: 320px;
		order: 1;
	}
	
	.mdl-header-right {
		order: 2;
		width: 100vw;
		margin-left: calc(-50vw + 50%);
		margin-right: calc(-50vw + 50%);
		align-items: center;
	}
	
	.mdl-search-group {
		width: 100%;
		max-width: none;
		border-radius: 0;
		padding: 15px 20px;
	}
	
	.mdl-search-box {
		width: 100%;
		max-width: 300px;
	}
}

/* Small screens - compact everything */
@media (max-width: 500px) {
	.mdl-header-wrap {
		padding: 10px 15px 0 15px;
		gap: 10px;
	}
	
	.mdl-header-logo {
		width: 280px;
	}
	
	.mdl-hours-link {
		font-size: 16px;
	}
	
	.mdl-search-group {
		padding: 12px 15px;
	}
}
