/* ClearThisLand brand overrides on Canvas Construction */

:root {
	--cnvs-themecolor: #2d5a27;
	--cnvs-themecolor-rgb: 45, 90, 39;
	--ctl-green: #2d5a27;
	--ctl-green-dark: #1e3d1a;
	--ctl-green-soft: #6b9e4a;
	--ctl-sand: #f4f7f2;
	--ctl-accent: #c45c26;
}

.ctl-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--ctl-green-dark);
	font-weight: 600;
}

.ctl-skip:focus {
	left: 0.5rem;
	top: 0.5rem;
}

.ctl-top-note {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	line-height: 2.5;
	display: inline-block;
}

#logo img.logo-default {
	max-height: 40px;
	width: auto;
}

.ctl-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ctl-logo-mark {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ctl-service-card {
	display: block;
	height: 100%;
	background: #fff;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(30, 61, 26, 0.08);
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ctl-service-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(30, 61, 26, 0.14);
	color: inherit;
}

.ctl-service-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.ctl-service-card-body {
	padding: 1.25rem 1.35rem 1.5rem;
}

.ctl-service-card-body h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: var(--ctl-green-dark);
}

.ctl-service-card-body p {
	margin: 0;
	font-size: 0.95rem;
	color: #555;
	line-height: 1.5;
}

.ctl-service-detail-img {
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	display: block;
}

@media (max-width: 767.98px) {
	.ctl-service-detail-img {
		min-height: 200px;
		max-height: 240px;
	}
}

.button.button-green,
.button.button-green:hover {
	background-color: var(--ctl-green) !important;
	border-color: var(--ctl-green) !important;
	color: #fff !important;
}

.button.button-green:hover {
	background-color: var(--ctl-green-dark) !important;
	border-color: var(--ctl-green-dark) !important;
}

.button.button-border.button-green {
	background-color: transparent !important;
	color: var(--ctl-green) !important;
	border-color: var(--ctl-green) !important;
}

.button.button-border.button-green:hover,
.button.button-border.button-green.button-fill:hover span {
	background-color: var(--ctl-green) !important;
	color: #fff !important;
}

.ctl-nav-cta {
	white-space: nowrap;
}

/* Feature row media: equal tile height regardless of source aspect ratio */
.feature-box.media-box .fbox-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0.35rem;
	background: #1e3d1a;
}

.feature-box.media-box .fbox-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.feature-box .fbox-icon i {
	color: var(--ctl-green);
}

.feature-box .fbox-icon a {
	color: var(--ctl-green);
}

#header .header-extras li i {
	color: var(--ctl-green);
}

/*
 * Hero carousel
 * Desktop: solid caption card over photo
 * Mobile: image-first — full photo visible, text/CTA on a bottom gradient bar
 */
#slider.ctl-hero {
	min-height: 28rem;
}

#slider.ctl-hero .swiper-slide-bg {
	background-size: cover;
	background-position: center center;
}

#slider .slider-caption {
	--cnvs-slider-caption-font-color: #ffffff;
	color: #fff;
	max-width: 32rem;
	z-index: 5;
}

#slider .slider-caption > div {
	background-color: rgba(20, 40, 18, 0.88) !important;
	border-radius: 0.5rem;
	padding: 2rem 2.25rem;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

#slider .slider-caption h2,
#slider .slider-caption .h2 {
	color: #ffffff !important;
	text-shadow: none;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0.75rem;
	letter-spacing: 0;
}

#slider .slider-caption p {
	color: rgba(255, 255, 255, 0.92) !important;
	text-shadow: none;
	font-size: 1.05rem;
	line-height: 1.55;
	margin-top: 0.35rem;
	margin-bottom: 1rem;
	font-weight: 400;
}

#slider .slider-caption .button {
	margin-top: 0.25rem;
}

/* ---- Mobile: photo-first hero ---- */
@media (max-width: 767.98px) {
	#slider.ctl-hero {
		min-height: 70vh;
		min-height: 70dvh;
		/* room so CTA clears the sticky mobile bar */
		padding-bottom: 0;
		overflow: visible;
	}

	#slider.ctl-hero .swiper,
	#slider.ctl-hero .swiper-wrapper,
	#slider.ctl-hero .swiper-slide {
		min-height: 70vh;
		min-height: 70dvh;
		overflow: visible;
	}

	/* Photo stays bright; light bottom scrim only under text (not full-slide green wash) */
	#slider.ctl-hero .video-overlay {
		background: linear-gradient(
			to top,
			rgba(10, 18, 8, 0.72) 0%,
			rgba(10, 18, 8, 0.28) 28%,
			rgba(10, 18, 8, 0.06) 52%,
			transparent 72%
		) !important;
		/* stay UNDER caption (Canvas puts overlay after .container in DOM) */
		z-index: 1 !important;
		pointer-events: none;
	}

	#slider.ctl-hero .swiper-slide-bg {
		z-index: 0;
	}

	/* Caption stack ABOVE tint */
	#slider.ctl-hero .swiper-slide > .container {
		position: relative;
		z-index: 6;
		height: 100%;
		display: flex;
		align-items: flex-end;
		/* sticky bar ~4.25rem + safe area */
		padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
		padding-left: 1rem;
		padding-right: 1rem;
		padding-top: 1rem;
		box-sizing: border-box;
	}

	#slider.ctl-hero .slider-caption,
	#slider.ctl-hero .slider-caption.slider-caption-right {
		position: relative;
		z-index: 7;
		max-width: 100%;
		width: 100%;
		margin: 0;
		height: auto !important;
		justify-content: flex-end;
		padding: 0;
	}

	/* No green card — type over light bottom scrim */
	#slider.ctl-hero .slider-caption > div {
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		padding: 0 !important;
		width: 100%;
	}

	#slider.ctl-hero .slider-caption h2,
	#slider.ctl-hero .slider-caption .h2 {
		font-size: 1.5rem;
		line-height: 1.2;
		margin-bottom: 0.35rem;
		text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
	}

	#slider.ctl-hero .slider-caption p {
		font-size: 0.95rem;
		line-height: 1.35;
		margin-top: 0;
		margin-bottom: 0.75rem;
		text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
		display: block !important;
	}

	#slider.ctl-hero .slider-caption p.ctl-hero-desk {
		display: none !important;
	}

	#slider.ctl-hero .slider-caption .button {
		display: inline-flex;
		width: 100%;
		justify-content: center;
		margin: 0 !important;
		position: relative;
		z-index: 8;
		box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
	}

	/* Arrows above photo, mid-upper so they clear CTA + mobile bar */
	#slider.ctl-hero .slider-arrow-left,
	#slider.ctl-hero .slider-arrow-right {
		width: 2.25rem;
		height: 2.25rem;
		top: 38%;
		z-index: 9;
		opacity: 0.9;
	}

	#slider.ctl-hero .slider-arrow-left {
		left: 0.35rem;
	}

	#slider.ctl-hero .slider-arrow-right {
		right: 0.35rem;
	}
}

.ctl-town-pill {
	background: #fff;
	border: 1px solid #e0e8dc;
	border-radius: 999px;
	padding: 0.65rem 1rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ctl-green-dark);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ctl-form-result {
	padding: 0.85rem 1rem;
	border-radius: 0.35rem;
	font-size: 0.95rem;
}

.ctl-form-result.is-ok {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.ctl-form-result.is-err {
	background: #fff3e0;
	color: #e65100;
	border: 1px solid #ffcc80;
}

/* Inner page banner — light text on forest green (replaces Canvas page-title-mini) */
.ctl-page-banner {
	background-color: #1e3d1a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.75rem 0;
	color: #ffffff;
}

.ctl-page-banner-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.ctl-page-banner-content h1 {
	margin: 0;
	padding: 0;
	color: #ffffff !important;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
}

.ctl-page-banner-sub {
	margin: 0.4rem 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 1rem;
	line-height: 1.4;
}

.ctl-page-banner-crumb.breadcrumb {
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 0.9rem;
}

.ctl-page-banner-crumb .breadcrumb-item,
.ctl-page-banner-crumb .breadcrumb-item.active {
	color: rgba(255, 255, 255, 0.8) !important;
}

.ctl-page-banner-crumb .breadcrumb-item a {
	color: #ffffff !important;
	text-decoration: none;
}

.ctl-page-banner-crumb .breadcrumb-item a:hover {
	color: #c5e1a5 !important;
}

.ctl-page-banner-crumb .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255, 255, 255, 0.45) !important;
}

@media (max-width: 575.98px) {
	.ctl-page-banner-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

#footer a:hover {
	color: var(--ctl-green-soft) !important;
}

.iconlist.iconlist-color li i {
	color: var(--ctl-green);
}

/* Mobile sticky quote bar */
@media (max-width: 991.98px) {
	.ctl-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 499;
		display: flex;
		gap: 0.5rem;
		padding: 0.65rem 0.85rem;
		background: rgba(30, 61, 26, 0.97);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
	}

	.ctl-mobile-bar .button {
		flex: 1;
		margin: 0 !important;
		text-align: center;
		justify-content: center;
	}

	body.stretched {
		padding-bottom: 4.25rem;
	}
}

@media (min-width: 992px) {
	.ctl-mobile-bar {
		display: none !important;
	}
}

/* Recent Work gallery: equal tile size (one source is portrait) */
#portfolio.portfolio .portfolio-item .grid-inner {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1e3d1a;
}

#portfolio.portfolio .portfolio-item .grid-inner > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

#portfolio.portfolio .portfolio-item .bg-overlay {
	z-index: 2;
}

/* Hero background video (independent of Canvas html5video plugin) */
.ctl-bg-video {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #1e3d1a;
}

.ctl-bg-video video,
.ctl-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1 !important;
	z-index: 0;
}

#slider.ctl-hero .swiper-slide > .swiper-slide-bg {
	z-index: 0;
}

#slider.ctl-hero .swiper-slide > .ctl-bg-video {
	z-index: 0;
}

#slider.ctl-hero .swiper-slide > .video-overlay {
	z-index: 1;
}

#slider.ctl-hero .swiper-slide > .container {
	position: relative;
	z-index: 5;
}

.ctl-hero-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85) !important;
	font-weight: 600;
	margin: 0;
}

/* Rates cards */
.ctl-rate-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.65rem;
	padding: 1.35rem 1.25rem;
	height: 100%;
	text-align: center;
}

.ctl-rate-card--on-dark {
	background: rgba(255, 255, 255, 0.1);
}

.ctl-rate-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.ctl-rate-price {
	font-size: clamp(1.75rem, 3vw, 2.15rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
}

.ctl-rate-price span {
	font-size: 0.95rem;
	font-weight: 500;
	opacity: 0.8;
}

.ctl-rate-note {
	margin-top: 0.65rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.4;
}

/* Inline / gallery videos */
.ctl-inline-video video,
.ctl-video-tile video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #1e3d1a;
}

.ctl-video-tile {
	background: #fff;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(30, 61, 26, 0.08);
}

.ctl-video-tile figcaption {
	padding: 0.75rem 1rem 1rem;
	font-size: 0.9rem;
	color: #444;
	line-height: 1.4;
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ctl-hero-video {
		display: none;
	}
}
