/* ==========================================================================
   Segments pages — Residential / Commercial & Industrial / Ground-Mounted
   A distinct layout language for this section of the site: full-bleed
   hero, horizontal info strip, asymmetric content blocks with an accent
   shape, and (on the C&I page) a tab switcher. Scoped to dseg- prefixed
   classes so nothing here touches the rest of the theme.
   Enqueued only on these 3 templates — see functions.php Section 14.
   ========================================================================== */

.dseg-green { color: var( --theme-color, #41C575 ); }

/* ---------- Hero ---------- */
.dseg-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}
.dseg-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( 100deg, rgba(6,14,8,0.92) 15%, rgba(6,14,8,0.55) 60%, rgba(6,14,8,0.25) 100% );
}
.dseg-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding: 60px 0;
}
.dseg-hero-eyebrow {
	display: inline-block;
	color: var( --theme-color, #41C575 );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.dseg-hero-inner h1 {
	color: #fff;
	font-size: 44px;
	line-height: 1.18;
	margin-bottom: 18px;
}
.dseg-hero-inner p {
	color: #d9dcd9;
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 30px;
}

/* ---------- Horizontal info strip ---------- */
.dseg-strip {
	background: #fff;
	border-bottom: 1px solid #ececec;
	padding: 46px 0;
}
.dseg-strip-row {
	display: flex;
	flex-wrap: wrap;
}
.dseg-strip-item {
	flex: 1 1 25%;
	padding: 0 26px;
	border-left: 3px solid var( --theme-color, #41C575 );
}
.dseg-strip-item + .dseg-strip-item {
	margin-top: 0;
}
.dseg-strip-item h5 {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.dseg-strip-item p {
	font-size: 13.5px;
	color: #6d6d6d;
	line-height: 1.6;
	margin-bottom: 0;
}
@media (max-width: 991px) {
	.dseg-strip-item { flex: 1 1 50%; margin-bottom: 24px; }
}
@media (max-width: 575px) {
	.dseg-strip-item { flex: 1 1 100%; }
}

/* ---------- Asymmetric content block ---------- */
.dseg-block {
	padding: 80px 0;
}
.dseg-block-alt {
	background: #f7f8f6;
}
.dseg-block-image {
	position: relative;
}
.dseg-block-image::before {
	content: '';
	position: absolute;
	top: -18px;
	left: -18px;
	width: 100%;
	height: 100%;
	border: 3px solid var( --theme-color, #41C575 );
	border-radius: 10px;
	z-index: 0;
}
.dseg-block-image img {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: 10px;
	display: block;
    height: 360px;
}
.dseg-block-reverse .dseg-block-image::before {
	left: auto;
	right: -18px;
}
.dseg-block-eyebrow {
	color: var( --theme-color, #41C575 );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
	display: block;
}
.dseg-block h2 {
	font-size: 30px;
	line-height: 1.25;
	margin-bottom: 16px;
}
.dseg-block p {
	color: #5d5d5d;
	line-height: 1.75;
	margin-bottom: 22px;
}
.dseg-taglist {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.dseg-taglist li {
	background: #eef6ee;
	color: #1f4d24;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 30px;
}

/* ---------- Model / tile grid (Ground-Mounted) ---------- */
.dseg-tiles {
	padding: 80px 0;
	background: #f7f8f6;
}
.dseg-tile {
	background: #fff;
	border-radius: 10px;
	padding: 34px 28px;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid #ececec;
}
.dseg-tile:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.dseg-tile-index {
	color: var( --theme-color, #41C575 );
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.dseg-tile h4 {
	font-size: 19px;
	margin-bottom: 12px;
}
.dseg-tile p {
	font-size: 14px;
	color: #6d6d6d;
	line-height: 1.7;
	margin-bottom: 0;
}

/* ---------- Tabs (Commercial & Industrial) ---------- */
.dseg-tabswitch {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 50px;
	flex-wrap: wrap;
}
.dseg-tabswitch button {
	background: #f0f0ee;
	border: none;
	padding: 14px 34px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 40px;
	cursor: pointer;
	color: #444;
	transition: background 0.2s ease, color 0.2s ease;
}
.dseg-tabswitch button.is-active {
	background: var( --theme-color, #41C575 );
	color: #fff;
}
.dseg-tabpanel { display: none; }
.dseg-tabpanel.is-active { display: block; }

/* ---------- CTA band ---------- */
.dseg-cta-band {
	background: #0b1f0f;
	padding: 60px 0;
	text-align: center;
}
.dseg-cta-band h3 {
	color: #fff;
	font-size: 26px;
	margin-bottom: 24px;
}

.dseg-cta-band .theme-btn.btn-style-one {
	color: var(--theme-color8);
    font-family: var(--title-font);
    background: var(--theme-color2);
    font-weight: 400;
    font-size: 17px;
    border-radius: 50px;
    padding: 17px 46px;
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

/* .dseg-cta-band .theme-btn.btn-style-one::before {
	position: absolute;
    content: "";
    height: 100%;
    width: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--theme-color7);
    border-radius: 50px;
    margin: auto;
    z-index: -1;
    transition: .5s;
} */

/* ---------- Gallery (Residential) ---------- */
.dseg-gallery {
	padding: 80px 0;
}
.dseg-gallery-item {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
}
.dseg-gallery-item img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.dseg-gallery-caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	background: linear-gradient( to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 60% );
	/* opacity: 0; */
	transition: opacity 0.3s ease;
}
.dseg-gallery-item:hover .dseg-gallery-caption { opacity: 1; }
.dseg-gallery-item:hover img { transform: scale(1.06); }
.dseg-gallery-caption span {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.dseg-hero-inner h1 { font-size: 30px; }
	.dseg-block-image::before { display: none; }
}