/* =============================================================
   Semarti — strona główna CSS v2
   Ładowany tylko na stronie głównej (front-page.php).
   ============================================================= */

/* ── Zmienne ───────────────────────────────────────────────── */
.sm-home {
	/* Etap 3B — Paleta 3 "Nowoczesna Marka Lokalna Premium", bez fioletu.
	   Wartości pobrane ze wspólnego systemu (semarti-design-system.css),
	   z fallbackiem na wypadek, gdyby ten plik się nie załadował. */
	--smh-dark:       var(--semarti-dark, #151413);
	--smh-dark-2:     var(--semarti-primary, #2A2520);
	--smh-dark-grad:  linear-gradient(135deg, var(--semarti-dark, #151413) 0%, var(--semarti-primary, #2A2520) 100%);
	--smh-light:      var(--semarti-bg, #FAF7F1);
	--smh-light-warm: var(--semarti-surface-alt, #F1E8D9);
	--smh-white:      var(--semarti-surface, #FFFDF8);
	--smh-accent:     var(--semarti-primary, #2A2520);
	--smh-accent-h:   var(--semarti-primary-hover, #3A3129);
	--smh-accent-warm:var(--semarti-accent, #B88442);
	--smh-text:       var(--semarti-text, #1F1D1A);
	--smh-text-2:     var(--semarti-muted, #6F675D);
	--smh-border:     var(--semarti-border, #E3D6C4);
	--smh-radius:     8px;
	--smh-radius-lg:  14px;
	--smh-shadow:     0 2px 12px rgba(0,0,0,.08);
	--smh-shadow-lg:  0 8px 40px rgba(0,0,0,.14);
	--smh-t:          .25s ease;
	--smh-max:        1200px;
	--smh-px:         clamp(16px, 4vw, 48px);
}

/* ── Reset scope ───────────────────────────────────────────── */
.sm-home {
	background: var(--smh-light);
	color: var(--smh-text);
	line-height: 1.65;
}

.sm-home *,
.sm-home *::before,
.sm-home *::after { box-sizing: border-box; }

.sm-home img     { display: block; max-width: 100%; height: auto; }
.sm-home a       { text-decoration: none; color: inherit; }
/* Poprawka: patrz ten sam komentarz w semarti-portfolio.css. */
.sm-home ul      { margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; }
/* Poprawka: patrz ten sam komentarz w semarti-portfolio.css, ten sam
   blad specificity (reset zerowal lewy/prawy margines wyzsza
   specificity niz komponenty probujace centrowac przez margin: 0 auto). */
.sm-home p       { margin-top: 0; margin-bottom: .8rem; color: var(--smh-text-2); }
.sm-home h1,.sm-home h2,.sm-home h3,
.sm-home h4,.sm-home h5,.sm-home h6 {
	margin: 0; line-height: 1.2; color: var(--smh-text);
}

/* Ciemne sekcje — override globalnego koloru tekstu */
.smh-hero p,
.smh-benefits p,
.smh-business p,
.smh-emblems p {
	color: rgba(255,255,255,.88);
}
.smh-hero h1,.smh-hero h2,.smh-hero h3,
.smh-hero h4,.smh-hero h5,.smh-hero h6,
.smh-benefits h1,.smh-benefits h2,.smh-benefits h3,
.smh-benefits h4,.smh-benefits h5,.smh-benefits h6,
.smh-business h1,.smh-business h2,.smh-business h3,
.smh-business h4,.smh-business h5,.smh-business h6,
.smh-emblems h1,.smh-emblems h2,.smh-emblems h3,
.smh-emblems h4,.smh-emblems h5,.smh-emblems h6 {
	color: #fff;
}

/* ── Layout helpers ────────────────────────────────────────── */
.smh-container {
	max-width: var(--smh-max);
	margin: 0 auto;
	padding: 0 var(--smh-px);
}

.smh-section        { padding: clamp(48px, 7vw, 88px) 0; }
.smh-section--dark  { background: var(--smh-dark); }
.smh-section--light { background: var(--smh-light); }

/* ── Buttons ───────────────────────────────────────────────── */
.smh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 13px 26px;
	border-radius: var(--smh-radius);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--smh-t);
	cursor: pointer;
	border: 2px solid transparent;
	line-height: 1;
	white-space: nowrap;
}

.smh-btn--primary {
	background: var(--smh-accent);
	color: #fff !important;
	border-color: var(--smh-accent);
}
.smh-btn--primary:hover {
	background: var(--smh-accent-h);
	border-color: var(--smh-accent-h);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(var(--semarti-primary-rgb, 42,37,32),.35);
}

.smh-btn--outline {
	background: transparent;
	color: var(--smh-text) !important;
	border-color: var(--smh-border);
}
.smh-btn--outline:hover {
	border-color: var(--smh-accent-warm);
	color: var(--smh-accent-warm) !important;
}

.smh-btn--light {
	background: rgba(255,255,255,.15);
	color: #fff !important;
	border-color: rgba(255,255,255,.35);
}
.smh-btn--light:hover {
	background: rgba(255,255,255,.28);
	border-color: rgba(255,255,255,.7);
	color: #fff !important;
}

.smh-btn--full { width: 100%; display: block; text-align: center; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */

.smh-hero {
	background: var(--smh-dark);
	position: relative;
	overflow: hidden;
}

.smh-hero__bg-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 80% 30%, rgba(var(--semarti-accent-rgb, 184,132,66),.10) 0%, transparent 55%),
		radial-gradient(ellipse at 10% 80%, rgba(10,16,20,.8) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}

.smh-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: clamp(500px, 72vh, 780px);
	align-items: center;
}

/* Lewa kolumna */
.smh-hero__text {
	padding: clamp(64px,9vw,120px) 0 clamp(40px,6vw,80px);
}

.smh-hero__brand {
	font-size: clamp(56px, 9vw, 110px);
	font-weight: 800;
	color: #fff;
	letter-spacing: -.03em;
	line-height: .95;
	margin-bottom: 22px;
}

.smh-hero__sub {
	font-size: clamp(15px, 1.7vw, 18px);
	color: rgba(255,255,255,.88);
	margin-bottom: 36px;
	line-height: 1.65;
}

.smh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Prawa kolumna */
.smh-hero__visual {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	padding-top: clamp(32px,5vw,60px);
}

.smh-hero__product-img {
	width: 100%;
	max-width: 540px;
	height: 100%;
	max-height: clamp(380px,60vh,680px);
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 16px 48px rgba(0,0,0,.5));
	display: block;
}

/* Pasek benefitów */
.smh-benefits {
	position: relative;
	z-index: 2;
	background: rgba(20,26,32,.85);
	backdrop-filter: blur(24px) brightness(120%);
	-webkit-backdrop-filter: blur(24px) brightness(120%);
	border-top: 1px solid rgba(255,255,255,.08);
}

.smh-benefits__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.smh-benefit {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: clamp(26px,3.6vw,42px) clamp(18px,2.8vw,34px);
	transition: background var(--smh-t);
}
.smh-benefit:not(:last-child) {
	border-right: 1px solid rgba(255,255,255,.07);
}
.smh-benefit:hover { background: rgba(30,40,50,.6); }

.smh-benefit__icon {
	color: var(--smh-accent-warm);
	flex-shrink: 0;
	opacity: 1;
}

.smh-benefit__title {
	font-size: 16.5px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}

.smh-benefit__desc {
	font-size: 14px;
	color: rgba(255,255,255,.82);
	margin: 0;
	line-height: 1.55;
}

/* ── Hero responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
	.smh-hero__inner {
		grid-template-columns: 1fr;
		min-height: unset;
	}
	.smh-hero__visual { order: -1; height: 280px; padding-top: 24px; }
	.smh-hero__product-img { max-height: 260px; }
	.smh-hero__text { padding-top: 24px; padding-bottom: 40px; }
	.smh-hero__actions { flex-direction: column; align-items: stretch; }
	.smh-hero__actions .smh-btn { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
	.smh-benefits__inner { grid-template-columns: 1fr; }
	.smh-benefit:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,.07);
	}
}

/* ══════════════════════════════════════════════════════════════
   KATEGORIE — asymetryczny grid z obrazami
══════════════════════════════════════════════════════════════ */

.smh-categories { background: #fff; padding: clamp(32px,5vw,64px) 0; }

.smh-categories__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	min-height: 480px;
}

/* Prawa kolumna: dwie karty stacked */
.smh-categories__col {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
}

/* Karta bazowa */
.smh-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border-radius: var(--smh-radius-lg);
	background: var(--smh-light-warm);
	border: 1px solid var(--smh-border);
	text-decoration: none;
	color: var(--smh-text);
	transition: box-shadow var(--smh-t), transform var(--smh-t);
	padding: clamp(22px,3vw,36px);
}
.smh-cat-card:hover {
	box-shadow: var(--smh-shadow-lg);
	transform: translateY(-2px);
}

/* Ciemne tło po najechaniu */
.smh-cat-card__overlay {
	position: absolute;
	inset: 0;
	background: var(--smh-dark);
	opacity: 0;
	transition: opacity var(--smh-t);
	pointer-events: none;
	z-index: 1;
}
.smh-cat-card:hover .smh-cat-card__overlay { opacity: 1; }

/* Treść nad overlay */
.smh-cat-card__content {
	position: relative;
	z-index: 2;
}

.smh-cat-card__title {
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	color: var(--smh-text);
	line-height: 1.15;
	transition: color var(--smh-t);
}
.smh-cat-card:hover .smh-cat-card__title { color: #fff; }

/* Obraz wewnątrz karty */
.smh-cat-card__img-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex: 1;
	margin-top: 16px;
}

.smh-cat-card__img {
	width: auto;
	max-width: 100%;
	max-height: clamp(160px, 22vw, 300px);
	object-fit: contain;
	transition: transform .4s ease, filter var(--smh-t);
	filter: drop-shadow(0 6px 18px rgba(0,0,0,.12));
}
.smh-cat-card:hover .smh-cat-card__img {
	transform: scale(1.04);
	filter: drop-shadow(0 8px 24px rgba(0,0,0,.22));
}

/* Duża karta Dekoracje */
.smh-cat-card--large {
	min-height: 420px;
}

/* Obraz po prawej w małych kartach */
.smh-cat-card__img-wrap--side {
	justify-content: center;
	margin-top: 0;
	position: absolute;
	top: clamp(16px, 3vw, 28px);
	right: clamp(16px, 3vw, 28px);
	bottom: clamp(16px, 3vw, 28px);
	width: 52%;
	align-items: center;
}
.smh-cat-card__img-wrap--side .smh-cat-card__img {
	max-height: 100%;
	width: 100%;
	object-fit: contain;
	object-position: center center;
}

/* ── Kategorie responsive ───────────────────────────────────── */
@media (max-width: 760px) {
	.smh-categories__grid {
		grid-template-columns: 1fr;
		min-height: unset;
	}
	.smh-cat-card--large { min-height: 300px; }
	.smh-categories__col { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
	.smh-cat-card__img-wrap--side {
		width: 45%;
	}
}
@media (max-width: 480px) {
	.smh-categories__col { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   JAKOŚĆ / WYRÓŻNIKI #1–#4
══════════════════════════════════════════════════════════════ */

.smh-quality { background: var(--smh-light); }

.smh-quality__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 900px) { .smh-quality__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .smh-quality__grid { grid-template-columns: 1fr; } }

.smh-quality-card {
	background: var(--smh-white);
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius-lg);
	padding: 34px 28px;
	transition: var(--smh-t);
}
.smh-quality-card:hover {
	box-shadow: var(--smh-shadow-lg);
	transform: translateY(-2px);
}

.smh-quality-card__num {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--smh-accent-warm);
	margin-bottom: 12px;
}

.smh-quality-card__title {
	font-size: 17.5px;
	font-weight: 700;
	color: var(--smh-text);
	margin-bottom: 14px;
	line-height: 1.3;
}

.smh-quality-card__divider {
	height: 1px;
	background: var(--smh-border);
	margin-bottom: 16px;
}

.smh-quality-card__desc {
	font-size: 14.5px;
	color: var(--smh-text-2);
	margin: 0;
	line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   DEKORACJE FIRMOWE
══════════════════════════════════════════════════════════════ */

.smh-business { background: var(--smh-dark-grad); }

.smh-business__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding: clamp(48px,7vw,96px) 0;
}
@media (max-width: 760px) {
	.smh-business__inner { grid-template-columns: 1fr; }
	.smh-business__visual { order: -1; }
}

.smh-business__title {
	font-size: clamp(24px, 3.2vw, 38px);
	color: #fff;
	margin-bottom: 20px;
	line-height: 1.25;
}

.smh-business__desc {
	font-size: 15.5px;
	color: rgba(255,255,255,.85);
	margin-bottom: 32px;
	line-height: 1.7;
}

/* Etap 11: wiersz dwoch przyciskow (Na zamowienie + Dla firm). */
.smh-business__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
@media (max-width: 560px) {
	.smh-business__actions { flex-direction: column; align-items: stretch; }
	.smh-business__actions .smh-btn { width: 100%; text-align: center; }
}

.smh-business__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.smh-business__img {
	max-height: 440px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 8px 32px rgba(0,0,0,.4));
}

.smh-business__img-caption {
	margin-top: 14px;
	font-size: 12.5px;
	color: rgba(255,255,255,.6);
	text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   PRODUKTY — sharpe images
══════════════════════════════════════════════════════════════ */

.smh-products { background: var(--smh-light); }

.smh-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.smh-products__title {
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 800;
	color: var(--smh-text);
	margin-bottom: 5px;
}

.smh-products__sub {
	font-size: 14.5px;
	color: var(--smh-text-2);
	margin: 0;
}

.smh-products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) { .smh-products__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .smh-products__grid { grid-template-columns: 1fr; } }

.smh-product-card {
	background: var(--smh-white);
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--smh-t);
}
.smh-product-card:hover {
	box-shadow: var(--smh-shadow-lg);
	transform: translateY(-3px);
}

.smh-product-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

/* Thumbnail — wymuszamy żeby obrazy były ostre */
.smh-product-card__thumb {
	aspect-ratio: 1/1;
	overflow: hidden;
	background: var(--smh-light-warm);
}

/* wp_get_attachment_image generuje img z srcset — nie skalujemy przez CSS ponad oryginalny rozmiar */
.smh-product-card__thumb img,
.smh-product-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .4s ease;
	/* image-rendering: crisp na powiększonych zdjęciach */
	image-rendering: -webkit-optimize-contrast;
}
.smh-product-card:hover .smh-product-card__thumb img,
.smh-product-card:hover .smh-product-card__photo {
	transform: scale(1.04);
}

.smh-product-card__no-img {
	width: 100%;
	height: 100%;
	background: var(--smh-border);
}

.smh-product-card__body {
	padding: 20px 22px 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.smh-product-card__name {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--smh-text);
	margin-bottom: 8px;
	line-height: 1.4;
}

.smh-product-card__cats {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--smh-text-2);
	margin-bottom: 14px;
}

.smh-product-card__price {
	font-size: 17px;
	font-weight: 800;
	color: var(--smh-text);
	margin-top: auto;
	padding-top: 6px;
}
.smh-product-card__price .woocommerce-Price-amount,
.smh-product-card__price bdi { color: var(--smh-text); }

.smh-product-card__action {
	padding: 4px 22px 22px;
}

/* Przycisk dodaj do koszyka */
.smh-product-card__action a.smh-btn,
.smh-product-card__action a.button,
.smh-product-card__action a.add_to_cart_button {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--smh-accent);
	color: #fff !important;
	border: 2px solid var(--smh-accent);
	border-radius: var(--smh-radius);
	padding: 11px 16px;
	font-size: 13px;
	font-weight: 700;
	transition: var(--smh-t);
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}
.smh-product-card__action a.button:hover,
.smh-product-card__action a.add_to_cart_button:hover {
	background: var(--smh-accent-h);
	border-color: var(--smh-accent-h);
	color: #fff !important;
	transform: translateY(-1px);
}

.smh-products__empty { color: var(--smh-text-2); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   HERBY I EMBLEMATY — jednolite ciemne tło, obraz po lewej
══════════════════════════════════════════════════════════════ */

.smh-emblems {
	background: var(--smh-dark);
	min-height: 520px;
	display: flex;
	align-items: center;
}

.smh-emblems__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
	padding-top: clamp(56px,8vw,96px);
	padding-bottom: clamp(56px,8vw,96px);
}
@media (max-width: 760px) {
	.smh-emblems__inner { grid-template-columns: 1fr; }
	.smh-emblems__visual { order: -1; }
}

/* Lewa kolumna — zdjęcie */
.smh-emblems__visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.smh-emblems__img {
	width: 100%;
	max-width: 460px;
	max-height: clamp(360px, 55vh, 580px);
	object-fit: contain;
	filter: drop-shadow(0 12px 40px rgba(0,0,0,.6));
}

/* Prawa kolumna — tekst */
.smh-emblems__title {
	font-size: clamp(24px, 3.2vw, 40px);
	color: #fff !important;
	margin-bottom: 24px;
	line-height: 1.2;
	font-weight: 800;
}

.smh-emblems__desc {
	font-size: 15px;
	color: rgba(255,255,255,.9) !important;
	margin-bottom: 24px;
	line-height: 1.7;
}

.smh-emblems__personalize-note {
	font-size: 13.5px;
	color: rgba(255,255,255,.75) !important;
	line-height: 1.6;
	margin-bottom: 32px;
	padding-left: 14px;
	border-left: 2px solid rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════════════════════════
   ZAMYKAJĄCE CTA "NA ZAMÓWIENIE" (Etap 3)
══════════════════════════════════════════════════════════════ */

.smh-closing-cta {
	background: var(--smh-light-warm);
	padding: clamp(64px, 9vw, 104px) 0;
}

.smh-closing-cta__inner {
	text-align: center;
}

.smh-closing-cta__title {
	font-size: clamp(26px, 3.6vw, 42px);
	font-weight: 800;
	color: var(--smh-text);
	margin-bottom: 24px;
	line-height: 1.2;
}

.smh-closing-cta .smh-closing-cta__text {
	font-size: clamp(16px, 1.9vw, 19px);
	color: var(--smh-text-2);
	text-align: center;
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 38px;
	line-height: 1.65;
}

.smh-closing-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

@media (max-width: 480px) {
	.smh-closing-cta__actions { flex-direction: column; align-items: stretch; }
	.smh-closing-cta__actions .smh-btn { width: 100%; text-align: center; }
}
