/* =========================================================================
   PRODEST – style główne
   ========================================================================= */

/* Fonty (lokalnie – bez Google Fonts) ------------------------------------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
	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: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
	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";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	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";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	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;
}

/* Zmienne ------------------------------------------------------------------ */
:root {
	--ink: #0e0e0e;
	--ink-2: #2b2b2b;
	--muted: #6a6a6a;
	--line: #e5e5e5;
	--soft: #f5f5f4;
	--paper: #ffffff;
	--red: #d0142c;
	--red-dark: #a80f22;

	--font-display: "Archivo", "Arial Black", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1280px;
	--gutter: clamp(16px, 3vw, 32px);
	--radius: 2px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Podstawy ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

::selection { background: var(--red); color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: var(--ink); color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; margin-inline: auto; }

.icon { width: 22px; height: 22px; flex: none; }

/* Przyciski ---------------------------------------------------------------- */
.button,
button.button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	font-stretch: 105%;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--red); border-color: var(--red); color: #fff; }

.button--ghost { background: transparent; color: var(--ink); }
.button--small { min-height: 38px; padding: 8px 14px; font-size: 12px; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	position: relative;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--red); background: var(--soft); }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="url"], input[type="password"], input[type="number"], textarea, select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #cfcfcf;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }

/* Nagłówek ----------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-logo { margin: 0; line-height: 0; }
.site-logo a { display: inline-block; color: var(--ink); }
.site-logo a:hover { color: var(--ink); }
.site-logo__svg svg, .site-logo__img { width: auto; }
.site-logo--header .site-logo__svg svg,
.site-logo--header .site-logo__img { height: 44px; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block;
	padding: 10px 14px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }

.cart-link__count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.cart-link__count.is-empty { display: none; }

.header-search { border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.header-search .search-form { display: flex; gap: 8px; }

/* Na stronie głównej logo jest na środku – w nagłówku je chowamy. */
.prodest-home .site-header .site-logo { visibility: hidden; }
.prodest-home .site-header { background: #fff; border-bottom-color: transparent; }

@media (max-width: 860px) {
	.menu-toggle { display: inline-grid; }
	.primary-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 20px;
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
	.primary-nav a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
	.header-actions { margin-left: auto; }
	.site-logo--header .site-logo__svg svg, .site-logo--header .site-logo__img { height: 38px; }
	.prodest-home .site-header .site-logo { display: none; }
}

/* Hasło z czerwonymi separatorami ------------------------------------------ */
.tagline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .35em 1em;
	margin: 18px 0 0;
	font-family: var(--font-display);
	font-size: clamp(12px, 1.3vw, 15px);
	font-weight: 600;
	font-stretch: 115%;
	letter-spacing: .38em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.tagline > span:not(.tagline__sep) { margin-right: -.38em; } /* kompensacja letter-spacing */
.tagline__sep { color: var(--red); font-weight: 400; letter-spacing: 0; }

/* Strona główna ------------------------------------------------------------ */
.home-hero { padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.site-logo--home a { display: inline-block; }
.site-logo--home .site-logo__svg svg,
.site-logo--home .site-logo__img { width: clamp(180px, 24vw, 300px); height: auto; margin-inline: auto; }

.home-tiles { padding-bottom: clamp(40px, 7vw, 96px); }
.home-tiles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}

.tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	background:
		repeating-linear-gradient(-58deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px),
		radial-gradient(120% 90% at 50% 0%, #2a2a2a 0%, #0b0b0b 70%);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	container-type: inline-size;
}
.tile:hover { color: #fff; }

.tile__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05) brightness(.62);
	transform: scale(1.01);
	transition: transform .8s var(--ease), filter .5s var(--ease);
	z-index: -2;
}
.tile--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .82) 100%);
	z-index: -1;
}
.tile::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 6px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile:hover .tile__bg { transform: scale(1.06); filter: grayscale(1) contrast(1.1) brightness(.5); }

.tile__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: clamp(20px, 2.4vw, 32px);
}
.tile__icon {
	position: absolute;
	top: clamp(20px, 2.4vw, 32px);
	left: clamp(20px, 2.4vw, 32px);
	color: #fff;
	opacity: .9;
}
.tile__icon .icon { width: clamp(40px, 4.4vw, 56px); height: auto; stroke-width: 1.3; }
.tile__kicker {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	font-stretch: 115%;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #fff;
	padding-left: 14px;
	border-left: 3px solid var(--red);
	line-height: 1.1;
	margin-bottom: 12px;
}
.tile__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 8.2cqi, 46px);
	font-weight: 850;
	font-stretch: 100%;
	line-height: .98;
	letter-spacing: -.01em;
	text-transform: uppercase;
	overflow-wrap: normal;
	hyphens: manual;
}
.tile__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .85;
	transition: gap .3s var(--ease), opacity .3s;
}
.tile__cta .icon { width: 18px; height: 18px; color: var(--red); }
.tile:hover .tile__cta { gap: 16px; opacity: 1; }

.home-content { padding-bottom: 72px; }

@media (max-width: 900px) {
	.home-tiles__grid { grid-template-columns: 1fr; }
	.tile { aspect-ratio: 16 / 9; min-height: 200px; }
}

/* Strony i wpisy ----------------------------------------------------------- */
.page-wrap { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-header { margin-bottom: clamp(20px, 3vw, 36px); }
.page-title {
	font-size: clamp(30px, 4.2vw, 52px);
	font-stretch: 108%;
	text-transform: uppercase;
	margin: 0;
}
.page-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 16px;
	background: var(--red);
}
.entry-meta { color: var(--muted); font-size: 14px; margin-top: 12px; }

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { color: var(--red); }
.entry-content blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--red); font-size: 1.1em; }
.entry-thumb { margin: 0 0 32px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.post-card__link { text-decoration: none; }
.post-card__img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-bottom: 14px; }
.post-card__title { font-size: 20px; }
.post-card__excerpt { color: var(--muted); font-size: 15px; }

.nav-links { display: flex; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers {
	min-width: 44px; height: 44px; display: inline-grid; place-items: center;
	padding: 0 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.error-404 { text-align: center; }
.error-404__code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 180px); font-weight: 900; line-height: 1; margin: 0; color: var(--red); }
.error-404 .page-title::after { margin-inline: auto; }

/* Kontakt ------------------------------------------------------------------ */
.contact__card {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px);
	border: 1px solid var(--line);
	border-top: 4px solid var(--red);
	text-align: center;
}
.site-logo--contact .site-logo__svg svg,
.site-logo--contact .site-logo__img { width: 180px; height: auto; margin-inline: auto; }
.contact__list {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	gap: 18px;
	text-align: left;
	justify-content: center;
}
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.contact__list .icon { color: var(--red); margin-top: 3px; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__content { margin-top: 48px; }

/* Stopka ------------------------------------------------------------------- */
.site-footer {
	background: var(--ink);
	color: #fff;
	padding-top: 28px;
}
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0 0 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
}
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before {
	content: "";
	width: 5px; height: 5px;
	margin: 0 18px;
	background: var(--red);
	transform: rotate(45deg);
}
.site-footer a { color: #fff; }
.footer-links a {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	font-stretch: 108%;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 8px 0;
}
.footer-links a:hover { color: var(--red); }
.site-footer__bottom {
	border-top: 1px solid var(--red);
	padding: 18px 0 22px;
	text-align: center;
	font-size: 13px;
	color: #9a9a9a;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 640px) {
	.footer-links { flex-direction: column; align-items: center; }
	.footer-links li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
