/* ==========================================================================
   Footer - Theme Options -> Footer
   ========================================================================== */

/* Barvy (pozadí, text, nadpisy) se vypisují jako inline <style> přímo v
   <head> (core/scripts/exp-footer.php - exp_footer_inline_style()), vždy
   s !important, protože je přepisují jiné styly šablony. Tady zůstává jen
   layout a neutrální výchozí vzhled. */

/* --------------------------------------------------------------------------
   Widgety - grid (desktop) + accordion (mobil, jen pokud aktivováno)
   -------------------------------------------------------------------------- */

.exp-footer-widgets-grid {
	width: 100%;
}

.exp-footer-widgets-accordion {
	display: none;
	width: 100%;
}

.exp-footer-accordion-item {
	border-bottom: 1px solid rgba( 128, 128, 128, 0.25 );
}

.exp-footer-accordion-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 4px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
}

.exp-footer-accordion-arrow {
	display: inline-block;
	flex-shrink: 0;
	margin-left: 12px;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.exp-footer-accordion-item.is-open .exp-footer-accordion-arrow {
	transform: rotate(225deg);
}

.exp-footer-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.exp-footer-accordion-panel-inner {
	padding: 0 4px 16px;
}

/* --------------------------------------------------------------------------
   Copyright řádek
   -------------------------------------------------------------------------- */

body .exp_footer_area {
	position: relative;
	padding: var(--cr-pad, 22px) 0;
	background: #0c0d11;
	border-top: 1px solid var(--cr-border, rgba(255, 255, 255, .08));
	color: var(--cr-text, rgba(255, 255, 255, .6));
	font-size: var(--cr-fs, 14px);
	line-height: 1.6;
}
.exp_footer_area .container::before, .exp_footer_area .container::after { content: none; display: none; }
.exp_footer_area p, .exp_footer_area span { margin: 0; color: inherit; font-size: inherit; }
.exp_footer_area a { color: var(--cr-link, rgba(255, 255, 255, .85)); text-decoration: none; transition: color .2s; }
.exp_footer_area a:hover { color: var(--cr-hover, #fff); }
.exp-footer-logo img { max-height: 44px; width: auto; }
.exp_footer_area .exp-lang-inline a { color: var(--cr-link, rgba(255, 255, 255, .85)); }

.exp-footer-copyright-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}

.exp-footer-copyright-row.exp-footer-copyright-center {
	justify-content: center;
	text-align: center;
	flex-direction: column;
}

.exp-footer-logo img {
	display: block;
	max-width: 100%;
}

.exp-footer-credits p {
	margin: 0;
}

.exp-footer-credit-link {
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Sociální ikony
   -------------------------------------------------------------------------- */

.exp-footer-social {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Šipka nahoru (back to top) s ringem, který se plní podle scrollu
   -------------------------------------------------------------------------- */

.exp-back-to-top {
	position: fixed;
	bottom: 20px;
	width: 44px;
	height: 44px;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 997;
	text-decoration: none !important;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.exp-back-to-top.is-visible {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.exp-back-to-top--right {
	right: 20px;
}

.exp-back-to-top--left {
	left: 20px;
}

.exp-back-to-top svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 44px;
	transform: rotate(-90deg);
}

.exp-back-to-top .exp-back-to-top-track {
	fill: rgba(0, 0, 0, 0.55);
	stroke: rgba(255, 255, 255, 0.25);
	stroke-width: 2;
}

.exp-back-to-top .exp-back-to-top-progress {
	fill: none;
	stroke: #ffffff;
	stroke-width: 2;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s linear;
}

.exp-back-to-top .exp-back-to-top-track {
	transition: fill 0.2s ease;
}

.exp-back-to-top .exp-icon,
.exp-back-to-top em {
	position: relative;
	z-index: 1;
	color: #ffffff;
	font-size: 15px;
}

@media (max-width: 767px) {
	.exp-footer-copyright-row {
		justify-content: center;
		text-align: center;
	}
}

/* Obal celé patičky (obrázek na pozadí přes widgety i copyright) */
.exp-footer-wrap {
	position: relative;
}

/* Vlastní copyright (Footer -> 4. Copyright -> Vlastní copyright) */
.exp-cc { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.exp-cc--left { text-align: left; }
.exp-cc--right { text-align: right; }
.exp_footer_area .exp-cc .exp-cc-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; row-gap: 4px; margin: 0; line-height: 1.7; }
.exp-cc--left .exp-cc-row { justify-content: flex-start !important; }
.exp-cc--right .exp-cc-row { justify-content: flex-end !important; }
.exp_footer_area .exp-cc .exp-cc-sep { margin: 0 .6em; color: var(--cc-sep, currentColor); opacity: .55; }
.exp-cc[style*="--cc-sep"] .exp-cc-sep { opacity: 1; }
.exp_footer_area .exp-cc .exp-cc-lbl { color: inherit; }
@media (max-width: 767px) {
	.exp_footer_area .exp-cc--stack .exp-cc-row { flex-direction: column; align-items: center; gap: 2px; }
	.exp_footer_area .exp-cc--stack.exp-cc--left .exp-cc-row { align-items: flex-start; }
	.exp_footer_area .exp-cc--stack.exp-cc--right .exp-cc-row { align-items: flex-end; }
	.exp_footer_area .exp-cc--stack .exp-cc-sep { display: none; }
	.exp_footer_area .exp-cc--stack .exp-cc-row + .exp-cc-row { margin-top: 8px; }
}

/* Odkazy v textu copyrightu i podtržením (ne jen barvou) - přístupnost (PageSpeed: odkazy rozlišitelné nejen barvou) */
.exp_footer_area .exp_footer_copyright a, .exp_footer_area .exp-cc a, .exp_footer_area .exp-footer-credits a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.exp_footer_area .exp_footer_copyright a:hover, .exp_footer_area .exp-cc a:hover, .exp_footer_area .exp-footer-credits a:hover { text-decoration-color: currentColor; }
