/**
 * Lestello — Globalne style
 * Zawiera zmienne, helpery, komponenty globalne (przyciski, slidery), nagłówek i stopkę.
 */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
	/* Kolory */
	--lestello-color-accent: #8bc53f;
	--lestello-color-accent-hover: #486916;
	--lestello-color-text-dark: #1C3303;
	--lestello-color-gray-light: #e6e6e6;
	--lestello-color-top-bar-bg: var(--lestello-color-accent);
	--lestello-color-top-bar-text: #1a1a1a;
	--lestello-color-header-bg: #ffffff;
	--lestello-color-link: inherit;
	--lestello-color-link-hover: #000000;

	/* Odstępy */
	--lestello-top-bar-padding-y: 0.5rem;
	--lestello-top-bar-padding-x: 1rem;
	--lestello-top-bar-row-gap: 1rem;
	--lestello-space-icon-text: 0.75rem;

	/* Typografia (top bar — dopasuj font z projektu) */
	--lestello-font-top-bar: inherit;
	--lestello-font-size-top-bar: 0.9375rem;
	--lestello-font-size-phone-link: 1.25rem;
	--lestello-font-weight-phone-link: 600;
	--lestello-phone-icon-size: 24px;

	/* Przełącznik języka (pigła w top barze) — dopasuj do Figmy */
	--lestello-lang-track-bg: #ffffff;
	--lestello-lang-track-padding: 2px;
	--lestello-lang-track-border: 1px solid rgba(255, 255, 255, 0.95);
	--lestello-lang-segment-active-bg: #508418;
	--lestello-lang-segment-active-color: #ffffff;
	--lestello-lang-segment-inactive-bg: transparent;
	--lestello-lang-segment-inactive-color: #2b2b2b;
	--lestello-lang-font-size: 0.8125rem;
	--lestello-lang-font-weight: 600;
	--lestello-lang-item-padding-y: 0.35rem;
	--lestello-lang-item-padding-x: 0.75rem;
	--lestello-lang-flag-size: 20px;
	--lestello-lang-gap: 0.4rem;
}

/* ==========================================================================
   2. HELPERS
   ========================================================================== */
.site-top-header-wrap a:focus-visible,
.lestello-phone-link:focus-visible,
.lestello-lang-switch__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ==========================================================================
   3. GLOBAL COMPONENTS (Buttons, Sliders, etc.)
   ========================================================================== */
.lestello-btn,
.blog article .post-more-link, 
.archive article .post-more-link,
.filtr__btn button {
	display: inline-block !important;
	margin-top: 20px !important;
	border-radius: 800px !important;
	background-color: var(--lestello-color-accent) !important;
	color: var(--lestello-color-text-dark) !important;
	padding: 16px 28px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	text-transform: none !important;
	transition: all 0.3s ease !important;
}

.blog article .post-more-link span, 
.blog article .post-more-link svg, 
.archive article .post-more-link span, 
.archive article .post-more-link svg {
	display: none !important;
}

.lestello-btn:hover,
.blog article .post-more-link:hover, 
.archive article .post-more-link:hover {
	color: #ffffff !important;
	background-color: var(--lestello-color-accent-hover) !important;
}

/* Slidery (uniwersalne style) */
.lestello-slider .splide__arrow,
.home-page__slider .kb-splide .splide__arrow, 
.home-page__slider .kb-splide .kb-gallery-pause-button,
.home .ks-slider .splide__arrow {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
	background-color: #ffffff !important;
	opacity: 1 !important;
}

.lestello-slider .splide__pagination__page,
.home-page__slider .kb-splide .splide__pagination__page, 
.single-post .splide .splide__pagination__page {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--lestello-color-gray-light) !important;
	border: none;
	box-shadow: none !important;
}

.lestello-slider .splide__pagination__page.is-active,
.home-page__slider .kb-splide .splide__pagination__page.is-active, 
.single-post .splide .splide__pagination__page.is-active {
	background-color: var(--lestello-color-accent) !important;
	box-shadow: none !important;
}

/* ==========================================================================
   4. HEADER & TOP BAR
   ========================================================================== */
.wpml-ls-statics-shortcode_actions {
	margin: 0;
	padding: 0;
}

.wpml-ls-statics-shortcode_actions ul {
	display: inline-flex;
	align-items: stretch;
	box-sizing: border-box;
	max-width: 100%;
	padding: var(--lestello-lang-track-padding);
	background-color: var(--lestello-lang-track-bg);
	border: var(--lestello-lang-track-border);
	border-radius: 9999px;
	gap: 2px;
}

.wpml-ls-statics-shortcode_actions ul li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	height: 32px;
}
.wpml-ls-statics-shortcode_actions ul li a {
	padding: 5px 14px 6px;
}
.wpml-ls-statics-shortcode_actions ul li a img {
	border-radius: 50%;
	width: 16px;
	height: 16px;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}
.wpml-ls-statics-shortcode_actions ul li a span {
	position: relative;
	font-size: 0.875rem;
	font-weight: 400;
	color: #3F3F3F;
}

.wpml-ls-statics-shortcode_actions ul li.wpml-ls-current-language {
	color: var(--lestello-lang-segment-active-color);
	opacity: 1;
	background-color: var(--lestello-lang-segment-active-bg);
	border: none;
}
.wpml-ls-statics-shortcode_actions ul li.wpml-ls-current-language a span {
	color: var(--lestello-lang-segment-active-color);
}


.wp-block-kadence-header-row3009_cc4ff0-3e.wp-block-kadence-header-row-top {
	background-color: var(--lestello-color-top-bar-bg);
	color: var(--lestello-color-top-bar-text);
	font-family: var(--lestello-font-top-bar);
	font-size: var(--lestello-font-size-top-bar);
	min-height: 60px;
	height: 60px;
}
.wp-block-kadence-header-row3009_cc4ff0-3e.wp-block-kadence-header-row-top .kadence-header-row-inner {
	height: 60px;
}

.site-top-header-wrap .header-html-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
}

.site-top-header-wrap .site-header-top-section-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.site-top-header-wrap .header-html-inner .lestello-lang-switch {
	margin: 0;
}

/* Jeden widżet HTML: wiersz telefon | przełącznik języka */
.lestello-top-bar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lestello-top-bar-row-gap);
	width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
}

.lestello-top-bar-row__left,
.lestello-top-bar-row__right {
	display: flex;
	align-items: center;
	min-width: 0;
}

.lestello-top-bar-row__left {
	justify-content: flex-start;
}

.lestello-top-bar-row__right {
	justify-content: flex-end;
	margin-inline-start: auto;
}

.lestello-phone-link__text {
	color: var(--lestello-color-text-dark);
}

/* Lewa komórka HTML (samotne __left bez pełnego .lestello-top-bar-row) */
.header-html-inner .lestello-top-bar-row__left {
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

.header-html-inner .lestello-top-bar-row__left p {
	margin: 0;
}

/* Kadence bywa owija treść w .inner-link-style-normal — nie rozciągaj linku na całą szerokość */
.header-html-inner .lestello-top-bar-row__left a.lestello-phone-link,
.site-top-header-wrap .lestello-top-bar-row__left a.lestello-phone-link {
	width: auto;
	max-width: 100%;
	justify-content: flex-start;
}

[class*="kadence-header-row"] .lestello-top-bar-row__left .lestello-phone-link {
	color: inherit;
}

/* —— Przełącznik języka (BEM: .lestello-lang-switch) —— */

.lestello-lang-switch {
	display: inline-flex;
	align-items: stretch;
	box-sizing: border-box;
	max-width: 100%;
	padding: var(--lestello-lang-track-padding);
	background-color: var(--lestello-lang-track-bg);
	border: var(--lestello-lang-track-border);
	border-radius: 9999px;
	gap: 2px;
}

.lestello-lang-switch__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lestello-lang-gap);
	padding: var(--lestello-lang-item-padding-y) var(--lestello-lang-item-padding-x);
	border-radius: 9999px;
	font-size: var(--lestello-lang-font-size);
	font-weight: var(--lestello-lang-font-weight);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	color: var(--lestello-lang-segment-inactive-color);
	background-color: var(--lestello-lang-segment-inactive-bg);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.lestello-lang-switch__item:hover {
	color: var(--lestello-lang-segment-inactive-color);
	text-decoration: none;
	opacity: 0.92;
}

.lestello-lang-switch__item--active {
	color: var(--lestello-lang-segment-active-color);
	background-color: var(--lestello-lang-segment-active-bg);
}

.lestello-lang-switch__item--active:hover {
	color: var(--lestello-lang-segment-active-color);
	opacity: 1;
}

.lestello-lang-switch__flag {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
	border-radius: 50%;
	overflow: hidden;
	width: var(--lestello-lang-flag-size);
	height: var(--lestello-lang-flag-size);
}

.lestello-lang-switch__flag-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lestello-lang-switch__label {
	position: relative;
	font-size: 0.875rem;
	font-weight: 400;
}

/* Komponenty nagłówka: link telefonu (BEM) */
.lestello-phone-link {
	display: inline-flex;
	align-items: center;
	gap: var(--lestello-space-icon-text);
	color: inherit;
	text-decoration: none;
	font-size: var(--lestello-font-size-phone-link);
	font-weight: var(--lestello-font-weight-phone-link);
	line-height: 1.3;
	max-width: 100%;
}

.lestello-phone-link:hover,
.lestello-phone-link:focus-visible {
	color: var(--lestello-color-link-hover);
	text-decoration: none;
}

.lestello-phone-link__icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
	align-items: center;
	justify-content: center;
}

.lestello-phone-link br {
	display: none;
}

.lestello-phone-link__icon-img {
	display: block;
	width: var(--lestello-phone-icon-size);
	height: var(--lestello-phone-icon-size);
	object-fit: contain;
	flex-shrink: 0;
}

.lestello-phone-link__text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.ks-contact-form {
	border-radius: 10px;
}

.ks-contact-form .kb-radio-check-item label {
	color: #3f3f3f !important;
	font-size: 12px !important;
	font-weight: 400;
	line-height: 1.2;
	padding-left: 24px !important;
}

.footer__link {
	display: flex;
	align-items: center;
	gap: 24px;
	color: #fff !important;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.footer__link:hover {
	color: #f8f8f8 !important;
	text-decoration: none !important;
}

.footer__link-img {
	display: block;
	width: 40px;
	height: 40px;
}

.ks-footer__left figure {
	margin: 0 !important;
}

.site-middle-footer-inner-wrap {
	align-items: center !important;
	align-content: center !important;
}
.kb-advanced-form input, .kb-advanced-form textarea, .kb-form-basic-style ::placeholder {
	color: #3f3f3f !important;
}
.kb-adv-form-success {
	background: #e6e6e6 !important;
	color:#2b2b2b !important;
	border-radius: 100px !important;
	text-align: center !important;
}

@media screen and (max-width: 767px) {
	.ks-contact-form {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.footer__link {
		font-size: 18px;
		gap: 16px;
		justify-content: center;
		text-align: left;
	}

	.footer__link-img {
		width: 32px;
		height: 32px;
		flex-shrink: 0;
	}

	.site-middle-footer-inner-wrap {
		flex-direction: column !important;
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
		justify-items: center !important;
		justify-content: center !important;
	}
	.ks-footer__left {
		text-align: center !important;
		margin: auto !important;
	}
	.ks-footer__left .wp-block-image:has(figure) {
		margin: auto !important;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.ks-footer__left span {
		text-align: center !important;
		margin: auto !important;
	}
	.ks-footer__left ul li a {
		text-align: center !important;
		margin: auto !important;
		width: fit-content !important;
		padding-left: 5px;
	}
	.kt-tabs-accordion-title a {
		align-items: center !important;
		margin-right: 0 !important;
	}
	.kt-tabs-content-wrap > .wp-block-kadence-tab {
		min-height: auto !important;
	}
}
