/* Homepage v2 — bespoke styles, scoped to .lsv-homepage-v2 body only. */

.lsv-homepage-v2 {
	margin: 0;
	background: #fff;
	color: #222;
	font-family: 'Roboto', Arial, sans-serif;
}

.lsv-homepage-v2 h1,
.lsv-homepage-v2 h2,
.lsv-homepage-v2 h3 {
	font-family: 'Roboto Slab', Georgia, serif;
	color: #1A5E63;
	margin: 0 0 .5em;
}

/* Section titles from "Produktu kategorijas" onward — same font/size/color.
   (.lsv-cta-bar-text h3 keeps white text; it sits on the dark green CTA
   bar background, where the brand teal would be unreadable.) */
.lsv-categories h2,
.lsv-featured-products h2,
.lsv-compliance-text h3,
.lsv-why-us h2,
.lsv-faq h2,
.lsv-cta-bar-text h3 {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 30px;
	line-height: 1.2;
}
.lsv-categories h2,
.lsv-featured-products h2,
.lsv-compliance-text h3,
.lsv-why-us h2,
.lsv-faq h2 {
	color: #1A5E63;
}

.lsv-homepage-v2 img {
	max-width: 100%;
	display: block;
}
/* Was WooCommerce's ".woocommerce-js h2" - its stylesheets aren't loaded on
   the homepage any more (includes/performance.php). */
.lsv-homepage-v2 h2 {
	margin-bottom: .7em;
}
/* Was Astra Pro's woo-modern-input select arrow (call-back form's Nozare). */
.lsv-homepage-v2 select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26px' height='16.043px' fill='%23334155' viewBox='57 35.171 26 16.043'%3E%3Cpath d='M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z'/%3E%3C/svg%3E");
	background-position: calc(100% - 10px) 50%;
	background-repeat: no-repeat;
	background-size: 12.8px auto;
	line-height: 24px;
}

.lsv-homepage-v2 a {
	text-decoration: none;
	color: inherit;
}
/* ...but not the filled buttons: the rule above outranks buttons.css's
   white .lsv-btn-primary text, which came out #222 on teal. */
.lsv-homepage-v2 a.lsv-btn-primary,
.lsv-homepage-v2 a.lsv-btn-outline-light {
	color: #fff;
}

.lsv-section-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.lsv-section {
	padding: 48px 0;
}

/* .lsv-btn button styles live in assets/buttons.css, loaded as a dependency
   of this stylesheet — shared with WooCommerce archive product cards. */

/* Header + footer styles live in site-chrome.css (loaded sitewide, not
   just here) - see includes/class-astra-chrome-override.php. */

/* ---- Hero ---- */
.lsv-hero {
	position: relative;
}
/* Bounds the hero photo to the same 1200px content width as the header/nav
   (logo-to-cart span) and every other section - not a full-bleed edge-to-edge
   background across the whole browser window. */
.lsv-hero-bound {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
}
.lsv-hero-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 25%;
	z-index: 0;
}
.lsv-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0.15) 58%, rgba(255, 255, 255, 0) 70%);
}
.lsv-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lsv-hero-inner {
	position: relative;
	z-index: 1;
	padding: 40px 20px;
}
.lsv-hero-text {
	max-width: 560px;
}
.lsv-hero-text h1 {
	font-size: 40px;
	line-height: 1.15;
	margin-bottom: 12px;
}
.lsv-hero-text p {
	font-size: 17px;
	color: #444;
	margin-bottom: 16px;
}
.lsv-hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.lsv-hero-trust-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	font-size: 14px;
	color: #333;
	margin-top: 20px;
}
.lsv-hero-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
}
.lsv-hero-trust-icon {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}
.lsv-hero-trust-text {
	line-height: 1.3;
}

/* ---- Category grid ---- */
.lsv-categories {
	padding-bottom: 18px;
}
.lsv-featured-products {
	padding-top: 0;
}
.lsv-category-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	max-width: 88%;
	margin: 0 auto;
}
.lsv-category-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .15s;
}
.lsv-category-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.lsv-category-image {
	aspect-ratio: 1/1;
	background: #f2f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 19px;
}
.lsv-category-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.lsv-category-name {
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.3;
	padding: 10px 11px 0;
}
.lsv-category-count {
	color: #777;
	font-size: 13.2px;
	padding: 4px 11px 11px;
}

/* Product grid/card rules live in assets/product-cards.css, shared with
   WooCommerce archive pages — loaded as a dependency of this stylesheet. */

.lsv-view-all {
	text-align: center;
	margin-top: 24px;
}

/* ---- Compliance banner ---- */
.lsv-compliance-banner {
	background: #f2f7f7;
}
.lsv-compliance-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.lsv-compliance-points {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #444;
	margin-top: 10px;
}
.lsv-compliance-point {
	display: flex;
	align-items: center;
	gap: 8px;
}
.lsv-compliance-icon {
	width: 70px;
	height: 70px;
	object-fit: contain;
	flex-shrink: 0;
}
.lsv-compliance-text a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* ---- Why us ---- */
.lsv-why-us-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	max-width: 80%;
	margin: 0 auto;
	text-align: center;
}
.lsv-why-us-item {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 0 0 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: box-shadow .15s;
}
.lsv-why-us-item:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.lsv-why-us-icon-wrap {
	width: 100%;
	aspect-ratio: 1/1;
	background: #f2f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 19px;
	margin-bottom: 10px;
	border-radius: 8px 8px 0 0;
}
.lsv-why-us-item span {
	font-size: 13px;
	font-weight: 700;
	padding: 0 11px;
}
.lsv-why-us-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---- FAQ ---- */
.lsv-faq-list {
	max-width: 800px;
	margin: 0 auto;
}
.lsv-faq-item {
	border-bottom: 1px solid #eee;
	padding: 14px 0;
}
.lsv-faq-item summary {
	font-weight: 600;
	cursor: pointer;
}
.lsv-faq-item p {
	margin: 10px 0 0;
	color: #555;
}

/* ---- CTA bar ---- */
.lsv-cta-bar {
	background: #1A5E63;
	color: #fff;
	padding: 48px 0;
}
.lsv-cta-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.lsv-cta-bar-text h3 {
	color: #fff;
	margin-bottom: 4px;
}
.lsv-cta-bar-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	/* A ~420px column beside the text - the full-row consent line and
	   status message would otherwise stretch it across the whole bar. */
	flex: 0 1 420px;
}
.lsv-cta-bar-form input[type="tel"],
.lsv-cta-bar-form select {
	flex-basis: 100%;
	box-sizing: border-box;
}
.lsv-cta-bar-form input[type="tel"],
.lsv-cta-bar-form select {
	padding: 10px 12px;
	border-radius: 4px;
	border: none;
}
/* Call-back form (lsv_callback_form(), includes/contact-form.php): consent
   line and the status message after submitting take a full row. */
.lsv-cta-bar-consent {
	flex-basis: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #cfe4e2;
}
.lsv-cta-bar-consent a {
	color: #fff;
	text-decoration: underline;
}
.lsv-cta-bar-notice {
	flex-basis: 100%;
	margin: 0 0 4px;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.lsv-cta-bar-notice-error {
	background: #fde8e8;
	color: #8a1c1c;
}
/* Honeypot - same as on the Kontakti form (content-page.css). */
.lsv-cta-bar .lsv-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.lsv-cta-bar-phone {
	font-weight: 700;
	font-size: 16px;
}

/* ---- Responsive ---- */
/* Hero on tablets and phones: the text column is as wide as the screen, so
   the right half of it sat on the dark part of the photo behind the white
   fade. The photo becomes a band above the text instead, text on white. */
@media (max-width: 900px) {
	.lsv-hero-bg {
		position: relative;
		left: 0;
		height: 240px;
	}
	.lsv-hero-bg::after {
		content: none;
	}
	.lsv-hero-bg img {
		object-position: 55% 65%;
	}
	.lsv-hero-inner {
		padding: 24px 20px 28px;
	}
	.lsv-hero-text {
		max-width: none;
	}
}
@media (max-width: 560px) {
	.lsv-hero-bg {
		height: 170px;
	}
	.lsv-hero-text h1 {
		font-size: 30px;
	}
	.lsv-hero-text p {
		font-size: 16px;
	}
	.lsv-hero-cta .lsv-btn {
		flex: 1 1 100%;
	}
	.lsv-hero-trust-inner {
		flex-direction: column;
		gap: 10px;
		margin-top: 18px;
	}
	.lsv-hero-trust-icon {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 900px) {
	.lsv-category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.lsv-why-us-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.lsv-category-grid,
	.lsv-why-us-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.lsv-cta-bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	/* In the column layout flex-basis would be a height. */
	.lsv-cta-bar-form {
		flex: none;
		width: 100%;
	}
}
