/* ==========================================================================
   BartekX – doplnkové štýly k theme.json
   ========================================================================== */

/* --- Hlavička ------------------------------------------------------------ */
.bx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: rgba(255, 255, 255, 0.86) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
}
body.admin-bar .bx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bx-header { top: 46px; } }

.bx-brand__link { display: inline-flex; align-items: center; text-decoration: none; }
.bx-brand__logo { height: 20px; width: auto; display: block; }
@media (max-width: 600px) { .bx-brand__logo { height: 17px; } }
.bx-footer .bx-brand__logo { height: 20px; }

/* Menu (statické HTML, nezávislé od navigačného bloku) */
.bx-nav { position: relative; display: flex; align-items: center; }
.bx-nav__list { display: flex; align-items: center; gap: var(--wp--preset--spacing--40); list-style: none; margin: 0; padding: 0; }
.bx-nav__list li { margin: 0; padding: 0; }
.bx-nav__list a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 600; padding: 0.25rem 0; white-space: nowrap; }
.bx-nav__list a:hover { color: var(--wp--preset--color--accent); }
.bx-burger {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--line); border-radius: 10px;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--navy); cursor: pointer; padding: 0;
}
.bx-burger svg { width: 22px; height: 22px; }
.bx-burger .bx-burger__close { display: none; }
.bx-nav.is-open .bx-burger .bx-burger__open { display: none; }
.bx-nav.is-open .bx-burger .bx-burger__close { display: block; }
@media (max-width: 900px) {
	.bx-burger { display: inline-flex; }
	.bx-nav__list {
		display: none; position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
		flex-direction: column; align-items: flex-start; gap: 0.35rem; min-width: 240px;
		padding: 1rem 1.25rem; border-radius: 14px;
		background: var(--wp--preset--color--navy); box-shadow: 0 24px 48px -24px rgba(11, 31, 51, 0.6);
	}
	.bx-nav.is-open .bx-nav__list { display: flex; }
	.bx-nav__list a { display: block; padding: 0.5rem 0; color: #fff; font-size: var(--wp--preset--font-size--large); }
	.bx-nav__list a:hover { color: var(--wp--preset--color--accent-light); }
}
/* CTA v hlavičke: na mobile skryť. Vyššia špecificita než WP `body .is-layout-flex { display:flex }`. */
@media (max-width: 900px) { body .bx-header .bx-header__cta.wp-block-buttons { display: none !important; } }

/* Prepínač jazyka */
.bx-lang { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; }
.bx-lang__link { padding: 0.3rem 0.45rem; border-radius: 6px; color: var(--wp--preset--color--muted); text-decoration: none; }
.bx-lang__link:hover { color: var(--wp--preset--color--accent); }
.bx-lang__link.is-active { color: var(--wp--preset--color--navy); background: var(--wp--preset--color--surface-2); }
.bx-footer .bx-lang__link { color: rgba(255, 255, 255, 0.7); }
.bx-footer .bx-lang__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* --- Spoločné prvky ------------------------------------------------------- */
.bx-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.75rem;
}
.bx-muted-dark { color: rgba(255, 255, 255, 0.72); }
.bx-lead { max-width: 46rem; }

/* Karty */
.bx-card,
.is-style-bx-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.bx-card:hover,
.is-style-bx-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -28px rgba(11, 31, 51, 0.45);
	border-color: var(--wp--preset--color--accent-light);
}
.bx-card--dark,
.is-style-bx-card-dark {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	color: #fff;
}
.bx-card--dark:hover,
.is-style-bx-card-dark:hover { border-color: rgba(127, 211, 234, 0.6); }

/* Ikony */
.bx-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--30);
}
.bx-icon svg { width: 26px; height: 26px; }
.bx-icon--accent { background: rgba(31, 162, 201, 0.18); color: var(--wp--preset--color--accent-light); }

/* Zoznam s fajkou */
.bx-list { list-style: none; padding-left: 0 !important; margin: 0; }
.bx-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.bx-list li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.5em;
	width: 0.75rem;
	height: 0.4rem;
	border-left: 2px solid var(--wp--preset--color--accent);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	transform: rotate(-45deg);
}

/* Chips */
.bx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.bx-chips li {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.85rem;
	font-weight: 600;
}

/* --- Hero ------------------------------------------------------------------ */
.bx-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 55% at 85% 15%, rgba(31, 162, 201, 0.38), transparent 70%),
		radial-gradient(ellipse 55% 60% at 5% 95%, rgba(19, 96, 126, 0.55), transparent 70%),
		var(--wp--preset--color--navy) !important;
}
.bx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.bx-hero > * { position: relative; z-index: 1; }
.bx-hero h1 { text-wrap: balance; }

.bx-hero-panel {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.bx-hero-panel__row {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bx-hero-panel__row:first-of-type { border-top: 0; }
.bx-hero-panel__row .bx-icon {
	width: 40px; height: 40px; border-radius: 10px; margin: 0; flex: none;
	background: rgba(31, 162, 201, 0.18); color: var(--wp--preset--color--accent-light);
}
.bx-hero-panel__row .bx-icon svg { width: 20px; height: 20px; }
.bx-hero-panel__row strong { display: block; font-weight: 700; }
.bx-hero-panel__row span { color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; }
.bx-status {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--wp--preset--color--accent-light);
}
.bx-status::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.2);
}

/* Štatistiky */
.bx-stat { min-width: 9rem; }
.bx-stat-number {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 0.3rem !important;
}
.bx-stat-label { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin: 0 !important; }

/* --- Proces ---------------------------------------------------------------- */
.bx-step { position: relative; }
.bx-step-number {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--accent-light);
	margin-bottom: 0.75rem !important;
}

/* --- Certifikácie ---------------------------------------------------------- */
.bx-badges { align-items: flex-start; }
.bx-badge { text-align: center; width: 142px; }
.bx-badge img { width: 100%; max-width: 120px; height: auto; margin: 0 auto; }
@media (max-width: 480px) { .bx-badge { width: calc(50% - var(--wp--preset--spacing--30)); } }
.bx-badge figure { margin-bottom: var(--wp--preset--spacing--20) !important; }
.bx-badge p { line-height: 1.35; }
.bx-badge p strong { color: var(--wp--preset--color--navy); }

/* --- Kontakt --------------------------------------------------------------- */
.bx-contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.bx-contact-card .bx-icon { width: 48px; height: 48px; border-radius: 12px; margin: 0; flex: none; }
.bx-contact-card p { margin: 0; }
.bx-contact-card p small {
	display: block; color: var(--wp--preset--color--muted);
	font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.2rem;
}
.bx-contact-card a { text-decoration: none; font-weight: 700; color: var(--wp--preset--color--navy); }
.bx-contact-card a:hover { color: var(--wp--preset--color--accent); }
.bx-contact-value { font-size: var(--wp--preset--font-size--large); font-weight: 700; color: var(--wp--preset--color--navy); }


/* --- Pätička --------------------------------------------------------------- */
.bx-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.bx-footer a:hover { color: var(--wp--preset--color--accent-light); }
.bx-footer-links { list-style: none; padding: 0 !important; margin: 0; }
.bx-footer-links li { margin-bottom: 0.5rem; }
.bx-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
}

/* --- Responzivita ---------------------------------------------------------- */
@media (max-width: 781px) {
	.bx-hero-panel { margin-top: var(--wp--preset--spacing--40); }
	.bx-stat { min-width: 8rem; }
}

/* Plynulý skrol na kotvy */
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bx-card, .bx-card:hover, .is-style-bx-card:hover { transition: none; transform: none; }
}
