/* Header CTAs — desktop / narrow-desktop / tablet / mobile */

:root {
	--con-mega-fg: #0f172a;
	--con-mega-brand: #bf0000;
	--con-mega-brand-hover: #990000;
	--con-mega-border: rgba(15, 23, 42, 0.08);
	--con-focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--con-mega-brand);
	--con-transition: 0.2s ease;
}

.con-header-ctas {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	max-width: 100%;
}

.con-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0 1.25rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--con-transition),
		color var(--con-transition),
		border-color var(--con-transition),
		box-shadow var(--con-transition),
		padding var(--con-transition);
}

.con-header-cta__icon {
	flex-shrink: 0;
	display: none;
}

.con-header-cta:focus-visible {
	outline: none;
	box-shadow: var(--con-focus-ring);
}

/* —— Desktop ≥1025: dark primary + outline secondary —— */
@media (min-width: 1025px) {
	.con-header-cta--primary {
		background: var(--con-mega-fg);
		color: #fff;
		border: 1px solid var(--con-mega-fg);
	}

	.con-header-cta--primary:hover {
		background: #1e293b;
		color: #fff;
		border-color: #1e293b;
	}

	.con-header-cta--secondary {
		background: #fff;
		color: var(--con-mega-fg);
		border: 1px solid var(--con-mega-border);
	}

	.con-header-cta--secondary:hover {
		background: rgba(191, 0, 0, 0.05);
		border-color: rgba(191, 0, 0, 0.35);
		color: var(--con-mega-brand);
	}
}

/* —— Tablet 768–1024: brand primary + ghost secondary —— */
@media (min-width: 768px) and (max-width: 1024px) {
	.con-header-ctas {
		gap: 0.5rem;
	}

	.con-header-cta {
		padding: 0 1rem;
		font-size: 0.75rem;
	}

	.con-header-cta--primary {
		background: var(--con-mega-brand);
		color: #fff;
		border: 1px solid var(--con-mega-brand);
	}

	.con-header-cta--primary:hover {
		background: var(--con-mega-brand-hover);
		border-color: var(--con-mega-brand-hover);
		color: #fff;
	}

	.con-header-cta--secondary {
		background: transparent;
		color: var(--con-mega-fg);
		border: 1px solid transparent;
		padding: 0 0.65rem;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.con-header-cta--secondary:hover {
		color: var(--con-mega-brand);
		background: transparent;
	}
}

/* —— Mobile ≤767: CTAs off (sheet footer); compact Demo optional ≥400px —— */
@media (max-width: 767px) {
	:root {
		--con-cta-btn-h: 40px;
	}

	#header-sticky .elementor-element-29020de,
	#header-sticky .elementor-element-29020de.e-con,
	.con-header-ctas {
		display: none !important;
	}

	.con-header-cta--vis-no-mobile {
		display: none;
	}

	#header-sticky .elementor-element-c57fc2d {
		display: none !important;
	}
}

@media (min-width: 400px) and (max-width: 767px) {
	#header-sticky .elementor-element-29020de {
		display: block !important;
		flex: 0 0 auto !important;
		min-width: 0;
		max-width: max-content;
		grid-column: 3;
	}

	#header-sticky .elementor-element-29020de.e-con {
		display: inline-flex !important;
		align-items: center !important;
		gap: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		max-width: max-content;
	}

	#header-sticky .elementor-element-c57fc2d {
		display: none !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0.35rem !important;
		box-sizing: border-box !important;
		height: var(--con-cta-btn-h) !important;
		min-height: var(--con-cta-btn-h) !important;
		padding-block: 0 !important;
		padding-inline: 0.75rem !important;
		font-size: 0.6875rem !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		letter-spacing: 0.02em !important;
		border-radius: 999px !important;
		background: var(--con-mega-brand) !important;
		color: #fff !important;
		border: 1px solid var(--con-mega-brand) !important;
		transform: none !important;
		white-space: nowrap;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header::before {
		content: '';
		display: block;
		width: 16px;
		height: 16px;
		flex-shrink: 0;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span {
		font-size: 0 !important;
		line-height: 0 !important;
		overflow: hidden !important;
		color: transparent !important;
		background-image: none !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span::after {
		content: 'Demo';
		display: inline-flex;
		align-items: center;
		font-size: 0.6875rem;
		line-height: 1;
		color: #fff;
	}
}

/* Legacy alias */
@media (max-width: 1024px) {
	.con-header-cta--vis-desktop-only {
		display: none;
	}
}

/* —— Narrow desktop 1025–1399: compact CTAs + legacy btn-con —— */
/* —— Legacy Elementor HTML widgets (87f57cb Demo, c57fc2d QuickSupport) —— */
#header-sticky .elementor-element-29020de,
#header-sticky .elementor-element-29020de .elementor-widget-container {
	overflow: visible !important;
	flex-shrink: 0;
	min-width: 0;
}

#header-sticky .elementor-element-87f57cb,
#header-sticky .elementor-element-c57fc2d {
	flex: 0 0 auto;
	flex-shrink: 0;
	overflow: visible !important;
	min-width: 0;
}

#header-sticky .elementor-element-87f57cb .elementor-widget-container,
#header-sticky .elementor-element-c57fc2d .elementor-widget-container {
	overflow: visible !important;
}

#header-sticky .elementor-element-87f57cb .btn-con--header,
#header-sticky .elementor-element-c57fc2d .btn-con--header {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	line-height: 1 !important;
	vertical-align: middle;
	text-align: center;
	max-width: 100%;
}

.con-header-cta__icon--tight {
	display: none;
	flex-shrink: 0;
}

@media (min-width: 1280px) and (max-width: 1793px) {
	.con-header-ctas {
		gap: 0.35rem;
	}

	.con-header-cta {
		padding: 0 0.75rem;
		font-size: 0.75rem;
		min-height: 40px;
	}

	.con-header-cta--icon-narrow {
		width: 44px;
		height: 44px;
		min-width: 44px;
		max-width: 44px;
		padding: 0;
		overflow: hidden;
	}

	.con-header-cta--icon-narrow .con-header-cta__icon {
		display: block;
		width: 20px;
		height: 20px;
		flex-shrink: 0;
	}

	#header-sticky .elementor-element-29020de {
		gap: 0.35rem !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header,
	#header-sticky .elementor-element-29020de .btn-con--header:not(.con-header-cta) {
		font-size: 0.75rem !important;
		letter-spacing: 0.02em !important;
		padding: 0.45rem 0.75rem !important;
		border-radius: 999px !important;
		transform: none !important;
		white-space: nowrap;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span {
		background-image: none !important;
		-webkit-background-clip: border-box !important;
		background-clip: border-box !important;
		color: inherit !important;
		font-size: 0;
		line-height: 0;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header::after {
		content: 'Demo';
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.02em;
		color: inherit;
	}

	#header-sticky .elementor-element-c57fc2d {
		display: block !important;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		max-width: 44px !important;
		padding: 0 !important;
		font-size: 0 !important;
		border-radius: 999px !important;
		position: relative;
		overflow: hidden;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
		background: none !important;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header::after {
		content: '';
		display: block;
		width: 20px;
		height: 20px;
		flex-shrink: 0;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.con-header-cta {
		padding: 0 0.5rem;
		font-size: 0.6875rem;
		min-height: 38px;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header,
	#header-sticky .elementor-element-29020de .btn-con--header:not(.con-header-cta) {
		padding: 0.4rem 0.55rem !important;
		min-height: 38px !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header::after {
		font-size: 0.6875rem;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
	}
}

/* Tight narrow desktop: icon-only CTAs to protect L1 nav bar (1025–1199) */
@media (min-width: 1025px) and (max-width: 1199px) {
	.con-header-cta--primary.con-header-cta--icon-tight {
		width: 40px;
		height: 40px;
		min-width: 40px;
		max-width: 40px;
		padding: 0;
		overflow: hidden;
	}

	.con-header-cta--primary.con-header-cta--icon-tight .con-cta-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.con-header-cta--primary.con-header-cta--icon-tight .con-header-cta__icon--tight {
		display: block;
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		max-width: 40px !important;
		padding: 0 !important;
		justify-content: center;
		overflow: hidden;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header::after {
		content: '';
		display: block;
		width: 18px;
		height: 18px;
		flex-shrink: 0;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		max-width: 40px !important;
	}
}

/* CTA column + L1 nav: never clip header buttons or last nav item */
@media (min-width: 1025px) {
	#header-sticky.elementor-element-4027adfb {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto !important;
		align-items: center !important;
	}

	#header-sticky .elementor-element-948fe08 {
		grid-column: 2;
		min-width: 0 !important;
		overflow: visible !important;
	}

	#header-sticky .elementor-element-29020de {
		grid-column: 3;
		flex-shrink: 0 !important;
		overflow: visible !important;
		max-width: max-content;
	}
}
