/* Product and provider (company) names are always shown in caps,
   wherever they appear as a title/heading/card label. .sw-caps is a
   generic wrapper for the cases where a name sits inline with other
   words (e.g. "What is X", "More products from Y") so only the name
   itself is affected, not the surrounding text. */
.sw-card-title,
.sw-card-provider,
.sw-hero-title,
.sw-simple-card a,
.sw-caps,
#sw-f-provider option:not(:first-child) {
	text-transform: uppercase;
}
/* The provider archive page's H1 comes from the theme's own breadcrumb
   template (via get_the_archive_title()), not ours, but on this specific
   page it only ever contains the provider name. */
body.tax-sw_provider h1.page-title {
	text-transform: uppercase;
}

/* The theme's #content wrapper adds its own top/bottom padding; on our
   templates the hero banner and CTA need to sit flush against the
   breadcrumb bar and footer, so we manage spacing ourselves instead. */
body.single-sw_product #content,
body.tax-sw_provider #content,
body.page-template-template-solutions #content {
	padding-top: 0;
	padding-bottom: 0;
}

/* No horizontal padding here: the theme's own page container already
   provides the correct 15px gutter (matching the footer). Bootstrap's
   .row/.col pairs re-add their own 15px on top of whatever padding a
   wrapper has, so adding padding here as well would double it. */
.sw-solutions-wrap {
	padding: 60px 0;
}
.sw-product-single {
	padding: 0 0 60px;
}
.sw-section {
	margin-bottom: 50px;
}
.sw-body p {
	margin-bottom: 14px;
}
.sw-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #bb0b0b;
	margin-bottom: 6px;
}

/* Button (matches the homepage Elementor buttons: #BB0B0B, 3px radius, bold) */
.sw-btn {
	display: inline-block;
	background: #bb0b0b;
	color: #ffffff !important;
	border-radius: 3px;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: background .25s ease;
}
.sw-btn:hover {
	background: #8f0808;
	color: #ffffff !important;
}
.sw-btn-sm {
	padding: 9px 20px;
	font-size: 13px;
}

/* Filters */
.sw-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
	background: #f9f9f9;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	padding: 25px;
	margin-bottom: 30px;
}
.sw-filter-field {
	display: flex;
	flex-direction: column;
	min-width: 180px;
}
.sw-filter-search {
	flex: 1 1 220px;
}
.sw-filter-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: #0c0c0c;
}
.sw-filter-field select,
.sw-filter-field input[type="text"] {
	height: 44px;
	padding: 0 14px;
	border: 1px solid #dddddd;
	border-radius: 3px;
	font-size: 14px;
	background: #ffffff;
	color: #0c0c0c;
	width: 100%;
}
.sw-reset-btn {
	height: 44px;
	padding: 0 20px;
	border: 1px solid #bb0b0b;
	border-radius: 3px;
	background: #ffffff;
	color: #bb0b0b;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
}
.sw-reset-btn:hover {
	background: #bb0b0b;
	color: #ffffff;
}

.sw-provider-archive-desc {
	max-width: 800px;
}

.sw-results-count {
	font-size: 14px;
	margin-bottom: 20px;
	color: #6b6b6b;
}
.sw-results-count #sw-count {
	font-weight: 700;
	color: #0c0c0c;
}

/* Card */
.sw-card {
	margin-bottom: 30px;
}
.sw-card-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.sw-card-inner:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}
.sw-card-img {
	position: relative;
	height: 160px;
	overflow: hidden;
	border-bottom: 1px solid #ececec;
}
.sw-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sw-card-provider {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(12, 12, 12, .75);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 6px 12px;
}
/* Origin badge: shown next to a provider's name wherever the name appears,
   kept visually secondary (lighter weight/opacity) so the name stays primary. */
.sw-origin-badge {
	font-weight: 400;
	opacity: .7;
	font-size: .75em;
	margin-left: .5em;
	letter-spacing: normal;
}
.sw-origin-badge::before {
	content: "\2022";
	margin-right: .5em;
}
.sw-card-body {
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.sw-card-title {
	font-size: 18px;
	margin: 0 0 10px;
	line-height: 1.3;
	color: #0c0c0c;
}
.sw-card-desc {
	font-size: 14px;
	line-height: 1.6;
	flex-grow: 1;
	margin-bottom: 18px;
	color: #6b6b6b;
}
.sw-card-btn {
	align-self: flex-start;
}

.sw-no-results {
	text-align: center;
	font-size: 16px;
	padding: 40px 0;
	color: #6b6b6b;
}

/* Product single: hero banner (full-bleed regardless of any ancestor's max-width) */
.sw-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 110px 0;
	color: #ffffff;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.sw-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12,12,12,.82) 0%, rgba(12,12,12,.55) 100%);
}
.sw-hero .container {
	position: relative;
	z-index: 1;
}
.sw-hero-title {
	color: #ffffff;
	font-size: 42px;
	font-weight: 700;
	margin: 0;
}

/* Section headings on the product detail page ("What is X", "We Represent"
   provider name, "Application Areas") - not the hero banner title above. */
.sw-product-single h2 {
	font-size: 30px;
}

/* Product single: body */
.sw-product-image {
	border: 1px solid #ececec;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.sw-product-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Applications table */
.sw-app-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.sw-app-table th,
.sw-app-table td {
	text-align: left;
	padding: 14px 18px;
	border: 1px solid #ececec;
	font-size: 14px;
}
.sw-app-table th {
	background: #bb0b0b;
	color: #ffffff;
	font-weight: 600;
}
.sw-app-table td {
	color: #0c0c0c;
}

/* Variants table (several grades on one product page) */
.sw-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.sw-variant-table {
	min-width: 640px;
}
.sw-variant-table tr {
	scroll-margin-top: 120px;
}
.sw-variant-table td.sw-variant-name {
	font-weight: 600;
	white-space: nowrap;
}
.sw-variant-table tr:target td {
	background: #fdeeee;
}

/* Simple name-only cards ("More products from X") */
.sw-simple-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-left: 0;
	margin-right: 0;
}
.sw-simple-card {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	transition: box-shadow .25s ease, transform .25s ease;
}
.sw-simple-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}
.sw-simple-card a {
	display: block;
	padding: 14px 18px;
	color: #0c0c0c;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
}
.sw-simple-card a:hover {
	color: #bb0b0b;
}

.sw-provider-section {
	background: #f9f9f9;
	border-radius: 4px;
	padding: 40px;
	margin-bottom: 24px;
}
.sw-provider-flex {
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.sw-provider-text {
	flex: 1 1 320px;
}
.sw-provider-media {
	flex: 0 0 auto;
	margin-left: auto;
}
.sw-other-products-row {
	margin-bottom: 10px;
}
.sw-provider-logo-wrap {
	text-align: center;
}
/* Most provider logos are full-color artwork on an opaque or transparent
   white background - a plain white card behind every logo keeps them all
   readable and consistent regardless of each file's own background. */
.sw-provider-logo-badge {
	display: inline-block;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 6px;
	padding: 24px 30px;
}
.sw-provider-logo-img {
	max-width: 220px;
	max-height: 140px;
	width: auto;
	height: auto;
	display: block;
}
.sw-provider-logo-fallback {
	display: inline-block;
	width: 220px;
	max-width: 100%;
	border: 1px dashed #d5d5d5;
	border-radius: 4px;
	background: #ffffff;
	padding: 16px;
	text-align: center;
}
.sw-provider-logo-fallback img {
	width: 100%;
	max-width: 140px;
	opacity: .6;
	margin-bottom: 10px;
}
.sw-provider-logo-fallback span {
	display: block;
	font-size: 12px;
	color: #999999;
}
.sw-provider-logo-fallback span a {
	color: #bb0b0b;
	font-weight: 600;
}
.sw-other-products-heading {
	margin-bottom: 10px;
	color: #0c0c0c;
}

/* Generic CTA: full-bleed band, text left / button right, flush with footer */
.sw-cta {
	position: relative;
	overflow: hidden;
	background: #ffefef;
	padding: 60px 0;
	margin-bottom: 0;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.sw-cta-container {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}
.sw-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}
.sw-cta-heading {
	font-size: 30px;
	font-weight: 700;
	color: #0c0c0c;
	margin-bottom: 10px;
}
.sw-cta-heading span {
	color: #bb0b0b;
}
.sw-cta-text {
	color: #6b6b6b;
	font-size: 15px;
	margin-bottom: 0;
}
.sw-cta-action {
	flex-shrink: 0;
}

/* Mobile filter toggle + offcanvas */
.sw-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #bb0b0b;
	color: #bb0b0b;
	border-radius: 3px;
	padding: 10px 20px;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 20px;
	cursor: pointer;
}
.sw-filters-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(12, 12, 12, .5);
	z-index: 1040;
}
.sw-filters-close {
	display: none;
}

@media (max-width: 767px) {
	.sw-solutions-wrap {
		padding: 30px 0;
	}
	.sw-product-single {
		padding: 0 0 30px;
	}
	.sw-section {
		margin-bottom: 30px;
	}

	.sw-filter-toggle {
		display: inline-flex;
	}
	.sw-filters-backdrop.is-open {
		display: block;
	}
	.sw-filters {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 85%;
		max-width: 320px;
		height: 100%;
		background: #ffffff;
		border: 0;
		border-radius: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 25px 20px;
		margin-bottom: 0;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .3s ease;
		z-index: 1050;
	}
	.sw-filters.is-open {
		transform: translateX(0);
	}
	.sw-filter-field {
		min-width: 100%;
	}
	.sw-filters-close {
		display: block;
		align-self: flex-end;
		background: none;
		border: 0;
		font-size: 22px;
		line-height: 1;
		color: #0c0c0c;
		cursor: pointer;
		margin-bottom: 4px;
	}

	.sw-provider-section {
		padding: 25px;
	}
	.sw-provider-media {
		margin-left: 0;
	}
	.sw-hero {
		padding: 60px 0;
	}
	.sw-hero-title {
		font-size: 26px;
	}
	.sw-cta {
		padding: 40px 15px;
	}
	.sw-cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.sw-cta-heading {
		font-size: 24px;
	}
}
