/**
 * Hero Slider — front-end styles
 * Matches First Grade Asbestos Solutions hero design.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
	--fgas-gold: #c4a35a;
	--fgas-gold-hover: #b08f45;
	--fgas-white: #ffffff;
	--fgas-overlay: rgba(18, 18, 18, 0.55);
	--fgas-font: 'Montserrat', sans-serif;
}

.fgas-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden !important;
	font-family: var(--fgas-font);
	color: var(--fgas-white);
}

/* Keep only the active slide in view — no peek of next/prev */
.fgas-hero-carousel {
	width: 100%;
	max-width: 100%;
	overflow: hidden !important;
}

.fgas-hero-carousel .owl-stage-outer {
	overflow: hidden !important;
	width: 100% !important;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.fgas-hero-carousel .owl-stage {
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
	will-change: transform;
}

.fgas-hero-carousel .owl-item {
	overflow: hidden !important;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.fgas-hero-carousel,
.fgas-hero-carousel .owl-stage-outer,
.fgas-hero-carousel .owl-stage,
.fgas-hero-carousel .owl-item,
.fgas-hero-slide {
	height: 100%;
}

.fgas-hero-slide {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: stretch;
}

.fgas-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.fgas-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 10, 10, 0.72) 0%,
		rgba(10, 10, 10, 0.45) 55%,
		rgba(10, 10, 10, 0.28) 100%
	);
	pointer-events: none;
}

.fgas-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 120px 48px 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
}

.fgas-hero-content {
	max-width: 820px;
	padding-top: 40px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s,
		transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.fgas-hero-carousel .owl-item.active .fgas-hero-content {
	opacity: 1;
	transform: translateY(0);
}

.fgas-hero-badge {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 28px;
}

.fgas-hero-heading {
	margin: 0 0 18px;
	font-size: clamp(2.2rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--fgas-white);
}

.fgas-hero-subheading {
	margin: 0 0 18px;
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.45;
	color: var(--fgas-white);
}

.fgas-hero-desc {
	margin: 0 0 32px;
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 560px;
	text-transform: none;
	letter-spacing: 0;
}

.fgas-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.fgas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-family: var(--fgas-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.fgas-btn:hover {
	transform: translateY(-1px);
}

.fgas-btn-primary {
	background-color: var(--fgas-gold);
	color: var(--fgas-white);
	border: 2px solid var(--fgas-gold);
}

.fgas-btn-primary:hover,
.fgas-btn-primary:focus {
	background-color: var(--fgas-gold-hover);
	border-color: var(--fgas-gold-hover);
	color: var(--fgas-white);
}

.fgas-btn-outline {
	background: transparent;
	color: var(--fgas-white);
	border: 2px solid var(--fgas-gold);
}

.fgas-btn-outline:hover,
.fgas-btn-outline:focus {
	background-color: var(--fgas-gold);
	color: var(--fgas-white);
}

/* Trust / feature bar */
.fgas-hero-features {
	list-style: none;
	margin: 0;
	padding: 28px 0 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s,
		transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s;
}

.fgas-hero-carousel .owl-item.active .fgas-hero-features {
	opacity: 1;
	transform: translateY(0);
}

.fgas-hero-features li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--fgas-white);
}

.fgas-hero-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--fgas-gold);
	color: var(--fgas-gold);
	flex-shrink: 0;
}

/* Owl nav & dots */
.fgas-hero .owl-nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 16px;
	z-index: 5;
}

.fgas-hero .owl-nav button.owl-prev,
.fgas-hero .owl-nav button.owl-next {
	pointer-events: auto;
	width: 48px;
	height: 48px;
	margin: 0;
	background: rgba(0, 0, 0, 0.35) !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 50% !important;
	color: #fff !important;
	font-size: 28px !important;
	line-height: 1 !important;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.fgas-hero .owl-nav button.owl-prev:hover,
.fgas-hero .owl-nav button.owl-next:hover {
	background: var(--fgas-gold) !important;
	border-color: var(--fgas-gold) !important;
}

.fgas-hero .owl-dots {
	position: absolute;
	bottom: 100px;
	right: 48px;
	left: auto;
	width: auto;
	z-index: 5;
	text-align: right;
}

.fgas-hero .owl-dots .owl-dot span {
	width: 10px;
	height: 10px;
	margin: 4px;
	background: rgba(255, 255, 255, 0.45);
	transition: background 0.2s ease, transform 0.2s ease;
}

.fgas-hero .owl-dots .owl-dot.active span,
.fgas-hero .owl-dots .owl-dot:hover span {
	background: var(--fgas-gold);
	transform: scale(1.15);
}

.fgas-hero-empty {
	padding: 40px 24px;
	text-align: center;
	background: #f5f5f5;
}

/* Responsive */
@media (max-width: 900px) {
	.fgas-hero-inner {
		padding: 100px 28px 36px;
	}

	.fgas-hero-features {
		gap: 14px 24px;
	}

	.fgas-hero .owl-dots {
		right: 28px;
		bottom: 120px;
	}
}

@media (max-width: 640px) {
	.fgas-hero-slide {
		min-height: auto;
	}

	.fgas-hero-inner {
		min-height: auto;
		padding: 96px 20px 32px;
		gap: 48px;
	}

	.fgas-hero-content {
		padding-top: 12px;
	}

	.fgas-hero-badge {
		font-size: 10px;
		padding: 7px 14px;
		margin-bottom: 20px;
	}

	.fgas-hero-heading {
		font-size: 1.85rem;
	}

	.fgas-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.fgas-btn {
		width: 100%;
		text-align: center;
	}

	.fgas-hero-features {
		flex-direction: column;
		gap: 14px;
		padding-top: 22px;
	}

	.fgas-hero .owl-nav {
		display: none;
	}

	.fgas-hero .owl-dots {
		display: none !important;
	}
}
