/* Hlavička webu. Barvy, písmo a chování se nastavují ve Vzhled → Hlavička webu. */
:root{
	--rzh-bg:#1a3d25;
	--rzh-text:#ffffff;
	--rzh-accent:#c4913f;
	--rzh-btn-txt:#ffffff;
	--rzh-font:inherit;
	--rzh-h:96px;     /* výška hlavičky */
	--rzh-h-s:72px;   /* výška po odscrollování */
	--rzh-max:1460px; /* šířka obsahu – stejná jako šířka stránky v Elementoru */
	--rzh-pad:20px;   /* odsazení od okraje */
	--rzh-logo-h:64px; /* výška loga (nastavení) */
}
html{scroll-padding-top:calc(var(--rzh-h-s) + 16px)}

.rzh,.rzh *,.rzh-drawer,.rzh-drawer *{box-sizing:border-box}
.rzh-spacer{height:var(--rzh-h)}

/* Elementor / UAE: zrušit výchozí odsazení kontejneru, ve kterém je hlavička (jinak vznikne bílý pruh) */
.e-con:has(.rzh),.e-con-inner:has(.rzh),.elementor-section:has(.rzh) > .elementor-container,.elementor-column:has(.rzh) > .elementor-widget-wrap{padding:0!important;min-height:0!important;gap:0!important}
.elementor-widget:has(.rzh),.elementor-widget:has(.rzh) > .elementor-widget-container{margin:0!important;padding:0!important}
.elementor-widget-shortcode:has(.rzh) .elementor-shortcode{line-height:normal}

.rzh{
	position:relative;z-index:999;width:100%;
	background:var(--rzh-bg);color:var(--rzh-text);font-family:var(--rzh-font);
	transition:background-color .35s ease,box-shadow .35s ease,transform .35s ease;
}
.rzh--sticky{position:fixed;top:0;left:0;right:0}
body.admin-bar .rzh--sticky{top:32px}

/* Po odscrollování: lehce průhledné sklo, stín, menší výška */
.rzh.is-scrolled{box-shadow:0 10px 30px -12px rgba(0,0,0,.45)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) and (background:color-mix(in srgb,red 50%,transparent)){
	.rzh.is-scrolled{background:color-mix(in srgb,var(--rzh-bg) 94%,transparent);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%)}
}
.rzh--autohide.is-hidden{transform:translateY(-110%)}

.rzh__in{
	max-width:var(--rzh-max);height:var(--rzh-h);margin:0 auto;padding:0 var(--rzh-pad);
	display:flex;align-items:center;gap:48px;transition:height .35s ease
}
.rzh.is-scrolled .rzh__in{height:var(--rzh-h-s)}

/* Logo */
.rzh__logo{flex:none;display:flex;align-items:center;text-decoration:none;color:inherit}
.rzh .rzh__logo .rzh__logo-img{
	display:block;height:var(--rzh-logo-h)!important;width:auto!important;max-width:none!important;max-height:none!important;
	margin:0;object-fit:contain;transition:height .35s ease
}
.rzh.is-scrolled .rzh__logo .rzh__logo-img{height:calc(var(--rzh-logo-h) * .75)!important}
.rzh--logobox .rzh__logo .rzh__logo-img{background:#fff;padding:4px 8px;border-radius:4px;box-sizing:content-box}
.rzh__logo-text{font-size:20px;font-weight:700;letter-spacing:.01em}

/* Menu */
.rzh__nav{flex:1;display:flex;justify-content:center;min-width:0}
.rzh .rzh__menu{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.rzh .rzh__menu li{position:relative;margin:0;padding:0;list-style:none}
.rzh .rzh__menu a{
	position:relative;display:block;padding:10px 16px;
	color:var(--rzh-text);font-size:15.5px;font-weight:500;line-height:1.2;text-decoration:none;white-space:nowrap;
	opacity:.92;transition:color .2s ease,opacity .2s ease
}
.rzh .rzh__menu > li > a::after{
	content:"";position:absolute;left:16px;right:16px;bottom:2px;height:2px;border-radius:2px;
	background:var(--rzh-accent);transform:scaleX(0);transform-origin:left center;transition:transform .3s cubic-bezier(.2,.7,.2,1)
}
.rzh .rzh__menu a:hover,.rzh .rzh__menu a:focus-visible{opacity:1;color:var(--rzh-text)}
.rzh .rzh__menu > li > a:hover::after,.rzh .rzh__menu > li > a:focus-visible::after{transform:scaleX(1)}
.rzh .rzh__menu .current-menu-item > a,.rzh .rzh__menu .current_page_item > a,.rzh .rzh__menu .current-menu-ancestor > a,.rzh .rzh__menu .is-active > a{color:var(--rzh-accent);opacity:1}
.rzh .rzh__menu .current-menu-item > a::after,.rzh .rzh__menu .current_page_item > a::after,.rzh .rzh__menu .current-menu-ancestor > a::after,.rzh .rzh__menu .is-active > a::after{transform:scaleX(1)}
/* Na jednostránkovém webu řídí zvýraznění poloha na stránce, ne WordPress */
html.rzh-spy .rzh .rzh__menu li:not(.is-active) > a[href*="#"]{color:var(--rzh-text);opacity:.92}
html.rzh-spy .rzh .rzh__menu > li:not(.is-active) > a[href*="#"]::after{transform:scaleX(0)}
html.rzh-spy .rzh .rzh__menu > li:not(.is-active) > a[href*="#"]:hover::after{transform:scaleX(1)}
.rzh a:focus-visible,.rzh button:focus-visible,.rzh-drawer a:focus-visible{outline:2px solid var(--rzh-accent);outline-offset:3px;border-radius:2px}

/* Podmenu */
.rzh .rzh__menu .menu-item-has-children > a{padding-right:28px}
.rzh .rzh__menu .menu-item-has-children > a::before{
	content:"";position:absolute;right:13px;top:50%;width:6px;height:6px;margin-top:-5px;
	border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)
}
.rzh .rzh__menu .sub-menu{
	position:absolute;top:100%;left:0;min-width:220px;margin:0;padding:8px;list-style:none;
	background:var(--rzh-bg);border-radius:8px;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);
	opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s
}
.rzh .rzh__menu li:hover > .sub-menu,.rzh .rzh__menu li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.rzh .rzh__menu .sub-menu a{padding:10px 12px;border-radius:4px;font-size:15px}
.rzh .rzh__menu .sub-menu a:hover{background:rgba(255,255,255,.08)}

/* Telefon a tlačítko */
.rzh__actions{flex:none;display:flex;align-items:center;gap:30px}
.rzh__phone,.rzh-drawer .rzh__phone{
	display:inline-flex;align-items:center;gap:9px;color:var(--rzh-text);text-decoration:none;
	font-size:15.5px;font-weight:500;white-space:nowrap;transition:color .2s ease
}
.rzh__phone svg{flex:none;opacity:.85}
.rzh__phone:hover,.rzh-drawer .rzh__phone:hover{color:var(--rzh-accent)}
.rzh__cta,.rzh-drawer .rzh__cta{
	display:inline-flex;align-items:center;justify-content:center;gap:10px;
	padding:14px 22px;border-radius:4px;background:var(--rzh-accent);color:var(--rzh-btn-txt);
	font-size:14px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;text-decoration:none;white-space:nowrap;line-height:1;
	box-shadow:0 6px 18px -8px rgba(0,0,0,.45);transition:filter .2s ease,transform .2s ease,box-shadow .2s ease
}
.rzh__cta svg{transition:transform .25s ease}
.rzh__cta:hover,.rzh-drawer .rzh__cta:hover{color:var(--rzh-btn-txt);filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 10px 22px -8px rgba(0,0,0,.5)}
.rzh__cta:hover svg{transform:translateX(3px)}

/* Hamburger */
.rzh .rzh__burger{
	display:none;position:relative;width:46px;height:46px;margin:0 -8px 0 0;padding:0;
	background:transparent;border:0;border-radius:6px;cursor:pointer;color:var(--rzh-text);box-shadow:none
}
.rzh .rzh__burger:hover{background:rgba(255,255,255,.08)}
.rzh__burger span{position:absolute;left:12px;right:12px;height:2px;border-radius:2px;background:currentColor;transition:transform .3s ease,opacity .2s ease,top .3s ease}
.rzh__burger span:nth-child(1){top:16px}
.rzh__burger span:nth-child(2){top:22px}
.rzh__burger span:nth-child(3){top:28px;left:20px}
.rzh__burger[aria-expanded="true"] span:nth-child(1){top:22px;transform:rotate(45deg)}
.rzh__burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.rzh__burger[aria-expanded="true"] span:nth-child(3){top:22px;left:12px;transform:rotate(-45deg)}

/* Mobilní panel */
.rzh-drawer{
	position:fixed;inset:0;z-index:998;visibility:hidden;overflow:hidden;
	background:rgba(8,20,12,0);transition:background-color .35s ease,visibility .35s
}
.rzh-drawer.is-open{visibility:visible;background:rgba(8,20,12,.5)}
.rzh-drawer__panel{
	position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);overflow-y:auto;
	display:flex;flex-direction:column;padding:calc(var(--rzh-h-s) + 24px) 28px 32px;
	background:var(--rzh-bg);color:var(--rzh-text);font-family:var(--rzh-font);
	transform:translateX(100%);transition:transform .4s cubic-bezier(.2,.7,.2,1)
}
.rzh-drawer.is-open .rzh-drawer__panel{transform:none}
.rzh-drawer .rzh__menu{list-style:none;margin:0;padding:0}
.rzh-drawer .rzh__menu li{margin:0;padding:0;list-style:none}
.rzh-drawer .rzh__menu > li{border-bottom:1px solid rgba(255,255,255,.12);opacity:0;transform:translateX(16px);transition:opacity .35s ease,transform .35s ease}
.rzh-drawer.is-open .rzh__menu > li{opacity:1;transform:none}
.rzh-drawer.is-open .rzh__menu > li:nth-child(1){transition-delay:.08s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(2){transition-delay:.12s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(3){transition-delay:.16s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(4){transition-delay:.2s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(5){transition-delay:.24s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(6){transition-delay:.28s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(7){transition-delay:.32s}
.rzh-drawer.is-open .rzh__menu > li:nth-child(n+8){transition-delay:.36s}
.rzh-drawer .rzh__menu a{display:flex;align-items:center;justify-content:space-between;padding:16px 2px;color:var(--rzh-text);font-size:21px;font-weight:500;text-decoration:none}
.rzh-drawer .rzh__menu > li > a::after{content:"→";font-size:18px;opacity:.35;transition:transform .2s ease,opacity .2s ease}
.rzh-drawer .rzh__menu > li > a:hover::after{opacity:1;transform:translateX(4px)}
.rzh-drawer .rzh__menu .current-menu-item > a,.rzh-drawer .rzh__menu .current_page_item > a,.rzh-drawer .rzh__menu .is-active > a{color:var(--rzh-accent)}
html.rzh-spy .rzh-drawer .rzh__menu li:not(.is-active) > a[href*="#"]{color:var(--rzh-text)}
.rzh-drawer .rzh__menu .sub-menu{list-style:none;margin:-6px 0 12px;padding:0 0 0 14px;border-left:1px solid rgba(255,255,255,.15)}
.rzh-drawer .rzh__menu .sub-menu a{font-size:17px;padding:8px 2px;opacity:.85}
.rzh-drawer__foot{margin-top:auto;padding-top:32px;display:flex;flex-direction:column;gap:18px}
.rzh-drawer__foot .rzh__phone{font-size:18px}
.rzh-drawer__foot .rzh__cta{width:100%;padding:18px 22px;font-size:15px}
html.rzh-open,html.rzh-open body{overflow:hidden}

/* V editoru Elementoru hlavička nepluje přes obsah */
.elementor-editor-active .rzh--sticky{position:relative;top:auto}
.elementor-editor-active .rzh-spacer{display:none}

/* ---- Responzivita ---- */
@media (max-width:1280px){
	.rzh__in{gap:28px}
	.rzh .rzh__menu a{padding:10px 10px;font-size:15px}
	.rzh .rzh__menu > li > a::after{left:10px;right:10px}
	.rzh__actions{gap:20px}
}
/* Telefon jen jako ikona */
@media (max-width:1180px){
	.rzh .rzh__phone{width:44px;height:44px;justify-content:center;border:1px solid rgba(255,255,255,.25);border-radius:50%}
	.rzh .rzh__phone span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.rzh .rzh__phone svg{opacity:1}
}
/* Tablet: menu do hamburgeru */
@media (max-width:1024px){
	:root{--rzh-h:76px;--rzh-h-s:66px}
	.rzh__nav{display:none}
	.rzh .rzh__burger{display:block}
	.rzh__actions{margin-left:auto;gap:12px}
	.rzh .rzh__logo .rzh__logo-img{height:min(var(--rzh-logo-h),46px)!important}
	.rzh.is-scrolled .rzh__logo .rzh__logo-img{height:min(var(--rzh-logo-h),40px)!important}
}
@media (max-width:782px){
	body.admin-bar .rzh--sticky{top:46px}
}
/* Mobil */
@media (max-width:600px){
	:root{--rzh-h:68px;--rzh-h-s:62px}
	.rzh__in{padding:0 16px}
	.rzh .rzh__logo .rzh__logo-img{height:min(var(--rzh-logo-h),40px)!important}
	.rzh.is-scrolled .rzh__logo .rzh__logo-img{height:min(var(--rzh-logo-h),36px)!important}
	.rzh .rzh__cta{display:none}
	.rzh .rzh__phone{width:42px;height:42px}
	.rzh-drawer__panel{padding:calc(var(--rzh-h) + 16px) 20px 28px}
	.rzh-drawer .rzh__menu a{font-size:19px;padding:15px 2px}
}

@media (prefers-reduced-motion:reduce){
	.rzh,.rzh *,.rzh-drawer,.rzh-drawer *{transition:none!important}
}
