/* =====================================================
   ALPAX Premium — strona główna
   ===================================================== */

/* Tokeny --ax-* są globalne — definicja w style.css motywu
   (spięta z paletą Kadence --global-palette1..9). */

#alpax-front {
	overflow-x: clip;
	font-kerning: normal;
}

.ax-container {
	max-width: 1220px;
	margin-inline: auto;
	padding-inline: 24px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ---------- Typography helpers ---------- */

.ax-section { padding: clamp(64px, 9vw, 120px) 0; }

.ax-section__kicker {
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ax-accent);
	margin: 0 0 14px;
}

.ax-section__title {
	font-size: clamp(30px, 4.4vw, 52px);
	line-height: 1.08;
	font-weight: 700;
	color: var(--ax-ink);
	margin: 0;
	letter-spacing: -0.02em;
}

.ax-section__title--light { color: var(--ax-text-light); }
.ax-section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.ax-section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */

.ax-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
	will-change: transform;
}

.ax-btn--primary {
	background: linear-gradient(120deg, var(--ax-accent), var(--ax-accent-2));
	color: #17130a;
	box-shadow: 0 10px 30px rgba(201, 162, 75, 0.35);
}

.ax-btn--primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(201, 162, 75, 0.45);
	color: #17130a;
}

.ax-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--ax-text-light);
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(6px);
}

.ax-btn--ghost:hover {
	border-color: var(--ax-accent);
	color: var(--ax-accent-2);
	transform: translateY(-3px);
}

.ax-btn--lg { padding: 20px 44px; font-size: 18px; }

/* ---------- Placeholder media (do podmiany na zdjęcia) ---------- */

.ax-ph {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 45%),
		linear-gradient(160deg, #22303a 0%, #101820 100%);
}

.ax-ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
}

/* Placeholdery fotograficzne — realne zdjęcia z biblioteki mediów */
.ax-ph--photo {
	background-size: cover;
	background-position: center;
}

.ax-ph--photo::after { content: none; }

.ax-ph--photo-fenster { background-image: url("../../../../uploads/2026/07/abakus-fenster.jpg"); }
.ax-ph--photo-boeden { background-image: url("../../../../uploads/2026/07/boeden-interieur.jpg"); }

.ax-ph--window { background: linear-gradient(160deg, #2a4457 0%, #101d28 100%); }
.ax-ph--door { background: linear-gradient(160deg, #4a3b2a 0%, #1d1610 100%); }
.ax-ph--floor { background: linear-gradient(160deg, #5a4632 0%, #241a10 100%); }
.ax-ph--skirting { background: linear-gradient(160deg, #3a3f45 0%, #14171b 100%); }
.ax-ph--sill { background: linear-gradient(160deg, #43505b 0%, #171d23 100%); }

/* =====================================================
   HERO
   ===================================================== */

.ax-hero {
	position: relative;
	min-height: min(92vh, 980px);
	display: flex;
	align-items: center;
	background: var(--ax-dark);
	color: var(--ax-text-light);
	padding: clamp(90px, 12vh, 150px) 0 clamp(60px, 8vh, 110px);
}

.ax-hero__bg { position: absolute; inset: 0; overflow: hidden; }

.ax-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

.ax-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(14, 20, 24, 0.92) 0%, rgba(14, 20, 24, 0.55) 55%, rgba(14, 20, 24, 0.3) 100%),
		linear-gradient(to top, var(--ax-dark) 0%, rgba(14, 20, 24, 0) 28%);
}

@media (prefers-reduced-motion: reduce) {
	.ax-hero__video { display: none; }
}

.ax-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	will-change: transform;
}

.ax-blob--1 {
	width: 640px;
	height: 640px;
	top: -180px;
	right: -120px;
	background: radial-gradient(circle at 35% 35%, #c9a24b 0%, rgba(201, 162, 75, 0) 65%);
}

.ax-blob--2 {
	width: 520px;
	height: 520px;
	bottom: -200px;
	left: -140px;
	background: radial-gradient(circle at 60% 40%, #27506b 0%, rgba(39, 80, 107, 0) 70%);
}

.ax-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}

.ax-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	width: 100%;
}

.ax-hero__kicker {
	font-size: 13px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ax-accent-2);
	margin: 0 0 22px;
}

.ax-hero__title {
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.04;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ax-white);
	margin: 0 0 26px;
}

.ax-hero__title-line { display: block; }

/* Rotator słów */
.ax-rotator {
	position: relative;
	display: block;
	height: 1.08em;
	overflow: hidden;
	color: var(--ax-accent);
}

.ax-rotator__word {
	position: absolute;
	inset: 0 auto auto 0;
	white-space: nowrap;
	opacity: 0;
}

.ax-rotator__word:first-child { opacity: 1; }

.ax-hero__lead {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.65;
	color: var(--ax-muted);
	max-width: 560px;
	margin: 0 0 34px;
}

.ax-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(40px, 6vh, 70px); }

.ax-hero__stats {
	display: flex;
	gap: clamp(28px, 4vw, 56px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 28px;
}

.ax-stat__num {
	display: block;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	color: var(--ax-white);
	letter-spacing: -0.02em;
}

.ax-stat__label { font-size: 14px; color: var(--ax-muted); }

/* Pływające karty produktowe */
.ax-hero__visual {
	position: relative;
	height: clamp(380px, 46vw, 560px);
	perspective: 1000px;
}

.ax-float-card {
	position: absolute;
	width: min(62%, 300px);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--ax-radius);
	padding: 10px;
	backdrop-filter: blur(10px);
	box-shadow: var(--ax-shadow);
	will-change: transform;
	transform-style: preserve-3d;
}

.ax-float-card__thumb {
	height: 150px;
	border-radius: calc(var(--ax-radius) - 6px);
	margin-bottom: 10px;
}

.ax-float-card__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ax-text-light);
	padding: 0 6px 6px;
}

/* Karta jako link — strzałka sygnalizuje klikalność. */
a.ax-float-card {
	text-decoration: none;
	cursor: pointer;
}

a.ax-float-card:hover {
	border-color: rgba(201, 162, 75, 0.55);
}

.ax-float-card__arrow {
	display: inline-block;
	margin-left: 4px;
	color: var(--ax-accent);
	transition: transform 0.3s ease;
}

a.ax-float-card:hover .ax-float-card__arrow {
	transform: translateX(5px);
}

.ax-float-card--1 { top: 4%; left: 2%; z-index: 3; }
.ax-float-card--2 { top: 30%; right: 0; z-index: 2; }
.ax-float-card--3 { bottom: 0; left: 12%; z-index: 1; }

/* Scroll cue */
.ax-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
	display: flex;
	justify-content: center;
}

.ax-hero__scroll-dot {
	width: 4px;
	height: 8px;
	margin-top: 7px;
	border-radius: 2px;
	background: var(--ax-accent);
}

/* =====================================================
   SORTIMENT — karty kategorii
   ===================================================== */

/* Jasne sekcje są przezroczyste — prześwituje globalne tło motywu (body). */
.ax-sortiment { background: transparent; }

.ax-cards {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 22px;
}

.ax-card {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	background: var(--ax-white);
	border-radius: var(--ax-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(16, 24, 32, 0.07);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.ax-card--wide { grid-column: span 3; }

.ax-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 60px rgba(16, 24, 32, 0.14);
}

.ax-card__media {
	height: clamp(170px, 20vw, 240px);
	transition: transform 0.5s ease;
}

.ax-card__body { padding: 26px 28px 30px; }

.ax-card__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--ax-ink);
	margin: 0 0 8px;
}

.ax-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: #5c6b76;
	margin: 0 0 18px;
}

.ax-card__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--ax-accent);
	letter-spacing: 0.02em;
}

.ax-card__arrow { display: inline-block; transition: transform 0.3s ease; }
.ax-card:hover .ax-card__arrow { transform: translateX(6px); }

/* =====================================================
   WARUM ALPAX
   ===================================================== */

.ax-why { background: var(--ax-dark-2); color: var(--ax-text-light); }

.ax-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(36px, 6vw, 90px);
	align-items: start;
}

.ax-why .ax-section__head { margin-bottom: 0; }
.ax-why__lead { color: var(--ax-muted); line-height: 1.7; margin-top: 20px; }

.ax-why__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.ax-why__item {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 22px;
	padding: 26px 28px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--ax-radius);
	background: rgba(255, 255, 255, 0.03);
}

.ax-why__num {
	grid-row: span 2;
	font-size: 15px;
	font-weight: 700;
	color: var(--ax-accent);
	padding-top: 4px;
}

.ax-why__item h3 { margin: 0 0 8px; font-size: 19px; color: var(--ax-white); }
.ax-why__item p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ax-muted); }

/* =====================================================
   MARKEN — marquee
   ===================================================== */

.ax-brands { background: transparent; padding-bottom: clamp(70px, 9vw, 130px); }

.ax-marquee {
	display: flex;
	overflow: hidden;
	gap: 64px;
	user-select: none;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ax-marquee__track {
	display: flex;
	flex-shrink: 0;
	gap: 64px;
	align-items: center;
	will-change: transform;
}

.ax-brand {
	font-size: clamp(22px, 2.6vw, 34px);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #c3ccd3;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.ax-brand:hover { color: var(--ax-accent); }

/* =====================================================
   PROZESS
   ===================================================== */

.ax-process { background: transparent; }

.ax-process__wrap { position: relative; }

.ax-process__line {
	position: absolute;
	top: 26px;
	left: 6%;
	width: 88%;
	height: 60px;
	color: var(--ax-accent);
	opacity: 0.8;
}

.ax-steps {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* Elastyczna liczba kroków (4, 5...) — zawsze równe kolumny. */
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 26px;
}

.ax-step { text-align: center; padding: 0 8px; }

.ax-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--ax-white);
	border: 2px solid var(--ax-accent);
	color: var(--ax-ink);
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 18px;
	box-shadow: 0 8px 20px rgba(16, 24, 32, 0.08);
}

.ax-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--ax-ink); }
.ax-step p { font-size: 14.5px; line-height: 1.6; color: #5c6b76; margin: 0; }

/* =====================================================
   CTA
   ===================================================== */

.ax-cta {
	position: relative;
	background: var(--ax-dark);
	overflow: hidden;
	text-align: center;
}

.ax-blob--cta {
	width: 700px;
	height: 700px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(201, 162, 75, 0.28) 0%, transparent 65%);
	filter: blur(60px);
}

.ax-cta__inner { position: relative; }

.ax-cta__title {
	font-size: clamp(32px, 4.6vw, 56px);
	color: var(--ax-white);
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}

.ax-cta__text {
	font-size: 18px;
	color: var(--ax-muted);
	margin: 0 0 36px;
}

/* =====================================================
   Responsywność
   ===================================================== */

@media (max-width: 1024px) {
	.ax-hero__inner { grid-template-columns: 1fr; }
	.ax-hero__visual { display: none; }
	.ax-why__grid { grid-template-columns: 1fr; }
	.ax-card--wide, .ax-card { grid-column: span 3; }
}

@media (max-width: 680px) {
	/* Na mobile statyczne zdjęcie zamiast wideo (transfer). */
	.ax-hero__video { display: none; }
	.ax-hero__bg {
		background: url("../../../../uploads/2026/07/abakus-fenster.jpg") center / cover no-repeat;
	}
	.ax-card, .ax-card--wide { grid-column: span 6; }
	.ax-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.ax-process__line { display: none; }
	.ax-hero__stats { flex-wrap: wrap; gap: 24px; }
	.ax-hero__scroll { display: none; }
}
