/**
 * Centered brand header (Murphys Focus–style).
 */

.murphy-header {
	position: relative;
	/* Above LayerSlider layers/GUI (up to ~999999) so open submenus aren’t hidden behind the hero slider */
	z-index: 1000002;
	border-bottom: 1px solid #e8e8e8;
}

.murphy-header .has-child .wp-block-navigation__submenu-container {
	z-index: 1000003;
}

.murphy-header .murphy-header__inner {
	width: 100%;
}

/* Site title: larger, thin caps */
.murphy-header .murphy-header__title,
.murphy-header .murphy-header__title a {
	color: #1a1a1a;
	font-weight: 200;
	font-size: clamp(2.125rem, 5.5vw, 3.5rem);
	line-height: 1.15;
	letter-spacing: 0.28em;
	text-decoration: none;
	text-transform: uppercase;
}

.murphy-header .murphy-header__title a:hover,
.murphy-header .murphy-header__title a:focus {
	color: #1a1a1a;
	opacity: 0.88;
}

/* Snug stack + light rule between title and nav */
.murphy-header .murphy-header__title.wp-block-site-title {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0.35rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}

/* Nav: snug under rule, room for purple bar above each top-level item */
.murphy-header .murphy-header__nav {
	margin-top: 0.35rem;
	justify-content: center;
}

.murphy-header .murphy-header__nav .wp-block-navigation__container {
	justify-content: center;
	gap: 0.15rem 1.35rem;
	flex-wrap: wrap;
}

/* Top-level items only: purple bar = active / hover indicator */
.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
	padding-top: 0.5rem;
}

.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2.35rem;
	height: 3px;
	background-color: transparent;
	transition: background-color 0.15s ease;
}

.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item::before,
.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item.current-menu-ancestor::before {
	background-color: var(--murphy-accent-purple, #6b3d9a);
}

.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item:hover::before,
.murphy-header .murphy-header__nav > .wp-block-navigation__container > .wp-block-navigation-item:focus-within::before {
	background-color: var(--murphy-accent-purple, #6b3d9a);
}

/* When hovering the row, hide the “current” bar so only the hovered item shows the accent */
.murphy-header .murphy-header__nav > .wp-block-navigation__container:has(> .wp-block-navigation-item:hover) > .wp-block-navigation-item.current-menu-item:not(:hover)::before,
.murphy-header .murphy-header__nav > .wp-block-navigation__container:has(> .wp-block-navigation-item:hover) > .wp-block-navigation-item.current-menu-ancestor:not(:hover)::before {
	background-color: transparent;
}

.murphy-header .murphy-header__nav .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.2rem 0.1rem 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: #222222;
}

.murphy-header .murphy-header__nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.murphy-header .murphy-header__nav li.current-menu-item > .wp-block-navigation-item__content {
	color: #222222;
}

.murphy-header .murphy-header__nav .wp-block-navigation-item:not(.current-menu-item) > .wp-block-navigation-item__content:hover,
.murphy-header .murphy-header__nav .wp-block-navigation-item:not(.current-menu-item) > .wp-block-navigation-item__content:focus {
	color: #111111;
}

.murphy-header .murphy-header__nav .wp-block-navigation__submenu-icon {
	margin-left: 0.2rem;
}
