/**
 * HydroShield Technology template – intro + numbered sections
 * Content: H2 (intro heading), P (intro), then H3 + P repeated. Numbers 1–5 via CSS counter.
 *
 * @package Plastpro
 */

/* Content wrapper: padding and counter scope */
.site-main--hydroshield .hydroshield-content {
	padding: 2rem 20px 4rem;
	counter-reset: hydroshield-section;
}

/* Page title (no hero image) – h1, centered */
.site-main--hydroshield .hydroshield-content .hydroshield-page-title,
.site-main--hydroshield .hydroshield-content h1.hydroshield-page-title {
	font-family: var(--plastpro-font-family-heading, 'Gilda Display', serif);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 400;
	color: #1D252D;
	margin: 0 auto 1.5rem auto;
	line-height: 1.2;
	max-width: 1440px;
	text-align: center;
}

/* Intro heading (PATENTED HYDROSHIELD™ TECHNOLOGY) */
.site-main--hydroshield .hydroshield-content h2:first-of-type,
.site-main--hydroshield .hydroshield-content .wp-block-post-content > h2:first-child {
	font-family: var(--plastpro-font-family-heading, 'Gilda Display', serif);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 400;
	color: #1D252D;
	margin-top: 0;
	margin-bottom: 1rem;
	line-height: 1.3;
}

/* Intro paragraph(s) after first H2 */
.site-main--hydroshield .hydroshield-content h2:first-of-type + p,
.site-main--hydroshield .hydroshield-content .wp-block-post-content > h2:first-child + p,
.site-main--hydroshield .hydroshield-content h2:first-of-type + .wp-block-paragraph,
.site-main--hydroshield .hydroshield-content .wp-block-post-content > h2:first-child + .wp-block-paragraph {
	font-size: 1.125rem;
	line-height: 1.8;
	color: #1D252D;
	margin-bottom: 2.5rem;
	max-width: 900px;
}

/* Numbered section: H3 with big counter before it */
.site-main--hydroshield .hydroshield-content h3 {
	position: relative;
	counter-increment: hydroshield-section;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: #1D252D;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	padding-left: 3.5rem;
	line-height: 1.35;
}

.site-main--hydroshield .hydroshield-content h3:first-of-type {
	margin-top: 0;
}

/* Large styled number (1–5) via ::before */
.site-main--hydroshield .hydroshield-content h3::before {
	content: counter(hydroshield-section);
	position: absolute;
	left: 0;
	top: -0.15em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	background-color: var(--plastpro-orange, #E87722);
	border-radius: 0;
	line-height: 1;
	padding: 0;
}

/* Paragraph immediately after each H3 */
.site-main--hydroshield .hydroshield-content h3 + p,
.site-main--hydroshield .hydroshield-content h3 + .wp-block-paragraph {
	font-size: 1.125rem;
	line-height: 1.8;
	color: #1D252D;
	margin-bottom: 0;
	margin-top: 0;
	padding-left: 3.5rem;
	max-width: 900px;
}

@media (max-width: 768px) {
	.site-main--hydroshield .hydroshield-content {
		padding: 1.5rem 16px 3rem;
	}

	.site-main--hydroshield .hydroshield-content h3 {
		padding-left: 3rem;
		font-size: 1.25rem;
		margin-top: 2rem;
	}

	.site-main--hydroshield .hydroshield-content h3::before {
		width: 1.875rem;
		height: 1.875rem;
		font-size: 1.25rem;
	}

	.site-main--hydroshield .hydroshield-content h3 + p,
	.site-main--hydroshield .hydroshield-content h3 + .wp-block-paragraph {
		padding-left: 3rem;
		font-size: 1rem;
	}
}
