/*
 * Shakey Ray's Tavern custom header
 * Loaded separately from the Genesis Block Theme styles.
 */

:root {
	--sr-orange: #f47a2a;
	--sr-cream: #fff8ef;
	--sr-ink: #111214;
	--sr-header-height: 132px;
	--sr-header-height-scrolled: 94px;
	--sr-header-side-padding: clamp(24px, 4vw, 72px);
	--sr-header-transition: 240ms ease;
}

/* Keep fixed header below the WordPress toolbar while logged in. */
body.admin-bar .sr-header {
	top: 32px;
}

.sr-header,
.sr-header *,
.sr-header *::before,
.sr-header *::after {
	box-sizing: border-box;
}

.sr-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	height: var(--sr-header-height);
	color: #fff;
	font-family: inherit;
	transition:
		height var(--sr-header-transition),
		box-shadow var(--sr-header-transition);
}

.sr-header.is-scrolled {
	height: var(--sr-header-height-scrolled);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.sr-header__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(12, 13, 15, 0.96);
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 1;
	transition: opacity var(--sr-header-transition);
}

/* On the homepage, let the hero show through until the visitor scrolls. */
.home .sr-header:not(.is-scrolled):not(.is-menu-open) .sr-header__backdrop {
	opacity: 0;
}

.home .sr-header:not(.is-scrolled):not(.is-menu-open)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.26) 62%,
		rgba(0, 0, 0, 0) 100%
	);
}

.sr-header__inner {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 3vw, 58px);
	width: 100%;
	max-width: 1680px;
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--sr-header-side-padding);
}

/* ---------- Desktop navigation ---------- */

.sr-header__nav {
	min-width: 0;
}

.sr-header__nav--left {
	justify-self: stretch;
}

.sr-header__nav--right {
	justify-self: stretch;
}

.sr-header .sr-menu,
.sr-header .sr-menu ul,
.sr-header .sr-mobile-links,
.sr-header .sr-mobile-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sr-header .sr-menu {
	display: flex;
	align-items: center;
	gap: clamp(17px, 1.8vw, 34px);
}

.sr-header .sr-menu--left {
	justify-content: flex-end;
}

.sr-header .sr-menu--right {
	justify-content: flex-start;
}

.sr-header .sr-menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.sr-header .sr-menu > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 3px 0;
	color: #fff;
	font-size: clamp(13px, 0.9vw, 16px);
	font-weight: 750;
	line-height: 1;
	letter-spacing: 0.085em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
	transition:
		color 180ms ease,
		opacity 180ms ease;
}

.sr-header .sr-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 2px;
	background: var(--sr-orange);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 180ms ease;
}

.sr-header .sr-menu > li:hover > a,
.sr-header .sr-menu > li:focus-within > a,
.sr-header .sr-menu > .current-menu-item > a,
.sr-header .sr-menu > .current-menu-ancestor > a {
	color: var(--sr-cream);
}

.sr-header .sr-menu > li:hover > a::after,
.sr-header .sr-menu > li:focus-within > a::after,
.sr-header .sr-menu > .current-menu-item > a::after,
.sr-header .sr-menu > .current-menu-ancestor > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

/* Desktop dropdowns, in case a submenu is added later. */
.sr-header .sr-menu .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	min-width: 210px;
	padding: 10px;
	background: rgba(14, 15, 17, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition:
		opacity 160ms ease,
		visibility 160ms ease,
		transform 160ms ease;
}

.sr-header .sr-menu li:hover > .sub-menu,
.sr-header .sr-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sr-header .sr-menu .sub-menu li {
	margin: 0;
}

.sr-header .sr-menu .sub-menu a {
	display: block;
	padding: 11px 13px;
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.35;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.sr-header .sr-menu .sub-menu a:hover,
.sr-header .sr-menu .sub-menu a:focus {
	background: rgba(255, 255, 255, 0.08);
	color: var(--sr-orange);
}

/* ---------- Center logo ---------- */

.sr-header__logo {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	align-self: start;
}

.sr-header__logo .custom-logo-link,
.sr-header__site-name {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(180px, 15vw, 236px);
	min-height: 106px;
	padding: 10px 14px 13px;
	background: #fff;
	border-radius: 0 0 13px 13px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	text-decoration: none;
	transition:
		width var(--sr-header-transition),
		min-height var(--sr-header-transition),
		padding var(--sr-header-transition),
		box-shadow var(--sr-header-transition);
}

.sr-header__logo .custom-logo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 94px;
	object-fit: contain;
	transition: max-height var(--sr-header-transition);
}

.sr-header__site-name {
	color: var(--sr-ink);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
}

.sr-header.is-scrolled .sr-header__logo .custom-logo-link,
.sr-header.is-scrolled .sr-header__site-name {
	width: clamp(150px, 12vw, 184px);
	min-height: 78px;
	padding: 7px 11px 9px;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sr-header.is-scrolled .sr-header__logo .custom-logo {
	max-height: 65px;
}

/* ---------- Mobile button ---------- */

.sr-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.sr-menu-toggle:hover,
.sr-menu-toggle:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.58);
}

.sr-menu-toggle:focus-visible {
	outline: 3px solid var(--sr-orange);
	outline-offset: 3px;
}

.sr-menu-toggle__line {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 999px;
	transform-origin: center;
	transition:
		transform 200ms ease,
		opacity 160ms ease;
}

.sr-header.is-menu-open .sr-menu-toggle__line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.sr-header.is-menu-open .sr-menu-toggle__line:nth-child(2) {
	opacity: 0;
}

.sr-header.is-menu-open .sr-menu-toggle__line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile full-screen navigation ---------- */

.sr-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: none;
	height: 100vh;
	height: 100dvh;
	background:
		radial-gradient(circle at 50% 0%, rgba(244, 122, 42, 0.2), transparent 38%),
		rgba(10, 11, 13, 0.985);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition:
		opacity 220ms ease,
		visibility 220ms ease,
		transform 220ms ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.sr-header.is-menu-open .sr-mobile-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sr-mobile-menu__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(100%, 680px);
	min-height: 100%;
	margin: 0 auto;
	padding: 126px 30px 40px;
}

.sr-mobile-menu__nav {
	width: 100%;
}

.sr-header .sr-mobile-links + .sr-mobile-links {
	margin-top: 0;
}

.sr-header .sr-mobile-links > li {
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sr-header .sr-mobile-links > li:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sr-header .sr-mobile-links--right > li:first-child {
	border-top: 0;
}

.sr-header .sr-mobile-links > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 4px;
	color: #fff;
	font-size: clamp(25px, 7vw, 39px);
	font-weight: 850;
	letter-spacing: 0.045em;
	line-height: 1.08;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		color 160ms ease,
		padding-left 160ms ease;
}

.sr-header .sr-mobile-links > li > a::after {
	content: "→";
	color: var(--sr-orange);
	font-size: 0.68em;
	font-weight: 500;
	transform: translateX(-5px);
	transition: transform 160ms ease;
}

.sr-header .sr-mobile-links > li > a:hover,
.sr-header .sr-mobile-links > li > a:focus,
.sr-header .sr-mobile-links > .current-menu-item > a {
	padding-left: 8px;
	color: var(--sr-cream);
}

.sr-header .sr-mobile-links > li > a:hover::after,
.sr-header .sr-mobile-links > li > a:focus::after {
	transform: translateX(0);
}

.sr-header .sr-mobile-links .sub-menu {
	padding: 0 0 14px 17px;
}

.sr-header .sr-mobile-links .sub-menu a {
	display: block;
	padding: 8px 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-decoration: none;
	text-transform: uppercase;
}

.sr-header .sr-mobile-links .sub-menu a:hover,
.sr-header .sr-mobile-links .sub-menu a:focus {
	color: var(--sr-orange);
}

.sr-mobile-menu__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.035em;
	line-height: 1.5;
}

.sr-mobile-menu__footer a {
	color: #fff;
	text-decoration: none;
}

.sr-mobile-menu__footer a:hover,
.sr-mobile-menu__footer a:focus {
	color: var(--sr-orange);
}

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

/* The fixed header overlays the homepage hero, but inner pages need space. */
body:not(.home) #page {
	padding-top: var(--sr-header-height);
}

body:not(.home) .sr-header.is-scrolled + #page {
	/* The page remains stable while the fixed header shrinks. */
	padding-top: var(--sr-header-height);
}

/* Skip link. */
.sr-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10050;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: #111;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	:root {
		--sr-header-side-padding: 24px;
	}

	.sr-header .sr-menu {
		gap: 16px;
	}

	.sr-header .sr-menu > li > a {
		font-size: 13px;
		letter-spacing: 0.065em;
	}

	.sr-header__logo .custom-logo-link,
	.sr-header__site-name {
		width: 184px;
	}
}

@media (max-width: 1024px) {
	:root {
		--sr-header-height: 94px;
		--sr-header-height-scrolled: 82px;
	}

	.sr-header__inner {
		grid-template-columns: 1fr auto 1fr;
		gap: 14px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.sr-header__nav {
		display: none;
	}

	.sr-header__logo {
		grid-column: 2;
		align-self: start;
	}

	.sr-header__logo .custom-logo-link,
	.sr-header__site-name,
	.sr-header.is-scrolled .sr-header__logo .custom-logo-link,
	.sr-header.is-scrolled .sr-header__site-name {
		width: 158px;
		min-height: 82px;
		padding: 7px 10px 9px;
		border-radius: 0 0 10px 10px;
	}

	.sr-header__logo .custom-logo,
	.sr-header.is-scrolled .sr-header__logo .custom-logo {
		max-height: 68px;
	}

	.sr-menu-toggle {
		display: flex;
		grid-column: 3;
		justify-self: end;
		position: relative;
		z-index: 4;
	}

	.sr-mobile-menu {
		display: block;
	}

	body:not(.home) #page {
		padding-top: var(--sr-header-height);
	}
}

@media (max-width: 782px) {
	body.admin-bar .sr-header {
		top: 46px;
	}

	body.admin-bar .sr-mobile-menu {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 560px) {
	:root {
		--sr-header-height: 88px;
		--sr-header-height-scrolled: 78px;
	}

	.sr-header__inner {
		padding-right: 14px;
		padding-left: 14px;
	}

	.sr-header__logo .custom-logo-link,
	.sr-header__site-name,
	.sr-header.is-scrolled .sr-header__logo .custom-logo-link,
	.sr-header.is-scrolled .sr-header__site-name {
		width: 142px;
		min-height: 76px;
		padding: 6px 8px 8px;
	}

	.sr-header__logo .custom-logo,
	.sr-header.is-scrolled .sr-header__logo .custom-logo {
		max-height: 62px;
	}

	.sr-menu-toggle {
		width: 44px;
		height: 44px;
	}

	.sr-mobile-menu__inner {
		justify-content: flex-start;
		padding: 118px 20px 30px;
	}

	.sr-header .sr-mobile-links > li > a {
		padding-top: 15px;
		padding-bottom: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sr-header,
	.sr-header *,
	.sr-header *::before,
	.sr-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
/* =========================================================
   Match the original Shakey Ray's header
   ========================================================= */

:root {
	--sr-orange: #943f14;
	--sr-header-height: 74px;
	--sr-header-height-scrolled: 68px;
}

/* Burnt-orange header background */
.sr-header__backdrop {
	background: #943f14;
	border-bottom: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	opacity: 1;
}

/* Keep the orange background visible on the homepage */
.home .sr-header:not(.is-scrolled):not(.is-menu-open) .sr-header__backdrop {
	opacity: 1;
}

/* Remove the old dark gradient */
.home .sr-header:not(.is-scrolled):not(.is-menu-open)::before {
	display: none;
}

/* Remove the white logo card */
.sr-header__logo .custom-logo-link,
.sr-header__site-name {
	width: clamp(105px, 8vw, 128px);
	min-height: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* Allow the logo to hang slightly below the orange bar */
.sr-header__logo {
	align-self: start;
	transform: translateY(4px);
}

.sr-header__logo .custom-logo {
	width: auto;
	max-width: 128px;
	height: auto;
	max-height: 86px;
	object-fit: contain;
}

/* Scrolled logo */
.sr-header.is-scrolled .sr-header__logo .custom-logo-link,
.sr-header.is-scrolled .sr-header__site-name {
	width: 105px;
	min-height: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.sr-header.is-scrolled .sr-header__logo .custom-logo {
	max-height: 72px;
}

/* Slightly tighter navigation like the original */
.sr-header .sr-menu > li > a {
	font-size: clamp(13px, 0.85vw, 15px);
	text-shadow: none;
}
/* Remove the white gap between the header and homepage video */
.home #page,
.home #content,
.home .site-content,
.home #primary,
.home .content-area,
.home .site-main,
.home .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.home .entry-content > *:first-child {
	margin-top: 0 !important;
}
/* =========================================================
   Header social media links
   ========================================================= */

.sr-header__right {
	display: flex;
	align-items: center;
	justify-self: stretch;
	gap: clamp(18px, 2vw, 34px);
	min-width: 0;
}

.sr-header__right .sr-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.sr-header__socials {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 13px;
	margin-left: auto;
}

.sr-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 40px;
	padding: 0;
	color: #fff;
	text-decoration: none;
	opacity: 0.95;
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.sr-social-link svg {
	display: block;
	width: 18px;
	height: 18px;
}

.sr-social-link:hover,
.sr-social-link:focus {
	color: #fff;
	opacity: 0.72;
	transform: translateY(-1px);
}

.sr-social-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 3px;
}

.sr-mobile-socials {
	display: flex;
	flex-basis: 100%;
	gap: 18px;
	margin-top: 8px;
}

.sr-mobile-socials a {
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}


/* =========================================================
   Homepage video controls
   ========================================================= */

.sr-hero-video-wrap {
	position: relative !important;
}

.sr-hero-video-wrap video {
	display: block;
	width: 100%;
}

.sr-video-controls {
	position: absolute;
	left: clamp(18px, 2vw, 32px);
	bottom: clamp(18px, 2vw, 28px);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 4px;
}

.sr-video-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
	transition:
		background-color 160ms ease,
		transform 160ms ease;
}

.sr-video-control:hover,
.sr-video-control:focus {
	background: rgba(0, 0, 0, 0.26);
	color: #fff;
	transform: scale(1.04);
}

.sr-video-control:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sr-video-control__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
}

.sr-video-control__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}


/* Hide desktop right section when hamburger mode begins. */

@media (max-width: 1024px) {
	.sr-header__right {
		display: none;
	}

	.sr-video-controls {
		left: 14px;
		bottom: 14px;
	}

	.sr-video-control {
		width: 38px;
		height: 38px;
	}

	.sr-video-control__icon {
		width: 26px;
		height: 26px;
	}
}