/* Homepage sections (page 1677, built by _db/homepage-build.php). Native Flatsome elements, scoped by the
   Advanced → Class on each section. Tokens: html-design/design-plan.md. Loaded on the front page only. */

.kw-home-promise, .kw-home-intro, .kw-home-cats, .kw-home-sale, .kw-home-advice, .kw-home-news, .kw-home-clients {
	--kh-field: var(--primary-color, #2a5996);
	--kh-ink: #15253d;
	--kh-muted: color-mix(in oklab, #15253d 74%, #fff);
	--kh-line: #cfd9e6;
	--kh-surface: #edf2f8;
	--kh-r-card: 12px; /* cards, boxes, photos */
	--kh-r-btn: 8px;   /* buttons */
	color: var(--kh-ink);
}
[class*="kw-home-"] h1, [class*="kw-home-"] h2, [class*="kw-home-"] h3 { color: var(--kh-ink); text-transform: none; letter-spacing: -0.01em; }
[class*="kw-home-"] h2 { margin-bottom: 4px; font-size: 1.75rem; font-weight: 800; line-height: 1.15; }

/* section head: title left, link right */
.kw-home-head .text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.kw-home-head .text > * { flex: 0 1 auto; width: auto; }
.kw-home-head p { margin: 0; }
.kw-home-head a { font-weight: 700; color: var(--kh-field); }

/* 1. why buy here */
.kw-home-promise { border-bottom: 1px solid var(--kh-line); }
.kw-home-promise .col { padding-bottom: 8px; }
.kw-home-promise .featured-box p { margin: 0; font-size: 0.9375rem; line-height: 1.35; color: var(--kh-muted); }
.kw-home-promise .featured-box strong { color: var(--kh-ink); }
.kw-home-promise .icon-box-left .icon-box-img { margin-right: 12px; }

/* 2. H1 + two entrances */
.kw-home-intro__head h1 { max-width: 24ch; margin-bottom: 8px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.kw-home-intro__head p { max-width: 60ch; font-size: 1.0625rem; color: var(--kh-muted); }
.kw-home-path .col-inner { display: flex; flex-direction: column; height: 100%; padding: 0 0 8px; border: 1px solid var(--kh-line); border-radius: var(--kh-r-card); overflow: hidden; background: #fff; }
.kw-home-path .banner { margin: 0; }
.kw-home-path__text { padding: 20px 24px 0; }
.kw-home-path__text h2 { font-size: 1.5rem; }
.kw-home-path__text p { color: var(--kh-muted); margin-bottom: 8px; }
.kw-home-path__links { padding: 0 24px; }
.kw-home-path__links { margin-top: 4px; }
.kw-home-path__links .ux-menu-link__link { position: relative; display: flex; align-items: center; min-height: 52px; padding: 12px 32px 12px 0; line-height: 1.3; border-top: 1px solid var(--kh-line); color: var(--kh-ink); font-weight: 600; }
.kw-home-path__links .ux-menu-link__link::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: 0.6; transition: transform 150ms ease-out, opacity 150ms ease-out; }
.kw-home-path__links .ux-menu-link__link:hover::after { opacity: 1; transform: translate(2px, -50%) rotate(45deg); }
.kw-home-path__links .ux-menu-link__link:hover { color: var(--kh-field); }

/* 3. categories */
.kw-home-catgrid .box-text { padding-top: 10px; }
.kw-home-catgrid .header-title { font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--kh-ink); }
.kw-home-catgrid .count { display: none; }
/* one card = one shape: radius + line on the card (same as the Za dom / Za podjetja cards), image clipped by it */
.kw-home-catgrid .col-inner { border: 1px solid var(--kh-line); border-radius: var(--kh-r-card); overflow: hidden; box-shadow: none !important; transition: border-color 150ms ease-out; } /* Flatsome card shadow (box-shadow-1) */
.kw-home-catgrid .col-inner:hover { border-color: var(--kh-field); }
.kw-home-catgrid .box, .kw-home-catgrid .box-image { border-radius: 0; }
.kw-home-catgrid .box-image { height: auto !important; } /* site custom CSS sets .box-image { height: 250px } → 5px white strip above/below the 4:3 photo */
/* category images: 4:3 photos (image-gen/navodila-za-vakum-slike.md), shown uncropped */

/* 4. on sale — product cards keep the shop's look */
.kw-home-sale .product-small .box-image { border-radius: var(--kh-r-card); }
.kw-home-sale .badge-container { margin: 12px 0 0 12px; } .kw-home-sale .badge-inner { border-radius: 6px; } /* sale badge inside the rounded photo */
/* square photo (product images have mixed proportions); card column + button: modules/shop-loop */
.kw-home-sale .flickity-slider { display: flex; } /* cards in one row get the same height */
.kw-home-sale .product-small .box-image { width: 100%; aspect-ratio: 1; height: auto !important; } /* some cards had a fixed 300px box */
.kw-home-sale .product-small .box-image > div:first-child, .kw-home-sale .product-small .box-image > div:first-child > a { display: block; width: 100%; height: 100%; } /* not .image-tools (wishlist heart) */
.kw-home-sale .product-small .box-image img { width: 100%; height: 100%; object-fit: cover; }

.kw-home-sale .product-title { color: var(--kh-ink); }

/* 5. advice: one tinted box, text left, three contact actions right */
.kw-home-advice__box { width: auto !important; max-width: none !important; margin: 0 max(15px, calc((100% - 1380px) / 2)) !important; /* same edges as the content grid */ padding: 32px 16px !important; border-radius: var(--kh-r-card); background: var(--kh-surface); }
.kw-home-advice__box > .col { padding-bottom: 0 !important; } /* Flatsome col padding-bottom 30px made the box bottom-heavy */
.kw-home-advice h2 { font-size: 2rem; }
.kw-home-advice p { margin: 0; font-size: 1.0625rem; color: var(--kh-muted); }
.kw-home-advice__actions .button { margin: 0 0 12px !important; border-radius: var(--kh-r-btn) !important; min-height: 48px; text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem; }
.kw-home-advice__actions .button:last-child { margin-bottom: 0 !important; }

/* 6. news */
.kw-home-posts .post-title { font-size: 1.125rem; text-transform: none; }
.kw-home-posts .box-text { text-align: left; }
.kw-home-posts .button { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.9375rem; color: var(--kh-field) !important; }
/* post card = same shape as the category cards: line + radius on the card, image flush and clipped by it */
.kw-home-posts .post-item .col-inner { height: 100%; padding: 0; border: 1px solid var(--kh-line); border-radius: var(--kh-r-card); overflow: hidden; background: #fff; box-shadow: none !important; }
.kw-home-posts .box-image { height: auto !important; border-radius: 0; } /* site custom CSS sets .box-image { height: 250px } */
.kw-home-posts .box-text { padding: 16px 20px 20px; }

/* 7. clients */
/* logo slider styles: modules/kiwi-gallery-swiper (.logotipi-swiper) */


@media (max-width: 549px) {
	[class*="kw-home-"] h2 { font-size: 1.375rem; }

	/* why buy here: one line per promise */
	.kw-home-promise .col { padding-bottom: 0; }
	.kw-home-promise .featured-box { padding: 6px 0; }
	.kw-home-promise .featured-box p { font-size: 0.875rem; }
	.kw-home-promise .featured-box br { display: none; }
	.kw-home-promise .featured-box strong::after { content: " "; }
	.kw-home-promise .icon-box-left .icon-box-img { width: 28px !important; margin-right: 12px; }

	/* categories: tighter 2-column grid, equal card heights */
	.kw-home-catgrid { margin-left: -6px !important; margin-right: -6px !important; }
	.kw-home-catgrid .col { padding: 0 6px 12px !important; }
	.kw-home-catgrid .col-inner { height: 100%; }
	.kw-home-catgrid .box-text { padding: 10px 12px 12px !important; }
	.kw-home-catgrid .header-title { font-size: 0.9375rem; line-height: 1.25; }

	/* entrances */
	.kw-home-path__text { padding: 16px 16px 0; }
	.kw-home-path__links { padding: 0 16px; }

	/* advice */
	.kw-home-advice__box { padding: 20px 4px !important; }
	.kw-home-advice h2 { font-size: 1.5rem; }
	.kw-home-advice p { margin-bottom: 8px; }

	/* on sale: swipe instead of arrows over the text; button at the same height in every card */
	.kw-home-sale .flickity-prev-next-button { display: none; }

	/* news: stacked cards */
	.kw-home-posts .col { padding-bottom: 16px; }
	.kw-home-posts .box-text { padding: 14px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.kw-home-catgrid .col-inner, .kw-home-path__links .ux-menu-link__link::after { transition: none; }
}
