/**
 * Shared styles for all service pages.
 * Loaded by each page-*.php service template.
 */

/* ── Main wrapper ─────────────────────────────────────────────────── */

.site-main--service {
	padding: 0;
	background: #fff;
	position: relative;
	isolation: isolate;
}

/* Dark side bands behind constrained hero */
.site-main--service.has-hero {
	padding-top: 12px;
}

.site-main--service.has-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 420px;
	background: #262626;
	z-index: 0;
}

/* ── Photo hero (pages with background image) ─────────────────────── */

.service-hero {
	position: relative;
	z-index: 2;
	max-width: 75rem;
	margin: 0 auto -6.25rem;
	min-height: 31.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.service-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	display: block;
}

.service-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
}

.service-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.service-hero__title {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 400;
	color: #fff;
	text-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}

.service-hero__line {
	display: block;
	width: 1px;
	height: 6.25rem;
	background: #ccc;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -3.125rem;
	z-index: 2;
}

/* ── Text-only hero (pages without bg image) ──────────────────────── */

.service-title-band {
	background: #262626;
	padding: 3.5rem 0;
	text-align: center;
}

.service-title-band__title {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 400;
	color: #fff;
}

/* ── Intro section ────────────────────────────────────────────────── */

.service-intro {
	padding: 5rem 0 3rem;
	background: #fff;
	text-align: center;
	position: relative;
	z-index: 1;
}

.service-intro--hero-below,
.service-split.service-intro--hero-below,
.service-split-bleed.service-intro--hero-below {
	padding-top: 11rem; /* clears hero protrusion + line bottom (line ends at hero_bottom+50px, intro starts at hero_bottom-100px, so need >150px) */
}

.service-intro__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--heritage-font);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgb(86, 86, 86);
}

.service-intro__title {
	margin: 0 0 1.5rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-intro__body {
	max-width: 48rem;
	margin: 0 auto 2rem;
	font-family: var(--heritage-font);
	font-size: 1rem;
	line-height: 1.75;
	color: #565656;
}

/* ── Split: image left, text right ───────────────────────────────── */

.service-split {
	padding: 4rem 0;
	background: var(--heritage-bg-soft);
}

.service-split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

@media (max-width: 768px) {
	.service-split__grid {
		grid-template-columns: 1fr;
	}
}

.service-split__image {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}

.service-split__title {
	margin: 0 0 1rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 4vw, 4.5rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-split__body {
	font-family: var(--heritage-font);
	font-size: 1rem;
	line-height: 1.75;
	color: #565656;
	margin: 0 0 1.5rem;
}

/* ── Partners / brand grid ────────────────────────────────────────── */

.service-partners {
	padding: 4rem 0;
	background: #fff;
}

.service-partners__title {
	margin: 0 0 2.5rem;
	text-align: center;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-partners__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.service-partners__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
	.service-partners__grid,
	.service-partners__grid--2 {
		grid-template-columns: 1fr;
	}
}

.service-partner-card {
	text-align: center;
	padding: 0 15px 30px;
	background-color: #fff;
	background-image: url('../../images/blue-asset.png');
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
	display: flex;
	flex-direction: column;
}

.service-partner-card__media {
	display: block;
	line-height: 0;
	margin-top: -40px;
	overflow: hidden;
	position: relative;
}

.service-partner-card__media img {
	width: 100%;
	aspect-ratio: 37 / 25;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.service-partner-card__media:hover img {
	transform: scale(1.02);
}

.service-partner-card__badge {
	display: block;
	width: 64px;
	height: 64px;
	margin: -2rem auto 0.75rem;
	position: relative;
	z-index: 1;
	border-radius: 50%;
	border: 3px solid #fff;
	background: #fff;
	overflow: hidden;
}

.service-partner-card__badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-partner-card__body {
	padding: 0 0.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
}

.service-partner-card__name {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--heritage-text);
}

.service-partner-card__desc {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: 1rem;
	line-height: 1.65;
	color: #565656;
	max-width: 18rem;
}

.service-partner-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	min-width: 14rem;
	height: 50px;
	padding: 0 1.5rem;
	border: 1px solid #cccccc;
	background: transparent;
	color: #565656;
	font-family: var(--heritage-font);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.service-partner-card__link:hover {
	background: rgb(12, 83, 132);
	border-color: rgb(12, 83, 132);
	color: #fff;
}

.service-partners--photo {
	padding: 4rem 0 5rem;
}

/* ── CTA button ───────────────────────────────────────────────────── */

.service-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2.25rem;
	background: rgb(12, 83, 132);
	color: #fff;
	border: 2px solid rgb(12, 83, 132);
	border-radius: 0;
	font-family: var(--heritage-font);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.service-cta-btn:hover {
	background: rgb(14, 105, 161);
	border-color: rgb(14, 105, 161);
	color: #fff;
}

.service-cta-btn--outline {
	background: transparent;
	color: rgb(12, 83, 132);
}

.service-cta-btn--outline:hover {
	background: rgb(12, 83, 132);
	color: #fff;
}

/* ── Service cards (gutter types, decking types etc.) ─────────────── */

.service-cards {
	padding: 4rem 0;
	background: var(--heritage-bg-soft);
}

.service-cards__title {
	margin: 0 0 2.5rem;
	text-align: center;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.service-cards__grid {
		grid-template-columns: 1fr;
	}
}

.service-card {
	background: #fff;
	padding: 2rem 1.5rem;
	border-top: 3px solid rgb(12, 83, 132);
}

.service-card__title {
	margin: 0 0 0.75rem;
	font-family: var(--heritage-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--heritage-text);
}

.service-card__body {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #565656;
}

/* ── Gutter type profile cards ───────────────────────────────────── */

.service-card--profile {
	border-top: none;
	padding: 0 0 2rem;
	text-align: center;
}

.service-card--profile .service-card__img-wrap {
	line-height: 0;
}

.service-card--profile .service-card__img-wrap > img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	padding: 2.5rem;
	display: block;
}

.service-card--profile .service-card__title {
	text-align: center;
	margin-top: 0;
}

.service-card--profile .service-card__body {
	text-align: center;
	padding: 0 0.5rem;
}

/* ── Gutter color swatch images ──────────────────────────────────── */

.gutter-colors {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 2rem auto 0;
}

.gutter-colors img {
	display: block;
	width: auto;
	max-height: 600px;
}

/* ── Video hero ───────────────────────────────────────────────────── */

.service-hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.service-hero__video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Brand image cards (windows, siding, decking) ─────────────────── */

.service-brand-section {
	padding: 4rem 0;
	background: var(--heritage-bg-soft);
}

.service-brand-section__title {
	margin: 0 0 2.5rem;
	text-align: center;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-brand-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.service-brand-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-brand-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.service-brand-card__image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.service-brand-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-brand-card__badge {
	position: absolute;
	bottom: -1.25rem;
	left: 50%;
	transform: translateX(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	background: rgb(12, 83, 132);
}

.service-brand-card__badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-brand-card__body {
	padding: 2rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.service-brand-card__name {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: 1.375rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--heritage-text);
}

.service-brand-card__desc {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: 0.875rem;
	line-height: 1.65;
	color: #565656;
}

/* ── Professionalism / Dedication split section ───────────────────── */

.service-dedication {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.service-dedication__image {
	min-height: 420px;
	background-size: cover;
	background-position: center;
}

.service-dedication__text {
	background: #fff;
	padding: 4rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.service-dedication__title {
	margin: 0 0 1rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 400;
	color: var(--heritage-text);
}

.service-dedication__body {
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #565656;
	margin: 0 0 2rem;
	max-width: 32rem;
}

/* ── Features grid (4 benefit cards in a row) ─────────────────────── */

.service-features {
	padding: 3rem 0 4rem;
	background: #fff;
}

.service-split__accordion {
	margin-top: 1.5rem;
}

.service-split__accordion.heritage-accordion .heritage-accordion__item {
	background: #f5f4f0;
	margin-bottom: 0.3125rem;
}

.service-split__accordion .heritage-accordion__summary {
	list-style: none;
	cursor: pointer;
	padding: 1.125rem 1.25rem;
	font-family: var(--heritage-font);
	font-size: 1rem;
	font-weight: 600;
	color: rgb(12, 83, 132);
	display: flex;
	align-items: center;
	gap: 1rem;
	letter-spacing: 0.02em;
}

.service-split__accordion .heritage-accordion__summary::-webkit-details-marker {
	display: none;
}

.service-split__accordion .heritage-accordion__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(12, 83, 132);
}

.service-split__accordion .heritage-accordion__icon svg {
	width: 100%;
	height: 100%;
}

.service-split__accordion .heritage-accordion__label {
	flex: 1;
}

.service-split__accordion .heritage-accordion__chevron {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(12, 83, 132);
	transition: transform 0.2s ease;
}

.service-split__accordion .heritage-accordion__chevron svg {
	width: 100%;
	height: 100%;
}

.service-split__accordion .heritage-accordion__item[open] .heritage-accordion__chevron {
	transform: rotate(180deg);
}

.service-split__accordion .heritage-accordion__panel {
	padding: 0 1.25rem 1.125rem calc(22px + 1.25rem + 1rem);
}

.service-split__accordion .heritage-accordion__panel p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #565656;
}

.service-features__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 900px) {
	.service-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.service-features__grid {
		grid-template-columns: 1fr;
	}
}

.service-feature {
	text-align: center;
	padding: 1rem;
}

.service-feature__title {
	margin: 0 0 0.75rem;
	font-family: var(--heritage-font-serif);
	font-size: 1.375rem;
	font-weight: 400;
	color: var(--heritage-text);
	line-height: 1.25;
}

.service-feature__body {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #565656;
}

/* Split: reversed — flips default (text left / image right) so image goes left, text goes right */
.service-split--reversed .service-split__grid > div:first-child {
	order: 2;
}

.service-split--reversed .service-split__grid > div:last-child {
	order: 1;
}

.service-split__image--tall {
	height: auto;
	max-height: 560px;
	aspect-ratio: 3 / 4;
}

/* ── Dedication hero: full-bleed bg image with centered white card ── */

.service-dedication-hero {
	position: relative;
	z-index: 1;
	padding: 16rem 0 0; /* ~256px top — matches live's ~300px top offset so bg image shows fully */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	isolation: isolate;
}

.service-dedication-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}

.service-dedication-hero .wrap {
	position: relative;
	z-index: 1;
}

.service-dedication-hero__card {
	position: relative;
	z-index: 2;
	max-width: 50rem;
	margin: 0 auto;
	transform: translateY(80px);
	background: #fff;
	padding: 80px 40px;
	text-align: center;
	outline: 1px solid rgb(204, 204, 204);
	outline-offset: -25px;
}

.service-dedication-hero__title {
	margin: 0 0 1.25rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.875rem, 3.5vw, 3rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--heritage-text);
}

.service-dedication-hero__body {
	font-family: var(--heritage-font);
	font-size: 1rem;
	line-height: 1.75;
	color: #565656;
	margin: 0 0 2rem;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 600px) {
	.service-dedication-hero {
		padding: 3rem 0;
	}
	.service-dedication-hero__card {
		padding: 2.5rem 1.75rem;
		outline-offset: -14px;
	}
}

/* ── Checklist (room renovations etc.) ───────────────────────────── */

.service-checklist {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1.5rem;
}

.service-checklist li {
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	color: #565656;
	padding-left: 1.25rem;
	position: relative;
}

.service-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: rgb(12, 83, 132);
	font-weight: 700;
}

/* ── Additions / project grid section ───────────────────────────── */

.service-additions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 500px;
}

.service-additions__panel {
	position: relative;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem 3rem;
}

.service-additions__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
}

.service-additions__panel-inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.service-additions__heading {
	margin: 0 0 1rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 400;
	color: #fff;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.service-additions__body {
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 2rem;
}

.service-additions__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.service-additions__project {
	display: flex;
	flex-direction: column;
}

.service-additions__project-img {
	height: 287px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.service-additions__project-label {
	padding: 15px;
	background: #fff;
}

.service-additions__project-title {
	margin: 0 0 0.3rem;
	font-family: var(--heritage-font-serif);
	font-size: 25px;
	font-weight: 400;
	font-style: italic;
	color: rgb(9, 36, 82);
}

.service-additions__project-sub {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: 14px;
	font-weight: 400;
	color: rgba(12, 83, 132, 0.7);
	letter-spacing: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.service-hero {
min-height:20rem;
	}

	.service-partners__grid {
		grid-template-columns: 1fr;
	}

	.service-partner-card__link {
		min-width: 0;
		width: 100%;
	}

	.service-cards__grid {
		grid-template-columns: 1fr;
	}

	.service-brand-grid,
	.service-brand-grid--3 {
		grid-template-columns: 1fr;
	}

	.service-dedication {
		grid-template-columns: 1fr;
	}

	.service-dedication__image {
		min-height: 280px;
	}

	.service-additions {
		grid-template-columns: 1fr;
	}

	.service-additions__grid {
		grid-template-columns: 1fr;
	}

	.service-checklist {
		grid-template-columns: 1fr;
	}
}

/* ── CertainTeed page: section bg modifiers ──────────────────────── */

.service-split.service-split--white {
	background: #fff;
}

.certainteed-section--cream {
	background: rgb(242, 240, 236);
}

.certainteed-section--cream-soft {
	background: rgba(242, 240, 236, 0.4);
}

/* Full-bleed split (image edge-to-edge on left, content on right) */
.service-split-bleed {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	padding: 80px 0;
}

.service-split-bleed__media {
	min-height: 550px;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

.service-split-bleed__content {
	padding: 4rem 3rem 4rem 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 720px;
}

.service-split-bleed__content .service-split__title {
	margin-top: 0;
}

/* Room Renovations sub-heading ("Make Your Room Uniquely Yours") */
.service-split-bleed__subtitle {
	margin: -0.25rem 0 1.5rem;
	font-family: var(--heritage-font-serif);
	font-size: 2rem; /* 32px — matches live */
	font-weight: 400;
	font-style: normal;
	color: rgb(38, 38, 38);
}

/* Reversed layout: content first in HTML (left col), media second (right col) */
.service-split-bleed__content--left {
	padding-left: 3rem;
	padding-right: 4rem;
	max-width: none;
}

@media (max-width: 900px) {
	.service-split-bleed {
		grid-template-columns: 1fr;
		padding: 20px 0;
	}
	.service-split-bleed__media {
		min-height: 320px;
	}
	.service-split-bleed__content {
		padding: 0.5rem 1.25rem;
		max-width: none;
	}
	.service-split-bleed__content--left {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

.certainteed-section--dark {
	background: #262626;
	color: #fff;
}

.certainteed-section--dark .service-intro__title,
.certainteed-section--dark .service-intro__body {
	color: #fff;
}

.certainteed-colorview__logo {
	display: block;
	margin: 0 auto 2rem;
	max-width: 220px;
	height: auto;
	opacity: 0.85;
}

/* Outline CTA variants */
.service-cta-btn--outline-dark {
	background: transparent;
	color: rgb(38, 38, 38);
	border-color: rgb(204, 204, 204);
	letter-spacing: 0.04em;
	cursor: pointer;
}

.service-cta-btn--outline-dark:hover {
	background: rgb(12, 83, 132);
	border-color: rgb(12, 83, 132);
	color: #fff;
}

.service-cta-btn--outline-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
	letter-spacing: 0.04em;
}

.service-cta-btn--outline-light:hover {
	background: #fff;
	color: rgb(38, 38, 38);
	border-color: #fff;
}

/* Vertical connector line above certain sections */
.site-main--certainteed .has-connector {
	position: relative;
}

.site-main--certainteed .has-connector::before {
	content: "";
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 80px;
	background: #ccc;
	z-index: 3;
	pointer-events: none;
}

.site-main--certainteed .certainteed-section--dark.has-connector::before {
	background: #ccc;
}

/* Card juts 80px into Why Choose section (certainteed page) */
.site-main--certainteed .section--why {
	padding-top: 160px;
}

/* Card juts 80px into Why Choose section (service pages: dedicated immediately before why-choose) */
.service-dedication-hero + .section--why {
	padding-top: 160px;
}

/* Card juts 80px into Testimonials section (roofing page: dedicated is immediately before testimonials) */
.service-dedication-hero + .section--testimonials {
	padding-top: 120px;
}

/* Integrity section image (no aspect ratio constraint) */
.site-main--certainteed .service-split .service-split__image {
	height: auto;
	max-height: none;
	aspect-ratio: auto;
	object-fit: cover;
}

/* ── Video modal ─────────────────────────────────────────────────── */

.video-modal[hidden] {
	display: none;
}

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	cursor: pointer;
}

.video-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
	background: #000;
}

.video-modal__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

.video-modal__frame {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
}

.video-modal__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
