/**
 * Services Nav widget — Maddox page anchors + CTA(s).
 * Layouts: industries (.services-nav-wrapper.is-industries), product (.product-page-nav-wrapper), default.
 * Defaults are overridable via Elementor Style panel (selectors on {{WRAPPER}}).
 * Loaded on demand via get_style_depends().
 */

.jdw-ee-services-nav {
	box-sizing: border-box;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: stretch;
	column-gap: 2.5rem;
	width: 100%;
}

.jdw-ee-services-nav *,
.jdw-ee-services-nav *::before,
.jdw-ee-services-nav *::after {
	box-sizing: border-box;
}

/* Default layout: stacks on tablet (non-industries pages). */
.jdw-ee-services-nav--default {
	flex-direction: column;
}

.jdw-ee-services-nav--industries {
	flex-flow: row nowrap;
}

/* About / product-page-nav: row on desktop, column on tablet. */
.jdw-ee-services-nav--product {
	flex-flow: row nowrap;
	align-items: stretch;
}

.jdw-ee-services-nav__anchors {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 2.4rem;
	min-width: 0;
}

.jdw-ee-services-nav--product .jdw-ee-services-nav__anchors {
	align-items: stretch;
}

.jdw-ee-services-nav__link {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: center;
	height: 110px;
	padding: 0;
	margin: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	color: #4f4e4c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s, color 0.2s;
	cursor: pointer;
}

.jdw-ee-services-nav__link:hover,
.jdw-ee-services-nav__link:focus-visible {
	color: #161616;
	border-bottom-color: #f65e1e;
	outline: none;
}

.jdw-ee-services-nav__link.is-active,
.jdw-ee-services-nav__link.w--current {
	color: #161616;
	border-bottom-color: #f65e1e;
}

.jdw-ee-services-nav__buttons {
	display: flex;
	flex: none;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: center;
	column-gap: 1rem;
}

.jdw-ee-services-nav__button {
	display: flex;
	flex: 0 auto;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	padding: 16px 24px;
	border: 2px solid #f65e1e;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.25s, background-color 0.25s, color 0.25s;
	cursor: pointer;
}

/* Primary filled CTA (button-main). */
.jdw-ee-services-nav__button--primary {
	background-color: #f65e1e;
	color: #ffffff;
	font-weight: 700;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.jdw-ee-services-nav__button--primary:hover,
.jdw-ee-services-nav__button--primary:focus-visible {
	border-color: #b84c16;
	background-color: #b84c16;
	color: #ffffff;
	outline: none;
}

/* Secondary outline CTA (button-secondary) — About dual CTA. */
.jdw-ee-services-nav__button--secondary {
	background-color: transparent;
	color: #161616;
	font-weight: 600;
	text-shadow: none;
}

.jdw-ee-services-nav__button--secondary:hover,
.jdw-ee-services-nav__button--secondary:focus-visible {
	border-color: #f65e1e;
	background-color: #f65e1e;
	color: #ffffff;
	outline: none;
}

.jdw-ee-services-nav__button-label {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

/* Tablet ≤991px — match target .services-nav-link / product-page-nav height. */
@media screen and (max-width: 991px) {
	.jdw-ee-services-nav--default {
		flex-direction: column;
	}

	.jdw-ee-services-nav--industries {
		flex-flow: row nowrap;
	}

	/* Target: .product-page-nav-wrapper { flex-direction: column } at tablet. */
	.jdw-ee-services-nav--product {
		flex-flow: column nowrap;
		justify-content: space-between;
	}

	.jdw-ee-services-nav__anchors {
		justify-content: center;
	}

	.jdw-ee-services-nav__link {
		height: 80px;
	}

	.jdw-ee-services-nav__buttons {
		justify-content: center;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
}

/* Mobile ≤767px */
@media screen and (max-width: 767px) {
	.jdw-ee-services-nav__anchors {
		column-gap: 2rem;
	}

	.jdw-ee-services-nav__button {
		flex: none;
	}
}

/* Small mobile ≤479px — industries stacks; anchors can scroll.
 * About product-page-nav is fully hidden via parent Container hide_mobile. */
@media screen and (max-width: 479px) {
	.jdw-ee-services-nav--industries {
		flex-flow: column nowrap;
	}

	.jdw-ee-services-nav__anchors {
		justify-content: center;
		white-space: nowrap;
		overflow: auto;
		padding-left: 1.125rem;
		padding-right: 1.125rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.jdw-ee-services-nav__anchors::-webkit-scrollbar {
		display: none;
	}

	.jdw-ee-services-nav__buttons {
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		width: 100%;
		column-gap: 0.5rem;
		row-gap: 0.5rem;
		padding: 1.2rem 1.25rem 1.4rem;
		background-color: #ffffff;
	}

	.jdw-ee-services-nav__button {
		width: 100%;
		justify-content: center;
	}
}
