/* ==========================================================================
   CLW Interactive Arc Services Plugin Styles - Premium Edition v2.0
   Pixel-perfect match to reference image design
   ========================================================================== */

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

:root {
	--clw-arc-primary:       #d9383a;
	--clw-arc-primary-hover: #b92b2d;
	--clw-arc-node-size:     68px;
	--clw-arc-node-icon:     24px;
	--clw-arc-font-heading:  'Montserrat', sans-serif;
	--clw-arc-font-body:     'Inter', sans-serif;
	--clw-arc-ease:          cubic-bezier(0.25, 1, 0.5, 1);
}

/* ----------------------------------------------------------
   Wrapper
   ---------------------------------------------------------- */
.clw-arc-services-wrapper {
	position: relative;
	width: 100%;
	min-height: 520px;
	overflow: hidden;
	font-family: var(--clw-arc-font-body);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background-color: #888;
}

.clw-arc-services-wrapper *,
.clw-arc-services-wrapper *::before,
.clw-arc-services-wrapper *::after {
	box-sizing: border-box;
}

/* ----------------------------------------------------------
   Background Layer — full cover scenic photo
   ---------------------------------------------------------- */
.clw-arc-bg-layer {
	position: absolute;
	top: -5%;
	left: -5%;
	width: 110%;
	height: 110%;
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	z-index: 1;
	transition: transform 0.18s ease-out;
	will-change: transform;
}

/* Very light overlay — just enough to make text readable */
.clw-arc-bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.20) 0%,
		rgba(0, 0, 0, 0.10) 40%,
		rgba(0, 0, 0, 0.18) 70%,
		rgba(0, 0, 0, 0.32) 100%
	);
	z-index: 2;
}

/* ----------------------------------------------------------
   Main Container
   ---------------------------------------------------------- */
.clw-arc-container {
	position: relative;
	z-index: 5;
	max-width: 1280px;
	margin: 0 auto;
	padding: 38px 30px 0;
	width: 100%;
}

/* ----------------------------------------------------------
   Section Header
   ---------------------------------------------------------- */
.clw-arc-header {
	text-align: center;
	margin-bottom: 18px;
}

.clw-arc-subtitle {
	display: block;
	font-family: var(--clw-arc-font-heading);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 6px;
}

.clw-arc-title {
	font-family: var(--clw-arc-font-heading);
	font-size: 42px;
	font-weight: 900;
	color: #ffffff;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 2px;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.clw-arc-title-bar {
	width: 40px;
	height: 3px;
	background-color: var(--clw-arc-primary);
	margin: 10px auto 0;
	border-radius: 2px;
}

/* ----------------------------------------------------------
   Arc Stage — the interactive area
   ---------------------------------------------------------- */
.clw-arc-stage {
	position: relative;
	width: 100%;
	height: 420px;
}

/* ----------------------------------------------------------
   SVG Connector Line
   ---------------------------------------------------------- */
.clw-arc-svg-connector {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
	overflow: visible;
}

.clw-arc-svg-path {
	stroke: rgba(255, 255, 255, 0.75);
	stroke-width: 1.5;
	stroke-dasharray: 6 5;
	fill: none;
	transition: stroke 0.3s ease;
}

/* ----------------------------------------------------------
   Arc Nodes Container
   ---------------------------------------------------------- */
.clw-arc-nodes-container {
	position: relative;
	width: 100%;
	height: 260px;
	z-index: 6;
}

/* Each node item */
.clw-arc-node-item {
	position: absolute;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	z-index: 10;
	transition: transform 0.35s var(--clw-arc-ease);
	user-select: none;
}

.clw-arc-node-item:hover {
	transform: translate(-50%, -58%) scale(1.08);
}

/* Circle badge */
.clw-arc-node-badge {
	position: relative;
	width: var(--clw-arc-node-size);
	height: var(--clw-arc-node-size);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	color: #1a1a2e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--clw-arc-node-icon);
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.25),
		0 0 0 2px rgba(255, 255, 255, 0.6);
	transition: all 0.35s var(--clw-arc-ease);
	backdrop-filter: blur(4px);
}

.clw-arc-node-badge i,
.clw-arc-node-badge svg {
	width: var(--clw-arc-node-icon);
	height: var(--clw-arc-node-icon);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	pointer-events: none;
}

/* Active node */
.clw-arc-node-item.active .clw-arc-node-badge {
	background-color: #ffffff;
	color: var(--clw-arc-primary);
	box-shadow:
		0 6px 30px rgba(0, 0, 0, 0.35),
		0 0 0 3px rgba(255, 255, 255, 0.95);
	transform: scale(1.15);
}

/* Pulse ring on active */
.clw-arc-pulse-ring {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
	opacity: 0;
	transform: scale(0.85);
	pointer-events: none;
	transition: all 0.4s ease;
}

.clw-arc-node-item.active .clw-arc-pulse-ring {
	opacity: 1;
	transform: scale(1.12);
	animation: clwPulseRing 2.2s ease-in-out infinite;
}

@keyframes clwPulseRing {
	0%   { transform: scale(1);    opacity: 0.85; }
	60%  { transform: scale(1.35); opacity: 0;    }
	100% { transform: scale(1);    opacity: 0;    }
}

/* Label below node */
.clw-arc-node-label {
	font-family: var(--clw-arc-font-heading);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.90);
	margin-top: 7px;
	text-align: center;
	white-space: nowrap;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
	transition: color 0.3s ease;
}

.clw-arc-node-item.active .clw-arc-node-label {
	color: #ffffff;
	font-weight: 800;
}

/* ----------------------------------------------------------
   Central Content Card — premium dome arch
   ---------------------------------------------------------- */
.clw-arc-card-wrapper {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 520px;
	z-index: 15;
	height: 100%;
	pointer-events: none;
}

.clw-arc-content-card {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	/*
	 * Premium wide dome arch:
	 * X-radius = 50% (full width half-ellipse)
	 * Y-radius = 120px (gentle upward curve height)
	 * Creates a smooth stadium/arch look matching the reference image
	 */
	border-radius: 50% 50% 0 0 / 120px 120px 0 0;
	padding: 60px 44px 34px;
	text-align: center;
	box-shadow:
		0 -6px 0 2px rgba(255,255,255,0.15),
		0 -16px 50px rgba(0, 0, 0, 0.20);
	opacity: 0;
	visibility: hidden;
	transform: translateY(35px) scale(0.96);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
	pointer-events: none;
}

.clw-arc-content-card.active {
	position: absolute;
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Card: top icon circle */
.clw-arc-card-icon-wrapper {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: transparent;
	color: var(--clw-arc-primary);
	border: 2px solid var(--clw-arc-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 10px;
}

.clw-arc-card-icon-wrapper i,
.clw-arc-card-icon-wrapper svg {
	width: 20px;
	height: 20px;
}

/* Card title */
.clw-arc-card-title {
	font-family: var(--clw-arc-font-heading);
	font-size: 16px;
	font-weight: 800;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 10px;
	line-height: 1.25;
}

/* Card description */
.clw-arc-card-desc {
	font-family: var(--clw-arc-font-body);
	font-size: 12.5px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 18px;
	padding: 0 10px;
}

/* CTA Button */
.clw-arc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background-color: var(--clw-arc-primary);
	color: #ffffff;
	font-family: var(--clw-arc-font-heading);
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	padding: 11px 28px;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s var(--clw-arc-ease);
	box-shadow: 0 4px 15px rgba(217, 56, 58, 0.40);
}

.clw-arc-btn:hover {
	background-color: var(--clw-arc-primary-hover);
	color: #ffffff;
	box-shadow: 0 8px 22px rgba(217, 56, 58, 0.55);
	transform: translateY(-2px);
	text-decoration: none;
}

.clw-btn-arrow {
	font-size: 11px;
	transition: transform 0.3s ease;
}

.clw-arc-btn:hover .clw-btn-arrow {
	transform: translateX(4px);
}

/* Floating button removed */

/* ----------------------------------------------------------
   Bottom Brands Bar — light / gray
   ---------------------------------------------------------- */
.clw-arc-brands-bar {
	position: relative;
	z-index: 20;
	width: 100%;
	background-color: #f1f5f9;
	border-top: 1px solid #e2e8f0;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.clw-arc-brand-nav {
	background: #e2e8f0;
	border: none;
	color: #64748b;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 11px;
	transition: all 0.3s ease;
	flex-shrink: 0;
	outline: none;
}

.clw-arc-brand-nav:hover {
	background: #94a3b8;
	color: #ffffff;
	transform: scale(1.1);
}

.clw-arc-brands-slider {
	overflow: hidden;
	max-width: 900px;
	width: 100%;
}

.clw-arc-brands-track {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 30px;
	transition: transform 0.4s ease;
}

/* Individual brand item — text or image */
.clw-arc-brand-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--clw-arc-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #94a3b8;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s ease, transform 0.3s ease;
	opacity: 0.75;
}

.clw-arc-brand-item img {
	max-height: 30px;
	width: auto;
	filter: grayscale(100%) opacity(0.6);
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.clw-arc-brand-item:hover,
.clw-arc-brand-item.active {
	color: #334155;
	opacity: 1;
	transform: translateY(-1px);
	text-decoration: none;
}

.clw-arc-brand-item:hover img {
	filter: grayscale(40%) opacity(1);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1024px) {
	.clw-arc-title { font-size: 34px; }
	.clw-arc-stage { height: 390px; }
	.clw-arc-card-wrapper { max-width: 460px; }
	.clw-arc-content-card {
		border-radius: 50% 50% 0 0 / 100px 100px 0 0;
		padding: 52px 34px 28px;
	}
}

@media (max-width: 768px) {
	.clw-arc-services-wrapper { min-height: auto; }
	.clw-arc-container { padding: 28px 16px 0; }
	.clw-arc-title { font-size: 26px; letter-spacing: 1px; }
	.clw-arc-subtitle { font-size: 10px; letter-spacing: 2px; }

	.clw-arc-stage {
		height: auto;
		min-height: 480px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.clw-arc-svg-connector { display: none; }

	.clw-arc-nodes-container {
		position: relative;
		top: auto !important;
		left: auto !important;
		width: 100%;
		height: auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 14px 10px;
		margin-bottom: 16px;
	}

	.clw-arc-node-item {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
	}

	.clw-arc-node-item:hover { transform: translateY(-3px) !important; }

	.clw-arc-node-badge {
		width: 52px;
		height: 52px;
		font-size: 20px;
	}

	.clw-arc-node-label { font-size: 9px; }

	.clw-arc-card-wrapper {
		position: relative;
		bottom: auto;
		left: auto;
		transform: none;
		max-width: 100%;
		height: auto;
		padding: 0 12px 16px;
	}

	.clw-arc-content-card {
		position: relative;
		border-radius: 18px;
		padding: 28px 20px 24px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(12px);
		pointer-events: none;
	}

	.clw-arc-content-card.active {
		position: relative;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.clw-arc-card-title { font-size: 15px; }
	.clw-arc-card-desc { font-size: 12px; padding: 0; }

	.clw-arc-brands-track { gap: 20px; }
	.clw-arc-brand-item { font-size: 10px; }
}

@media (max-width: 480px) {
	.clw-arc-node-badge { width: 46px; height: 46px; font-size: 17px; }
	.clw-arc-btn { padding: 10px 22px; font-size: 11px; }
	.clw-arc-title { font-size: 22px; }
}
