/* ==========================================================================
   Regex 1.0 - Homepage Exact Screenshot Styles (Montserrat & Carousel)
   ========================================================================== */

/* 1. Full Bleed Hero Section (100vh Full Viewport Height) */
.rg-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	background-color: var(--rg-dark);
	background-image: url('https://regex.global/wp-content/uploads/2024/09/Home2.webp');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: #ffffff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 100px;
	padding-bottom: 50px;
	box-sizing: border-box;
	font-family: var(--rg-font-main);
	z-index: 1;
}

/* Hero Content Container Layer */
.rg-hero-container {
	position: relative;
	z-index: 10;
	width: 100%;
}

.rg-hero-content-wrapper {
	display: flex;
	justify-content: flex-end;
}

.rg-hero-text-block {
	max-width: 640px;
	padding-left: 20px;
}

/* Hero Title - Montserrat */
.rg-hero-title {
	font-family: var(--rg-font-heading);
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin-bottom: 24px;
	letter-spacing: -0.02em;
}

.rg-hero-highlight {
	color: #FBAD5D !important;
}

/* Hero Description Subtitle - Montserrat */
.rg-hero-description {
	font-family: var(--rg-font-main);
	font-size: 1rem;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.65;
	margin-bottom: 32px;
	opacity: 0.95;
}

/* Badges List - Montserrat */
.rg-hero-badges-list {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-family: var(--rg-font-main);
	font-size: 0.88rem;
	font-weight: 600;
	color: #ffffff;
}

.rg-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rg-hero-badge-divider {
	color: rgba(255, 255, 255, 0.4);
}

/* 2. Pink Brand Logo Banner (Prevent Image Selection on Drag) */
.rg-brand-section {
	background-color: var(--rg-pink-bar);
	padding: 24px 0;
	overflow: hidden;
	width: 100%;
}

.rg-brand-track-wrapper,
.rg-brand-track,
.rg-brand-logo-item,
.rg-brand-img-white {
	user-select: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	-webkit-user-drag: none !important;
}

.rg-brand-track-wrapper {
	display: flex;
	overflow: hidden;
	width: 100%;
	cursor: grab;
}

.rg-brand-track-wrapper.is-dragging {
	cursor: grabbing;
}

.rg-brand-track {
	display: flex;
	align-items: center;
	gap: 65px;
	width: max-content;
	animation: scroll-brands 18s linear infinite;
	white-space: nowrap;
}

.rg-brand-track:hover {
	animation-play-state: paused;
}

.rg-brand-logo-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rg-brand-img-white {
	height: 36px;
	max-height: 36px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
	pointer-events: none;
	filter: brightness(0) invert(1);
	opacity: 0.95;
	transition: opacity 0.3s ease;
}

.rg-brand-text-white {
	color: #ffffff;
	font-family: var(--rg-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	opacity: 0.95;
	white-space: nowrap;
	pointer-events: none;
}

.rg-brand-logo-item:hover .rg-brand-img-white,
.rg-brand-logo-item:hover .rg-brand-text-white {
	opacity: 1;
}

@keyframes scroll-brands {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* 3. Engage Section (White background, card styling matching reference screenshot) */
.rg-engage-item {
	text-align: center;
	padding: 45px 30px;
	border-radius: 16px;
	background-color: transparent;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.rg-engage-item-active,
.rg-engage-item:hover {
	background-color: #f9fafb;
	border-color: #f3f4f6;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.rg-engage-icon-box {
	width: 90px;
	height: 90px;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rg-engage-img-icon {
	width: 90px;
	height: 90px;
	object-fit: contain;
	display: block;
}

.rg-engage-item-title {
	font-family: var(--rg-font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--rg-text-dark);
	margin-bottom: 12px;
}

.rg-engage-item-desc {
	font-family: var(--rg-font-main);
	font-size: 0.9rem;
	color: var(--rg-text-muted);
	line-height: 1.6;
}

/* 4. Core Components (2x2 Grid with Maroon Icons) */
.rg-feature-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.rg-feature-icon-circle {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: var(--rg-radius-sm);
	background-color: var(--rg-maroon);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
}

.rg-feature-item-title {
	font-family: var(--rg-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rg-text-dark);
	margin-bottom: 8px;
}

.rg-feature-item-desc {
	font-family: var(--rg-font-main);
	font-size: 0.9rem;
	color: var(--rg-text-muted);
	line-height: 1.6;
}

/* 5. Why Regex Section (5 Columns with Centered Maroon Icons) */
.rg-why-item {
	text-align: center;
}

.rg-why-icon-circle {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--rg-maroon);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin: 0 auto 16px;
}

.rg-why-item-title {
	font-family: var(--rg-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rg-text-dark);
	margin-bottom: 10px;
}

.rg-why-item-desc {
	font-family: var(--rg-font-main);
	font-size: 0.88rem;
	color: var(--rg-text-muted);
	line-height: 1.55;
}

/* 6. Testimonials Carousel Section (Equal Height Cards & Draggable Viewport) */
.rg-testimonial-carousel-container {
	position: relative;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 54px;
}

.rg-testimonial-viewport {
	overflow: hidden;
	width: 100%;
	border-radius: var(--rg-radius-md);
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}

.rg-testimonial-viewport:active {
	cursor: grabbing;
}

.rg-testimonial-track {
	display: flex;
	align-items: stretch;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.rg-testimonial-slide {
	min-width: 33.3333%;
	box-sizing: border-box;
	padding: 0 12px;
	display: flex;
	flex-direction: column;
}

.rg-testimonial-box {
	background-color: var(--rg-bg-light);
	border-radius: var(--rg-radius-md);
	padding: 32px 24px;
	height: 100%;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.rg-testimonial-author-name {
	font-family: var(--rg-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--rg-text-dark);
	margin-bottom: 12px;
}

.rg-testimonial-text {
	font-family: var(--rg-font-main);
	font-size: 0.88rem;
	color: var(--rg-text-muted);
	line-height: 1.65;
}

/* Left & Right Chevron Buttons */
.rg-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid var(--rg-border-light);
	color: var(--rg-text-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: var(--rg-transition);
	z-index: 10;
}

.rg-carousel-btn:hover {
	background-color: var(--rg-maroon);
	color: #ffffff;
	border-color: var(--rg-maroon);
	transform: translateY(-50%) scale(1.05);
}

.rg-carousel-prev {
	left: 0;
}

.rg-carousel-next {
	right: 0;
}

/* Dots */
.rg-carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.rg-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #d1d5db;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: var(--rg-transition);
}

.rg-carousel-dot.active {
	background-color: var(--rg-maroon);
	width: 28px;
	border-radius: 6px;
}

/* 7. Discuss CTA Banner Section */
.rg-cta-box {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.rg-cta-title-bold {
	font-family: var(--rg-font-heading);
	font-size: 2.5rem;
	font-weight: 800;
	color: #000000;
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}

.rg-cta-desc-muted {
	font-family: var(--rg-font-main);
	font-size: 0.95rem;
	color: var(--rg-text-muted);
	margin-bottom: 32px;
	line-height: 1.6;
}

.rg-btn-orange {
	display: inline-block;
	font-family: var(--rg-font-main);
	background-color: #FBAD5D;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 14px 36px;
	border-radius: var(--rg-radius-full);
	box-shadow: 0 4px 14px rgba(251, 173, 93, 0.3);
	transition: var(--rg-transition);
}

.rg-btn-orange:hover {
	background-color: #e69c4c;
	transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.rg-hero-title {
		font-size: 2.7rem;
	}
}

@media (max-width: 900px) {
	.rg-testimonial-slide {
		min-width: 100%;
	}
	.rg-testimonial-carousel-container {
		padding: 0 40px;
	}
}

@media (max-width: 768px) {
	.rg-hero {
		min-height: auto;
		padding-top: 110px;
		padding-bottom: 50px;
		background-position: center right;
	}
	.rg-hero-content-wrapper {
		justify-content: center;
	}
	.rg-hero-text-block {
		padding-left: 0;
		text-align: center;
	}
	.rg-hero-title {
		font-size: 2.2rem;
	}
	.rg-hero-badges-list {
		justify-content: center;
	}
	#engage {
		scroll-margin-top: 100px;
		padding-top: 50px;
	}
	.rg-engage-item {
		padding: 24px 20px;
		margin-bottom: 20px;
		overflow: hidden;
		position: relative;
		z-index: 1;
	}
	.rg-engage-icon-box {
		width: 80px;
		height: 80px;
		margin: 0 auto 16px;
	}
	.rg-engage-img-icon {
		max-width: 100%;
		max-height: 80px;
		width: auto;
		height: auto;
		object-fit: contain;
	}
}
