/* =======================================================
   INDUSIP THEME — Custom CSS
   Dopełnia theme.json o style niemożliwe do ustawienia
   przez interfejs Gutenberga (pseudoelementy, hover,
   filtry, sticky nav, grayscale na logotypach, etc.)
   ======================================================= */

/* ================================================================
   INTER — Self-hosted (GDPR-compliant, brak zewnętrznych żądań)
   Pliki .woff2 pochodzą z pakietu npm @fontsource/inter (licencja
   SIL OFL 1.1). Dwa podzbiory na wagę: "latin" (podstawowe znaki)
   i "latin-ext" (polskie znaki diakrytyczne: ą ć ę ł ń ó ś ź ż) —
   przeglądarka sama dobiera właściwy plik wg unicode-range.
   Katalog: assets/fonts/inter/
   ================================================================ */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-ext-300.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-300.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-ext-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-ext-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-ext-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-ext-900.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-latin-900.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---- RESET / BOX-SIZING ---- */
*, *::before, *::after {
	box-sizing: border-box;
}

/* ---- FONT ---- */
body {
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ================================================================
   FOCUS STATES (WCAG 2.1 AA — SC 2.4.7 / 1.4.11)
   Białoczarny "halo" pierścień: widoczny niezależnie od tła
   (białe/#fafafa, ciemne #09090b, czy niebieskie #2563eb na
   przyciskach), bo obie warstwy nigdy nie zlewają się jednocześnie
   z tłem i z sąsiednim elementem.
   ================================================================ */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.knowledge-all-link:focus-visible,
.wpcf7-form-control:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #09090b;
	border-radius: 1px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* Logo — plik jest już przygotowany w kolorach dopasowanych do ciemnego
   nagłówka (niebieski blok #2563eb z białym napisem „INDUSIP"), więc bez
   żadnych filtrów CSS. Rzeczywisty rozmiar ustawia atrybut "width" bloku
   wp:site-logo w header.html — max-height tu to tylko górny bezpiecznik. */
.site-header .wp-block-site-logo img {
	max-height: 100px;
	width: auto;
	object-fit: contain;
}

/* ---- DESKTOP NAV — spacing & readability ---- */
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 8px 9px;
	font-size: 1.0rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	border-radius: 2px;
	transition: color .2s, background .2s;
}

/* Submenu desktop */
.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #09090b;
	border: 1px solid #27272a;
	border-top: 3px solid #2563eb;
	border-radius: 0 0 4px 4px;
	min-width: 220px;
	padding: 8px 0;
	box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 10px 20px;
	font-size: 0.98rem;
	letter-spacing: 0.07em;
	color: #a1a1aa !important;
	border-radius: 0;
	white-space: nowrap;
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: #fff !important;
	background: #18181b;
}

/* Navigation link hover */
.site-header .wp-block-navigation a:hover {
	color: #3b82f6 !important;
	transition: color .2s;
}

/* ---- MOBILE NAV OVERLAY ---- */
/* Tło nakładki */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #09090b !important;
	padding: 24px 24px 40px;
}

/* Przycisk hamburgera */
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: #fff !important;
	padding: 8px;
}

/* Główne pozycje menu mobilne */
.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	padding: 14px 0 !important;
	color: #fff !important;
	border-bottom: 1px solid #27272a;
	display: block;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content:hover {
	color: #3b82f6 !important;
}

/* Podmenu mobilne */
.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 0 8px 16px !important;
	position: static !important;
	width: 100% !important;
	min-width: unset !important;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content {
	font-size: 0.9rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.05em !important;
	padding: 10px 0 !important;
	color: #a1a1aa !important;
	border-bottom: 1px solid #1e1e21 !important;
	text-transform: none !important;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover {
	color: #3b82f6 !important;
}

/* Strzałka rozwijania podmenu mobilne */
.site-header .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__submenu-icon {
	color: #71717a;
	padding: 14px 8px;
}

/* Polylang Language Switcher — tryb listy linków (jeśli kiedyś włączony zamiast dropdown) */
.site-header .pll-parent-menu-item a,
.site-header .lang-switcher a {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 4px 8px;
	border-radius: 2px;
	color: #a1a1aa;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.site-header .pll-parent-menu-item a:hover,
.site-header .lang-switcher a:hover,
.site-header .pll-parent-menu-item .current-lang a,
.site-header .lang-switcher .current-lang a {
	background: #2563eb;
	color: #fff;
}

/* Polylang Language Switcher — tryb dropdown (aktualnie używany w header.html) */
.site-header .lang-switcher {
	display: flex;
	align-items: center;
}

.site-header .lang-switcher .pll-switcher-select {
	background: #18181b;
	color: #d4d4d8;
	border: 1px solid #27272a;
	border-radius: 2px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 6px 10px;
	cursor: pointer;
}

.site-header .lang-switcher .pll-switcher-select:hover {
	border-color: #2563eb;
}

.site-header .lang-switcher .pll-switcher-select option {
	background: #18181b;
	color: #d4d4d8;
	text-transform: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero-section .wp-block-cover__image-background {
	filter: grayscale(1);
	opacity: 0.5;
}

.hero-tagline {
	display: inline-block;
	background: #2563eb;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 4px 16px;
	border-radius: 2px;
	margin: 0;
	box-shadow: 0 4px 16px rgba(37, 99, 235, .4);
}

.hero-section h1 {
	text-align: center;
}

.hero-section p {
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.hero-section .wp-block-buttons {
	justify-content: center;
}

/* ================================================================
   PARTNERS
   ================================================================ */
.partners-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2rem 4rem;
	list-style: none;
	padding: 0;
	margin: 0 auto;
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.5s ease, opacity 0.5s ease;
}

.partners-logos:hover {
	filter: grayscale(0);
	opacity: 1;
}

.partners-logos li {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 128px;
	height: 56px;
}

.partners-logos li img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ================================================================
   B2B — kalendarz targów
   ================================================================ */
.b2b-fairs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e4e4e7;
}

.b2b-fairs-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	padding: 20px 0;
	border-bottom: 1px solid #e4e4e7;
}

.b2b-fairs-date {
	flex: 0 0 160px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2563eb;
}

.b2b-fairs-name {
	flex: 1 1 auto;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #09090b;
}

.b2b-fairs-city {
	font-size: 0.875rem;
	color: #52525b;
}

@media (max-width: 600px) {
	.b2b-fairs-date {
		flex-basis: 100%;
	}
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-photo:hover {
	filter: grayscale(0) !important;
}

.about-stat-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 0;
}

.about-stat-pair .stat-item {
	border-left: 4px solid #2563eb;
	padding-left: 1.5rem;
}

.about-stat-pair dt {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #52525b;
	margin-bottom: 4px;
}

.about-stat-pair dd {
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 1.2;
	color: #09090b;
	margin: 0;
}

.about-badge {
	position: absolute;
	bottom: 0;
	left: 0;
	background: #09090b;
	color: #fff;
	padding: 1.5rem 2rem;
	max-width: 85%;
	border-top: 4px solid #2563eb;
	border-right: 4px solid #2563eb;
}

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.service-card {
	background: #18181b;
	border: 1px solid #27272a;
	padding: 2rem;
	border-radius: 2px;
	transition: border-color 0.3s;
	height: 100%;
}

.service-card:hover {
	border-color: #3b82f6;
}

.service-icon-wrap {
	background: rgba(37, 99, 235, 0.1);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	margin-bottom: 1.5rem;
	transition: background 0.3s;
}

.service-card:hover .service-icon-wrap {
	background: #2563eb;
}

.service-card:hover .service-icon-wrap svg {
	stroke: #fff;
}

.service-card h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: #fff;
	margin-bottom: 12px;
	hyphens: auto;
	overflow-wrap: break-word;
}

.service-card > p {
	color: #a1a1aa;
	font-size: 0.875rem;
	line-height: 1.7;
	margin-bottom: 24px;
}

.service-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.service-card li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.service-card li svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.service-card li span {
	color: #d4d4d8;
	font-size: 0.875rem;
}

/* ================================================================
   COMPETENCY CARDS
   ================================================================ */
.comp-card {
	background: #fff;
	padding: 2rem;
	border-top: 4px solid transparent;
	border-radius: 2px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
	transition: border-top-color 0.3s, box-shadow 0.3s;
	height: 100%;
}

.comp-card:hover {
	border-top-color: #2563eb;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
}

.comp-icon {
	color: #a1a1aa;
	width: 48px;
	height: 48px;
	margin-bottom: 1.5rem;
	transition: color 0.3s;
	display: block;
}

.comp-card:hover .comp-icon {
	color: #2563eb;
}

.comp-card h3 {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: #09090b;
	margin-bottom: 12px;
	/* długie złożenia (np. niemieckie "Lieferkettenmanagement") dzielą się
	   z myślnikiem wg reguł języka strony zamiast łamać się w dowolnym miejscu */
	hyphens: auto;
	overflow-wrap: break-word;
}

.comp-card p {
	color: #52525b;
	font-size: 0.875rem;
	line-height: 1.7;
	margin: 0;
}

/* ================================================================
   KNOWLEDGE / BLOG SECTION
   ================================================================ */
.knowledge-all-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #2563eb;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
}

.knowledge-all-link:hover {
	color: #1d4ed8;
}

/* Article card (custom HTML + Query Loop) */
.article-card {
	background: #fafafa;
	border: 1px solid #e4e4e7;
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.3s;
}

.article-card:hover {
	box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

/* Featured image grayscale → color on hover */
.article-card .wp-block-post-featured-image img,
.article-card figure img {
	width: 100%;
	display: block;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.4s ease, transform 0.4s ease;
}

.article-card:hover .wp-block-post-featured-image img,
.article-card:hover figure img {
	filter: grayscale(0);
	transform: scale(1.04);
}

/* Post title hover */
.article-card .wp-block-post-title a:hover {
	color: #2563eb !important;
}

/* ================================================================
   CONTACT FORM (Contact Form 7)
   ================================================================ */
.contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 2px;
	padding: 12px 16px;
	color: #09090b;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .5);
}

.contact-form-wrap .wpcf7-submit {
	background: #2563eb;
	color: #fff;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 16px 40px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.2s;
	box-shadow: 0 4px 16px rgba(37, 99, 235, .2);
}

.contact-form-wrap .wpcf7-submit:hover {
	background: #1d4ed8;
}

.contact-form-wrap label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #52525b;
	margin-bottom: 6px;
}

.contact-form-wrap .wpcf7-form p {
	margin-bottom: 20px;
}

/* Zgoda RODO — zwykły, czytelny tekst (nie dziedziczy stylu etykiet pól) */
.contact-form-wrap .cf7-consent {
	margin-top: 4px;
	margin-bottom: 20px;
}

/* CF7 owija checkbox zgody w kilka domyślnie "inline" spanów
   (.wpcf7-form-control-wrap, .wpcf7-acceptance, .wpcf7-list-item) — bez
   wymuszenia display:block/width:100% długi tekst zgody nie rozciąga się na
   pełną szerokość formularza i łamie się w wąskiej, niechcianej kolumnie. */
.contact-form-wrap .wpcf7-form-control-wrap[data-name="twoja-zgoda"],
.contact-form-wrap .wpcf7-acceptance,
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Zeruje margines dziedziczony z ogólnej reguły ".contact-form-wrap label"
   (margin-bottom: 6px) — cała odległość wokół widgetu ma pochodzić TYLKO
   z .cf7-consent wyżej, żeby nic się nie sumowało z dwóch miejsc naraz. */
.contact-form-wrap .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.6;
	color: #3f3f46;
	cursor: pointer;
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #2563eb;
}

/* Domyślny min-width:auto na elemencie flex uniemożliwia zawijanie długiego
   tekstu — klasyczna pułapka flexboxa, tekst zamiast się zawinąć wychodzi
   poza kontener. */
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item-label {
	min-width: 0;
	flex: 1;
}

/* Honeypot antyspamowy — pole niewidoczne dla ludzi (patrz wpcf7_spam
   w functions.php). Ukryte poza ekranem, nie display:none — część botów
   sprawdza display:none i pomija takie pola, pozycja poza ekranem jest
   trudniejsza do wykrycia programowo. */
.contact-form-wrap .indusip-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.contact-form-wrap .wpcf7-acceptance a {
	color: #2563eb;
	text-decoration: underline;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer a {
	color: #a1a1aa;
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer a:hover {
	color: #fff;
}

/* Navigation in footer */
.site-footer .wp-block-navigation a {
	color: #a1a1aa !important;
	font-size: 0.875rem;
}

.site-footer .wp-block-navigation a:hover {
	color: #fff !important;
}

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */
@media (max-width: 1023px) {
	/* Tło kontenera nawigacji mobilnej obsługuje klasa is-menu-open powyżej */
	.site-header .wp-block-navigation .wp-block-navigation__responsive-container {
		background: #09090b;
	}
}

@media (max-width: 767px) {
	.about-stat-pair {
		grid-template-columns: 1fr;
	}

	.partners-logos {
		gap: 1.5rem 2.5rem;
	}

	.knowledge-all-link {
		display: none;
	}

	/* Sekcje — mniejsze paddingi na mobilnych */
	.site-main section.wp-block-group {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	/* Formularz kontaktowy — wewnętrzny padding */
	.contact-form-wrap {
		padding: 24px !important;
	}

	/* About — ograniczenie wysokości zdjęcia na mobilnych */
	.about-photo-wrap {
		height: 280px !important;
	}
}

/* ================================================================
   WOOCOMMERCE
   Dopasowanie do design systemu Indusip (ciemny akcent, Inter)
   ================================================================ */

/* Karty produktów w sklepie */
.wc-product-card {
	background: #fafafa;
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.3s, border-color 0.3s;
}

.wc-product-card:hover {
	box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
	border-color: #2563eb !important;
}

.wc-product-card figure img {
	width: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wc-product-card:hover figure img {
	transform: scale(1.04);
}

/* Cena produktu */
.woocommerce-Price-amount,
.wc-block-components-product-price__value {
	color: #09090b;
	font-family: "Inter", sans-serif;
	font-weight: 700;
}

.woocommerce del .woocommerce-Price-amount {
	color: #52525b;
	font-weight: 400;
}

.woocommerce ins .woocommerce-Price-amount {
	color: #2563eb;
}

/* Przycisk "Dodaj do koszyka" (klasyczny WC) */
.woocommerce .button,
.woocommerce button.button,
.wc-block-components-product-add-to-cart .wp-block-button__link {
	background: #2563eb !important;
	color: #fff !important;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	padding: 12px 24px;
	cursor: pointer;
	transition: background 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
}

/* Breadcrumbs WooCommerce */
.woocommerce .woocommerce-breadcrumb {
	font-size: 0.8rem;
	color: #52525b;
}

.woocommerce .woocommerce-breadcrumb a {
	color: #2563eb;
	text-decoration: none;
}

/* Gwiazdki ocen */
.woocommerce .star-rating span::before,
.wc-block-components-product-rating .wc-block-components-product-rating__stars {
	color: #2563eb;
}

/* Taby (Opis / Dane techniczne) na stronie produktu */
.woocommerce .woocommerce-tabs .tabs li a {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #52525b;
}

.woocommerce .woocommerce-tabs .tabs li.active a {
	color: #09090b;
	border-top: 3px solid #2563eb;
}

/* Pola formularza koszyk / zamówienie */
.woocommerce-cart .shop_table,
.woocommerce-checkout .shop_table {
	border-radius: 2px;
	overflow: hidden;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-select select {
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	border: 1px solid #d4d4d8;
	border-radius: 2px;
	padding: 12px 16px;
	color: #09090b;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.wc-block-components-text-input input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .5);
}

/* Powiadomienia WC (store-notices) */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice {
	border-left-color: #2563eb !important;
	background: #eff6ff;
}

/* Informacje o produkcie (meta) */
.product_meta .posted_in a,
.product_meta .tagged_as a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

/* Responsywność WooCommerce */
@media (max-width: 767px) {
	.single-product .wp-block-columns {
		flex-direction: column;
	}

	.woocommerce .woocommerce-tabs .tabs {
		flex-direction: column;
	}
}

/* ================================================================
   SOFTWARE FILTER (szkolenia wideo — [indusip_software_filter])
   ================================================================ */
.software-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 2rem;
}

.software-filter-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #52525b;
}

.software-filter-pill {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid #e4e4e7;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.software-filter-pill:hover,
.software-filter-pill:focus-visible {
	background-color: #2563eb;
	color: #fff;
}

/* ================================================================
   KALKULATOR WAGI STALI (patterns/steel-calculator.php)
   ================================================================ */
.steel-calc {
	max-width: 1120px;
	margin: 0 auto;
}

.steel-calc-intro {
	text-align: center;
	margin-bottom: 48px;
}

.steel-calc-heading {
	font-weight: 900;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: #09090b;
	margin: 0 0 12px;
}

.steel-calc-lead {
	color: #52525b;
	font-size: 1.0625rem;
	max-width: 680px;
	margin: 0 auto;
}

.steel-calc-db-link-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 0.7rem 1.5rem;
	background: #09090b;
	border: 1px solid #09090b;
	border-radius: 999px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.steel-calc-db-link-top::after {
	content: '→';
}

.steel-calc-db-link-top:hover,
.steel-calc-db-link-top:focus-visible {
	background: #2563eb;
	border-color: #2563eb;
}

.steel-calc-widget {
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	padding: 40px;
	background: #fff;
}

/* ---- Nawigacja: grupy (Blachy | Rury i profile | Pręty) ---- */
.steel-calc-groups {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e4e4e7;
}

.steel-calc-group-btn {
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.65rem 1.25rem;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #71717a;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.steel-calc-group-btn:hover {
	color: #09090b;
}

.steel-calc-group-btn.is-active {
	background: #2563eb;
	color: #fff;
}

/* ---- Nawigacja: konkretny kształt w obrębie grupy (przyciski z ikoną) ---- */
.steel-calc-variants-panel {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 0.75rem;
	margin-bottom: 32px;
}

.steel-calc-variants-panel[hidden] {
	display: none;
}

.steel-calc-variant-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
	padding: 1rem 0.5rem 0.85rem;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	background: #fff;
	color: #52525b;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.steel-calc-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.steel-calc-variant-btn:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.steel-calc-variant-btn.is-active {
	background: #09090b;
	border-color: #09090b;
	color: #fff;
}

.steel-calc-body {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
	gap: 48px;
	align-items: start;
}

.steel-calc-field-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px 24px;
	margin-bottom: 24px;
}

/* Specyficzność .class > [attr], więc bez tego reguła display:grid wyżej
   wygrywa z domyślnym UA-stylem [hidden]{display:none} i pola się nie chowają. */
.steel-calc-field-group[hidden] {
	display: none;
}

.steel-calc-field-group--common {
	border-top: 1px solid #e4e4e7;
	padding-top: 28px;
	margin-top: 8px;
}

.steel-calc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #09090b;
}

.steel-calc-field--preset {
	grid-column: 1 / -1;
}

.steel-calc-input {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	padding: 0.75rem 0.9rem;
	border: 1px solid #d4d4d8;
	border-radius: 4px;
	background: #fff;
	color: #09090b;
}

.steel-calc-input:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
}

.steel-calc-presets-disclaimer {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: #a1a1aa;
	line-height: 1.5;
}

.steel-calc-results {
	background: #09090b;
	border-radius: 6px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 24px;
}

.steel-calc-result {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.steel-calc-result-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #a1a1aa;
}

.steel-calc-result-value {
	font-size: 1.875rem;
	font-weight: 900;
	color: #fff;
}

.steel-calc-result--total .steel-calc-result-value {
	color: #3b82f6;
}

.steel-calc-result-divider {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 4px;
	padding-top: 24px;
	border-top: 1px solid #27272a;
}

.steel-calc-result-divider[hidden] {
	display: none;
}

.steel-calc-disclaimer {
	margin: 28px 0 0;
	font-size: 0.75rem;
	color: #a1a1aa;
	text-align: center;
}

@media (max-width: 900px) {
	.steel-calc-body {
		grid-template-columns: 1fr;
	}
	.steel-calc-results {
		position: static;
	}
}

@media (max-width: 640px) {
	.steel-calc-widget {
		padding: 24px;
	}
	.steel-calc-field-group {
		grid-template-columns: 1fr;
	}
}

/* ---- Tabela gęstości ---- */
.steel-density {
	max-width: 1120px;
	margin: 0 auto;
}

.steel-density-table {
	max-width: 620px;
	margin: 0 auto;
}

.steel-density-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e4e4e7;
}

.steel-density-table th,
.steel-density-table td {
	padding: 12px 20px;
	text-align: left;
	border-bottom: 1px solid #e4e4e7;
}

.steel-density-table th {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #52525b;
	background: #fafafa;
}

.steel-density-table tr:last-child td {
	border-bottom: none;
}

/* ---- FAQ ---- */
.steel-faq-item {
	border-bottom: 1px solid #e4e4e7;
	padding: 18px 0;
}

.steel-faq-question {
	font-weight: 700;
	font-size: 1rem;
	color: #09090b;
	cursor: pointer;
	list-style: none;
}

.steel-faq-question::-webkit-details-marker {
	display: none;
}

.steel-faq-question::before {
	content: '+';
	display: inline-block;
	width: 1.2em;
	color: #2563eb;
	font-weight: 900;
}

.steel-faq-item[open] .steel-faq-question::before {
	content: '−';
}

.steel-faq-answer {
	margin: 12px 0 0 1.2em;
	color: #52525b;
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* ---- Pełne dane przekroju (właściwości konstrukcyjne) ---- */
.steel-calc-properties {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e4e4e7;
}

.steel-calc-properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.steel-calc-prop {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: #fafafa;
	border: 1px solid #e4e4e7;
	border-radius: 4px;
}

.steel-calc-prop-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #71717a;
}

.steel-calc-prop-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: #09090b;
}

.steel-calc-properties-note {
	font-size: 0.75rem;
	color: #a1a1aa;
	line-height: 1.6;
	margin: 8px 0 0;
}

/* ---- Baza Profili Stalowych (patterns/steel-profiles-database.php) ---- */
.steel-db {
	max-width: 1200px;
	margin: 0 auto;
}

.steel-db-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 40px 0 56px;
}

.steel-db-nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	width: 100px;
	padding: 1rem 0.5rem;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	color: #52525b;
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.steel-db-nav-link:hover,
.steel-db-nav-link:focus-visible {
	border-color: #2563eb;
	color: #2563eb;
}

.steel-db-nav-link .steel-calc-icon {
	width: 28px;
	height: 28px;
}

.steel-db-table-wrap {
	margin-bottom: 56px;
	scroll-margin-top: 100px;
}

.steel-db-table-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	font-size: 1.375rem;
	color: #09090b;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e4e4e7;
}

.steel-db-table-title .steel-calc-icon {
	width: 26px;
	height: 26px;
	color: #2563eb;
}

.steel-db-scroll {
	overflow-x: auto;
}

.steel-db-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.steel-db-table th,
.steel-db-table td {
	padding: 10px 14px;
	text-align: right;
	border-bottom: 1px solid #e4e4e7;
}

.steel-db-table th:first-child,
.steel-db-table td:first-child {
	text-align: left;
	font-weight: 700;
}

.steel-db-table th {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #71717a;
	background: #fafafa;
}

.steel-db-table tbody tr:hover {
	background: #f4f4f5;
}

.steel-db-legend {
	margin-top: 40px;
	padding: 32px;
	background: #fafafa;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
}

.steel-db-legend-title {
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	font-size: 1.125rem;
	color: #09090b;
	margin: 0 0 20px;
}

.steel-db-legend-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px 32px;
	margin: 0 0 16px;
}

.steel-db-legend-list > div {
	display: flex;
	gap: 12px;
}

.steel-db-legend-list dt {
	flex-shrink: 0;
	min-width: 90px;
	font-weight: 700;
	color: #2563eb;
}

.steel-db-legend-list dd {
	margin: 0;
	color: #52525b;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* ---- Zobacz też (crosslinks) ---- */
.steel-crosslinks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	max-width: 1120px;
	margin: 0 auto;
}

.steel-crosslinks-item {
	display: block;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 4px;
	color: #09090b;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	text-align: center;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.steel-crosslinks-item:hover,
.steel-crosslinks-item:focus-visible {
	border-color: #2563eb;
	color: #2563eb;
}

.steel-crosslinks-item--db {
	background: #09090b;
	border-color: #09090b;
	color: #fff;
	grid-column: 1 / -1;
}

.steel-crosslinks-item--db:hover,
.steel-crosslinks-item--db:focus-visible {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* ================================================================
   PREFERS-REDUCED-MOTION (WCAG 2.1 AA — SC 2.3.3)
   Wyłącza wszystkie hover-transitions/transformy (grayscale na
   logotypach i kartach, scale na obrazkach) dla użytkowników,
   którzy w systemie ustawili "ogranicz animacje". Hero to od teraz
   statyczne zdjęcie (nie wideo), więc SC 2.2.2 (Pause/Stop/Hide)
   już nie dotyczy tej sekcji.
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
