/*
 * Larix Essence – główny arkusz stylów.
 * Wartości (rozmiary, odstępy, kolory, gradient) zmierzone na oryginalnej stronie /biurowa/
 * zbudowanej w Elementorze. Punkty graniczne jak w oryginale: ≤767 (telefon), 768–1024 (tablet), ≥1025.
 */

/* ---------- Reset / baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--larix-header-h);
}

:root {
	--larix-header-h: 139px;   /* promo 30 + rząd logo 63 + menu 46 */
	--larix-promo-h: 30px;
	--larix-font: "Playfair Display", sans-serif;
	--larix-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--larix-accent-gold: #a88a6d;
	--larix-accent-brown: #987356;
}

@media (max-width: 767px) {
	:root {
		--larix-header-h: 99px;  /* promo 28 + rząd 43 + menu 28 */
		--larix-promo-h: 28px;
	}
}

body {
	margin: 0;
	background: #fff;
	color: #333;
	font-family: var(--larix-sys);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: #c36; text-decoration: none; }
a:hover, a:active { color: #336; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: #000;
	color: #fff;
	font-family: var(--larix-font);
	font-size: 14px;
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.admin-bar .larix-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .larix-header { top: 46px; } }

main:focus { outline: none; }

/* ---------- Nagłówek ---------- */
.larix-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10001;
	width: 100%;
	background: #fff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
	font-family: var(--larix-font);
}

.larix-header__inner {
	width: min(100%, 1140px);
	margin: 0 auto;
}

.larix-header-spacer { height: var(--larix-header-h); }


/* ---- Pasek promocyjny (30 px, przewijany tekst) ---- */
#larix-promo-banner,
#larix-promo-banner * { box-sizing: border-box; }

#larix-promo-banner {
	position: relative;
	display: block;
	width: 100%;
	height: var(--larix-promo-h);
	overflow: hidden;
	background: #f8f6f2;
	border-bottom: 1px solid #ebe7e1;
	isolation: isolate;
	z-index: 2;
	font-family: var(--larix-sys);
}

#larix-promo-banner .larix-promo-track {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	width: max-content;
	max-width: none;
	height: var(--larix-promo-h);
	white-space: nowrap;
	will-change: transform;
}

#larix-promo-banner.is-running .larix-promo-track {
	animation: larix-promo-slide var(--larix-duration, 30s) linear infinite;
}

#larix-promo-banner .larix-promo-group {
	display: flex;
	flex: 0 0 auto;
	flex-flow: row nowrap;
	align-items: center;
	width: max-content;
	height: var(--larix-promo-h);
	white-space: nowrap;
}

#larix-promo-banner .larix-promo-message {
	display: inline-flex;
	flex: 0 0 auto;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	width: max-content;
	height: var(--larix-promo-h);
	margin: 0;
	padding: 0 32px;
	color: #615b55;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .9px;
	text-transform: uppercase;
	white-space: nowrap;
}

#larix-promo-banner .larix-promo-message:focus-visible {
	outline: 2px solid #000;
	outline-offset: -3px;
}

#larix-promo-banner .larix-promo-text { display: inline; color: #615b55; white-space: nowrap; }
#larix-promo-banner .larix-promo-symbol { color: var(--larix-accent-gold); font-size: 12px; margin-right: 17px; }
#larix-promo-banner .larix-promo-dot { display: inline; color: var(--larix-accent-gold); margin: 0 12px; }
#larix-promo-banner .larix-promo-message strong { display: inline; color: var(--larix-accent-brown); font-size: inherit; font-weight: 700; margin-left: 5px; }
#larix-promo-banner .larix-promo-arrow { color: var(--larix-accent-brown); font-size: 13px; margin-left: 6px; }

@keyframes larix-promo-slide {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

@media (hover: hover) {
	#larix-promo-banner:hover .larix-promo-track { animation-play-state: paused; }
}

@media (max-width: 767px) {
	#larix-promo-banner .larix-promo-message {
		font-size: 9.5px;
		letter-spacing: .6px;
		padding: 0 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#larix-promo-banner .larix-promo-track { animation: none !important; }
	#larix-promo-banner .larix-promo-group:not(:first-child),
	#larix-promo-banner .larix-promo-message:not(:first-child) { display: none; }
}

/* ---------- Kolekcja: sekcje produktowe ---------- */
.larix-sections {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.larix-sections { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
}

.larix-section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 90vh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background: #000;
	color: #fff;
	font-family: var(--larix-font);
}

@media (max-width: 767px) {
	.larix-section { min-height: 45vh; }
}

.larix-section__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

/* Gradient: linear-gradient(89deg, #000 0%, #F2295B00 100%), przezroczystość 0,76 */
.larix-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(89deg, #000000 0%, #f2295b00 100%);
	opacity: .76;
	pointer-events: none;
}

/* Link-nakładka: cała sekcja klikalna (rodzeństwo treści – bez zagnieżdżania linków) */
.larix-section__cover {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}

.larix-section__inner {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-end;
	width: min(100%, 1140px);
	margin: 0 auto;
	pointer-events: none; /* kliknięcia przechodzą do nakładki; przycisk włącza je ponownie */
}

.larix-section__box {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 57%;
	padding: 10px;
}

/* Odstęp pod przyciskiem (spacer 50 px w oryginale) */
.larix-section__box::after { content: ""; display: block; height: 50px; flex: none; }

.larix-section__title {
	margin: 0;
	color: #fff;
	font-family: var(--larix-font);
	font-size: 1.7vw;
	font-weight: 600;
	line-height: 1;
}

.larix-section__desc {
	color: #fff;
	font-family: var(--larix-font);
	font-size: 1vw;
	font-weight: 400;
	line-height: 1.5;
}
.larix-section__desc p { margin: 0 0 .9rem; }

.larix-section__cta {
	position: relative;
	z-index: 2;
	display: flex;
	pointer-events: none;
}

.larix-section__btn {
	display: inline-block;
	padding: 13px 41px;
	border: 1px solid #fff;
	border-radius: 11px;
	background: transparent;
	color: #fff;
	font-family: var(--larix-font);
	font-size: .7vw;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	pointer-events: auto;
	transition: .3s;
}
.larix-section__btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.larix-section__btn:focus-visible {
	color: #fff;
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #000;
}

/* Tablet: minimalne rozmiary czcionek (w oryginale vw dawało ~7,7 px opisu). */
@media (min-width: 768px) and (max-width: 1024px) {
	.larix-section__title { font-size: max(20px, 1.7vw); }
	.larix-section__desc  { font-size: max(13px, 1vw); }
	.larix-section__btn   { font-size: max(11px, .7vw); }
}

/* Telefon */
@media (max-width: 767px) {
	.larix-section__box { width: 100%; gap: 6px; padding: 0 0 0 10px; }
	.larix-section__box::after { height: 1px; }
	.larix-section__title { font-size: 5.9vw; }
	.larix-section__desc { font-size: 2.9vw; line-height: 1.4em; }
	.larix-section__cta { margin: -10.3px 0 0; }
	.larix-section__btn { padding: 6px 13px; font-size: 13px; }
}

/* Animacja wejścia (fadeInUp, wolna – jak w oryginale). Treść jest widoczna, gdy JS nie działa. */
@keyframes larix-fade-in-up {
	from { opacity: 0; transform: translate3d(0, 100%, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.js .larix-anim { opacity: 0; }
.js .larix-anim.is-inview {
	opacity: 1;
	animation: larix-fade-in-up 2s both;
	animation-delay: var(--larix-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
	.js .larix-anim,
	.js .larix-anim.is-inview { opacity: 1; animation: none; }
}

.larix-empty { padding: 40px 20px; text-align: center; font-family: var(--larix-font); }

/* ---------- Stopka ---------- */
.larix-footer {
	font-family: var(--larix-font);
	color: #000;
}

.larix-footer p { margin: 0 0 .9rem; font-size: 16px; line-height: 24px; color: #000; }
.larix-footer a { color: #000; }
.larix-footer a:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.larix-footer__row { padding: 10px; }

.larix-footer__row--main { border-top: 1px solid #333; }

.larix-footer__inner {
	display: flex;
	flex-direction: row;
	width: min(100%, 1140px);
	margin: 0 auto;
}
.larix-footer__inner--stack { flex-direction: column; gap: 20px; }

.larix-footer__col { flex: 0 0 50%; max-width: 50%; padding: 10px; }
.larix-footer__col--contact { text-align: end; }

.larix-footer a.larix-footer__social { color: #c36; }

.larix-footer__legal p { text-align: center; line-height: 10px; }
.larix-footer__company { text-align: center; }

.larix-footer img.emoji {
	display: inline;
	width: 1em;
	height: 1em;
	margin: 0 .07em;
	border: 0;
	background: none;
	box-shadow: none;
	vertical-align: -.1em;
}

@media (max-width: 767px) {
	.larix-footer__col p { font-size: 12px; line-height: 18px; }
	.larix-footer .larix-footer__legal p { font-size: 11px; line-height: 1.3em; }
	.larix-footer p.larix-footer__company { font-size: 12px; line-height: 18px; }
}

/* ---------- Podstrony (sklep, koszyk, konto, strony tekstowe) ---------- */
.larix-container {
	width: min(100%, 1140px);
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.larix-page-title {
	margin: 0 0 24px;
	font-family: var(--larix-font);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: #000;
}

.larix-entry__title { font-family: var(--larix-font); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.larix-entry__title a { color: #000; }
.larix-entry { margin: 0 0 32px; }
.larix-entry__content { line-height: 1.6; }
.larix-entry__content > *:first-child { margin-top: 0; }

.larix-woo .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 13px; color: #7a7a7a; }
.larix-woo .woocommerce-breadcrumb a { color: #333; }
.larix-woo .product_title { font-family: var(--larix-font); font-weight: 600; }

.larix-woo .button,
.larix-woo button.button,
.larix-woo a.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit.alt {
	border-radius: 0;
}

/* Wspólny, widoczny focus dla elementów interaktywnych podstron */
.larix-container a:focus-visible,
.larix-container button:focus-visible,
.larix-container input:focus-visible,
.larix-container select:focus-visible,
.larix-container textarea:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Linki w tekście podstron muszą być odróżnialne nie tylko kolorem (WCAG 1.4.1). */
.larix-entry__content a:not(.button),
.larix-woo .product_meta a,
.larix-woo .woocommerce-breadcrumb a,
.larix-woo .woocommerce-product-details__short-description a { text-decoration: underline; }
