/* Two-tier header (2026 redesign): dark utility bar + cream main bar */
#site_header {
	--hh-dark: #2e2422;
	--hh-cream: #fdf8ee;
	--hh-orange: #e9a53b;
	--hh-teal: #13847d;
	position: relative;
	z-index: 100;
	width: 100%;
	font-family: 'Lato', Arial, Helvetica, sans-serif;
}

#site_header .hh_inner {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

#site_header ul,
#site_header li {
	margin: 0;
	padding: 0;
	list-style: none;
}

#site_header ul li:before {
	content: none;
}

#site_header button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
}

/* WooCommerce floating cart: keep it below the header instead of over the Donate button */
.cmsms_dynamic_cart {
	margin-top: 150px;
}

/* Top bar */
#site_header .hh_top {
	position: relative;
	z-index: 2;
	background: var(--hh-dark);
	color: #fff;
}

#site_header .hh_top > .hh_inner {
	justify-content: space-between;
	min-height: 40px;
}

#site_header .hh_top .social_wrap ul,
#site_header .hh_top_right,
#site_header .hh_top_nav > ul {
	display: flex;
	align-items: center;
	gap: 24px;
}

#site_header .hh_top .social_wrap a {
	display: block;
	width: 22px;
	height: 40px;
	color: #fff;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
}

#site_header .hh_top .social_wrap a:before {
	position: static;
	margin: 0;
	line-height: 40px;
}

#site_header .hh_top_nav > ul {
	gap: 28px;
}

#site_header .hh_top a,
#site_header .hh_search_toggle {
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

/* Top bar dropdowns (e.g. Careers) */
#site_header .hh_top_nav li {
	position: relative;
}

#site_header .hh_top_nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 110;
	width: max-content;
	min-width: 220px;
	padding: 8px 0;
	background: #fff;
	border-top: 3px solid var(--hh-orange);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 8px 24px rgba(46, 36, 34, .18);
}

#site_header .hh_top_nav > ul > li > a {
	display: block;
	line-height: 40px;
}

#site_header .hh_top_nav ul ul ul {
	top: 0;
	right: 100%;
}

#site_header .hh_top_nav li:hover > ul,
#site_header .hh_top_nav li:focus-within > ul {
	display: block;
}

#site_header .hh_top_nav ul ul li {
	display: block;
}

#site_header .hh_top_nav ul ul a {
	display: block;
	padding: 8px 20px;
	color: var(--hh-dark);
	line-height: 20px;
	white-space: nowrap;
}

#site_header .hh_top_nav ul ul a:hover,
#site_header .hh_top_nav ul ul a:focus {
	background: var(--hh-cream);
	color: var(--hh-teal);
}

#site_header .hh_top_nav > ul > li.menu-item-has-children > a:after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

#site_header .hh_top a:hover,
#site_header .hh_top a:focus,
#site_header .hh_search_toggle:hover {
	color: var(--hh-orange);
}

#site_header .hh_search_toggle:before {
	margin: 0;
	font-size: 18px;
}

#site_header .hh_search {
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

#site_header .hh_search[hidden] {
	display: none;
}

#site_header .hh_search .search_bar_wrap {
	width: 100%;
	height: auto;
	padding: 0;
	border: 0;
	background: none;
}

#site_header .hh_search form p {
	display: flex;
	margin: 0;
}

#site_header .hh_search input[type=text] {
	flex: 1;
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 4px 0 0 4px;
	background: #fff;
	color: var(--hh-dark);
}

#site_header .hh_search button[type=submit] {
	float: none;
	width: 48px;
	height: 40px;
	margin: 0;
	line-height: 40px;
	border-radius: 0 4px 4px 0;
	background: var(--hh-orange);
	color: var(--hh-dark);
}

/* Main bar */
#site_header .hh_main {
	position: relative;
	z-index: 1;
	background: var(--hh-cream);
	border-bottom: 4px solid var(--hh-orange);
}

#site_header .hh_main > .hh_inner {
	gap: 32px;
	min-height: 88px;
}

#site_header .hh_logo {
	flex: 0 0 auto;
	width: 250px;
}

#site_header .hh_logo .logo {
	display: block;
}

#site_header .hh_logo img {
	display: block;
	width: 100%;
	height: auto;
	/* the uploaded logo is white; render it dark on the cream bar */
	filter: brightness(0);
}

#site_header .hh_logo img.logo_retina {
	display: none;
}

/* Primary navigation */
#site_header .hh_nav {
	flex: 1;
}

#site_header #navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

#site_header #navigation li {
	position: relative;
}

#site_header #navigation a {
	display: block;
	color: var(--hh-dark);
	text-decoration: none;
}

#site_header #navigation .nav_bg_clr {
	display: none;
}

#site_header #navigation a > span {
	padding: 0;
}

#site_header #navigation > li > a {
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 22px;
	text-transform: uppercase;
	white-space: nowrap;
}

#site_header #navigation > li:not(.hh_btn) > a:hover,
#site_header #navigation > li:not(.hh_btn) > a:focus {
	color: var(--hh-teal);
}

#site_header #navigation > li.hh_btn {
	order: 10;
	margin-left: 16px;
}

#site_header #navigation > li.hh_btn_donate {
	order: 11;
}

#site_header #navigation > li.hh_btn > a {
	padding: 12px 26px;
	border-radius: 6px;
	transition: filter .2s;
}

#site_header #navigation > li.hh_btn_adopt > a {
	background: var(--hh-orange);
	color: var(--hh-dark);
}

#site_header #navigation > li.hh_btn_donate > a {
	background: var(--hh-teal);
	color: #fff;
}

#site_header #navigation > li.hh_btn > a:hover,
#site_header #navigation > li.hh_btn > a:focus {
	filter: brightness(1.08);
}

/* Dropdowns */
#site_header #navigation ul {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	min-width: 230px;
	padding: 8px 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(46, 36, 34, .18);
	border-width: 0;
	visibility: visible;
	opacity: 1;
}

#site_header #navigation > li > ul {
	top: 100%;
	left: 0;
	border-top: 3px solid var(--hh-orange);
	border-radius: 0 0 6px 6px;
}

#site_header #navigation > li.hh_btn > ul {
	right: 0;
	left: auto;
}

#site_header #navigation li:hover > ul,
#site_header #navigation li:focus-within > ul {
	display: block;
}

#site_header #navigation ul li {
	border-color: rgba(46, 36, 34, .08);
}

#site_header #navigation ul a {
	width: auto;
	padding: 8px 20px;
	font-size: 15px;
	line-height: 20px;
}

#site_header #navigation ul a:hover,
#site_header #navigation ul a:focus {
	background: var(--hh-cream);
	color: var(--hh-teal);
}

#site_header .hh_menu_toggle,
#site_header .hh_sub_toggle {
	display: none;
}

@media only screen and (max-width: 1240px) {
	#site_header .hh_inner {
		padding: 0 20px;
	}
	
	#site_header .hh_main > .hh_inner {
		gap: 16px;
	}
	
	#site_header .hh_logo {
		width: 210px;
	}
	
	#site_header #navigation > li > a {
		padding: 10px 8px;
		font-size: 14px;
		letter-spacing: .03em;
	}
	
	#site_header #navigation > li.hh_btn {
		margin-left: 8px;
	}
	
	#site_header #navigation > li.hh_btn > a {
		padding: 10px 18px;
	}
}

/* Mobile: hamburger menu */
@media only screen and (max-width: 1024px) {
	#site_header .hh_top_right,
	#site_header .hh_top_nav > ul {
		gap: 16px;
	}
	
	#site_header .hh_top a,
	#site_header .hh_search_toggle {
		font-size: 14px;
	}
	
	#site_header .hh_top_nav ul ul {
		right: auto;
		left: 0;
	}
	
	#site_header .hh_main > .hh_inner {
		flex-wrap: wrap;
		justify-content: space-between;
		min-height: 72px;
	}
	
	#site_header .hh_logo {
		width: 200px;
	}
	
	#site_header .hh_menu_toggle {
		display: block;
		position: relative;
		width: 44px;
		height: 44px;
	}
	
	#site_header .hh_menu_toggle > span:first-child,
	#site_header .hh_menu_toggle > span:first-child:before,
	#site_header .hh_menu_toggle > span:first-child:after {
		position: absolute;
		left: 10px;
		width: 24px;
		height: 3px;
		border-radius: 2px;
		background: var(--hh-dark);
	}
	
	#site_header .hh_menu_toggle > span:first-child {
		top: 21px;
	}
	
	#site_header .hh_menu_toggle > span:first-child:before,
	#site_header .hh_menu_toggle > span:first-child:after {
		content: '';
		left: 0;
	}
	
	#site_header .hh_menu_toggle > span:first-child:before {
		top: -8px;
	}
	
	#site_header .hh_menu_toggle > span:first-child:after {
		top: 8px;
	}
	
	#site_header .hh_nav {
		display: none;
		flex-basis: 100%;
		padding-bottom: 16px;
	}
	
	#site_header.hh_menu_open .hh_nav {
		display: block;
	}
	
	#site_header #navigation {
		flex-direction: column;
		align-items: stretch;
	}
	
	#site_header #navigation > li > a,
	#site_header #navigation ul a {
		padding: 12px 48px 12px 4px;
	}
	
	#site_header #navigation > li {
		border-top: 1px solid rgba(46, 36, 34, .1);
	}
	
	#site_header #navigation > li.hh_btn {
		margin: 12px 0 0;
		border-top: 0;
	}
	
	#site_header #navigation > li.hh_btn > a {
		padding: 14px 48px 14px 20px;
		text-align: center;
	}
	
	#site_header #navigation ul,
	#site_header #navigation li:hover > ul,
	#site_header #navigation li:focus-within > ul {
		display: none;
		position: static;
		min-width: 0;
		padding: 0 0 8px 16px;
		border: 0;
		background: none;
		box-shadow: none;
	}
	
	#site_header #navigation li.hh_sub_open > ul {
		display: block;
	}
	
	#site_header .hh_sub_toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 46px;
		height: 46px;
	}
	
	#site_header .hh_sub_toggle:before {
		content: '';
		position: absolute;
		top: 17px;
		left: 19px;
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}
	
	#site_header .hh_sub_toggle[aria-expanded=true]:before {
		top: 21px;
		transform: rotate(-135deg);
	}
	
	#site_header .hh_btn_donate > .hh_sub_toggle {
		color: #fff;
	}
}

@media only screen and (max-width: 540px) {
	#site_header .hh_top > .hh_inner {
		flex-wrap: wrap;
		justify-content: center;
		column-gap: 20px;
		padding: 4px 12px;
	}
	
	#site_header .hh_top_right,
	#site_header .hh_top_nav > ul {
		gap: 14px;
	}
}
