/* RQ Header Plus — frontend styles */

.rqhp-header {
	--rqhp-h: 76px;
	--rqhp-h-shrunk: 60px;
	--rqhp-bg: rgba(255, 255, 255, 0.96);
	--rqhp-bg-scrolled: rgba(255, 255, 255, 0.98);
	--rqhp-border: rgba(0, 0, 0, 0.06);
	--rqhp-text: #18181b;
	--rqhp-muted: #71717a;
	--rqhp-accent: #d6336c;
	--rqhp-accent-soft: #fce7f3;
	--rqhp-mobile-breakpoint: 820px;
	--rqhp-logo-width: 160px;

	width: 100%;
	background: var(--rqhp-bg);
	border-bottom: 1px solid var(--rqhp-border);
	z-index: 1000;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	transition: background 0.2s ease, box-shadow 0.2s ease, height 0.2s ease;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.rqhp-header.is-sticky {
	position: sticky;
	top: 0;
}

.rqhp-header.is-scrolled {
	background: var(--rqhp-bg-scrolled);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.rqhp-header * { box-sizing: border-box; }

.rqhp-header-inner {
	max-width: 1280px;
	height: var(--rqhp-h);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	transition: height 0.2s ease;
}

.rqhp-header.is-shrunk .rqhp-header-inner {
	height: var(--rqhp-h-shrunk);
}

/* Logo */
.rqhp-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none !important;
	transition: opacity 0.15s ease;
}

.rqhp-logo:hover { opacity: 0.85; }

.rqhp-logo img {
	display: block;
	width: var(--rqhp-logo-width);
	height: auto;
	max-height: calc(var(--rqhp-h) - 24px);
	object-fit: contain;
	transition: max-height 0.2s ease;
}

.rqhp-header.is-shrunk .rqhp-logo img {
	max-height: calc(var(--rqhp-h-shrunk) - 16px);
}

.rqhp-logo-text {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--rqhp-accent);
	letter-spacing: 0.04em;
}

/* Nav */
.rqhp-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.rqhp-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rqhp-menu-item a {
	display: inline-block;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rqhp-text) !important;
	text-decoration: none !important;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative;
}

.rqhp-menu-item a:hover,
.rqhp-menu-item a:focus {
	color: var(--rqhp-accent) !important;
	background: var(--rqhp-accent-soft);
}

/* Active section highlight */
.rqhp-menu-item.is-active a {
	color: var(--rqhp-accent) !important;
	background: var(--rqhp-accent-soft);
}

.rqhp-menu-item.is-active a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	background: var(--rqhp-accent);
	border-radius: 50%;
}

/* Socials */
.rqhp-socials {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-shrink: 0;
}

.rqhp-socials a {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rqhp-muted);
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rqhp-socials a:hover {
	color: var(--rqhp-accent);
	background: var(--rqhp-accent-soft);
	transform: translateY(-1px);
}

/* Burger — hidden on desktop */
.rqhp-burger {
	display: none;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	padding: 10px;
	cursor: pointer;
	flex-shrink: 0;
	flex-direction: column;
	justify-content: space-between;
}

.rqhp-burger span {
	display: block;
	height: 2px;
	background: var(--rqhp-text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.rqhp-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}
.rqhp-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.rqhp-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

/* Mobile drawer */
.rqhp-mobile-menu {
	display: none;
	background: #fff;
	border-top: 1px solid var(--rqhp-border);
	padding: 20px 24px 28px;
}

.rqhp-mobile-menu.is-open {
	display: block;
	animation: rqhpDrawer 0.25s ease;
}

@keyframes rqhpDrawer {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rqhp-mobile-menu ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.rqhp-mobile-menu li a {
	display: block;
	padding: 12px 14px;
	font-size: 16px;
	font-weight: 600;
	color: var(--rqhp-text) !important;
	text-decoration: none !important;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.rqhp-mobile-menu li a:hover,
.rqhp-mobile-menu li.is-active a {
	color: var(--rqhp-accent) !important;
	background: var(--rqhp-accent-soft);
}

.rqhp-mobile-socials {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding-top: 16px;
	border-top: 1px solid var(--rqhp-border);
}

.rqhp-mobile-socials a {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rqhp-muted);
	border: 1px solid var(--rqhp-border);
	border-radius: 50%;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.rqhp-mobile-socials a:hover {
	color: var(--rqhp-accent);
	border-color: var(--rqhp-accent);
}

/* ============================================================
   Mobile breakpoint — controlled via inline CSS variable
   We use a max-width media query on a fixed 820px (default)
   The dynamic value is injected via wp_add_inline_style to <body>.
   For simplicity: hardcoded responsive at common breakpoints.
   ============================================================ */

@media (max-width: 820px) {
	.rqhp-nav,
	.rqhp-socials {
		display: none;
	}
	.rqhp-burger {
		display: flex;
		margin-left: auto;
	}
	.rqhp-header-inner {
		gap: 12px;
		padding: 0 16px;
	}
	.rqhp-header { --rqhp-h: 64px; --rqhp-h-shrunk: 56px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.rqhp-header,
	.rqhp-header-inner,
	.rqhp-logo img,
	.rqhp-socials a {
		transition: none !important;
	}
	.rqhp-mobile-menu.is-open {
		animation: none;
	}
}
