/**
 * Pätička — benab-style, farby z Elementor kitu:
 * Footer Background #102E1F, Footer Text #879892, nadpisy biele,
 * hover zelená #00BF63.
 *
 * Mobile (< 640px): stĺpce s odkazmi sa skladajú do accordionov —
 * nadpis je button, otvorenie prepína .is-open na .px-footer__col
 * (assets/js/footer.js), výška sa animuje cez grid-template-rows.
 */

.px-footer {
	--pxf-bg: 16 46 31;
	--pxf-text: 135 152 146;
	--pxf-accent: 0 191 99;
	--pxf-heading: 255 255 255;   /* nadpisy a zvyraznene odkazy */
	--pxf-line: 255 255 255;      /* zaklad borderov (alpha pri pouziti) */

	background: rgb(var(--pxf-bg));
	color: rgb(var(--pxf-text));
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-top: 4rem;
	border-top: 3px solid rgb(var(--pxf-accent));
}

.px-footer *,
.px-footer *::before,
.px-footer *::after {
	box-sizing: border-box;
}

.px-footer__container {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 90rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.px-footer__container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
	.px-footer__container { padding-left: 2rem; padding-right: 2rem; }
}

.px-footer__main {
	display: grid;
	gap: 2rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.px-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.px-footer__main {
		grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
		gap: 2.5rem;
	}
}

.px-footer__brand img {
	max-width: 11rem;
	height: auto;
}

.px-footer__brand p {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	max-width: 26rem;
}

.px-footer__points {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.px-footer__points img {
	height: 1.75rem;
	width: auto;
	display: inline-block;
}

.px-footer__social {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.px-footer__social a {
	color: rgb(var(--pxf-text));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--pc-radius-pill);
	border: 1px solid rgb(var(--pxf-line) / 0.12);
	transition: color 0.15s, border-color 0.15s;
}

.px-footer__social a:hover {
	color: rgb(var(--pxf-accent));
	border-color: rgb(var(--pxf-accent));
}

.px-footer__social svg {
	width: 1.125rem;
	height: 1.125rem;
}

.px-footer__heading {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgb(var(--pxf-heading));
}

/* Nadpis je button kvôli mobilným accordionom — na desktope inertný */
.px-footer__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.px-footer__chevron {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	transition: transform 0.25s;
}

.px-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Vo footeri len prvá úroveň — pod-menu polia skryť */
.px-footer__menu .sub-menu {
	display: none;
}

.px-footer__menu li {
	margin-bottom: 0.5rem;
}

.px-footer__menu a {
	display: inline-block;
	padding: 0.125rem 0;
}

.px-footer__contacts a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.px-footer__contacts .px-footer__icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: rgb(var(--pxf-accent));
}

.px-footer a {
	color: rgb(var(--pxf-text));
	text-decoration: none;
	transition: color 0.15s;
}

.px-footer a:hover {
	color: rgb(var(--pxf-accent));
}

.px-footer .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Desktop / tablet: accordiony vypnuté, obsah vždy viditeľný ---- */
@media (min-width: 640px) {
	.px-footer__toggle {
		pointer-events: none;
	}

	.px-footer__chevron {
		display: none;
	}
}

/* ---- Mobile: stĺpce ako accordiony ---- */
@media (max-width: 639.98px) {
	.px-footer__main {
		gap: 0;
		padding-top: 2rem;
		padding-bottom: 1rem;
	}

	.px-footer__brand {
		margin-bottom: 1.5rem;
	}

	.px-footer__col {
		border-top: 1px solid rgb(var(--pxf-line) / 0.08);
	}

	.px-footer__col:last-child {
		border-bottom: 1px solid rgb(var(--pxf-line) / 0.08);
	}

	.px-footer__heading {
		margin: 0;
	}

	.px-footer__toggle {
		padding: 1rem 0;
		min-height: 3rem;
	}

	.px-footer__body {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.25s ease;
	}

	.px-footer__body > * {
		overflow: hidden;
		min-height: 0;
	}

	.px-footer__col.is-open .px-footer__body {
		grid-template-rows: 1fr;
	}

	.px-footer__col.is-open .px-footer__chevron {
		transform: rotate(180deg);
	}

	/* Medzera pod otvoreným zoznamom ako margin poslednej položky, nie
	   padding na ul: vlastný padding elementu drží 0fr riadok na 1rem
	   výšky aj v zavretom stave — accordiony by nedovreli. */
	.px-footer__menu li:last-child {
		margin-bottom: 1rem;
	}
}

/* ---- Spodný pruh ---- */
.px-footer__bottom {
	border-top: 1px solid rgb(var(--pxf-line) / 0.08);
}

.px-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.px-footer__copy,
.px-footer__credit {
	margin: 0;
	font-size: 0.8125rem;
}

.px-footer__credit a {
	color: rgb(var(--pxf-heading));
	font-weight: 600;
}

.px-footer__credit a:hover {
	color: rgb(var(--pxf-accent));
}

.px-footer__payments {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.px-footer__payments img {
	height: 1.5rem;
	width: auto;
	display: block;
}

@media (max-width: 639.98px) {
	.px-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}
