/* =========================================================================
   ICF Karting — v6 (final polish)
   - Mobile bottom nav (zamiast booking bar)
   - Newsletter capture
   - Trust band
   - Space Grotesk display
   - Custom SVG icons
   - Film grain overlay
   - Page enter animation
   ========================================================================= */

/* ===========================================================
   FIX: booking bar — body padding + smarter hide
   =========================================================== */
@media (max-width: 720px) {
	body { padding-bottom: 88px; }
	/* Mobile: ukryj sticky booking bar, zastąp bottom-nav */
	.booking-bar { display: none !important; }
}

/* Desktop: większy threshold, hide kiedy footer już zaczyna się pokazywać */
@media (min-width: 721px) {
	body { padding-bottom: 0; }
}

/* ===========================================================
   MOBILE BOTTOM NAV — 4 ikony glass (zamiast booking bar)
   =========================================================== */
.bottom-nav {
	display: none;
}
@media (max-width: 720px) {
	.bottom-nav {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		background: rgba(8, 8, 10, 0.85);
		backdrop-filter: saturate(180%) blur(24px);
		-webkit-backdrop-filter: saturate(180%) blur(24px);
		border-top: 1px solid rgba(255,255,255,.08);
		padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) 4px;
		gap: 2px;
	}
	.bottom-nav__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: 2px;
		padding: 6px 4px;
		color: var(--c-text-2);
		text-decoration: none;
		font-size: 0.65rem;
		font-weight: 500;
		letter-spacing: 0.02em;
		border-radius: 12px;
		transition: background .2s var(--ease-soft), color .2s;
		min-height: 56px;
	}
	.bottom-nav__item:active {
		background: rgba(255,255,255,.06);
		color: #fff;
	}
	.bottom-nav__item--cta {
		background: linear-gradient(135deg, var(--c-accent) 0%, #c81f12 100%);
		color: #fff !important;
	}
	.bottom-nav__item--cta:active { transform: scale(0.96); }
	.bottom-nav__icon {
		width: 22px; height: 22px;
		display: flex; align-items: center; justify-content: center;
	}
	.bottom-nav__icon svg { width: 100%; height: 100%; fill: currentColor; }
}

/* ===========================================================
   TYPOGRAPHY UPGRADE — Space Grotesk dla headlines
   =========================================================== */
:root {
	--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
h1, h2, h3,
.hero-mega__title,
.section-title-xl,
.cta-final h2,
.big-quote__text,
.bento-cell__title,
.persona__title,
.compare__title,
.voucher-hero__title,
.lemans-card__time,
.pass__num,
.ambient__quote h2,
.fleet-counter__big {
	font-family: var(--font-display);
	font-feature-settings: 'ss01', 'ss02', 'cv01';
}
.section-eyebrow, .hero-mega__eyebrow, .bento-cell__eyebrow,
.persona__eyebrow, .voucher-hero__eyebrow, .map-card__eyebrow,
.author-credit-inline__label, .author-credit-inline__role {
	font-family: 'Inter', system-ui, sans-serif;
	font-feature-settings: 'ss01';
}

/* ===========================================================
   FILM GRAIN OVERLAY — premium cinema feel
   =========================================================== */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	opacity: 0.04;
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
	mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
	body::before { opacity: 0.02; }
}

/* ===========================================================
   PAGE ENTER FADE — branded boot-up
   =========================================================== */
body { animation: pageEnter .8s var(--ease-fluid) both; }
@keyframes pageEnter {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ===========================================================
   LOGO refined hover — subtle glow pulse
   =========================================================== */
.site-logo {
	transition: transform .3s var(--ease-spring);
}
.site-logo:hover {
	transform: scale(1.04);
}
.site-logo:hover img {
	filter: drop-shadow(0 0 16px rgba(255, 45, 32, 0.6));
}

/* ===========================================================
   TRUST BAND — social proof bar
   =========================================================== */
.trust-band {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: clamp(20px, 4vw, 60px);
	flex-wrap: wrap;
	padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px);
	max-width: 1240px;
	margin: 0 auto;
	background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.008) 100%);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 24px;
}
.trust-item {
	display: flex; align-items: center; gap: 14px;
	min-width: 0;
}
.trust-item__icon {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: rgba(255,45,32,0.08);
	border: 1px solid rgba(255,45,32,0.18);
	color: var(--c-accent);
	flex-shrink: 0;
}
.trust-item__icon svg { width: 22px; height: 22px; }
.trust-item__num {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.trust-item__label {
	font-size: 0.85rem;
	color: var(--c-text-3);
	letter-spacing: -0.005em;
}
.trust-item__sep {
	width: 1px;
	height: 36px;
	background: rgba(255,255,255,.08);
}
@media (max-width: 880px) {
	.trust-band { gap: 24px; }
	.trust-item__sep { display: none; }
}
@media (max-width: 540px) {
	.trust-band { padding: 24px; gap: 16px; flex-direction: column; align-items: stretch; }
	.trust-item { justify-content: flex-start; }
}

/* ===========================================================
   NEWSLETTER section
   =========================================================== */
.newsletter {
	background: linear-gradient(180deg, var(--c-bg-deep) 0%, #100808 100%);
	padding: clamp(72px, 10vw, 140px) 0;
	position: relative;
	overflow: hidden;
}
.newsletter::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 80vmax; height: 80vmax;
	background: radial-gradient(circle, rgba(255,45,32,.07) 0%, transparent 50%);
	pointer-events: none;
}
.newsletter__inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	text-align: center;
	position: relative;
	z-index: 1;
}
.newsletter__eyebrow {
	color: var(--c-accent);
	font-size: 0.78rem; font-weight: 600;
	letter-spacing: 0.16em; text-transform: uppercase;
	margin-bottom: 16px;
	display: inline-block;
}
.newsletter__title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4.5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 18px;
	color: #fff;
}
.newsletter__title em { color: var(--c-accent); font-style: normal; }
.newsletter__lead {
	color: var(--c-text-2);
	font-size: 1.1rem;
	line-height: 1.55;
	margin: 0 0 32px;
}
.newsletter__form {
	display: flex; gap: 8px;
	max-width: 480px; margin: 0 auto;
	flex-wrap: wrap;
}
.newsletter__input {
	flex: 1;
	min-width: 240px;
	padding: 16px 22px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	color: #fff;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color .2s var(--ease-soft), background .2s;
}
.newsletter__input::placeholder { color: var(--c-text-3); }
.newsletter__input:focus {
	outline: 0;
	border-color: var(--c-accent);
	background: rgba(255,255,255,.06);
}
.newsletter__btn {
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--c-accent);
	color: #fff;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	transition: background .25s var(--ease-soft), transform .2s var(--ease-apple);
	white-space: nowrap;
}
.newsletter__btn:hover { background: var(--c-accent-2); transform: translateY(-2px); }
.newsletter__consent {
	margin-top: 18px;
	font-size: 0.78rem;
	color: var(--c-text-3);
	display: inline-flex; align-items: center; gap: 6px;
}
.newsletter__consent input { width: auto; margin-right: 4px; }
.newsletter__consent a { color: var(--c-text-2); text-decoration: underline; }
.newsletter__perks {
	display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.06);
}
.newsletter__perks span {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.85rem;
	color: var(--c-text-2);
}
.newsletter__perks span::before {
	content: '✓';
	color: var(--c-accent);
	font-weight: 700;
}

@media (max-width: 540px) {
	.newsletter__form { flex-direction: column; }
	.newsletter__input, .newsletter__btn { width: 100%; }
	.newsletter__btn { padding: 14px 24px; }
}

/* ===========================================================
   FEATURE icons — custom SVG container (zamiast emoji)
   =========================================================== */
.feature__icon-svg {
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--c-accent-soft), rgba(255,255,255,.04));
	border: 1px solid rgba(255,45,32,0.2);
	color: var(--c-accent);
	margin-bottom: 12px;
}
.feature__icon-svg svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.starter-item__icon-svg {
	width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	margin-bottom: 6px;
}
.starter-item__icon-svg svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ===========================================================
   FIX: hide preview-banner on mobile — too distracting
   =========================================================== */
@media (max-width: 540px) {
	.preview-banner { font-size: 0.75rem; padding: 8px 12px; }
}

/* ===========================================================
   FIX: scroll progress bar — bigger on mobile
   =========================================================== */
@media (max-width: 720px) {
	.scroll-progress { height: 3px; }
}

/* ===========================================================
   FIX: footer kontakt items spacing on mobile
   =========================================================== */
@media (max-width: 540px) {
	.author-credit-inline { font-size: 0.7rem; }
	.author-credit-inline__label, .author-credit-inline__role { font-size: 0.65rem; }
}

/* ===========================================================
   Live pill — refinements
   =========================================================== */
.live-pill { padding: 6px 12px 6px 10px; }

/* ===========================================================
   Hero — small refinements
   =========================================================== */
.hero-mega__lead { color: rgba(255,255,255,.85); }
