/* ============================================================================
   home.css — domovská stránka: hero, polaroid kategórie, odporúčané, curvebox.
   Načítava sa len na front-page (functions.php → lucide_sk_enqueue_front).
   ========================================================================== */

/* ---- HERO ----------------------------------------------------------------- */
.lu-hero {
	position: relative;
	display: grid;
	place-items: center;
}

/* jemný gradient odspodu, aby text sedel na fotke aj pri svetlom zábere */
.lu-hero .wp-block-cover__background {
	background: linear-gradient(
		180deg,
		rgba(14, 14, 14, 0.35) 0%,
		rgba(14, 14, 14, 0.25) 45%,
		rgba(14, 14, 14, 0.55) 100%
	) !important;
	opacity: 1 !important;
}

.lu-hero__title {
	font-size: clamp(1.9rem, 4.6vw, 3.4rem);
	line-height: 1.12;
	margin-bottom: 0.35em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
	text-wrap: balance;
}

.lu-hero__sub {
	max-width: 46ch;
	margin-inline: auto;
	margin-bottom: 1.6em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
	font-weight: 300;
}

.lu-hero .wp-block-buttons { gap: 14px; }

.lu-hero .lu-btn--light .wp-block-button__link {
	background: var(--lu-white, #fff);
	color: var(--lu-ink, #333);
	border: 1px solid var(--lu-white, #fff);
	border-radius: 2px;
	padding: 0.8em 2.1em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
	transition: background 0.2s ease, color 0.2s ease;
}
.lu-hero .lu-btn--light .wp-block-button__link:hover {
	background: var(--lu-cream, #f4e2d0);
	border-color: var(--lu-cream, #f4e2d0);
	color: var(--lu-ink, #333);
}

.lu-hero .lu-btn--ghost .wp-block-button__link {
	background: transparent;
	color: var(--lu-white, #fff);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 2px;
	padding: 0.8em 2.1em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
	transition: background 0.2s ease, color 0.2s ease;
}
.lu-hero .lu-btn--ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.92);
	color: var(--lu-ink, #333);
}

/* ---- nadpisy sekcií: krémová linka pod centrovaným H2 --------------------- */
.lu-section > h2 {
	position: relative;
	padding-bottom: 18px;
	margin-bottom: clamp(22px, 4vw, 42px);
	letter-spacing: 0.02em;
}
.lu-section > h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 3px;
	background: var(--lu-cream-deep, #e8c9a8);
}

/* ---- KATEGÓRIE — polaroid dlaždice ---------------------------------------- */
.lu-polaroids {
	gap: clamp(16px, 2.4vw, 28px);
}

.lu-polaroid {
	background: var(--lu-white, #fff);
	padding: 10px 10px 0;
	box-shadow: 0 1px 3px rgba(14, 14, 14, 0.1), 0 8px 24px rgba(14, 14, 14, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lu-polaroid:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 6px rgba(14, 14, 14, 0.12), 0 18px 42px rgba(14, 14, 14, 0.16);
}

.lu-polaroid__img,
.lu-polaroid__img a,
.lu-polaroid__placeholder {
	display: block;
	margin: 0;
	overflow: hidden;
}

.lu-polaroid__img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.lu-polaroid:hover .lu-polaroid__img img {
	transform: scale(1.045);
}

/* zástupné pole, kým kategória nemá fotku */
.lu-polaroid__placeholder {
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #17171a 0%, #2c2c31 100%);
	text-decoration: none;
}
.lu-polaroid__wordmark {
	color: var(--lu-cream, #f4e2d0);
	font-family: var(--lu-font-display);
	letter-spacing: 0.42em;
	font-size: 0.95rem;
}

.lu-polaroid__label {
	margin: 0;
	padding: 14px 6px 16px;
}
.lu-polaroid__label a {
	text-decoration: none;
	color: var(--lu-ink, #333);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.lu-polaroid__label a:hover {
	color: var(--lu-ink-soft, #666);
}

/* ---- ODPORÚČAME ----------------------------------------------------------- */
.lu-section--featured .lu-grid {
	margin-top: 8px;
}

/* ---- ZNAČKOVÝ BLOK (curvebox) --------------------------------------------- */
.lu-curvebox {
	position: relative;
	overflow: hidden;
}

/* dve jemné vlnovky ako na lucide.com d2c vrstve — čisté CSS, žiadny asset */
.lu-curvebox::before,
.lu-curvebox::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(14, 14, 14, 0.07);
	pointer-events: none;
}
.lu-curvebox::before {
	width: 520px;
	height: 520px;
	top: -320px;
	left: -180px;
}
.lu-curvebox::after {
	width: 680px;
	height: 680px;
	bottom: -460px;
	right: -240px;
}

.lu-counters {
	margin-top: clamp(18px, 3vw, 34px);
}

.lu-counter__number {
	font-family: var(--lu-font-display);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 2px;
	letter-spacing: 0.01em;
}

/* ---- SPLÁTKOVÝ BANNER (tatrapay+) ----------------------------------------
   Fotka je pozadie sekcie; text sedí v tmavom paneli, ktorý na desktope leží
   na ľavej tretine snímky a na mobile sa presunie pod ňu (fotka by inak text
   prekryla). Panel je nepriehľadný, aby kontrast nezávisel od jasu fotky.  */
.lu-splatky {
	position: relative;
	overflow: hidden;
	min-height: clamp(360px, 42vw, 520px);
	display: grid;
	align-items: center;
	background: #12100e;
	margin-block: clamp(24px, 4vw, 56px);
}

.lu-splatky__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 45%;
}

.lu-splatky::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 9, 8, 0.94) 0%,
		rgba(10, 9, 8, 0.86) 34%,
		rgba(10, 9, 8, 0.45) 58%,
		rgba(10, 9, 8, 0.15) 100%
	);
	pointer-events: none;
}

.lu-splatky__panel {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin-inline-start: max(var(--lu-gutter, 20px), calc((100vw - 1440px) / 2 + 40px));
	padding-block: clamp(28px, 4vw, 48px);
	padding-inline-end: var(--lu-gutter, 20px);
	color: #fff;
}

.lu-splatky__kicker {
	margin: 0 0 8px;
	font-size: 0.72rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--lu-cream, #f4e2d0);
}

.lu-splatky__title {
	margin: 0 0 12px;
	font-family: var(--lu-font-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3.2vw, 2.5rem);
	line-height: 1.14;
	color: #fff;
	text-wrap: balance;
}

.lu-splatky__text {
	margin: 0 0 18px;
	font-size: 0.98rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}
.lu-splatky__text strong { color: #fff; }

/* príklad splátky — krémový pásik, aby číslo bolo prvé, čo oko chytí */
.lu-splatky__example {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding: 12px 18px;
	margin-bottom: 22px;
	background: var(--lu-cream, #f4e2d0);
	color: var(--lu-ink, #2b2b2b);
	border-radius: 3px;
}
.lu-splatky__example-label {
	flex-basis: 100%;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a6a58;
}
.lu-splatky__example-price {
	font-size: 1.05rem;
	text-decoration: line-through;
	color: #8a7b69;
}
.lu-splatky__example-sep { color: #8a7b69; }
.lu-splatky__example-rate {
	font-family: var(--lu-font-display);
	font-weight: 700;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	color: #14120f;
}

.lu-splatky__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.lu-splatky__cta {
	display: inline-block;
	padding: 0.85em 2.1em;
	background: #fff;
	color: var(--lu-ink, #2b2b2b);
	text-decoration: none;
	border-radius: 2px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.2s ease, transform 0.2s ease;
}
.lu-splatky__cta:hover {
	background: var(--lu-cream, #f4e2d0);
	transform: translateY(-1px);
}

.lu-splatky__logo {
	height: 30px;
	width: auto;
	background: #fff;
	border-radius: 4px;
	padding: 6px 12px;
	box-sizing: content-box;
}

.lu-splatky__note {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
	max-width: 46ch;
}

/* mobil: fotka hore, text pod ňou — na úzkom paneli by bola nečitateľná */
@media (max-width: 781px) {
	.lu-splatky {
		display: block;
		min-height: 0;
	}
	.lu-splatky__bg {
		position: relative;
		height: clamp(180px, 46vw, 280px);
	}
	.lu-splatky::after { content: none; }
	.lu-splatky__panel {
		max-width: none;
		margin-inline-start: 0;
		padding-inline: var(--lu-gutter, 20px);
		padding-block: 26px 30px;
	}
}
