/* ==========================================================================
   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: 70px 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;
	position: relative;
}
.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; }
}


/* ── Header ── */
.gallery-header {
	background: var(--secondary-color);
	border-bottom: 1px solid var(--divider-color);
	padding: 72px 24px 64px;
	text-align: center;
}

.gallery-portfolio-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(65, 197, 117, 0.1);
	border: 1px solid rgba(65, 197, 117, 0.25);
	border-radius: 100px;
	padding: 6px 14px;
	margin-bottom: 28px;
}

.gallery-chip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-color);
	flex-shrink: 0;
}

.gallery-chip-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-color);
}

.gallery-header h1 {
	font-size: clamp(28px, 5vw, 52px);
	font-weight: 700;
	color: var(--primary-color);
	margin: 0 auto 16px;
	max-width: 700px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.gallery-header p {
	font-size: 16px;
	color: var(--text-color);
	margin: 0 auto 40px;
	max-width: 420px;
	line-height: 1.65;
}

/* ── Stats row ── */
.gallery-stats {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.gallery-stat-pill {
	background: white;
	border: 1px solid var(--divider-color);
	/* border-radius: 100px; */
	border-radius: 28px;
	padding: 12px 28px;
	text-align: center;
}

.gallery-stat-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.gallery-stat-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-color);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-top: 4px;
}

/* ── Grid ── */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	padding: 32px 32px 64px;
	max-width: 1400px;
	margin: 0 auto;

	text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Card ── */
.gallery-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--divider-color);
	box-shadow: 0 2px 8px rgba(0, 26, 41, 0.05);
	cursor: pointer;
	transition: box-shadow 0.3s ease, transform 0.3s ease;

	flex: 1 1 260px;
    max-width: 320px;
}

.gallery-card:hover {
	box-shadow: 0 16px 40px rgba(0, 26, 41, 0.12);
	transform: translateY(-4px);
}

.gallery-card-image {
	position: relative;
	overflow: hidden;
	/* aspect-ratio: 4 / 3; */
	aspect-ratio: 4 / 5;
}

.gallery-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-card-image img {
	transform: scale(1.05);
}

.gallery-kw-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--accent-color);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 100px;
	line-height: 1.4;
}

.gallery-card-body {
	padding: 16px 18px 18px;
}

.gallery-card-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.gallery-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-color);
	flex-shrink: 0;
}

.gallery-status-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-color);
}

.gallery-card-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-color);
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.gallery-card-meta {
	font-size: 12px;
	color: var(--text-color);
	margin-top: 4px;
}



/* ── Responsive ── */
@media (max-width: 600px) {
	.gallery-grid { padding: 20px 16px 48px; gap: 14px; }
	.gallery-header { padding: 48px 16px 40px; }
}