/**
 * Allrecipes-inspired header for GluJoy (desktop).
 * Mobile keeps Kadence header.
 */

/* —— Desktop: show custom header, hide Kadence chrome —— */
@media (min-width: 1025px) {
	#masthead {
		display: none !important;
	}
	.gj-ar-site-header,
	.gj-ar-promo,
	.gj-ar-trust {
		display: block;
	}
}

/* —— Mobile: hide AR chrome, keep Kadence —— */
@media (max-width: 1024px) {
	.gj-ar-site-header,
	.gj-ar-promo,
	.gj-ar-trust {
		display: none !important;
	}
}

/* ========== Main header row ========== */
.gj-ar-site-header {
	background: #ffffff;
	border-bottom: 1px solid #e8e6e3;
	position: relative;
	z-index: 100;
	font-family: Montserrat, var(--global-body-font-family, sans-serif);
}

.gj-ar-header__main {
	padding: 14px 0 12px;
}

.gj-ar-header__main-inner {
	display: grid;
	grid-template-columns: minmax(140px, 200px) minmax(220px, 1fr) auto;
	align-items: center;
	gap: 1.25rem 1.75rem;
	max-width: var(--global-wide-content-width, 1290px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.gj-ar-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.gj-ar-header__logo-img,
.gj-ar-header__logo .custom-logo {
	display: block;
	max-height: 52px;
	width: auto;
	max-width: 200px;
	height: auto;
}

.gj-ar-header__logo-text {
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 1.75rem;
	color: var(--global-palette3, #343434);
}

/* Search — pill + gold button (AR orange → GluJoy gold) */
.gj-ar-header__search {
	width: 100%;
	max-width: 520px;
	justify-self: center;
}

.gj-ar-search-form {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid #cfcbc4;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gj-ar-search-form:focus-within {
	border-color: var(--global-palette2, #3d998e);
	box-shadow: 0 0 0 3px rgba(61, 153, 142, 0.15);
}

.gj-ar-search-form__input {
	flex: 1 1 auto;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 0 18px !important;
	height: 42px !important;
	font-size: 14px !important;
	font-family: Montserrat, sans-serif !important;
	color: var(--global-palette3, #343434) !important;
	outline: none !important;
	box-shadow: none !important;
	width: 100% !important;
}

.gj-ar-search-form__input::placeholder {
	color: #9a958c;
}

.gj-ar-search-form__btn {
	flex: 0 0 48px;
	width: 48px;
	border: 0;
	background: var(--global-palette1, #daaf53);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.gj-ar-search-form__btn:hover {
	background: var(--global-palette2, #3d998e);
}

/* Utility links */
.gj-ar-header__utils {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem;
	flex-wrap: wrap;
	white-space: nowrap;
}

.gj-ar-header__util {
	font-size: 13px;
	font-weight: 500;
	color: var(--global-palette3, #343434);
	text-decoration: none;
	padding: 0.25rem 0.45rem;
	transition: color 0.15s ease;
}

.gj-ar-header__util:hover {
	color: var(--global-palette2, #3d998e);
}

.gj-ar-header__util-sep {
	display: inline-block;
	width: 1px;
	height: 14px;
	background: #d5d0c8;
	margin: 0 0.15rem;
}

.gj-ar-header__util--accent {
	font-weight: 700;
	color: var(--global-palette3, #343434);
}

.gj-ar-header__heart {
	color: #e85a7a;
	margin-right: 2px;
	font-size: 14px;
}

/* ========== Primary nav row ========== */
.gj-ar-header__nav {
	border-top: 1px solid #eeebe6;
	background: #fff;
}

.gj-ar-header__nav-inner {
	max-width: var(--global-wide-content-width, 1290px);
	margin: 0 auto;
	padding: 0 12px;
	box-sizing: border-box;
}

.gj-ar-nav-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.15rem 0.1rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gj-ar-nav-menu > li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
}

.gj-ar-nav-menu > li > a {
	display: block;
	padding: 12px 11px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--global-palette3, #343434) !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
	line-height: 1.2;
}

.gj-ar-nav-menu > li > a:hover,
.gj-ar-nav-menu > li.current-menu-item > a,
.gj-ar-nav-menu > li.current-menu-ancestor > a {
	color: var(--global-palette2, #3d998e) !important;
}

/* CTA like "GET THE MAGAZINE" */
.gj-ar-nav-menu > li.gj-ar-nav-cta > a,
.gj-ar-nav-menu > li:last-child > a[href*="contact"],
.gj-ar-nav-menu > li:last-child > a[href*="colophon"] {
	color: var(--global-palette1, #c9952e) !important;
}

.gj-ar-nav-menu > li.gj-ar-nav-cta > a:hover {
	color: var(--global-palette2, #3d998e) !important;
}

/* Dropdowns */
.gj-ar-nav-menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	background: #fff;
	border: 1px solid #e8e6e3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	list-style: none !important;
	margin: 0 !important;
	padding: 0.4rem 0 !important;
	z-index: 200;
}

.gj-ar-nav-menu > li:hover > .sub-menu,
.gj-ar-nav-menu > li:focus-within > .sub-menu {
	display: block;
}

.gj-ar-nav-menu .sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--global-palette4, #484848) !important;
	text-decoration: none !important;
}

.gj-ar-nav-menu .sub-menu a:hover {
	background: #f7f6f5;
	color: var(--global-palette2, #3d998e) !important;
}

/* Hide default dropdown carets clutter if theme adds them */
.gj-ar-nav-menu .dropdown-nav-toggle,
.gj-ar-nav-menu .kadence-svg-icon {
	display: none !important;
}

/* ========== Promo bar (gold) ========== */
.gj-ar-promo {
	background: #daaf53 !important;
	color: #1a1a1a !important;
}

.gj-ar-promo[hidden] {
	display: none !important;
}

.gj-ar-promo__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: var(--global-wide-content-width, 1290px);
	margin: 0 auto;
	padding: 10px 40px 10px 20px;
	position: relative;
	box-sizing: border-box;
	text-align: center;
}

.gj-ar-promo__text,
.gj-ar-promo p.gj-ar-promo__text {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	color: #1a1a1a !important;
}

.gj-ar-promo__text a {
	color: #1a1a1a !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-weight: 700 !important;
}

.gj-ar-promo__close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #1a1a1a !important;
	opacity: 0.7;
	padding: 4px 8px;
}

.gj-ar-promo__close:hover {
	opacity: 1;
}

/* ========== Trust bar (navy) — light text (beats global body #222 !important) ========== */
.gj-ar-trust {
	background: #1e3a6e !important;
	color: #ffffff !important;
}

.gj-ar-trust__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	max-width: var(--global-wide-content-width, 1290px);
	margin: 0 auto;
	padding: 12px 20px;
	box-sizing: border-box;
	color: #ffffff !important;
}

.gj-ar-trust__tagline,
.gj-ar-trust p.gj-ar-trust__tagline {
	margin: 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	letter-spacing: 0.01em;
	color: #ffffff !important;
	line-height: 1.4 !important;
}

.gj-ar-trust__accent {
	color: #daaf53 !important;
	font-weight: 700 !important;
}

.gj-ar-trust__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	color: #ffffff !important;
}

.gj-ar-trust__stats li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 !important;
	list-style: none !important;
	opacity: 1;
	color: rgba(255, 255, 255, 0.95) !important;
	font-weight: 500 !important;
}

.gj-ar-trust__stats strong {
	font-weight: 700 !important;
	color: #ffffff !important;
}

.gj-ar-trust__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.gj-ar-trust__dot--teal {
	background: #3d998e !important;
}
.gj-ar-trust__dot--coral {
	background: #e07a5f !important;
}
.gj-ar-trust__dot--gold {
	background: #daaf53 !important;
}

/* Wide screens: slightly tighter nav */
@media (min-width: 1200px) {
	.gj-ar-nav-menu > li > a {
		padding: 13px 13px;
		font-size: 12.5px;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.gj-ar-header__main-inner {
		grid-template-columns: minmax(120px, 170px) minmax(180px, 1fr) auto;
		gap: 0.75rem 1rem;
	}
	.gj-ar-nav-menu > li > a {
		padding: 11px 8px;
		font-size: 11px;
		letter-spacing: 0.04em;
	}
	.gj-ar-header__util {
		font-size: 12px;
	}
}


/* Text wordmark in AR header */
.gj-ar-header__logo {
	text-decoration: none !important;
}
.gj-ar-header__logo .gj-wordmark__text {
	font-size: clamp(1.9rem, 2.5vw, 2.4rem);
}
