/**
 * DC Woo Footer — frontend
 * Zmienne ustawiane w inline style z panelu Wygląd.
 */

.dc-wf-nav {
	width: 100%;
	background: var(--dc-wf-menu-bg, #2b2b2b);
	position: relative;
	z-index: 950;
}

.dc-wf-mobile-wrap {
	display: none;
}

.dc-wf-mobile-toggle,
.dc-wf-mobile-head {
	display: none;
}

/* Kontener jak rząd linków — dropdown pozycjonujemy względem niego (pełna szerokość, wyśrodkowany). */
.dc-wf-nav__inner {
	position: relative;
	width: 100%;
	max-width: var(--dc-wf-inner-max, 1200px);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.dc-wf-nav__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
}

.dc-wf-nav__item {
	position: static;
}

.dc-wf-nav__link {
	display: block;
	padding: 14px 18px;
	text-decoration: none;
	font-size: var(--dc-wf-main-fs, 15px);
	font-weight: var(--dc-wf-main-fw, 600);
	text-transform: var(--dc-wf-main-tt, uppercase);
	background: var(--dc-wf-main-lbg, transparent);
	color: var(--dc-wf-main-lc, #fff);
	transition: background 0.15s ease, color 0.15s ease;
}

.dc-wf-nav__link:hover,
.dc-wf-nav__link:focus {
	background: var(--dc-wf-main-lbgh, #e85d04);
	color: var(--dc-wf-main-lch, #fff);
	outline: none;
}

.dc-wf-nav__item.is-open > .dc-wf-nav__link {
	background: var(--dc-wf-main-lbgh, #e85d04);
	color: var(--dc-wf-main-lch, #fff);
}

/*
 * Strzałka rozwijania — wymaga Font Awesome 6 Free (Solid) w motywie / stronie.
 * Glyphs: https://fontawesome.com/icons/chevron-down (unicode f078)
 */
.dc-wf-nav__item.has-dropdown > .dc-wf-nav__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
}

.dc-wf-nav__item.has-dropdown > .dc-wf-nav__link::after {
	content: "\f078";
	font-family: "Font Awesome 6 Free";
	font-style: normal;
	font-weight: 900;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font-size: 0.75em;
	line-height: 1;
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.25rem;
	will-change: transform;
	transition: transform 0.2s ease;
	border: 0;
}

.dc-wf-nav__item.has-dropdown.is-open > .dc-wf-nav__link::after {
	transform: rotate(180deg);
}

.dc-wf-nav__dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1000;
	width: 100%;
	box-sizing: border-box;
	margin-left: 0;
	background: var(--dc-wf-drop-bg, #fff);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dc-wf-nav__item.has-dropdown .dc-wf-nav__dropdown[hidden] {
	display: none !important;
}

.dc-wf-nav__item.has-dropdown.is-open .dc-wf-nav__dropdown {
	display: block !important;
}

.dc-wf-dropdown__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(var(--dc-wf-cols, 4), minmax(0, 1fr));
	gap: 0;
	min-height: 120px;
}

.dc-wf-dropdown[data-columns="1"] {
	--dc-wf-cols: 1;
}
.dc-wf-dropdown[data-columns="2"] {
	--dc-wf-cols: 2;
}
.dc-wf-dropdown[data-columns="3"] {
	--dc-wf-cols: 3;
}
.dc-wf-dropdown[data-columns="4"] {
	--dc-wf-cols: 4;
}

/* Wiersz stopki: zewnętrzny pasek (tło) + wewnętrzny kontener (szerokość) */
.dc-wf-footer-row--outer {
	width: 100%;
}

.dc-wf-footer-row-inner {
	min-width: 0;
}

/* Siatka kolumn — tło przezroczyste, widać tło paska (--dc-wf-drop-bg z :root lub transparent z wiersza) */
.dc-wf-footer-row-inner .dc-wf-dropdown {
	background: var(--dc-wf-drop-bg, transparent);
}

.dc-wf-footer-row .dc-wf-tile--heading {
	text-align: var(--dc-wf-h-align, inherit);
}

.dc-wf-footer-row .dc-wf-tile--text .dc-wf-text {
	text-align: var(--dc-wf-tx-align, inherit);
}

.dc-wf-footer-row .dc-wf-drop-link {
	text-align: var(--dc-wf-link-align, inherit);
}

.dc-wf-dropdown__col {
	padding: 20px 24px;
	border-right: 1px dotted var(--dc-wf-col-divider, #d0d0d0);
}

.dc-wf-dropdown__col:last-child {
	border-right: 0;
}

.dc-wf-drop-link {
	font-size: var(--dc-wf-drop-fs, 14px);
	font-weight: var(--dc-wf-drop-fw, 400);
	text-transform: var(--dc-wf-drop-tt, none);
	color: var(--dc-wf-drop-lc, #111);
	background: var(--dc-wf-drop-lbg, transparent);
	text-decoration: none;
	display: block;
	width: 100%;
	padding: 8px 10px;
	box-sizing: border-box;
	border-radius: 2px;
	transition: background 0.15s ease, color 0.15s ease;
}

.dc-wf-drop-link:hover,
.dc-wf-drop-link:focus {
	background: var(--dc-wf-drop-lbgh, #f5f5f5);
	color: var(--dc-wf-drop-lch, #000);
}

.dc-wf-tile {
	margin-bottom: 12px;
}

.dc-wf-heading {
	margin: 0 0 8px;
	font-size: var(--dc-wf-h2-fs, 18px);
	color: var(--dc-wf-hc, #111);
	font-weight: var(--dc-wf-hw, 700);
	text-transform: var(--dc-wf-htt, none);
}

.dc-wf-tile--heading h1 {
	font-size: var(--dc-wf-h1-fs, 24px);
}
.dc-wf-tile--heading h2 {
	font-size: var(--dc-wf-h2-fs, 20px);
}
.dc-wf-tile--heading h3 {
	font-size: var(--dc-wf-h3-fs, 18px);
}
.dc-wf-tile--heading h4 {
	font-size: var(--dc-wf-h4-fs, 16px);
}
.dc-wf-tile--heading h5 {
	font-size: var(--dc-wf-h5-fs, 15px);
}
.dc-wf-tile--heading h6 {
	font-size: var(--dc-wf-h6-fs, 14px);
}

.dc-wf-text {
	font-size: var(--dc-wf-tx-fs, 14px);
	color: var(--dc-wf-tx-c, #333);
	font-weight: var(--dc-wf-tx-w, 400);
	text-transform: var(--dc-wf-tx-tt, none);
}

.dc-wf-img-wrap {
	display: block;
}

.dc-wf-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.dc-wf-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--dc-wf-tx-c, #666);
}

.dc-wf-footer-contact-item {
	display: grid;
	grid-template-columns: 22px auto;
	gap: 0 10px;
}

.dc-wf-footer-contact-icon-img {
	display: block;
	max-width: 20px;
	max-height: 20px;
	width: auto;
	height: auto;
}

.dc-wf-footer-contact-content {
	position: relative;
}

.dc-wf-footer-contact-content::before {
	content: "";
	position: absolute;
	left: -21px;
	top: 24px;
	bottom: 0;
	border-left: 1px solid currentColor;
	opacity: 0.75;
}

.dc-wf-footer-contact-label {
	display: block;
	font-weight: 700;
	margin-bottom: 3px;
}

.dc-wf-footer-contact-info {
	white-space: pre-line;
	line-height: 1.35;
	color: var(--dc-wf-tx-c, #666);
	font-size: var(--dc-wf-tx-fs, 14px);
}

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

.dc-wf-footer-social-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	text-decoration: none;
}

.dc-wf-footer-social-icon-img {
	display: block;
	max-width: 30px;
	max-height: 30px;
	width: auto;
	height: auto;
}

/* Overlay — przyciemnienie i rozmycie treści pod menu */
body.dc-wf-overlay-on {
	overflow-x: hidden;
}

body.dc-wf-mobile-open {
	overflow: hidden;
}

.dc-wf-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	backdrop-filter: blur(var(--dc-wf-overlay-blur, 4px));
	-webkit-backdrop-filter: blur(var(--dc-wf-overlay-blur, 4px));
	background: rgba(0, 0, 0, var(--dc-wf-overlay-a, 0.55));
}

body.dc-wf-overlay-on .dc-wf-overlay {
	opacity: 1;
	pointer-events: auto;
}

/* Tablet */
@media (max-width: 1024px) {
	.dc-wf-dropdown[data-columns="3"] .dc-wf-dropdown__inner,
	.dc-wf-dropdown[data-columns="4"] .dc-wf-dropdown__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dc-wf-dropdown[data-columns="3"] .dc-wf-dropdown__col:nth-child(2),
	.dc-wf-dropdown[data-columns="4"] .dc-wf-dropdown__col:nth-child(2) {
		border-right: 0;
	}

	.dc-wf-dropdown[data-columns="3"] .dc-wf-dropdown__col:nth-child(-n + 2),
	.dc-wf-dropdown[data-columns="4"] .dc-wf-dropdown__col:nth-child(-n + 2) {
		border-bottom: 1px dotted var(--dc-wf-col-divider, #d0d0d0);
	}

	.dc-wf-tile--heading {
		display: var(--dc-wf-tab-hdg-d, block);
	}
	.dc-wf-tile--text {
		display: var(--dc-wf-tab-txt-d, block);
	}
	.dc-wf-tile--image {
		display: var(--dc-wf-tab-img-d, block);
	}
}

/* Mobile */
@media (max-width: 767px) {
	.dc-wf-dropdown__inner {
		grid-template-columns: 1fr !important;
	}

	.dc-wf-dropdown__col {
		border-right: 0 !important;
		border-bottom: 1px dotted var(--dc-wf-col-divider, #d0d0d0);
		padding: 16px 18px;
	}

	.dc-wf-dropdown__col:last-child {
		border-bottom: 0;
	}

	.dc-wf-footer-row-inner {
		max-width: 100%;
		overflow-x: hidden;
	}

	.dc-wf-desktop-wrap {
		display: none;
	}

	.dc-wf-mobile-wrap {
		display: var(--dc-wf-mob-menu-d, block);
	}

	.dc-wf-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 14px;
		background: var(--dc-wf-menu-bg, #2b2b2b);
		color: var(--dc-wf-main-lc, #fff);
	}

	.dc-wf-mobile-bar__label {
		font-weight: 700;
		font-size: 14px;
		letter-spacing: 0.02em;
	}

	.dc-wf-mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 8px;
		background: var(--dc-wf-main-lbgh, #e85d04);
		color: var(--dc-wf-main-lch, #fff);
		font-size: 22px;
		line-height: 0;
		cursor: pointer;
		padding: 0;
	}

	.dc-wf-mobile-toggle:hover,
	.dc-wf-mobile-toggle:focus {
		background: var(--dc-wf-main-lbg, transparent);
		color: var(--dc-wf-main-lc, #fff);
	}

	.dc-wf-mobile-toggle > span {
		display: block;
		line-height: 1;
		transform: translateY(-1px);
	}

	.dc-wf-mobile-nav {
		position: fixed;
		top: 0;
		left: -110%;
		bottom: 0;
		width: min(92vw, 320px);
		max-width: 100%;
		background: var(--dc-wf-drop-bg, #fff);
		transition: left 0.25s ease;
		overflow-y: auto;
		overflow-x: hidden;
		z-index: 1200;
		box-shadow: 12px 0 36px rgba(0, 0, 0, 0.35);
	}

	.dc-wf-mobile-nav.is-open {
		left: 0;
	}

	.dc-wf-mobile-head {
		display: flex;
		justify-content: flex-end;
		padding: 12px;
	}

	.dc-wf-mobile-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 999px;
		background: var(--dc-wf-main-lbgh, #e85d04);
		color: var(--dc-wf-main-lch, #fff);
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	.dc-wf-mobile-list {
		list-style: none;
		margin: 0;
		padding: 4px 0 14px;
	}

	.dc-wf-mobile-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 12px 16px;
		border: 0;
		background: transparent;
		color: var(--dc-wf-drop-lc, #111);
		text-align: left;
		text-decoration: none;
		font-size: var(--dc-wf-main-fs, 15px);
		font-weight: var(--dc-wf-main-fw, 600);
		text-transform: var(--dc-wf-main-tt, uppercase);
		cursor: pointer;
	}

	.dc-wf-mobile-link.has-dropdown::after {
		content: "\f078";
		font-family: "Font Awesome 6 Free";
		font-weight: 900;
		font-size: 0.75em;
		transition: transform 0.2s ease;
	}

	.dc-wf-mobile-item.is-open > .dc-wf-mobile-link.has-dropdown::after {
		transform: rotate(180deg);
	}

	.dc-wf-mobile-dropdown[hidden] {
		display: none !important;
	}

	.dc-wf-mobile-dropdown .dc-wf-nav__dropdown {
		position: static;
		width: 100%;
		left: auto;
		right: auto;
		top: auto;
		box-shadow: none;
		background: transparent;
	}

	.dc-wf-mobile-dropdown .dc-wf-dropdown__inner {
		display: block;
		min-height: 0;
	}

	.dc-wf-mobile-dropdown .dc-wf-dropdown__col {
		padding: 4px 10px 10px;
		border-right: 0;
	}

	.dc-wf-mobile-dropdown .dc-wf-drop-link {
		color: var(--dc-wf-drop-lc, #111);
		background: var(--dc-wf-drop-lbg, transparent);
	}

	.dc-wf-mobile-dropdown .dc-wf-drop-link:hover,
	.dc-wf-mobile-dropdown .dc-wf-drop-link:focus {
		background: var(--dc-wf-drop-lbgh, #f5f5f5);
		color: var(--dc-wf-drop-lch, #000);
	}

	.dc-wf-tile--heading {
		display: var(--dc-wf-mob-hdg-d, block);
	}
	.dc-wf-tile--text {
		display: var(--dc-wf-mob-txt-d, block);
	}
	.dc-wf-tile--image {
		display: var(--dc-wf-mob-img-d, block);
	}
}

