/**
 * refslider - Custom Styles
 * Version: 1.2.0
 */

/* Main Hero Slider Container */
.hero-slider {
	width: 100%;
	margin: 0 auto;
	position: relative;
	overflow: visible;
	--rfs-slide-min-height: 700px;
	--rfs-main-arrow-clearance: 72px;
}

.rfs-slider-host,
.rfs-slider-host .gdlr-core-refslider-item,
.rfs-slider-host .hero-slider {
	overflow: visible !important;
}

.rfs-slider-host {
	margin-bottom: 0 !important;
}

/* RealFactory: place slider behind page title when title block exists */
body.realfactory-body .realfactory-page-title-wrap {
	position: relative;
	z-index: 20;
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host {
	position: relative;
	z-index: 5;
	margin-top: calc(-1 * var(--rfs-page-title-height, 180px)) !important;
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-wrapper,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-slide,
body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .slide-content-wrapper {
	min-height: calc(var(--rfs-slide-min-height, 700px) + var(--rfs-page-title-height, 0px));
}

@media (min-width: 769px) {
	.rfs-slider-host {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}

	.rfs-slider-host .hero-slider,
	.rfs-slider-host .hero-swiper,
	.rfs-slider-host .hero-swiper .swiper-wrapper,
	.rfs-slider-host .hero-swiper .swiper-slide {
		width: 100vw;
		max-width: 100vw;
	}
}

@media (max-width: 768px) {
	.rfs-slider-host {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}

	.rfs-slider-host .hero-slider,
	.rfs-slider-host .hero-swiper,
	.rfs-slider-host .hero-swiper .swiper-wrapper,
	.rfs-slider-host .hero-swiper .swiper-slide {
		width: 100vw;
		max-width: 100vw;
	}
}

.rfs-slider-host .gdlr-core-refslider-item.gdlr-core-item-pdlr {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Main Swiper Instance */
.hero-swiper {
	width: 100%;
	height: auto;
	min-height: 700px;
	position: relative;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
	height: auto;
	min-height: 700px;
}

/* Individual Slides */
.hero-swiper .swiper-slide {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-content-wrapper {
	width: min(100%, 1180px);
	height: auto;
	min-height: 700px;
	margin: 0 auto;
	padding: 0 max(2rem, var(--rfs-main-arrow-clearance));
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
}

/* RealFactory theme: clear fixed header wrap */
body[class*='realfactory'] .hero-slider .slide-content-wrapper,
body.rfs-has-realfactory-header .hero-slider .slide-content-wrapper {
	margin-top: var(--rfs-header-clearance, 0px);
	min-height: max(0px, calc(var(--rfs-slide-min-height, 700px) - var(--rfs-header-clearance, 0px)));
}

body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
	min-height: max(0px, calc(var(--rfs-slide-min-height, 700px) + var(--rfs-page-title-height, 0px) - var(--rfs-header-clearance, 0px)));
}

/* Dark Overlay on Slides */
.hero-swiper .swiper-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.3) 100%);
	z-index: 1;
}

/* Slide Content Overlay */
.slide-content {
	position: relative;
	z-index: 2;
	text-align: left !important;
	color: #fff;
	flex: 0 1 1180px;
	max-width: 1180px !important;
	margin: 0;
	padding: 2rem 0 !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.slide-content.slide-content-title-only {
	padding: 0 !important;
}

.slide-content h2,
.slide-content .blurb,
.slide-content p,
.slide-content .btn {
	text-align: left !important;
}

.slide-content h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	color: #fff !important;
	font-weight: 700;
	margin: 0 !important;
	line-height: 1.1;
	max-width: 760px;
	letter-spacing: 0.02em;
}

.slide-content .blurb {
	color: #fff;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	margin: 0 0 1.6rem 0;
	line-height: 1.55;
	max-width: 680px;
}

.slide-content .wp-block-image {
	margin: -15px 0 0;
}

.slide-content .btn {
	padding: 0.95rem 2.2rem;
	background: #fff;
	color: #0f0f0f;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 2px;
	border: 1px solid #fff;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.slide-content .rfs-view-projects-btn {
	margin-top: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	padding: 0.7rem 1.35rem;
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 2px;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: none;
	transform: none;
	align-self: flex-start;
	cursor: pointer;
}

.slide-content .rfs-view-projects-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: #fff;
	box-shadow: none;
	transform: none;
}

.slide-content .btn:hover {
	background: transparent;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
	color: #fff;
	background: rgba(0, 0, 0, 0.2);
	width: 46px;
	height: 46px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev {
	left: 18px;
}

.hero-swiper .swiper-button-next {
	right: 18px;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
	font-size: 1.25rem;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
	background: rgba(0, 0, 0, 0.45);
}

/* Pagination Dots */
.hero-swiper .swiper-pagination {
	display: none !important;
}

.hero-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #fff;
	opacity: 0.5;
	transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #fff;
	transform: scale(1.2);
}


.rfs-linked-menu-popover {
	--rfs-linked-item-height: 84px;
	--rfs-linked-item-gap: 8px;
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	transform: translateX(-50%);
	z-index: 8;
	min-width: 0;
	max-width: none;
	padding: 8px;
	background: rgba(8, 8, 8, 0.82);
	border-radius: 8px;
	box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	box-sizing: border-box;
}

.rfs-linked-menu-popover::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -7px;
	width: 12px;
	height: 12px;
	transform: translateX(-50%) rotate(45deg);
	background: rgba(8, 8, 8, 0.82);
	border-right: 1px solid rgba(255, 255, 255, 0.24);
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.rfs-linked-menu-popover.is-empty {
	display: none;
}

.rfs-linked-menu-viewport {
	height: calc((var(--rfs-linked-item-height) * 3) + (var(--rfs-linked-item-gap) * 2));
	overflow: hidden;
}

.rfs-linked-menu-items {
	display: block;
	transition: transform 0.24s ease;
}

.rfs-linked-menu-item {
	display: block;
	height: var(--rfs-linked-item-height);
	margin-bottom: var(--rfs-linked-item-gap);
	border-radius: 0;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	text-decoration: none;
	color: #fff;
	transition: border-color 0.2s ease;
}

.rfs-linked-menu-item:last-child {
	margin-bottom: 0;
}

.rfs-linked-menu-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.5);
	z-index: 1;
	pointer-events: none;
	transition: background 0.25s ease;
}

.rfs-linked-menu-item:hover::after {
	background: rgba(255, 255, 255, 0.2);
}

.rfs-linked-menu-item:hover {
	border-color: rgba(255, 255, 255, 0.8);
}

.rfs-linked-menu-item img {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rfs-linked-menu-text {
	position: absolute;
	inset: 0;
	z-index: 2;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 500;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	pointer-events: none;
	transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
}

.rfs-linked-menu-item:hover .rfs-linked-menu-text {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	background: rgba(0, 0, 0, 0.5);
}

.rfs-linked-menu-nav {
	display: none;
	width: 100%;
	height: 22px;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0 0 6px;
	cursor: pointer;
	position: relative;
}

.rfs-linked-menu-nav-down {
	margin: 6px 0 0;
}

.rfs-linked-menu-popover.has-overflow .rfs-linked-menu-nav {
	display: block;
}

.rfs-linked-menu-nav::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform-origin: center;
}

.rfs-linked-menu-nav-up::after {
	transform: translate(-50%, -30%) rotate(-45deg);
}

.rfs-linked-menu-nav-down::after {
	transform: translate(-50%, -70%) rotate(135deg);
}

.rfs-linked-menu-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Thumbnail Navigation */
.thumbnail-nav {
	max-width: 1200px;
	margin: -119px auto -119px;
	padding: 0 1rem;
	position: relative;
	z-index: 4;
	background: transparent !important;
}

@media (min-width: 1025px) {
	.thumbnail-nav {
		max-width: 1169px;
		padding: 0;
	}
}

@media (max-width: 767px) {
	.rfs-linked-menu-popover {
		--rfs-linked-item-height: 70px;
		--rfs-linked-item-gap: 6px;
		bottom: calc(100% + 10px);
		max-width: calc(100% - 0.75rem);
		padding: 6px;
	}

	.rfs-linked-menu-text {
		font-size: 15px;
		inset: 0;
	}
}

.thumb-swiper {
	height: 238px;
	background: transparent !important;
}

.thumb-swiper .swiper-wrapper {
	background: transparent !important;
}

.thumb-button-prev,
.thumb-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	border: 1px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.thumbnail-nav.rfs-thumb-arrows-visible .thumb-button-prev,
.thumbnail-nav.rfs-thumb-arrows-visible .thumb-button-next {
	display: flex;
}

.thumb-button-prev {
	left: 6px;
}

.thumb-button-next {
	right: 6px;
}

.thumb-button-prev::after,
.thumb-button-next::after {
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
}

.thumb-button-prev::after {
	content: '‹';
}

.thumb-button-next::after {
	content: '›';
}

.thumb-button-prev:hover,
.thumb-button-next:hover {
	background: #1a1a1a;
}

.thumb-swiper .swiper-slide {
	cursor: pointer;
	transition: opacity 0.3s ease;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

.thumb-swiper .swiper-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
	pointer-events: none;
	transition: background 0.3s ease;
}

.thumb-swiper .thumb-title {
	position: absolute;
	inset: 0;
	z-index: 2;
	font-size: 18px;
	line-height: 1.2;
	color: #fff;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	pointer-events: none;
	transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
}

.thumb-swiper .swiper-slide:hover {
	border-color: transparent;
}

.thumb-swiper .swiper-slide:hover::after,
.thumb-swiper .swiper-slide-thumb-active::after {
	background: rgba(0, 0, 0, 0.5);
}

.thumb-swiper .swiper-slide:hover .thumb-title,
.thumb-swiper .swiper-slide-thumb-active .thumb-title {
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	background: transparent;
}

.thumb-swiper .swiper-slide:hover .thumb-title {
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
	background: transparent;
}

.thumb-swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: transparent;
}

.thumb-swiper .swiper-slide img {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host {
		margin-top: 0 !important;
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-wrapper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-slide,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .slide-content-wrapper {
		min-height: var(--rfs-slide-min-height, 400px);
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
		min-height: max(0px, calc(var(--rfs-slide-min-height, 400px) - var(--rfs-header-clearance, 0px)));
	}

	.hero-slider {
		--rfs-slide-min-height: 400px;
		--rfs-main-arrow-clearance: 56px;
	}

	.thumb-swiper .thumb-title {
		display: none;
	}

	.slide-content-wrapper {
		justify-content: center;
	}

	.slide-content {
		text-align: center !important;
		align-items: center;
		margin: 0 auto;
	}

	.slide-content h2,
	.slide-content .blurb,
	.slide-content p,
	.slide-content .btn {
		text-align: center !important;
	}

	.hero-swiper {
		height: auto;
		min-height: 400px;
	}

	.hero-swiper .swiper-wrapper,
	.hero-swiper .swiper-slide,
	.slide-content-wrapper {
		min-height: 400px;
	}

	.slide-content h2 {
		font-size: 2rem;
	}

	.slide-content .blurb {
		font-size: 1rem;
	}

	.slide-content .btn {
		padding: 0.75rem 2rem;
		font-size: 0.9rem;
	}

	.slide-content .rfs-view-projects-btn {
		align-self: center;
	}

	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		width: 40px;
		height: 40px;
	}

	.hero-swiper .swiper-button-prev {
		left: 12px;
	}

	.hero-swiper .swiper-button-next {
		right: 12px;
	}

	.hero-swiper .swiper-button-next::after,
	.hero-swiper .swiper-button-prev::after {
		font-size: 1rem;
	}

	.thumb-swiper {
		height: 90px;
	}

	.thumb-swiper .swiper-slide {
		border-width: 0;
	}

	.thumb-swiper .swiper-slide img {
		height: 90px;
	}

	.thumb-button-prev,
	.thumb-button-next {
		display: none;
	}

	.thumbnail-nav {
		margin: -38px auto -38px;
	}
}

@media (max-width: 480px) {
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host {
		margin-top: 0 !important;
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-wrapper,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-swiper .swiper-slide,
	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .slide-content-wrapper {
		min-height: var(--rfs-slide-min-height, 350px);
	}

	body.realfactory-body .realfactory-page-title-wrap + .realfactory-page-wrapper .rfs-slider-host .hero-slider .slide-content-wrapper {
		min-height: max(0px, calc(var(--rfs-slide-min-height, 350px) - var(--rfs-header-clearance, 0px)));
	}

	.hero-slider {
		--rfs-slide-min-height: 350px;
		--rfs-main-arrow-clearance: 52px;
	}

	.thumb-swiper .thumb-title {
		display: none;
	}

	.hero-swiper {
		height: auto;
		min-height: 350px;
	}

	.hero-swiper .swiper-wrapper,
	.hero-swiper .swiper-slide,
	.slide-content-wrapper {
		min-height: 350px;
	}

	.slide-content {
		padding: 1rem;
	}

	.slide-content-wrapper {
		padding: 0 max(1rem, var(--rfs-main-arrow-clearance));
	}

	.slide-content h2 {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.slide-content .blurb {
		font-size: 0.9rem;
		margin-bottom: 1.5rem;
	}

	.slide-content .rfs-view-projects-btn {
		align-self: center;
	}

	.thumb-swiper {
		height: 74px;
	}

	.thumb-swiper .swiper-slide {
		border-width: 0;
	}

	.thumb-swiper .swiper-slide img {
		height: 74px;
	}

	.thumb-button-prev,
	.thumb-button-next {
		display: none;
	}

	.thumbnail-nav {
		margin: -32px auto -32px;
	}
}

/* Single Portfolio (project post type) */
.rfs-project-single-wrap {
	padding: 60px 0;
}

.rfs-project-single {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rfs-project-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 40px;
	align-items: start;
}

.rfs-project-featured {
	margin-bottom: 24px;
	line-height: 0;
}

.rfs-project-featured img {
	width: 100%;
	height: auto;
	display: block;
}

.rfs-project-title {
	margin: 0 0 16px;
	line-height: 1.2;
}

.rfs-project-blurb {
	margin: 24px 0 0;
	font-size: 1.05rem;
	line-height: 1.6;
}

.rfs-project-blurb p:only-child,
.rfs-project-blurb p:last-child {
	margin-bottom: 0;
}

.rfs-project-content > *:first-child {
	margin-top: 0;
}

.rfs-project-info-card {
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	box-sizing: border-box;
}

.rfs-project-info-card h3 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	line-height: 1.3;
}

.rfs-project-info-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rfs-project-info-card li {
	margin: 0 0 12px;
	line-height: 1.5;
	word-break: break-word;
}

.rfs-project-info-card li:last-child {
	margin-bottom: 0;
}

.rfs-project-info-card a {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.rfs-project-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rfs-project-info-card {
		padding: 20px;
	}
}
