/* Greenwave Home V2 (Aug 2026) — loaded only on the Greenwave Home V2 template */

.gw-home {
	--gw-green: #358459;
	--gw-green-deep: #1e6b41;
	--gw-ink: #17301f;
	--gw-cream: #f5f1e8;
	--gw-sand: #f4f2ec;
	--gw-text: #3a3f3a;
	--gw-muted: #667;
	/* Rich (Aug 14): thinner, more modern type — "think Apple". System stack
	   gives SF on Apple devices and stays render-fast everywhere else. */
	--gw-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
	font-family: var(--gw-font);
	font-size: 16px;
	font-weight: 400;
	color: var(--gw-text);
	-webkit-font-smoothing: antialiased;
	/* originally for the (since removed) assistant card's right-edge
	   bleed; kept as a guard so nothing can add a horizontal scrollbar
	   (x only; y stays visible) */
	overflow-x: clip;
}

.gw-home h1, .gw-home h2, .gw-home h3 {
	padding: 0;
	font-family: var(--gw-font);
	font-weight: 600;
	letter-spacing: -0.015em;
}

.gw-home .gw-btn {
	display: inline-block;
	border-radius: 999px;
	padding: 14px 30px;
	font-family: var(--gw-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.gw-home .gw-btn:hover { transform: translateY(-2px); }
.gw-home .gw-btn-solid { background: var(--gw-green); color: #fff !important; }
.gw-home .gw-btn-solid:hover { background: var(--gw-green-deep); }
.gw-home .gw-btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff !important; }
.gw-home .gw-btn-outline { border: 1.5px solid var(--gw-green-deep); color: var(--gw-green-deep) !important; }

.gw-section-copy {
	max-width: 620px;
	margin: 14px auto 0;
	line-height: 1.6;
	color: var(--gw-muted);
}

/* ---- Hero ---- */

.gw-hero { position: relative; max-height: 570px; display: flex; align-items: center; overflow: hidden; }

.gw-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 40%;
}

/* Solid on the left both for legibility and to mask the placeholder's
   baked-in mockup text; fades over the family/TV on the right */
.gw-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(98deg,
		var(--gw-ink) 0%,
		var(--gw-ink) 34%,
		rgba(23, 48, 31, 0.72) 48%,
		rgba(23, 48, 31, 0.18) 66%,
		rgba(23, 48, 31, 0.28) 100%);
}

.gw-hero-inner {
	position: relative;
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding: 90px 5% 100px;
}

.gw-hero-inner h1 {
	color: var(--gw-cream);
	font-size: clamp(40px, 5.2vw, 64px);
	line-height: 1.06;
	font-weight: 600;
	letter-spacing: -0.02em;
	max-width: 480px;
	text-wrap: balance;
}
@media (max-width: 480px) { .gw-hero-inner h1 { font-size: 32px; } }

.gw-hero-inner p {
	color: rgba(245, 241, 232, 0.92);
	font-size: 18px;
	font-weight: 390;
	line-height: 1.55;
	max-width: 400px;
	margin: 22px 0 0;
	padding: 0;
}

/* Hero benefit chips (Rich Aug 14: capture Better Sleep / Healthier Home /
   Device Protection early, per the new mockup) */
.gw-hero-benefits-eyebrow {
	margin: 26px 0 0;
	color: rgba(245, 241, 232, 0.75);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gw-hero-benefits {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
}

.gw-hero-benefits li { display: flex; align-items: center; gap: 10px; }

.gw-benefit-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(245, 241, 232, 0.12);
	border: 1px solid rgba(245, 241, 232, 0.35);
	flex: none;
}
.gw-benefit-badge svg { width: 26px; height: 26px; color: var(--gw-cream); }

.gw-benefit-label {
	display: flex;
	flex-direction: column;
	color: var(--gw-cream);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}
.gw-benefit-label small {
	font-size: 12px;
	font-weight: 300;
	color: rgba(245, 241, 232, 0.75);
}

.gw-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- Sources ---- */

.gw-sources { text-align: center; padding: 50px 5% 76px; }

.gw-sources h2, .gw-kits h2, .gw-trusted h2 {
	font-size: clamp(26px, 3vw, 34px);
	color: var(--gw-ink);

}

.gw-kits h2 {
	line-height:40px;
}

.gw-sources-row {
	list-style: none;
	margin:30px auto 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 980px;
}

.gw-sources-row li {
	flex: 1 1 150px;
	max-width: 190px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.gw-sources-row li + li { border-left: 1px solid #c6cbc0; }
@media (max-width: 900px) {
	.gw-sources-row li + li { border-left: none; }
	.gw-sources-row li { flex-basis: 40%; }
	.gw-sources h2 { padding-top:40px}
}

/* Circle badges + finer strokes = the "richer" icon treatment from the mockups */
.gw-sources-row svg {
	width: 90px;
	height: 90px;
	padding: 1px;
	color: var(--gw-green-deep);
}
.gw-sources-row svg * { stroke-width: 2.5; }
.gw-sources-row span { font-size: 14px; font-weight: 500; color: var(--gw-text); }

/* ---- Protection ---- */

.gw-protection {
	position: relative;
	background: var(--gw-sand);
	overflow: hidden;               /* crops the photo at the section edges — the bleed */
}

.gw-protection-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 5%;               /* moved off .gw-protection so the photo can reach the edge */
	display: grid;
	grid-template-columns: 1.1fr 0.9fr; /* right cell is a spacer; the photo is positioned over it */
	align-items: center;
}
@media (max-width: 820px) { .gw-protection-inner { grid-template-columns: 1fr; } }

.gw-protection-copy { position: relative; z-index: 2; }   /* keep text above the photo */

.gw-protection-copy h2 {
	font-size: clamp(28px, 3.2vw, 38px);
	color: var(--gw-green-deep);
	line-height: 1.15;
}

.gw-protection-copy p {
	margin: 20px 0 28px;
	padding: 0;
	max-width: 420px;
	line-height: 1.6;
	font-weight: 500;
	color: var(--gw-muted);
}

/* Product photo bleeds off the right / top / bottom of the section and
   dissolves into the sand background as it moves left toward the copy.
   62% width + the mask stops are the tuning knobs. */
.gw-protection-media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	z-index: 1;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 58%);
	        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 58%);
}
.gw-protection-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	border-radius: 0;
	box-shadow: none;
}
@media (max-width: 820px) {
	/* Mobile: stack centered — title, copy and button centered above the photo */
	.gw-protection-copy { text-align: center; }
	.gw-protection-copy p { margin: 18px auto 32px; }
	.gw-protection-media {
		position: static;
		width: 100%;
		margin-top: 32px;   /* breathing room between the button and the photo */
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.gw-protection-media img { height: auto; }
}

/* ---- Trust bar ---- */

.gw-trustbar { background: var(--gw-green-deep); color: #ffffff; padding: 24px 4%; }

.gw-trustbar ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1220px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.gw-trustbar li {
	flex: 1 1 150px;
	max-width: 205px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	padding: 4px 16px;
}
.gw-trustbar li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
@media (max-width: 980px) {
	.gw-trustbar li + li { border-left: none; }
	.gw-trustbar li { flex-basis: 30%; }
}

.gw-trustbar svg {
	width: 56px;
	height: 70px;
	padding: 6px;
	border-radius: 50%;
	color: #fff;
}
.gw-trustbar svg * { stroke-width: 2.5; }
.gw-trustbar span { font-size: 13px; font-weight: 500; line-height: 1.35; }
/* ---- Kit picker ---- */

.gw-kits { text-align: center; padding: 84px 5%; }

.gw-kits-grid {
	max-width: 1080px;
	margin: 42px auto 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 900px) { .gw-kits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gw-kits-grid { grid-template-columns: 1fr; } }

.gw-kit-card {
	display: flex;
	flex-direction: column;
	border: 1.5px solid #dfe5df;
	border-radius: 14px;
	padding: 20px 18px 24px;
	background: #fff;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.gw-kit-card:hover {
	transform: translateY(-4px);
	border-color: var(--gw-green);
	box-shadow: 0 14px 30px rgba(23, 48, 31, 0.10);
}

.gw-kit-media {
	display: block;
	margin-bottom: 16px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--gw-sand);
}
.gw-kit-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.gw-kit-card h3 { font-size: 18px; color: var(--gw-ink); margin: 0 0 8px; }
.gw-kit-card p { font-size: 13.5px; font-weight: 300; color: var(--gw-muted); line-height: 1.5; margin: 0 0 10px; padding: 0; }

/* price + button sit at the bottom so buttons line up across uneven cards */
.gw-kit-price { margin-top: auto; font-size: 14px; color: var(--gw-muted); }
.gw-kit-price strong { font-size: 20px; font-weight: 700; color: var(--gw-ink); }
.gw-kit-card .gw-btn { align-self: center; margin-top: 12px; }

/* ---- Measure ---- */

.gw-measure {
	position: relative;
	background: var(--gw-sand);
	overflow: hidden;               /* crops the photo at the section edges — the bleed */
}

.gw-measure-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 80px 5%;              /* moved off .gw-measure so the photo can reach the left edge */
	display: grid;
	grid-template-columns: 1fr 1fr; /* left cell is a spacer; the photo is positioned over it */
	gap: 48px;
	align-items: center;
}
@media (max-width: 820px) { .gw-measure-inner { grid-template-columns: 1fr; } }

.gw-measure-copy { position: relative; z-index: 2; }   /* keep text above the photo */

/* Meter photo bleeds off the right / top / bottom of the section and dissolves
   into the sand background as it moves left toward the copy — same treatment
   as the Protection section (copy left, photo right). */
.gw-measure-media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	z-index: 1;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 58%);
	        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 58%);
}
.gw-measure-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
	box-shadow: none;
}
@media (max-width: 820px) {
	.gw-measure-media {
		position: static;
		width: 100%;
		margin-bottom: 12px;
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.gw-measure-media img { height: auto; }
}

/* type styling kept in sync with .gw-protection-copy */
.gw-measure-copy h2 { font-size: clamp(28px, 3.2vw, 38px); color: var(--gw-green-deep); line-height: 1.15; }
.gw-measure-copy p { margin: 20px 0 8px; padding: 0; max-width: 420px; line-height: 1.6; font-weight: 500; color: var(--gw-muted); }

/* Mobile: center the whole copy block below the photo. Placed after the base
   rules above so it wins; the button lives in a flex row so it needs
   justify-content, not text-align. */
@media (max-width: 820px) {
	.gw-measure-copy,
	.gw-measure-copy h2,
	.gw-measure-copy p { text-align: center; }
	.gw-measure-copy p { margin-left: auto; margin-right: auto; }
	.gw-measure-copy .gw-hero-ctas { justify-content: center; margin-top: 24px; }
}

.gw-more-toggle {
	appearance: none;
	background: none;
	border: none;
	padding: 0;
	font-family: var(--gw-font);
	font-size: inherit;
	font-weight: 600;
	color: var(--gw-green-deep);
	text-decoration: underline;
	cursor: pointer;
}
.gw-measure-more { font-size: 15px; }

/* ---- Trusted by (Rich Aug 14: 200k filters sold, Fox video, testimonials) ---- */

.gw-trusted { text-align: center; padding: 84px 5% 80px; }

.gw-trusted-stat { margin: 12px 0 0; padding: 0; font-size: 17px; color: var(--gw-muted); }
.gw-trusted-stat strong { color: var(--gw-green-deep); font-weight: 600; }

.gw-trusted-inner {
	max-width: 1080px;
	margin: 44px auto 0;
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 36px;
	align-items: start;
	text-align: left;
}
@media (max-width: 860px) { .gw-trusted-inner { grid-template-columns: 1fr; } }

.gw-video-card { display: block; text-decoration: none; color: var(--gw-text); }

.gw-video-thumb {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(23, 48, 31, 0.16);
}
.gw-video-thumb img { display: block; width: 100%; height: auto; transition: transform 0.2s ease; }
.gw-video-card:hover .gw-video-thumb img { transform: scale(1.02); }

.gw-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gw-video-play svg {
	width: 72px;
	height: 72px;
	padding: 18px;
	border-radius: 50%;
	background: rgba(23, 48, 31, 0.55);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	color: #fff;
	transition: background 0.15s ease;
}
.gw-video-card:hover .gw-video-play svg { background: var(--gw-green); }

.gw-video-caption {
	display: block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--gw-muted);
}
.gw-video-caption strong { font-weight: 700; color: var(--gw-ink); letter-spacing: 0.02em; }
.gw-video-lede {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gw-ink);
}
.gw-video-watch { display: block; margin-top: 4px; font-weight: 600; color: var(--gw-green-deep); }

.gw-testimonials { display: flex; flex-direction: column; gap: 16px; }

.gw-testimonial {
	margin: 0;
	background: #fff;
	border: 1px solid #e2e6e2;
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 8px 22px rgba(23, 48, 31, 0.06);
}

.gw-stars { color: #e9a63a; font-size: 15px; letter-spacing: 2px; }

.gw-testimonial blockquote {
	margin: 8px 0 10px;
	padding: 0;
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--gw-text);
}

.gw-testimonial figcaption { font-size: 13px; font-weight: 600; color: var(--gw-muted); }
