/**
 * Wood by anyweb – Szolgáltatás-szekciók shortcode
 * ([wv_szolgaltatas_szekciok]) ÖNÁLLÓ stíluslapja.
 *
 * SZABÁLY: a shortcode kinézete a betöltési SORRENDDEL és a scope-olt
 * specificitással győz – !important NINCS használatva sehol.
 * A központi betöltő (modules/assets.php) a sor VÉGÉRE teszi, minden más
 * stílus (téma, Elementor) után; így az azonos vagy gyengébb specificitású
 * szabályokat a sorrend, az erősebbeket (.wv-service előtag) a
 * specificitás dönti le.
 *
 * Képek (ikonok): nincs fehér háttér és keret mögöttük, balra rendezettek.
 *
 * Megj.: a Gutenberg blokkstílusok (is-style-wv-*) .wv-service-re szűrt
 * másolata itt található; az eredeti, nem szűrt változatok a
 * wood-vill-widgets.css-ben élnek az Elementorban épített blokkokhoz.
 *
 * @package WoodVill
 */

/* ---- Ugrólink-sáv (wv-pagenav) ---- */

.wv-pagenav {
	position: sticky;
	top: calc( var( --wv-header-h, 0px ) + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 90;
}

.wv-pagenav ul {
	width: min(1170px, 100% - 48px);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	font-size: 15px;
	font-weight: 900;
	line-height: 1.35;
}

.wv-pagenav a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 26px 24px;
	border-left: 1px solid #ffffff15;
	text-decoration: none;
}

.wv-pagenav li:first-child a {
	padding-left: 0;
	border-left: 0;
}

.wv-pagenav li:last-child a {
	padding-right: 0;
}

.wv-pagenav-arrow {
	color: #c8d85d;
}

.wv-pagenav-select {
	display: none;
}

/* A szekciók horgony-célpontjai a sticky sávok ALATT kezdődjenek.
   Az Elementor section/container horgonyai (pl. a kézi #tovabbi blokk) is. */
.wv-service,
.elementor-section[id],
.e-con[id] {
	scroll-margin-top: calc( var( --wv-header-h, 0px ) + var( --wp-admin--admin-bar--height, 0px ) + 110px );
}

/* ---- Szekció-váz ---- */

.wv-service {
	padding-block: 88px;
}

.wv-service--tint {
	background: #f7f8f4;
}

.wv-service-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 96px;
}

.wv-service-col {
	flex: 1 1 340px;
	min-width: 0;
}

.wv-service-body {
	flex: 1.45 1 480px;
	min-width: 0;
	max-width: 680px;
}

/* ---- Bal oszlop elemei ---- */

.wv-service .wv-kicker {
	margin: 0 0 12px;
	color: #56620c;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.wv-service-title {
	margin: 0 0 32px;
	font-size: 44px;
	line-height: 1.15;
	font-weight: 900;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Jelvénykép / ikon: NINCS fehér háttér, NINCS keret, balra rendezett. */
.wv-service-badge {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	aspect-ratio: 740 / 400;
	object-fit: contain;
	object-position: left center;
	margin: 0 0 32px;
	background: transparent;
	border: 0;
}

.wv-stat-box {
	border-top: 2px solid #41433e;
	padding-top: 16px;
	max-width: 320px;
}

.wv-service .wv-stat-num {
	margin: 0;
	color: #56620c;
	font-size: 48px;
	line-height: 1.1;
	font-weight: 900;
	white-space: nowrap;
}

.wv-service .wv-stat-unit {
	font-size: 17px;
	font-weight: 700;
}

.wv-stat-desc {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.45;
}

/* ---- Képek a szekciókban: átlátszó hátterűek, keret nélkül, balra ---- */

.wv-service img {
	background: transparent;
	border: 0;
	margin-left: 0;
	margin-right: auto;
}

.wv-service figure,
.wv-service .wp-block-image {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

/* ---- Gutenberg tartalom a jobb oszlopban (blokkstílusok + patternek) ---- */

.wv-service-body > p {
	margin: 0 0 32px;
}

.wv-service-body > :last-child {
	margin-bottom: 0;
}

.wv-service-body > ul {
	margin: 0 0 32px;
}

.wv-service-body > h2,
.wv-service-body > h3 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 900;
}

.wv-service p.is-style-wv-lead {
	margin: 0 0 32px;
	font-size: 21px;
	line-height: 1.5;
	font-weight: 700;
}

.wv-service p.is-style-wv-kicker {
	margin: 0 0 16px;
	color: #56620c;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.wv-service h2.is-style-wv-h3,
.wv-service h3.is-style-wv-h3,
.wv-service h4.is-style-wv-h3 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 900;
}

.wv-service .wv-service-sub {
	border-top: 1px solid #e5e6e1;
	padding-top: 24px;
	margin: 0 0 32px;
}

.wv-service .wv-service-sub > :last-child {
	margin-bottom: 0;
}

.wv-service .wv-factline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	background: #ffffff;
	padding: 16px 20px;
	margin: 0 0 32px;
}

.wv-service .wv-factline p {
	margin: 0;
}

.wv-service p.wv-factline-num {
	color: #56620c;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 900;
	white-space: nowrap;
}

.wv-service p.wv-factline-text {
	font-size: 15px;
	line-height: 1.4;
}

.wv-service ul.is-style-wv-checklist {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	column-gap: 30px;
	font-size: 15px;
	line-height: 1.5;
}

.wv-service ul.is-style-wv-checklist li {
	padding-block: 14px;
	border-top: 1px solid #e5e6e1;
}

.wv-service ul.is-style-wv-morelist {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
}

.wv-service ul.is-style-wv-morelist li {
	padding-block: 16px;
	border-top: 1px solid #e5e6e1;
}

.wv-service ul.is-style-wv-morelist li:last-child {
	border-bottom: 1px solid #e5e6e1;
}

/* ---- Mobil (≤600px) ---- */

@media (max-width: 600px) {

	.wv-pagenav ul {
		display: none;
	}

	.wv-pagenav {
		padding-block: 10px;
	}

	.wv-pagenav-select {
		display: block;
		width: min(1170px, 100% - 24px);
		margin: 0 auto;
		box-sizing: border-box;
		padding: 13px 44px 13px 16px;
		appearance: none;
		-webkit-appearance: none;
		border: 1px solid #ffffff15;
		border-radius: 0;
		background-color: transparent;
		background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%23c8d85d" stroke-width="2"/></svg>' );
		background-repeat: no-repeat;
		background-position: right 16px center;
		color: #ffffff;
		font-family: "Nunito", Arial, sans-serif;
		font-size: 15px;
		font-weight: 900;
		line-height: 1.35;
		cursor: pointer;
	}

	.wv-pagenav-select:focus-visible {
		outline: 3px solid #c8d85d;
		outline-offset: 2px;
	}

	.wv-pagenav-select option {
		background: #363833;
		color: #ffffff;
	}

	.wv-service,
	.elementor-section[id],
	.e-con[id] {
		scroll-margin-top: calc( var( --wv-header-h, 0px ) + var( --wp-admin--admin-bar--height, 0px ) + 90px );
	}

	.wv-service {
		padding-block: 56px;
	}

	.wv-service-inner {
		gap: 32px;
	}

	.wv-service-inner {
		gap: 24px;
	}

	/* A terv mobilnézete: cím alatt egy sorban a 104×104-es jelvény és a
	   statisztika-doboz (vonal felül, 32px-es szám). */
	.wv-service .wv-service-col {
		display: grid;
		grid-template-columns: 104px minmax(0, 1fr);
		align-items: center;
		column-gap: 16px;
	}

	.wv-service .wv-service-col > * {
		grid-column: 1 / -1;
	}

	.wv-service .wv-kicker {
		margin-bottom: 10px;
		font-size: 12px;
		letter-spacing: 0.8px;
	}

	.wv-service .wv-service-title {
		margin-bottom: 20px;
		font-size: 30px;
		hyphens: auto;
	}

	.wv-service .wv-service-col > .wv-service-badge {
		grid-column: 1;
		width: 104px;
		max-width: none;
		height: 104px;
		margin: 0;
		aspect-ratio: 1;
		object-fit: cover;
		object-position: center;
	}

	.wv-service .wv-service-col > .wv-service-badge + .wv-stat-box {
		grid-column: 2;
	}

	.wv-service .wv-stat-box {
		max-width: none;
		padding-top: 10px;
	}

	.wv-service .wv-stat-num {
		font-size: 32px;
		line-height: 1.15;
	}

	.wv-service .wv-stat-unit {
		font-size: 14px;
	}

	.wv-service .wv-stat-desc {
		margin-top: 4px;
		font-size: 13px;
		line-height: 1.4;
	}

	.wv-service ul.is-style-wv-morelist {
		font-size: 18px;
	}
}
