/* Pocestujme – nové horné menu
 * Farby sú prevzaté z Avada palety webu (Global Options → Colors). */
:root {
	--pch-accent: #6566bf;
	--pch-accent-dark: #4f50a6;
	--pch-accent-soft: #efeffa;
	--pch-accent-hover: #f1f1fa;
	--pch-ink: #212326;
	--pch-muted: #55575c;
	--pch-line: #ebebf2;
	--pch-field: #f2f3f5;
	--pch-bg: #ffffff;
	--pch-badge: #f2b53e;
	--pch-badge-ink: #2b2100;
	--pch-font-nav: "Cardo", Georgia, "Times New Roman", serif;
	--pch-font-body: "Joan", Georgia, "Times New Roman", serif;
	--pch-h: 80px;
	--pch-h-compact: 64px;
	--pch-gutter: clamp(16px, 3.3vw, 48px);
	--pch-top: var(--wp-admin--admin-bar--height, 0px);
}

/* Pôvodná hlavička Avady sa skryje, obsah sa posunie pod novú fixnú hlavičku. */
body.pch-hide-avada .fusion-header-wrapper { display: none !important; }
body.pch-on { padding-top: var(--pch-h); }
html { scroll-padding-top: calc(var(--pch-h-compact) + 16px); }
html.pch-lock { overflow: hidden; }

/* ---------- Základ (reset proti štýlom témy) ---------- */
.pch, .pch-drawer { font-family: var(--pch-font-body); color: var(--pch-ink); line-height: 1.4; -webkit-font-smoothing: antialiased; }
.pch *, .pch-drawer * { box-sizing: border-box; }
.pch ul, .pch-drawer ul { list-style: none; margin: 0; padding: 0; }
.pch li, .pch-drawer li { margin: 0; padding: 0; }
.pch li::before, .pch-drawer li::before { content: none; }
.pch a, .pch-drawer a { text-decoration: none; box-shadow: none; }
.pch button, .pch-drawer button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-transform: none; letter-spacing: 0; line-height: 1.2; min-height: 0; border-radius: 0; box-shadow: none; }
.pch [hidden], .pch-drawer [hidden], .pch-drawer[hidden], .pch-scrim[hidden] { display: none !important; }
.pch .pch-ico, .pch-drawer .pch-ico { display: block; flex: none; }
.pch .screen-reader-text, .pch-drawer .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pch a:focus-visible, .pch button:focus-visible, .pch input:focus-visible,
.pch-drawer a:focus-visible, .pch-drawer button:focus-visible, .pch-drawer input:focus-visible {
	outline: 2px solid var(--pch-accent); outline-offset: 3px;
}

/* ---------- Lišta ---------- */
.pch {
	position: fixed; top: var(--pch-top); left: 0; right: 0; z-index: 9990;
	background: var(--pch-bg); border-bottom: 1px solid var(--pch-line);
	transition: box-shadow .2s ease;
}
.pch.is-compact { box-shadow: 0 6px 24px -8px rgba(20, 22, 23, .18); }
.pch__bar {
	height: var(--pch-h); max-width: 1600px; margin: 0 auto; padding: 0 var(--pch-gutter);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	transition: height .2s ease;
}
.pch.is-compact .pch__bar { height: var(--pch-h-compact); }

.pch__logo { display: flex; align-items: center; justify-self: start; }
.pch__logo img { height: 48px; width: auto; max-width: none; display: block; transition: height .2s ease; }
.pch.is-compact .pch__logo img { height: 36px; }

/* ---------- Položky menu ---------- */
.pch__nav { align-self: stretch; }
.pch__menu { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.pch__item { display: flex; }
.pch__item.has-drop { position: relative; }
.pch .pch__link {
	position: relative; display: flex; align-items: center; gap: 6px; height: 100%;
	padding: 0 16px; font-family: var(--pch-font-nav); font-size: 17px; font-weight: 700;
	color: var(--pch-ink); white-space: nowrap; transition: color .15s ease;
}
.pch .pch__link::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px;
	border-radius: 3px 3px 0 0; background: var(--pch-accent);
	transform: scaleX(0); transition: transform .2s ease;
}
.pch .pch__link:hover,
.pch .pch__item.is-current > .pch__link,
.pch .pch__link[aria-expanded="true"] { color: var(--pch-accent); }
.pch .pch__item.is-current > .pch__link::after,
.pch .pch__link[aria-expanded="true"]::after { transform: scaleX(1); }
.pch .pch__toggle .pch-ico { transition: transform .2s ease; }
.pch .pch__toggle[aria-expanded="true"] .pch-ico { transform: rotate(180deg); }

/* ---------- Pravá strana ---------- */
.pch__actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.pch .pch__icon-btn {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid #e2e2ec; background: var(--pch-bg);
	display: flex; align-items: center; justify-content: center; color: var(--pch-ink);
	transition: border-color .15s ease, color .15s ease;
}
.pch .pch__icon-btn:hover, .pch .pch__icon-btn[aria-expanded="true"] { border-color: var(--pch-accent); color: var(--pch-accent); }

.pch__cta {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px; border-radius: 999px; background: var(--pch-accent);
	font-family: var(--pch-font-nav); font-size: 16px; font-weight: 700; white-space: nowrap;
	transition: background-color .15s ease;
}
.pch .pch__cta, .pch-drawer .pch__cta, .pch .pch__cta:hover, .pch-drawer .pch__cta:hover { color: #fff; }
.pch__cta:hover { background: #5354ad; }
.pch__badge {
	position: absolute; top: -10px; right: -8px; padding: 3px 8px; border-radius: 999px;
	background: var(--pch-badge); color: var(--pch-badge-ink); box-shadow: 0 0 0 2px var(--pch-bg);
	font-family: var(--pch-font-body); font-size: 10.5px; font-weight: 700; line-height: 1.3;
	letter-spacing: .08em; text-transform: uppercase;
}
.pch .pch__burger {
	display: none; height: 44px; padding: 0 14px 0 12px; border-radius: 999px; gap: 8px; align-items: center;
	background: var(--pch-accent-soft); color: var(--pch-accent-dark);
	font-family: var(--pch-font-nav); font-size: 16px; font-weight: 700;
}

/* ---------- Mega menu a dropdown ---------- */
.pch-scrim { position: fixed; inset: 0; z-index: 9980; background: rgba(20, 22, 23, .36); }
.pch__panel {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 2; background: var(--pch-bg);
	border-radius: 0 0 20px 20px; box-shadow: 0 28px 48px -12px rgba(20, 22, 23, .22);
	animation: pch-in .18s ease;
}
@keyframes pch-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pch__mega { margin-top: 1px; max-height: calc(100vh - var(--pch-h) - var(--pch-top)); overflow-y: auto; }
.pch__mega-inner { max-width: 1600px; margin: 0 auto; padding: 36px var(--pch-gutter) 0; }
.pch__cols { display: flex; align-items: flex-start; gap: 48px; }
.pch__group { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pch__group--wide { flex-grow: 2; }
.pch__col { display: flex; flex-direction: column; gap: 14px; }
.pch .pch__col-title {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	font-family: var(--pch-font-nav); font-size: 13px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--pch-accent);
}
.pch .pch__col-title:hover { color: var(--pch-accent-dark); }
.pch__count {
	padding: 2px 8px; border-radius: 999px; background: var(--pch-accent-soft); color: var(--pch-accent-dark);
	font-family: var(--pch-font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.4;
}
.pch__list { display: grid; gap: 2px; }
.pch__group--wide .pch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.pch .pch__list a, .pch .pch__drop a {
	display: block; padding: 7px 10px; margin-left: -10px; border-radius: 8px;
	font-size: 16px; color: var(--pch-ink); transition: background-color .15s ease, color .15s ease;
}
.pch .pch__list a:hover, .pch .pch__drop a:hover,
.pch .pch__list a[aria-current="page"], .pch .pch__drop a[aria-current="page"] { background: var(--pch-accent-hover); color: var(--pch-accent-dark); }

.pch .pch__feat {
	flex: 1.3 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
	background: #f9f9fb; border: 1px solid #efeff5; border-radius: 16px; color: var(--pch-ink);
}
.pch__feat-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.pch__feat-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pch__eyebrow { font-family: var(--pch-font-nav); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pch-accent); }
.pch__feat-title { font-family: var(--pch-font-nav); font-size: 21px; font-weight: 700; line-height: 1.25; }
.pch__feat-more { font-size: 15px; color: var(--pch-accent); }
.pch .pch__feat:hover .pch__feat-more { color: var(--pch-accent-dark); }

.pch__mega-foot {
	margin-top: 32px; padding: 18px 0 20px; border-top: 1px solid #eeeef4;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	font-size: 15px; color: var(--pch-muted);
}
.pch__mega-foot strong { color: var(--pch-ink); }
.pch__foot-links { display: flex; align-items: center; gap: 28px; }
.pch .pch__foot-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--pch-accent); }
.pch .pch__foot-links a:hover { color: var(--pch-accent-dark); }

.pch__drop { left: 0; right: auto; min-width: 230px; padding: 8px 18px 8px 18px; border-radius: 0 0 14px 14px; }

/* ---------- Vyhľadávanie ---------- */
.pch__search {
	position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 3;
	width: min(720px, calc(100vw - 32px)); background: var(--pch-bg); border-radius: 20px;
	box-shadow: 0 28px 48px -12px rgba(20, 22, 23, .24); overflow: hidden;
}
.pch__search-form { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0; }
.pch__search-field { position: relative; flex: 1; display: block; }
.pch__search-field .pch-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--pch-accent); }
.pch .pch__search-field input {
	width: 100%; height: 52px; margin: 0; padding: 0 20px 0 50px; border-radius: 999px;
	border: 2px solid var(--pch-accent); background: var(--pch-bg); box-shadow: none;
	font-family: var(--pch-font-body); font-size: 17px; color: var(--pch-ink);
}
.pch .pch__search-field input:focus,
.pch .pch__search-field input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--pch-accent-soft); }
.pch-drawer .pch-drawer__search input:focus-visible { outline: none; border-color: var(--pch-accent); box-shadow: 0 0 0 3px var(--pch-accent-soft); }
.pch .pch__search-close {
	height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #e2e2ec;
	display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
}
.pch .pch__search-close:hover { border-color: var(--pch-accent); color: var(--pch-accent); }
.pch__results:empty { display: none; }
.pch__results { border-top: 1px solid #eeeef4; padding: 8px 0 0; }
.pch__r-group { padding: 10px 24px 6px; }
.pch__r-label { display: block; margin-bottom: 10px; font-family: var(--pch-font-nav); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pch-accent); }
.pch__r-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pch .pch__r-chip {
	display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid #e2e2ec; font-size: 15px; color: var(--pch-ink);
}
.pch .pch__r-chip:hover { border-color: var(--pch-accent); color: var(--pch-accent-dark); }
.pch__r-list { display: grid; gap: 2px; margin: 0 -12px; }
.pch .pch__r-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 12px; color: var(--pch-ink); }
.pch .pch__r-row:hover, .pch .pch__r-row:focus-visible { background: #f6f6fc; }
.pch__r-thumb { width: 64px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: #e7e7ef; display: block; }
.pch__r-title { font-family: var(--pch-font-nav); font-size: 17px; font-weight: 700; }
.pch mark { background: var(--pch-accent-soft); color: inherit; padding: 0 1px; border-radius: 2px; }
.pch__r-empty { padding: 4px 24px 12px; color: var(--pch-muted); font-size: 15px; }
.pch__r-foot { margin-top: 8px; padding: 14px 24px; border-top: 1px solid #eeeef4; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pch .pch__r-foot a { color: var(--pch-accent); }
.pch__r-hint { font-size: 13px; color: var(--pch-muted); }

/* ---------- Pruh čítania ---------- */
.pch__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--pch-accent-soft); }
.pch__progress span { display: block; width: 0; height: 100%; background: var(--pch-accent); }

/* ---------- Užšie desktopy ---------- */
@media (max-width: 1240px) {
	.pch .pch__link { padding: 0 11px; font-size: 16px; }
	.pch .pch__link::after { left: 11px; right: 11px; }
	.pch__cols { gap: 32px; }
}

/* ---------- Tablet a mobil ---------- */
@media (max-width: 1024px) {
	:root { --pch-h: 64px; }
	.pch__bar { display: flex; justify-content: space-between; height: var(--pch-h); padding: 0 12px 0 16px; }
	.pch.is-compact .pch__bar { height: var(--pch-h); }
	.pch__logo img, .pch.is-compact .pch__logo img { height: 38px; }
	.pch__nav, .pch__cta--desktop { display: none; }
	.pch__actions { gap: 4px; }
	.pch .pch__icon-btn { border-color: transparent; }
	.pch .pch__burger { display: inline-flex; }
}
@media (max-width: 600px) {
	/* Na mobile admin lišta WordPressu nie je fixná. */
	.admin-bar .pch { top: 0; }
	.pch__search { top: calc(100% + 8px); border-radius: 16px; }
	.pch__search-form { padding: 12px; }
	.pch .pch__search-close span { display: none; }
	.pch .pch__search-close { width: 44px; padding: 0; justify-content: center; }
	.pch__r-group, .pch__r-foot { padding-left: 16px; padding-right: 16px; }
	.pch__r-hint { display: none; }
}

/* ---------- Mobilné menu ---------- */
.pch-drawer {
	position: fixed; inset: 0; top: var(--pch-top); z-index: 9995; background: var(--pch-bg);
	display: flex; flex-direction: column; animation: pch-in .18s ease;
}
@media (max-width: 600px) { .admin-bar .pch-drawer { top: 0; } }
.pch-drawer__top { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; }
.pch-drawer .pch__logo img { height: 38px; width: auto; display: block; }
.pch-drawer .pch-drawer__close { width: 44px; height: 44px; border-radius: 999px; background: var(--pch-field); display: flex; align-items: center; justify-content: center; }
.pch-drawer__search { position: relative; flex: none; margin: 4px 16px 12px; }
.pch-drawer__search .pch-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6b6d73; }
.pch-drawer .pch-drawer__search input {
	width: 100%; height: 48px; margin: 0; padding: 0 16px 0 44px; border-radius: 999px;
	border: 1px solid #e2e2ec; background: var(--pch-field); box-shadow: none;
	font-family: var(--pch-font-body); font-size: 16px; color: var(--pch-ink);
}
.pch-drawer__nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px; overscroll-behavior: contain; }
.pch-drawer .pch-d__row {
	width: 100%; min-height: 58px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between;
	border-bottom: 1px solid #ededf3; font-family: var(--pch-font-nav); font-size: 21px; font-weight: 700;
	color: var(--pch-ink); text-align: left;
}
.pch-drawer .pch-d__row .pch-ico { color: #6b6d73; transition: transform .2s ease; }
.pch-drawer .pch-d__row[aria-expanded="true"], .pch-drawer .pch-d__row.is-current { color: var(--pch-accent); }
.pch-drawer [aria-expanded="true"] > .pch-ico { transform: rotate(180deg); }
.pch-d__sub { padding: 4px 0 8px; border-bottom: 1px solid #ededf3; }
.pch-drawer .pch-d__cont {
	width: 100%; min-height: 52px; padding: 0 4px 0 14px; display: flex; align-items: center; gap: 10px;
	font-size: 17px; color: var(--pch-ink); text-align: left;
}
.pch-drawer .pch-d__cont .pch-ico { margin-left: auto; color: #6b6d73; transition: transform .2s ease; }
.pch-d__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 4px 16px 14px; }
.pch-drawer .pch-d__chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	border: 1px solid #e2e2ec; font-size: 15px; color: var(--pch-ink);
}
.pch-drawer .pch-d__chip:hover, .pch-drawer .pch-d__chip[aria-current="page"] { border-color: var(--pch-accent); color: var(--pch-accent-dark); background: #f6f6fc; }
.pch-drawer .pch-d__all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--pch-accent); }
.pch-drawer__bottom { flex: none; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 22px; border-top: 1px solid #ededf3; }
.pch-drawer .pch__cta--block { height: 52px; font-size: 17px; }
.pch-drawer .pch__cta--block .pch__badge { position: static; box-shadow: none; margin-left: 4px; }
.pch-drawer__social { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--pch-muted); }
.pch-drawer__social span { margin-right: 6px; }
.pch-drawer .pch-drawer__social a { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--pch-ink); }

@media (min-width: 1025px) { .pch-drawer { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
	.pch *, .pch-drawer, .pch-drawer * { transition: none !important; animation: none !important; }
}
