/*
 * Reset i globalne style bazowe — StützSkin
 * Mobile-first. Bez frameworków. BEM naming.
 */

/* ----------------------------------------------------------------
 * Reset
 * ---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ----------------------------------------------------------------
 * Skip link — WCAG 2.4.1 (pomijanie bloków)
 * Widoczny tylko przy fokusie klawiatury
 * ---------------------------------------------------------------- */
.skip-link {
	position: absolute;
	top: -100%;
	left: 16px;
	background: var(--plum);
	color: #FDFCFB;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	z-index: 9999;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 16px;
}

/* ----------------------------------------------------------------
 * Screen-reader only — tekst tylko dla czytników ekranu
 * ---------------------------------------------------------------- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----------------------------------------------------------------
 * Focus visible — WCAG 2.4.7 (widoczny fokus)
 * ---------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 3px;
	border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------
 * Body
 * ---------------------------------------------------------------- */
body {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
 * Typografia nagłówkowa (Cormorant Garamond)
 * ---------------------------------------------------------------- */
h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 300;
	line-height: 1.1;
}

h1 {
	font-size: clamp(46px, 5vw, 68px);
}

h2 {
	font-size: clamp(34px, 3.2vw, 50px);
}

h3 {
	font-size: 24px;
}

/* ----------------------------------------------------------------
 * Akapity
 * ---------------------------------------------------------------- */
p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-light);
}

/* ----------------------------------------------------------------
 * Linki
 * ---------------------------------------------------------------- */
a {
	color: var(--plum); /* --brick #B46B60 nie spełnia WCAG AA 4.5:1 na jasnym tle */
	text-decoration: none;
}

a:visited {
	color: inherit;
}

.svc-card__link:visited,
.btn-ghost:visited,
.nav-links a:visited,
.footer-col a:visited {
	color: inherit;
}

.btn-primary:visited {
	color: var(--white);
}

.btn-white:visited {
	color: var(--plum);
}

/* ----------------------------------------------------------------
 * Layout utilities
 * ---------------------------------------------------------------- */

/* Kontener strony — max 1440px */
.container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 48px;
	padding-right: 48px;
}

/* Wrapper max-width dla wewnętrznej zawartości sekcji z pełnym tłem */
.page-wrap {
	max-width: 1440px;
	margin: 0 auto;
	width: 100%;
}

/* Generyczne strony (page.php) */
.page-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 140px 48px 80px;
}

@media (max-width: 767px) {
	.page-content {
		padding: 100px 24px 60px;
	}
}

/* Sekcja z pionowym paddingiem */
.section {
	padding: var(--space-2xl) 48px;
}

@media (max-width: 768px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.section {
		padding: 60px 20px;
	}
}

/* ----------------------------------------------------------------
 * Przyciski
 * ---------------------------------------------------------------- */

/* Przycisk główny — wypełniony, plum */
.btn-primary {
	display: inline-block;
	background: var(--plum);
	color: var(--white);
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 15px 34px;
	border-radius: var(--radius);
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
	background: var(--plum-dark);
	color: var(--white);
	transform: translateY(-1px);
}

/* Przycisk-duch — tylko podkreślenie */
.btn-ghost {
	display: inline-block;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 300;
	color: var(--ink-light);
	border-bottom: 0.5px solid var(--rose);
	padding-bottom: 2px;
	transition: color 0.2s;
}

.btn-ghost:hover {
	color: var(--rose);
}

/* ----------------------------------------------------------------
 * Eyebrow — etykieta przed nagłówkiem sekcji
 * ---------------------------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rose);
}

/* Pozioma kreska przed tekstem */
.eyebrow::before {
	content: '';
	display: block;
	width: 24px;
	height: 0.5px;
	background: var(--rose);
	flex-shrink: 0;
}

/* ----------------------------------------------------------------
 * Tytuł sekcji — kursywa w kolorze brick
 * ---------------------------------------------------------------- */
.sec-title em {
	font-style: italic;
	color: var(--brick);
}

/* ----------------------------------------------------------------
 * Przycisk biały — używany w sekcji CTA na ciemnym tle
 * Globalny, bo CTA pojawia się na stronie głównej i podstronach usług.
 * ---------------------------------------------------------------- */
.btn-white {
	display: inline-block;
	background: var(--white);
	color: var(--plum);
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 16px 36px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.btn-white:hover {
	background: var(--cream);
	color: var(--plum);
	transform: translateY(-1px);
}

/* ----------------------------------------------------------------
 * Sekcja CTA — globalna (strona główna + podstrony usług)
 * Gradient brick→rose, tekst dekoracyjny w tle.
 * ---------------------------------------------------------------- */
.cta-section {
	background: #793545;
	padding: 112px 48px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Logo jako watermark — pseudo-element dla pełnej kontroli nad opacity */
.cta-section::before {
	display: none;
	content: '';
	position: absolute;
	inset: 0;
	background: url('/wp-content/uploads/2026/03/logo-duze.png') center center no-repeat;
	background-size: auto 65%;
	opacity: 0.07;
	pointer-events: none;
	z-index: 0;
}

/* Kontener treści — wyśrodkowany, nad tłem */
.cta-inner {
	position: relative;
	z-index: 1;
	max-width: 580px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

/* Eyebrow — bez kreski (nadpisuje globalny .eyebrow z ::before) */
.cta-eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(253, 252, 251, 0.55);
}

.cta-section h2 {
	font-family: var(--serif);
	font-size: clamp(36px, 3.5vw, 52px);
	font-weight: 300;
	line-height: 1.15;
	color: var(--white);
}

.cta-section h2 em {
	font-style: italic;
	color: var(--white);
}

.cta-section p {
	font-size: 15px;
	font-weight: 300;
	color: rgba(253, 252, 251, 0.72);
	line-height: 1.7;
}

/* Dane kontaktowe pod przyciskiem */
.cta-contact {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 15px;
	font-weight: 500;
	color: rgba(253, 252, 251, 0.55);
	flex-wrap: wrap;
	justify-content: center;
}

.cta-contact a {
	color: rgba(253, 252, 251, 0.75);
	text-decoration: none;
	transition: color 0.2s;
}

.cta-contact a:hover {
	color: var(--white);
}

@media (max-width: 768px) {
	.cta-section {
		padding: 72px 24px;
	}

	.cta-bg {
		font-size: 120px;
	}
}

/* ── Animacje scroll — Intersection Observer ── */
@media (prefers-reduced-motion: no-preference) {

	.services__header,
	.why__content,
	.testimonials .sec-title,
	.about__content,
	.cta__inner {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.65s ease, transform 0.65s ease;
	}

	.about__photo {
		opacity: 0;
		transform: translateX(20px);
		transition: opacity 0.7s ease, transform 0.7s ease;
	}

	.why__stats {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.5s ease, transform 0.5s ease;
	}

	.svc-card,
	.testi-card {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.55s ease, transform 0.55s ease;
	}

	.stat-item {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.45s ease, transform 0.45s ease;
	}

	/* Stan po wejściu w viewport */
	.services__header.is-visible,
	.why__content.is-visible,
	.testimonials .sec-title.is-visible,
	.about__content.is-visible,
	.cta__inner.is-visible,
	.about__photo.is-visible,
	.why__stats.is-visible,
	.svc-card.is-visible,
	.testi-card.is-visible,
	.stat-item.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ── Hero — animacja przy załadowaniu (nie scroll) ── */
@media (prefers-reduced-motion: no-preference) {
	.hero__left {
		animation: heroFadeIn 0.8s ease 0.1s both;
	}

	.hero__right {
		animation: heroFadeIn 0.8s ease 0.25s both;
	}

	@keyframes heroFadeIn {
		from {
			opacity: 0;
			transform: translateY(20px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
