/* RZ Header Plus — frontend styles */

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

	width: 100%;
	background: var(--rzhp-bg);
	border-bottom: 1px solid var(--rzhp-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);
}

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

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

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

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

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

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

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

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

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

.rzhp-logo-text {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 400;
	color: var(--rzhp-text);
	letter-spacing: -0.02em;
	line-height: 1;
}

.rzhp-logo-dot {
	color: var(--rzhp-accent);
}

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

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

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

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

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

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

/* CTA menu item — render as primary pink button */
.rzhp-menu-item.is-cta a {
	background: var(--rzhp-accent);
	color: white !important;
	padding: 10px 18px;
	font-weight: 500;
	box-shadow: 0 4px 14px -6px rgba(214, 51, 108, 0.6);
}

.rzhp-menu-item.is-cta a:hover,
.rzhp-menu-item.is-cta a:focus {
	background: #831843; /* pink-deep */
	color: white !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px -8px rgba(214, 51, 108, 0.7);
}

.rzhp-menu-item.is-cta.is-active a::after {
	display: none; /* CTA buttons nemajú active dot */
}

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

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

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

/* Burger — hidden on desktop */
.rzhp-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;
}

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

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

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

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

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

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

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

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

.rzhp-mobile-menu li.is-cta a {
	background: var(--rzhp-accent);
	color: white !important;
	margin-top: 8px;
	text-align: center;
	font-weight: 500;
}

.rzhp-mobile-menu li.is-cta a:hover {
	background: #831843;
	color: white !important;
}

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

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

.rzhp-mobile-socials a:hover {
	color: var(--rzhp-accent);
	border-color: var(--rzhp-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) {
	.rzhp-nav,
	.rzhp-socials {
		display: none;
	}
	.rzhp-burger {
		display: flex;
		margin-left: auto;
	}
	.rzhp-header-inner {
		gap: 12px;
		padding: 0 16px;
	}
	.rzhp-header { --rzhp-h: 64px; --rzhp-h-shrunk: 56px; }
}

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