/* Kalibrovat.cz — jednotná hlavička a patička (2026).
   Vkládá se do všech stránek při buildu (eleventy.config.js → applyShell). */

:root {
	--kx-navy: #001a33;
	--kx-navy-2: #0b2a4a;
	--kx-blue: #007ade;
	--kx-blue-d: #0059a3;
	--kx-blue-l: #e5f1fb;
	--kx-ink: #1f2937;
	--kx-muted: #64748b;
	--kx-line: #e5e7eb;
	--kx-bg: #f6f8fb;
	--kx-amber: #ffb400;
	--kx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ---------- HEADER ---------- */
.kx-header {
	position: sticky; top: 0; z-index: 1000;
	font-family: var(--kx-font); font-size: 15px; line-height: 1.4;
	background: #fff; color: var(--kx-ink);
	box-shadow: 0 1px 0 var(--kx-line);
	transition: box-shadow .2s;
}
.kx-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 26, 51, .25); }
.kx-header *, .kx-footer * { box-sizing: border-box; }
.kx-header a, .kx-footer a { text-decoration: none; }
.kx-header svg, .kx-footer svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.kx-topbar { background: var(--kx-navy); color: rgba(255, 255, 255, .78); font-size: 13px; }
.kx-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.kx-topbar a { color: rgba(255, 255, 255, .78) !important; display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.kx-topbar a:hover { color: #fff !important; }
.kx-topbar svg { width: 14px; height: 14px; }
.kx-topbar-contact, .kx-topbar-links { display: flex; gap: 22px; align-items: center; }
.kx-topbar-links a { font-weight: 600; }

.kx-bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.kx-logo { display: inline-flex; flex-shrink: 0; }
.kx-logo img { display: block; width: 190px !important; height: auto !important; max-width: none; }

.kx-nav { flex: 1; min-width: 0; }
.kx-menu { display: flex; align-items: center; gap: 2px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.kx-menu > li { position: relative; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.kx-menu > li::before { content: none !important; }
.kx-menu > li > a {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 10px 13px; border-radius: 0;
	font-size: 15px; font-weight: 600; color: var(--kx-ink) !important;
	white-space: nowrap; transition: background .15s, color .15s;
}
.kx-menu > li > a:hover, .kx-menu > li:focus-within > a { background: var(--kx-bg); color: var(--kx-blue-d) !important; }
.kx-menu > li > a.is-active { color: var(--kx-blue) !important; }
.kx-menu > li > a.is-active::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
	height: 2px; border-radius: 0; background: var(--kx-blue);
}
.kx-caret { width: 14px; height: 14px; stroke-width: 2.5 !important; opacity: .6; transition: transform .2s; }

.kx-sub {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 10;
	min-width: 320px; padding: 8px;
	background: #fff; border: 1px solid var(--kx-line); border-radius: 0;
	box-shadow: 0 24px 48px -16px rgba(0, 26, 51, .28);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s, transform .16s, visibility .16s;
}
.kx-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.kx-has-sub:hover > .kx-sub, .kx-has-sub:focus-within > .kx-sub, .kx-has-sub.is-open > .kx-sub { opacity: 1; visibility: visible; transform: none; }
.kx-has-sub:hover .kx-caret, .kx-has-sub.is-open .kx-caret { transform: rotate(180deg); }
.kx-sub a { display: block; padding: 10px 12px; border-radius: 0; color: var(--kx-ink) !important; font-size: 14px; transition: background .12s; }
.kx-sub a:hover { background: var(--kx-blue-l); color: var(--kx-blue-d) !important; }
.kx-sub a strong { display: block; font-weight: 700; font-size: 14.5px; }
.kx-sub a span { display: block; color: var(--kx-muted); font-size: 12.5px; margin-top: 1px; }
.kx-sub-wide { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 4px 8px; min-width: 620px; padding: 14px; }
.kx-sub-wide a { padding: 7px 10px; font-weight: 500; }
.kx-sub-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--kx-muted); padding: 4px 10px 6px; }

.kx-nav-extra { display: none; }

.kx-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kx-icon-btn {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important;
	color: var(--kx-ink) !important; cursor: pointer; transition: background .15s;
	box-shadow: none !important; min-width: 0 !important; float: none !important;
}
.kx-icon-btn:hover { background: var(--kx-bg) !important; color: var(--kx-blue-d) !important; }
.kx-icon-btn svg { width: 20px; height: 20px; }
.kx-search { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; position: relative; }
.kx-search input {
	width: 0 !important; min-width: 0 !important; opacity: 0; height: 40px !important;
	padding: 0 !important; margin: 0 !important;
	border: 1px solid transparent !important; border-radius: 0 !important;
	background: var(--kx-bg) !important; color: var(--kx-ink) !important;
	font: 500 14px var(--kx-font) !important; box-shadow: none !important;
	transition: width .2s, opacity .2s, padding .2s;
}
.kx-search.is-open input, .kx-search input:focus {
	width: 210px !important; opacity: 1; padding: 0 12px !important;
	border-color: var(--kx-line) !important; outline: none !important;
}
.kx-cta {
	display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
	border-radius: 0; background: var(--kx-blue); color: #fff !important;
	font-weight: 700; font-size: 15px; white-space: nowrap;
	transition: background .15s, transform .15s;
}
.kx-cta:hover { background: var(--kx-blue-d); transform: translateY(-1px); }
.kx-burger { display: none !important; }

@media (max-width: 1100px) {
	.kx-topbar { display: none; }
	.kx-bar { min-height: 64px; gap: 12px; justify-content: space-between; }
	.kx-logo img { width: 160px !important; }
	.kx-burger { display: inline-flex !important; }
	.kx-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - 64px); overflow-y: auto;
		background: #fff; border-top: 1px solid var(--kx-line);
		box-shadow: 0 24px 48px -16px rgba(0, 26, 51, .3); padding: 10px 16px 20px;
	}
	.kx-header.is-open .kx-nav { display: block; }
	.kx-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.kx-menu > li > a { display: flex; justify-content: space-between; padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--kx-line); }
	.kx-menu > li > a.is-active::after { content: none; }
	.kx-sub, .kx-sub-wide {
		position: static; display: none; opacity: 1; visibility: visible; transform: none;
		min-width: 0; border: 0; box-shadow: none; border-radius: 0; padding: 6px 0 10px 10px;
		grid-template-columns: 1fr; background: var(--kx-bg);
	}
	.kx-has-sub:hover > .kx-sub { display: none; }
	.kx-has-sub.is-open > .kx-sub { display: block; }
	.kx-sub-title:empty, .kx-sub-col .kx-sub-title { display: none; }
	.kx-nav-extra { display: grid; gap: 2px; padding-top: 14px; }
	.kx-nav-extra a { padding: 10px 8px; color: var(--kx-blue-d) !important; font-weight: 600; }
	.kx-search.is-open input, .kx-search input:focus { width: 150px !important; }
}
@media (max-width: 520px) {
	.kx-cta { display: none; }
	.kx-search.is-open input, .kx-search input:focus { width: 130px !important; }
}

/* ---------- FOOTER ---------- */
.kx-footer {
	font-family: var(--kx-font); font-size: 14px; line-height: 1.55;
	background: var(--kx-navy); color: rgba(255, 255, 255, .72);
	margin-top: 72px; padding-bottom: 8px; clear: both;
}
.kx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 22px; border-radius: 0;
	font: 700 15px var(--kx-font); white-space: nowrap; cursor: pointer;
	transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.kx-btn:hover { transform: translateY(-1px); }
.kx-btn-light { background: #fff; color: var(--kx-blue-d) !important; }
.kx-btn-outline { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff !important; }
.kx-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.kx-footer-grid { display: grid; grid-template-columns: 1.7fr 1.1fr 1fr .8fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.kx-footer-grid a { display: block; padding: 4px 0; color: rgba(255, 255, 255, .72) !important; transition: color .15s; }
.kx-footer-grid a:hover { color: #fff !important; }
.kx-footer-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.kx-footer-logo { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: #fff !important; padding: 0 !important; }
.kx-footer-logo span { color: #5db4f5; }
.kx-footer-brand p { margin: 12px 0 14px !important; max-width: 340px; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
.kx-footer-brand a:not(.kx-footer-logo) { font-weight: 600; color: #fff !important; }
.kx-footer-bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 18px !important; padding-bottom: 18px !important;
	border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55);
}
@media (max-width: 960px) {
	.kx-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.kx-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Starší stránky se šablonou Xtra: sjednocení se zbytkem webu ---------- */
body.wp-theme-xtra { font-family: var(--kx-font) !important; color: var(--kx-ink); }
body.wp-theme-xtra .cz_fixed_top_border, body.wp-theme-xtra .cz_fixed_bottom_border { display: none !important; }
