/* =============================================================
   ARC Hero Slider — light colour scheme
   ============================================================= */

/* ── Wrapper ────────────────────────────────────────────────── */
.arc-hero-slider {
	position: relative;
	overflow: hidden;
	background: var(--arc-hs-bg, linear-gradient(135deg, #f0f9f7 0%, #e8f4f0 50%, #eaf5f8 100%));
	font-family: inherit;
}

/* Subtle dot-grid texture overlay */
.arc-hero-slider::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(10,61,71,.055) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
	z-index: 0;
}

/* ── Slides stack ────────────────────────────────────────────── */
.arc-hs-slides-wrap {
	display: grid;
	position: relative;
	z-index: 1;
}

.arc-hs-slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 0 100px;
	/* Fluid: fills viewport minus sticky header, capped so huge screens stay comfortable */
	min-height: clamp(520px, calc(100vh - var(--arc-header-h, 162px)), 860px);
	/* Modern browsers: dvh tracks real available height as mobile browser chrome hides/shows */
	min-height: clamp(520px, calc(100dvh - var(--arc-header-h, 162px)), 860px);
	box-sizing: border-box;
	opacity: 0;
	transform: translateX(48px);
	transition: opacity .65s ease, transform .65s ease;
	pointer-events: none;
	will-change: opacity, transform;
}

.arc-hs-slide.is-active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	z-index: 2;
}

.arc-hs-slide.is-prev {
	opacity: 0;
	transform: translateX(-48px);
	z-index: 1;
}

/* ── Inner container — aligns with site content area ─────────── */
.arc-hs-inner {
	width: 100%;
	max-width: var(--arc-container, 1200px);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 40px;
	position: relative;
	z-index: 1;
}

/* ── Slide background image + right-fade overlay ─────────────── */
.arc-hs-slide.has-bg-image {
	background-size: cover;
	background-position: left center;
	background-repeat: no-repeat;
	position: relative;
}

.arc-hs-bg-fade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(
		to right,
		var(--arc-hs-fade-to, #eaf5f8) 0%,
		var(--arc-hs-fade-to, #eaf5f8) 35%,
		rgba(0,0,0,0) var(--arc-hs-fade-stop, 62%),
		rgba(0,0,0,0) 100%
	);
}

/* Mobile: colour covers top (text), image shows through at bottom */
@media (max-width: 767px) {
	.arc-hs-bg-fade {
		background: linear-gradient(
			to bottom,
			var(--arc-hs-fade-to, #eaf5f8) 0%,
			var(--arc-hs-fade-to, #eaf5f8) 38%,
			rgba(0,0,0,0) var(--arc-hs-fade-stop, 55%),
			rgba(0,0,0,0) 100%
		);
	}
}

/* ── Left column ─────────────────────────────────────────────── */
.arc-hs-left {
	flex: 0 0 54%;
	max-width: 54%;
}

/* Section label */
.arc-hs-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(10,61,71,.5);
	margin-bottom: 28px;
}

.arc-hs-label::before {
	content: '';
	display: block;
	width: 36px;
	height: 1.5px;
	background: var(--arc-hs-accent, #79ba3a);
	flex-shrink: 0;
}

/* Heading */
.arc-hs-heading {
	font-size: clamp(30px, 3.2vw, 50px);
	font-weight: 700;
	line-height: 1.08;
	color: var(--arc-hs-heading-color, #0a3d47);
	margin: 0 0 22px;
}

.arc-hs-heading em {
	color: var(--arc-hs-accent, #79ba3a);
	font-style: italic;
}

.arc-hs-heading .arc-hs-underline {
	display: inline-block;
	border-bottom: 3px solid var(--arc-hs-accent, #79ba3a);
	padding-bottom: 2px;
}

/* Body */
.arc-hs-body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--arc-hs-body-color, #3d5a61);
	max-width: 460px;
	margin: 0 0 36px;
}

/* Buttons */
.arc-hs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.arc-hs-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--arc-hs-accent, #79ba3a);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	padding: 13px 26px;
	border-radius: 50px;
	text-decoration: none !important;
	transition: background .2s, transform .2s, box-shadow .2s;
	border: 2px solid var(--arc-hs-accent, #79ba3a);
	box-shadow: 0 4px 14px rgba(121,186,58,.3);
}

.arc-hs-btn-primary:hover {
	background: #68a530;
	border-color: #68a530;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(121,186,58,.4);
}

.arc-hs-btn-secondary {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	padding: 13px 26px;
	border-radius: 50px;
	border: 2px solid rgba(10,61,71,.3);
	color: #0a3d47 !important;
	text-decoration: none !important;
	transition: border-color .2s, background .2s, transform .2s;
	background: transparent;
}

.arc-hs-btn-secondary:hover {
	border-color: #0a3d47;
	background: rgba(10,61,71,.06);
	transform: translateY(-2px);
}

/* ── Right column ────────────────────────────────────────────── */
.arc-hs-right {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 20px;
	position: relative;
	align-self: stretch; /* fill full row height so stat card can pin to bottom */
}

/* Right image / graphic — expands to push stat card down */
.arc-hs-media {
	width: 100%;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.arc-hs-media img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	max-height: 300px;
}

/* Stat card — sits at the bottom, inline with CTA buttons */
.arc-hs-stat {
	background: #fff;
	border: 1px solid rgba(10,61,71,.1);
	border-radius: 14px;
	padding: 20px 28px 22px;
	box-shadow: 0 4px 24px rgba(10,61,71,.1);
	min-width: 220px;
	flex-shrink: 0;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	cursor: default;
}

.arc-hs-stat:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 36px rgba(10,61,71,.18);
	border-color: rgba(121,186,58,.4);
}

.arc-hs-stat-number {
	font-size: 54px;
	font-weight: 700;
	color: #0a3d47;
	line-height: 1;
	letter-spacing: -.02em;
}

.arc-hs-stat-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(10,61,71,.45);
	margin-top: 8px;
	line-height: 1.4;
}

.arc-hs-network-svg {
	width: 100%;
	max-width: 360px;
	opacity: .8;
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.arc-hs-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding-block: 18px;
	/* Aligns with .arc-hs-inner container on wide screens, falls back to 24px on narrow */
	padding-inline: max(24px, calc((100% - var(--arc-container, 1200px)) / 2 + 24px));
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 10;
	background: linear-gradient(to top, rgba(232,244,240,.95) 0%, transparent 100%);
}

/* Counter */
.arc-hs-counter {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex-shrink: 0;
}

.arc-hs-current {
	font-size: 22px;
	font-weight: 700;
	color: var(--arc-hs-accent, #79ba3a);
	line-height: 1;
	min-width: 28px;
}

.arc-hs-sep {
	color: rgba(10,61,71,.3);
	font-size: 13px;
}

.arc-hs-total {
	font-size: 13px;
	color: rgba(10,61,71,.3);
}

/* Progress bars */
.arc-hs-bars {
	flex: 1;
	display: flex;
	gap: 8px;
	align-items: center;
}

.arc-hs-bar {
	flex: 1;
	height: 2px;
	background: rgba(10,61,71,.15);
	border-radius: 2px;
	position: relative;
	overflow: hidden;
}

.arc-hs-bar::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--arc-hs-accent, #79ba3a);
	transform: scaleX(0);
	transform-origin: left center;
	border-radius: 2px;
}

.arc-hs-bar.is-done::after {
	transform: scaleX(1);
	transition: none;
}

@keyframes arcBarProgress {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.arc-hs-bar.is-active::after {
	animation: arcBarProgress var(--arc-hs-speed, 6s) linear forwards;
}

/* Nav arrows */
.arc-hs-nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.arc-hs-prev,
.arc-hs-next {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid rgba(10,61,71,.3);
	background: transparent;
	color: rgba(10,61,71,.7);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .2s, background .2s, color .2s;
	padding: 0;
	line-height: 1;
}

.arc-hs-prev:hover,
.arc-hs-next:hover {
	border-color: #0a3d47;
	background: rgba(10,61,71,.07);
	color: #0a3d47;
}

.arc-hs-prev svg,
.arc-hs-next svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.arc-hs-slide   { padding-block: 56px 90px; }
	.arc-hs-heading { font-size: clamp(36px, 4vw, 56px); }
}

@media (max-width: 767px) {
	.arc-hs-slide {
		padding-block: 48px 88px;
		min-height: 100svh; /* small-viewport-height unit on mobile */
	}
	.arc-hs-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}
	.arc-hs-left,
	.arc-hs-right  { flex: 0 0 100%; max-width: 100%; }
	.arc-hs-right  { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
	.arc-hs-stat   { min-width: auto; }
	.arc-hs-body   { max-width: 100%; font-size: 15px; }
	.arc-hs-heading { font-size: clamp(28px, 8vw, 44px); }
}

@media (max-width: 479px) {
	.arc-hs-buttons     { flex-direction: column; align-items: flex-start; }
	.arc-hs-stat-number { font-size: 38px; }
	.arc-hs-stat        { min-width: 0; padding: 14px 20px; }
}
