/*
 * Daygas front page, white and plain since 20.10.2026 (Daygas: sales first, no video, no motion, electric first).
 * Loaded after pages.css and archive.css (inc/home.php), only on a page whose content carries dg-home; the body then
 * has the class dg-home. The model cards and the category cards are the shop's own (archive.css). Colours come from
 * the --dg-* tokens only. Mobile first.
 *
 * Contents: 1 hero · 2 reasons row · 3 section heads · 4 models · 5 gas series and parts · 6 reviews
 */

/* 1. Hero: the text and the buttons, beside one picture of the electric heaters ---------------------------------- */

.dg-home .dg-home-hero {
	padding-block: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 48px);
	background: var(--dg-white);
}

.dg-home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--dg-space-6);
	align-items: center;
}

.dg-home-hero__text {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-4);
	max-width: 36rem;
}

.dg-home-hero__text > * {
	margin: 0;
}

.dg-home-hero__text .dg-eyebrow {
	margin: 0;
}

.dg-home .dg-home-hero__title {
	margin: 0;
	color: var(--dg-ink);
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
	line-height: 1.1;
}

.dg-home-hero__lead {
	color: var(--dg-text);
	font-size: var(--dg-fs-lg);
	line-height: 1.5;
}

.dg-home-hero__price {
	color: var(--dg-ink);
	font-size: var(--dg-fs-lg);
	font-weight: 700;
}

.dg-home-hero__price:empty {
	display: none;
}

.dg-home .dg-home-hero .wp-block-buttons {
	margin: var(--dg-space-2) 0 0;
}

.dg-home-hero__media {
	margin: 0;
}

.dg-home-hero__media img {
	display: block;
	width: 100%;
	max-width: 640px;
	height: auto;
	margin-inline: auto;
}

@media (min-width: 960px) {
	.dg-home-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(32px, 5vw, 72px);
	}
}

/* 2. Reasons row: delivery, payment, guarantee, phone ------------------------------------------------------------ */

.dg-home ul.dg-home-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--dg-space-4) var(--dg-space-5);
	margin: clamp(28px, 4vw, 48px) 0 0;
	padding: var(--dg-space-5) 0 0;
	border-top: 1px solid var(--dg-line);
	list-style: none;
}

.dg-home-trust__item {
	display: flex;
	align-items: flex-start;
	gap: var(--dg-space-3);
	margin: 0;
	color: var(--dg-text);
	font-size: var(--dg-fs-sm);
	line-height: 1.45;
}

.dg-home-trust__item strong {
	display: block;
	color: var(--dg-ink);
	font-size: var(--dg-fs-md);
}

.dg-home-trust__item a {
	color: var(--dg-ink);
	font-weight: 600;
}

.dg-home-trust__icon {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--dg-accent-text);
}

@media (min-width: 960px) {
	.dg-home ul.dg-home-trust {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 3. Section heads: heading on the left, the link to the whole category on the right ------------------------------ */

.dg-home-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--dg-space-3) var(--dg-space-6);
	margin-block-end: var(--dg-space-6);
}

.dg-home-head > * {
	margin: 0;
}

.dg-home .dg-home-head .dg-title {
	margin: 0;
}

.dg-home-head .dg-lead {
	margin: var(--dg-space-2) 0 0;
}

.dg-home-head__all {
	font-weight: 600;
}

.dg-home .dg-home-head__all a {
	color: var(--dg-ink);
	text-decoration-color: var(--dg-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* 4. Models: the shop grid as it is ----------------------------------------------------------------------------- */

.dg-home ul.products.dg-home-products {
	margin: 0;
}

/* 5. Gas series and parts --------------------------------------------------------------------------------------- */

.dg-home .dg-home-series {
	margin: 0;
}

.dg-home-parts-title {
	margin: clamp(32px, 5vw, 56px) 0 var(--dg-space-3);
	color: var(--dg-ink);
	font-size: var(--dg-fs-h3);
	font-weight: 700;
}

.dg-section ul.dg-parts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.dg-section ul.dg-parts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--dg-space-5);
	}
}

/* The doubled class beats the link-list spacing in site.css (li + li margin), which pushed items 2 and 3 down in the row. */
.dg-section .dg-parts.dg-parts > li {
	margin: 0;
	border-top: 1px solid var(--dg-line);
}

.dg-parts__link {
	display: flex;
	align-items: center;
	gap: var(--dg-space-3);
	min-height: 56px;
	padding-block: var(--dg-space-3);
	color: var(--dg-text);
	text-decoration: none;
}

.dg-parts__link:hover .dg-parts__name {
	color: var(--dg-accent-text);
}

.dg-parts__link:focus-visible {
	outline: none;
	box-shadow: var(--dg-focus);
	border-radius: 4px;
}

.dg-parts__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--dg-accent-text);
}

.dg-parts__icon svg {
	width: 24px;
	height: 24px;
}

.dg-parts__thumb {
	display: block;
	flex: none;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border-radius: var(--dg-radius);
	background: var(--dg-bg-soft);
}

.dg-parts__img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 5px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.dg-parts__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.dg-parts__name {
	color: var(--dg-ink);
	font-weight: 600;
	line-height: 1.3;
}

.dg-parts__text {
	font-size: var(--dg-fs-sm);
	line-height: 1.45;
}

.dg-parts__chev {
	flex: none;
	color: var(--dg-muted);
}

/* 6. Reviews (printed by [daygas_reviews] only when there is one) ----------------------------------------------- */

.dg-home .dg-reviews {
	background: var(--dg-bg-soft);
}

.dg-reviews__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--dg-space-5);
}

.dg-review {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-4);
	margin: 0;
}

.dg-review__stars {
	display: flex;
	gap: 3px;
	margin: 0;
}

.dg-review__stars span {
	width: 16px;
	height: 16px;
	background: var(--dg-accent);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.dg-review__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--dg-fs-md);
	line-height: 1.6;
}

.dg-review__text p {
	margin: 0;
}

.dg-review__by {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-block-start: auto;
	padding-block-start: var(--dg-space-3);
	border-top: 1px solid var(--dg-line);
	font-size: var(--dg-fs-sm);
}

.dg-review__author {
	color: var(--dg-ink);
	font-weight: 700;
}

.dg-review__meta {
	color: var(--dg-muted);
	font-size: var(--dg-fs-xs);
}
