/*
 * Imprenta — główny plik CSS
 * Uzupełnia Tailwind o style WordPress i drobne korekty.
 */

/* ── Material Symbols ───────────────────────────────────────────────────────── */

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
	line-height: 1;
	user-select: none;
}

/* ── Reset: WordPress menu ───────────────────────────────────────────────────── */

.wp-block-navigation ul,
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Tło i kolor bazowy ──────────────────────────────────────────────────────── */

html,
body {
	background-color: #09090b; /* zinc-950 */
	color: #e2e2e2;
	font-family: 'Manrope', sans-serif;
}

/* Zaznaczenie tekstu */
::selection {
	background-color: #aac7ff;
	color: #002f64;
}

/* ── Scrollbar (opcjonalny dark styling) ─────────────────────────────────────── */

::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: #09090b;
}
::-webkit-scrollbar-thumb {
	background: #414753;
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: #8b919e;
}

/* ── Linki globalne ──────────────────────────────────────────────────────────── */

a {
	color: inherit;
	text-decoration: none;
}

.imprenta-has-js .imprenta-fade-up {
	opacity: 0;
	transform: translate3d(0, 64px, 0);
	transition:
		opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--imprenta-reveal-delay, 0ms);
	will-change: opacity, transform;
}

.imprenta-has-js .imprenta-fade-up.imprenta-fade-up-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

/* ── Dostosowania WordPress admin-bar ────────────────────────────────────────── */

.admin-bar nav.fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar nav.fixed {
		top: 46px;
	}

	.imprenta-has-js .imprenta-fade-up {
		transform: translate3d(0, 42px, 0);
		transition-duration: 0.8s;
	}

}

/* ── Animacja grayscale→kolor na hover (portfolio grid) ─────────────────────── */

.group img {
	transition: filter 0.7s ease, transform 0.7s ease;
}

.imprenta-company-card {
	display: flex;
	min-height: 320px;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
	border: 1px solid #27272a;
	background: #1b1b1b;
	padding: 2rem;
	transition:
		border-color 0.35s ease,
		background-color 0.35s ease;
}

.imprenta-company-card:hover {
	border-color: #414753;
	background: #1f1f1f;
}

.imprenta-company-card__logo-wrap {
	display: flex;
	min-height: 112px;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid rgba(63, 63, 70, 0.55);
	padding-bottom: 1.5rem;
}

.imprenta-company-card__logo {
	max-height: 72px;
	width: auto;
	object-fit: contain;
	opacity: 0.72;
	filter: grayscale(1);
	transition:
		opacity 0.35s ease,
		filter 0.35s ease,
		transform 0.45s ease;
}

.imprenta-company-card:hover .imprenta-company-card__logo {
	opacity: 0.92;
	filter: grayscale(0);
	transform: translateY(-1px);
}

.imprenta-company-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-end;
}

.imprenta-logo-marquee {
	position: relative;
	overflow: hidden;
	border-top: 1px solid #27272a;
	border-bottom: 1px solid #27272a;
	background:
		linear-gradient(180deg, rgba(24, 24, 27, 0.94), rgba(15, 15, 18, 0.98));
}

.imprenta-logo-marquee__track {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 0;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	animation: imprenta-marquee var(--imprenta-marquee-duration, 32s) linear infinite;
}

.imprenta-logo-marquee__item {
	display: flex;
	min-width: 240px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 2.75rem 3rem;
	position: relative;
}

.imprenta-logo-marquee__item a,
.imprenta-logo-marquee__item span {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
}

.imprenta-logo-marquee__item::after {
	content: "";
	position: absolute;
	top: 26%;
	right: 0;
	height: 48%;
	width: 1px;
	background: rgba(63, 63, 70, 0.28);
}

.imprenta-logo-marquee__item:last-child::after {
	display: none;
}

.imprenta-logo-marquee__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: 72px;
	pointer-events: none;
}

.imprenta-logo-marquee__fade--left {
	left: 0;
	background: linear-gradient(90deg, #09090b 0%, rgba(9, 9, 11, 0) 100%);
}

.imprenta-logo-marquee__fade--right {
	right: 0;
	background: linear-gradient(270deg, #09090b 0%, rgba(9, 9, 11, 0) 100%);
}

@keyframes imprenta-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.imprenta-company-card {
		min-height: 280px;
		padding: 1.5rem;
	}

	.imprenta-company-card__logo-wrap {
		min-height: 96px;
		padding-bottom: 1.25rem;
	}

	.imprenta-company-card__logo {
		max-height: 56px;
	}

	.imprenta-logo-marquee__item {
		min-width: 180px;
		padding: 2rem 2rem;
	}

	.imprenta-logo-marquee__track {
		animation-duration: var(--imprenta-marquee-duration, 24s);
	}
}

.imprenta-cookie-consent {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 80;
	width: min(520px, calc(100vw - 2rem));
}

.imprenta-cookie-consent__panel {
	border: 1px solid rgba(63, 63, 70, 0.9);
	background: rgba(9, 9, 11, 0.94);
	backdrop-filter: blur(20px);
	padding: 1.5rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.imprenta-cookie-consent__content,
.imprenta-cookie-consent__settings {
	margin-bottom: 1.25rem;
}

.imprenta-cookie-consent__eyebrow {
	margin: 0 0 0.5rem;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #71717a;
}

.imprenta-cookie-consent__title {
	margin: 0 0 0.75rem;
	font-family: 'Epilogue', sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: #f4f4f5;
}

.imprenta-cookie-consent__description,
.imprenta-cookie-consent__note,
.imprenta-cookie-consent__toggle-description {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #a1a1aa;
}

.imprenta-cookie-consent__note {
	margin-top: 0.75rem;
	color: #71717a;
}

.imprenta-cookie-consent__toggle {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.875rem;
	align-items: start;
	border-top: 1px solid rgba(39, 39, 42, 1);
	padding-top: 1.25rem;
	cursor: pointer;
}

.imprenta-cookie-consent__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.imprenta-cookie-consent__toggle-ui {
	position: relative;
	display: inline-flex;
	width: 46px;
	height: 26px;
	margin-top: 0.1rem;
	border: 1px solid rgba(63, 63, 70, 1);
	border-radius: 999px;
	background: #18181b;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.imprenta-cookie-consent__toggle-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #71717a;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.imprenta-cookie-consent__toggle input:checked + .imprenta-cookie-consent__toggle-ui {
	border-color: #aac7ff;
	background: rgba(170, 199, 255, 0.14);
}

.imprenta-cookie-consent__toggle input:checked + .imprenta-cookie-consent__toggle-ui::after {
	transform: translateX(20px);
	background: #aac7ff;
}

.imprenta-cookie-consent__toggle-copy {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.imprenta-cookie-consent__toggle-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #f4f4f5;
}

.imprenta-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.imprenta-cookie-consent__button,
.imprenta-cookie-badge {
	border: 1px solid rgba(63, 63, 70, 1);
	background: transparent;
	padding: 0.85rem 1.1rem;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d4d4d8;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.imprenta-cookie-consent__button:hover,
.imprenta-cookie-badge:hover {
	border-color: #aac7ff;
	color: #f4f4f5;
}

.imprenta-cookie-consent__button--primary {
	border-color: #aac7ff;
	background: #aac7ff;
	color: #002f64;
}

.imprenta-cookie-consent__button--primary:hover {
	background: #c2d7ff;
	color: #002f64;
}

.imprenta-cookie-consent__button--ghost {
	background: #111113;
}

.imprenta-cookie-badge {
	position: fixed;
	left: 1.5rem;
	bottom: 1.5rem;
	z-index: 70;
	background: rgba(9, 9, 11, 0.9);
	backdrop-filter: blur(16px);
}

@media (max-width: 767px) {
	.imprenta-cookie-consent {
		right: 1rem;
		bottom: 1rem;
		width: calc(100vw - 2rem);
	}

	.imprenta-cookie-consent__panel {
		padding: 1.25rem;
	}

	.imprenta-cookie-consent__title {
		font-size: 1.25rem;
	}

	.imprenta-cookie-consent__actions {
		flex-direction: column;
	}

	.imprenta-cookie-consent__button {
		width: 100%;
	}

	.imprenta-cookie-badge {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		width: calc(100vw - 2rem);
	}
}

/* ── Watermark cap-height correction ────────────────────────────────────────── */

.imprenta-service-slider {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.imprenta-service-slider__viewport {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.imprenta-service-slider__viewport::-webkit-scrollbar {
	display: none;
}

.imprenta-service-slider__slide {
	aspect-ratio: 4 / 3.95;
	overflow: hidden;
	background: #18181b;
	scroll-snap-align: start;
}

.imprenta-service-slider__image-wrap {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(15, 15, 18, 0.98));
	padding: 1.5rem;
}

.imprenta-service-slider__image {
	display: block;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.imprenta-service-slider__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.imprenta-service-slider__counter {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #71717a;
}

.imprenta-service-slider__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.imprenta-service-slider__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border: 1px solid #3f3f46;
	background: transparent;
	color: #d4d4d8;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.imprenta-service-slider__button:hover {
	border-color: #aac7ff;
	color: #f4f4f5;
}

.wpcf7 {
	margin: 0;
}

.wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.wpcf7 .contact-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.wpcf7 label {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #71717a;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-list-item {
	margin-left: 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	border: 1px solid #3f3f46;
	background: #111113;
	padding: 1rem 1.1rem;
	border-radius: 0;
	box-shadow: none;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
	color: #f4f4f5;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="url"]::placeholder,
.wpcf7 textarea::placeholder {
	color: #52525b;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: #aac7ff;
	background: #16161a;
}

.wpcf7 select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #71717a 50%),
		linear-gradient(135deg, #71717a 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 2px),
		calc(100% - 12px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2.75rem;
}

.wpcf7 .wpcf7-acceptance label {
	flex-direction: row;
	align-items: center;
	gap: 0.85rem;
	font-size: 10px;
	letter-spacing: 0.16em;
	line-height: 1.7;
	color: #a1a1aa;
	text-transform: uppercase;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	border: 1px solid #52525b;
	appearance: none;
	-webkit-appearance: none;
	background: #111113;
	box-shadow: none;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
	border-color: #aac7ff;
	background: #aac7ff;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]::after {
	content: "";
	position: absolute;
	left: 0.32rem;
	top: 0.08rem;
	width: 0.28rem;
	height: 0.56rem;
	border: solid #002f64;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg);
	transition: opacity 0.2s ease;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked::after {
	opacity: 1;
}

.wpcf7 .contact-form-submit {
	display: flex;
	justify-content: flex-start;
}

.wpcf7 input[type="submit"] {
	border: 0;
	background: #aac7ff;
	padding: 1rem 1.8rem;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #002f64;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: #c2d7ff;
}

.wpcf7 input[type="submit"]:active {
	transform: translateY(1px);
}

.wpcf7 .wpcf7-spinner {
	margin: 0.75rem 0 0 0.75rem;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.65rem;
	color: #fda4af;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	letter-spacing: 0.01em;
	line-height: 1.6;
	text-transform: none;
}

/* Response output — base */
.wpcf7 .wpcf7-response-output {
	display: block;
	margin-top: 1.5rem;
	padding: 1.4rem 1.5rem;
	border: 1px solid rgba(63, 63, 70, 0.7);
	border-left-width: 2px;
	background: rgba(17, 17, 19, 0.72);
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.75;
	color: #c4c4c9;
	width: 100%;
}

/* Sukces */
.wpcf7 form.sent .wpcf7-response-output {
	padding: 1.75rem 2rem;
	border-color: rgba(170, 199, 255, 0.36);
	background: rgba(170, 199, 255, 0.06);
	color: #d9e8ff;
	text-align: center;
	font-size: 15px;
}

/* Error */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	padding: 1.75rem 2rem;
	border-color: rgba(251, 113, 133, 0.34);
	background: rgba(88, 23, 36, 0.18);
	color: #ffd3db;
	text-align: center;
	font-size: 15px;
}

@media (max-width: 767px) {
	.wpcf7 .contact-form-grid {
		grid-template-columns: 1fr;
	}

	.wpcf7 input[type="text"],
	.wpcf7 input[type="email"],
	.wpcf7 input[type="tel"],
	.wpcf7 input[type="url"],
	.wpcf7 select,
	.wpcf7 textarea {
		padding: 0.95rem 1rem;
		font-size: 16px;
	}

	.wpcf7 input[type="submit"] {
		width: 100%;
	}
}

/* ── Mega Menu ──────────────────────────────────────────────────────────────── */

/* ── Trigger button ─────────────────────────────────────────────────────────── */

.imprenta-mega-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0 0 4px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Epilogue', sans-serif;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #71717a;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.imprenta-mega-trigger:hover {
	color: #e4e4e7;
}

.imprenta-mega-trigger[aria-expanded="true"] {
	color: #f4f4f5;
}

.imprenta-mega-trigger .mm-chevron {
	font-size: 18px;
	line-height: 1;
	transition: transform 0.22s ease;
}

.imprenta-mega-trigger[aria-expanded="true"] .mm-chevron {
	transform: rotate(180deg);
}

/* ── Panel ───────────────────────────────────────────────────────────────────── */

.imprenta-mega-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 40;
	background: #111113;
	border-top: 1px solid #27272a;
	box-shadow:
		0 2px 0 #27272a,
		0 24px 48px rgba(0, 0, 0, 0.7);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-4px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0s linear 0.2s;
	pointer-events: none;
}

.imprenta-mega-menu.is-open {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
	pointer-events: auto;
}

/* ── Grid ────────────────────────────────────────────────────────────────────── */

.imprenta-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

.imprenta-mega-menu__item {
	border-right: 1px solid #1f1f1f;
	border-bottom: 1px solid #1f1f1f;
	display: flex;
	flex-direction: column;
}

.imprenta-mega-menu__item:nth-child(5n),
.imprenta-mega-menu__item:last-child {
	border-right: none;
}

/* ── Tile link ───────────────────────────────────────────────────────────────── */

.imprenta-mega-menu__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.75rem 1.25rem 1.625rem;
	min-height: 160px;
	flex: 1;
	text-decoration: none;
	color: #a1a1aa;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.imprenta-mega-menu__link:hover,
.imprenta-mega-menu__link:focus-visible {
	color: #e4e4e7;
	background: #17171a;
	outline: none;
}

/* ── Image container — always square 72×72 ───────────────────────────────────── */

.imprenta-mega-menu__img-wrap {
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.imprenta-mega-menu__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(1) brightness(0.42);
	transition: filter 0.22s ease, transform 0.22s ease;
}

.imprenta-mega-menu__link:hover .imprenta-mega-menu__img,
.imprenta-mega-menu__link:focus-visible .imprenta-mega-menu__img {
	filter: grayscale(0) brightness(0.88);
}

.imprenta-mega-menu__img-placeholder {
	display: block;
	width: 48px;
	height: 48px;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	opacity: 0.3;
}

.imprenta-mega-menu .imprenta-mega-menu__icon.material-symbols-outlined {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	color: #a1a1aa;
	font-size: 56px;
	line-height: 1;
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
	transition: color 0.22s ease;
}

.imprenta-mega-menu__link:hover .imprenta-mega-menu__icon,
.imprenta-mega-menu__link:focus-visible .imprenta-mega-menu__icon {
	color: #f4f4f5;
}

.imprenta-mega-menu .imprenta-mega-menu__item--featured .imprenta-mega-menu__icon.material-symbols-outlined,
.imprenta-mega-menu .imprenta-mega-menu__item--featured .imprenta-mega-menu__link:hover .imprenta-mega-menu__icon.material-symbols-outlined,
.imprenta-mega-menu .imprenta-mega-menu__item--featured .imprenta-mega-menu__link:focus-visible .imprenta-mega-menu__icon.material-symbols-outlined {
	color: #002f64;
}

/* ── Label ───────────────────────────────────────────────────────────────────── */

.imprenta-mega-menu__label {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.5;
	max-width: 120px;
}

/* ── Current page tile ───────────────────────────────────────────────────────── */

.imprenta-mega-menu__item--current .imprenta-mega-menu__link {
	color: #f4f4f5;
	background: #1a1a1d;
}

.imprenta-mega-menu__item--current .imprenta-mega-menu__img {
	filter: grayscale(0) brightness(0.9);
}

.imprenta-mega-menu__item--current .imprenta-mega-menu__link:hover {
	background: #1e1e22;
}

/* ── Featured tile ───────────────────────────────────────────────────────────── */

.imprenta-mega-menu__item--featured .imprenta-mega-menu__link {
	color: #002f64;
	background: #aac7ff;
}

.imprenta-mega-menu__item--featured .imprenta-mega-menu__link:hover,
.imprenta-mega-menu__item--featured .imprenta-mega-menu__link:focus-visible {
	color: #002f64;
	background: #c2d7ff;
}

.imprenta-mega-menu__item--featured .imprenta-mega-menu__img-wrap {
	width: 72px;
	height: 72px;
}

.imprenta-mega-menu__item--featured .imprenta-mega-menu__img {
	filter: none;
	opacity: 1;
}

.imprenta-mega-menu__item--featured .imprenta-mega-menu__link:hover .imprenta-mega-menu__img {
	filter: none;
	opacity: 1;
}

/* ── "View all" tile ─────────────────────────────────────────────────────────── */

.imprenta-mega-menu__item--view-all {
	border-left: 1px solid rgba(170, 199, 255, 0.1);
}

.imprenta-mega-menu__item--view-all .imprenta-mega-menu__link {
	color: rgba(170, 199, 255, 0.65);
	background: rgba(170, 199, 255, 0.03);
}

.imprenta-mega-menu__item--view-all .imprenta-mega-menu__link:hover {
	color: #aac7ff;
	background: rgba(170, 199, 255, 0.07);
}

.imprenta-mega-menu__view-all-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 1px solid rgba(170, 199, 255, 0.18);
	border-radius: 8px;
	background: rgba(170, 199, 255, 0.06);
	color: rgba(170, 199, 255, 0.6);
	transition: color 0.18s ease, background 0.18s ease;
}

.imprenta-mega-menu__view-all-icon .material-symbols-outlined {
	font-size: 26px;
}

.imprenta-mega-menu__item--view-all .imprenta-mega-menu__link:hover .imprenta-mega-menu__view-all-icon {
	color: #aac7ff;
	background: rgba(170, 199, 255, 0.1);
}

/* ── Backdrop ─────────────────────────────────────────────────────────────────── */

.imprenta-mega-backdrop {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: rgba(0, 0, 0, 0.45);
	visibility: hidden;
	opacity: 0;
	transition:
		opacity 0.2s ease,
		visibility 0s linear 0.2s;
}

.imprenta-mega-backdrop.is-open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

/* ── Mobile accordion ────────────────────────────────────────────────────────── */

.imprenta-mobile-mega {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.imprenta-mobile-mega.is-open {
	max-height: 2000px;
}

.imprenta-mobile-mega__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	list-style: none;
	margin: 1rem -1.5rem 0;
	padding: 0;
	border-top: 1px solid #27272a;
}

.imprenta-mobile-mega__item {
	border-right: 1px solid #1f1f1f;
	border-bottom: 1px solid #1f1f1f;
}

.imprenta-mobile-mega__item:nth-child(2n) {
	border-right: none;
}

.imprenta-mobile-mega__item .imprenta-mega-menu__link {
	min-height: 116px;
	padding: 1.25rem 1rem 1.125rem;
	gap: 0.75rem;
}

.imprenta-mobile-mega__item .imprenta-mega-menu__img-wrap {
	width: 56px;
	height: 56px;
}

/* ── Responsive: 4 columns on tablet ────────────────────────────────────────── */

@media (min-width: 768px) and (max-width: 1279px) {
	.imprenta-mega-menu__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.imprenta-mega-menu__item:nth-child(5n) {
		border-right: 1px solid #1f1f1f;
	}

	.imprenta-mega-menu__item:nth-child(4n),
	.imprenta-mega-menu__item:last-child {
		border-right: none;
	}

	.imprenta-mega-menu__link {
		min-height: 148px;
		padding: 1.5rem 1rem 1.375rem;
	}
}

.watermark-text {
	display: block;
	transform: translateY(0.06em);
}
@font-face {
	font-family: 'Epilogue';
	src: url('../fonts/epilogue-700.ttf') format('truetype');
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Epilogue';
	src: url('../fonts/epilogue-800.ttf') format('truetype');
	font-style: normal;
	font-weight: 800;
	font-display: swap;
}

@font-face {
	font-family: 'Epilogue';
	src: url('../fonts/epilogue-900.ttf') format('truetype');
	font-style: normal;
	font-weight: 900;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope-300.ttf') format('truetype');
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope-400.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope-500.ttf') format('truetype');
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-400.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-700.ttf') format('truetype');
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Material Symbols Outlined';
	src: url('../fonts/material-symbols-outlined-400.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: block;
}

.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	vertical-align: middle;
	line-height: 1;
	user-select: none;
}

/* ── Podpis na zdjęciu (czytelność na jasnych fotografiach) ─────────────────── */
.imprenta-photo-caption {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* ── Paginacja (archiwa) ────────────────────────────────────────────────────── */
.imprenta-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.imprenta-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.6rem;
	border: 1px solid #27272a;
	color: #a1a1aa;
	font-family: Inter, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.imprenta-pagination a.page-numbers:hover {
	border-color: #f4f4f5;
	color: #f4f4f5;
}
.imprenta-pagination .page-numbers.current {
	background-color: #aac7ff;
	border-color: #aac7ff;
	color: #002f64;
	font-weight: 700;
}
.imprenta-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 0.25rem;
	border-color: transparent;
	color: #52525b;
}
.imprenta-pagination .page-numbers.prev,
.imprenta-pagination .page-numbers.next {
	padding: 0 1.1rem;
}
.imprenta-pagination .page-numbers .material-symbols-outlined {
	font-size: 1.05rem;
}

.imprenta-pagination {
	margin-top: 4rem;
}

/* ── Płynne pojawianie się zdjęć po załadowaniu ─────────────────────────────── */
.imprenta-has-js .imprenta-img-fade {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.5s ease;
}
.imprenta-has-js .imprenta-img-fade.is-loaded {
	opacity: 1;
}

/* ── Lightbox: płynne wczytywanie zdjęcia + spinner ─────────────────────────── */
#imprenta-lightbox #lightbox-img {
	opacity: 0;
	transition: opacity 0.35s ease;
}
#imprenta-lightbox #lightbox-img.is-loaded {
	opacity: 1;
}
#imprenta-lightbox .lightbox-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border: 3px solid rgba(244, 244, 245, 0.2);
	border-top-color: rgba(244, 244, 245, 0.85);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	animation: imprenta-lightbox-spin 0.8s linear infinite;
}
#imprenta-lightbox.is-loading .lightbox-spinner {
	opacity: 1;
}
@keyframes imprenta-lightbox-spin {
	to { transform: rotate(360deg); }
}

/* ── Homepage hero: układ dwukolumnowy z tonalnym przejściem ─────────────── */
.imprenta-hero {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 3rem;
}
.imprenta-hero__media { display: none; }
.imprenta-hero__frame {
	position: relative;
	margin-left: auto;
	width: 100%;
	max-width: 480px;         /* rozmiar zdjęcia hero — regulowany tutaj */
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
@media (min-width: 768px) {
	.imprenta-hero--with-media {
		grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
		column-gap: 4rem;
	}
	.imprenta-hero--with-media .imprenta-hero__media { display: block; }
}
