/* ========================================================
   Referencje - Signature Premium style
   page-referencje.php + archive-referencja.php + single-referencja.php
   ======================================================== */

.referencje-google { background: var(--c-surface-warm); }
.referencje-lista { background: var(--c-surface); }

/* --------------------------------------------------------
   Section header (reuse w kazdej sekcji strony referencji)
   -------------------------------------------------------- */
.referencje-section__header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto var(--s-12);
}

.referencje-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	margin-bottom: var(--s-4);
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	color: var(--c-primary);
}
.referencje-section__eyebrow-line {
	display: inline-block;
	width: 32px;
	height: 2px;
	background: var(--c-primary);
	border-radius: 2px;
}

.referencje-section__heading {
	font-family: var(--f-headline);
	font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
	font-weight: var(--fw-black);
	color: var(--c-neutral-800);
	line-height: 1.15;
	letter-spacing: var(--ls-tightest);
	margin-bottom: var(--s-4);
}
.referencje-section__heading-mark {
	position: relative;
	display: inline-block;
	color: var(--c-primary);
	white-space: nowrap;
}
.referencje-section__heading-mark::before {
	content: '';
	position: absolute;
	left: -4px;
	right: -4px;
	bottom: 4px;
	height: 30%;
	background: rgba(255, 182, 39, 0.4);
	border-radius: 6px;
	z-index: -1;
	transform: skew(-4deg, -1deg);
}

.referencje-section__lead {
	font-family: var(--f-body);
	font-size: var(--fs-base);
	color: var(--c-neutral-600);
	line-height: var(--lh-relaxed);
	margin: 0;
}

/* --------------------------------------------------------
   Grid listy referencji
   -------------------------------------------------------- */
.referencje-lista__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s-5);
}
@media (max-width: 1024px) { .referencje-lista__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .referencje-lista__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------
   Karta referencji
   -------------------------------------------------------- */
.referencja-card {
	background: var(--c-white);
	border: 1px solid var(--c-neutral-100);
	border-radius: var(--r-xl);
	overflow: hidden;
	transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
	position: relative;
}
.referencja-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(242, 124, 31, 0.12);
	border-color: rgba(242, 124, 31, 0.3);
}

/* Signature top-left accent bar */
.referencja-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--brand-gradient);
	opacity: 0;
	transition: opacity var(--tr-fast);
}
.referencja-card:hover::before { opacity: 1; }

.referencja-card__inner {
	padding: var(--s-6);
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
	height: 100%;
}

/* --- Header: klient + gwiazdki --- */
.referencja-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--s-3);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--c-neutral-100);
}

.referencja-card__brand {
	display: flex;
	align-items: flex-start;
	gap: var(--s-3);
	flex: 1;
	min-width: 0;
}

.referencja-card__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(242, 124, 31, 0.1);
	color: var(--c-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.referencja-card__klient {
	font-family: var(--f-headline);
	font-size: var(--fs-lg);
	font-weight: var(--fw-black);
	color: var(--c-neutral-800);
	line-height: 1.2;
	margin: 0 0 2px;
	letter-spacing: var(--ls-tightest);
	overflow: hidden;
	text-overflow: ellipsis;
}

.referencja-card__data {
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	color: var(--c-neutral-400);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	font-weight: var(--fw-bold);
}

.referencja-card__header .stars,
.referencja-card__header svg { color: var(--c-star); flex-shrink: 0; }

/* --- Zakres prac --- */
.referencja-card__zakres {
	padding: var(--s-3) var(--s-4);
	background: var(--c-surface-cream);
	border-radius: var(--r-md);
	display: flex;
	flex-direction: column;
	gap: var(--s-1);
}
.referencja-card__label {
	font-family: var(--f-body);
	font-size: 10px;
	font-weight: var(--fw-bold);
	color: var(--c-neutral-400);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
}
.referencja-card__value {
	font-family: var(--f-body);
	font-size: var(--fs-sm);
	color: var(--c-neutral-800);
	font-weight: var(--fw-semibold);
	line-height: 1.4;
}

/* --- Cytat --- */
.referencja-card__cytat {
	position: relative;
	border-left: 3px solid var(--c-primary);
	padding: var(--s-2) 0 var(--s-2) var(--s-4);
	margin: 0;
	background: transparent;
	color: var(--c-neutral-600);
	font-family: var(--f-body);
	font-style: italic;
	line-height: var(--lh-relaxed);
	border-radius: 0;
	flex: 1;
}
.referencja-card__cytat p {
	margin: 0 0 var(--s-3);
	font-size: var(--fs-sm);
}

.referencja-card__quote-mark {
	position: absolute;
	top: -8px;
	left: var(--s-4);
	font-family: Georgia, serif;
	font-size: 3rem;
	color: rgba(242, 124, 31, 0.15);
	line-height: 1;
	pointer-events: none;
	font-style: normal;
}

.referencja-card__cytat cite {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-style: normal;
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	margin-top: var(--s-3);
}
.referencja-card__cytat cite strong {
	color: var(--c-neutral-800);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
}
.referencja-card__cytat cite span {
	color: var(--c-neutral-400);
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	font-weight: var(--fw-bold);
	font-size: 10px;
}

/* --- PDF download link --- */
.referencja-card__pdf {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	padding: var(--s-3) var(--s-4);
	background: var(--c-surface-cream);
	color: var(--c-neutral-800);
	border: 1px solid var(--c-neutral-100);
	border-radius: var(--r-md);
	font-family: var(--f-body);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	text-decoration: none;
	transition: all var(--tr-fast);
	margin-top: auto;
}
.referencja-card__pdf:hover {
	background: var(--c-primary);
	color: var(--c-white);
	border-color: var(--c-primary);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(242, 124, 31, 0.25);
}

.referencja-card__pdf-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: var(--r-sm);
	background: rgba(242, 124, 31, 0.1);
	color: var(--c-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--tr-fast), color var(--tr-fast);
}
.referencja-card__pdf:hover .referencja-card__pdf-icon {
	background: rgba(255, 255, 255, 0.2);
	color: var(--c-white);
}

.referencja-card__pdf-text { flex: 1; }

/* Wersja single (na single-referencja.php) - jedna wielka karta */
.referencja-card--single {
	max-width: 800px;
	margin: 0 auto;
}
.referencja-card--single .referencja-card__inner { padding: var(--s-10); }
.referencja-card--single .referencja-card__klient { font-size: var(--fs-2xl); }
.referencja-card--single .referencja-card__cytat p { font-size: var(--fs-base); }

/* --------------------------------------------------------
   Empty state
   -------------------------------------------------------- */
.referencje-lista__empty {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	padding: var(--s-16) var(--s-6);
}

.referencje-lista__empty-icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: rgba(242, 124, 31, 0.08);
	color: var(--c-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--s-6);
}

.referencje-lista__empty-title {
	font-family: var(--f-headline);
	font-size: var(--fs-2xl);
	font-weight: var(--fw-black);
	color: var(--c-neutral-800);
	line-height: 1.2;
	letter-spacing: var(--ls-tightest);
	margin-bottom: var(--s-3);
}

.referencje-lista__empty p {
	font-family: var(--f-body);
	font-size: var(--fs-base);
	color: var(--c-neutral-600);
	line-height: var(--lh-relaxed);
	margin-bottom: var(--s-6);
}

.referencje-lista__empty-actions {
	display: flex;
	gap: var(--s-3);
	justify-content: center;
	flex-wrap: wrap;
}
