/* Shared styles for non-Divi JBS content pages */

.jbs-page {
	font-family: "Raleway", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #4b5563;
	background: #ffffff;
}

.jbs-page * {
	box-sizing: border-box;
}

.jbs-page img {
	max-width: 100%;
	height: auto;
}

.jbs-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.jbs-hero {
	background: linear-gradient(120deg, #010131 0%, #050090 100%);
	color: #ffffff;
	padding: 72px 0 64px;
}

.jbs-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b20106;
}

.jbs-hero__rule {
	width: 48px;
	height: 2px;
	background: #b20106;
	margin: 0 0 18px;
	border: 0;
}

.jbs-hero h1 {
	margin: 0 0 16px;
	color: #ffffff;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.jbs-hero p {
	margin: 0;
	max-width: 640px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 400;
}

.jbs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.jbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 220ms ease, color 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.jbs-btn:hover {
	transform: translateY(-1px);
}

.jbs-btn--primary {
	background: #b20106;
	color: #ffffff !important;
	border: 1px solid #b20106;
}

.jbs-btn--primary:hover {
	background: #8f0105;
	border-color: #8f0105;
	color: #ffffff !important;
}

.jbs-btn--ghost {
	background: transparent;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.jbs-btn--ghost:hover {
	border-color: #ffffff;
	color: #ffffff !important;
}

.jbs-btn--outline {
	background: transparent;
	color: #010131 !important;
	border: 1px solid #010131;
}

.jbs-btn--outline:hover {
	background: #010131;
	color: #ffffff !important;
}

.jbs-section {
	padding: 64px 0;
}

.jbs-section--soft {
	background: #f7f8fa;
}

.jbs-section--center {
	text-align: center;
}

.jbs-section--center .jbs-section__lead,
.jbs-section--center p {
	margin-left: auto;
	margin-right: auto;
}

.jbs-section--center .jbs-city-row,
.jbs-section--center .jbs-hero__actions {
	justify-content: center;
}

.jbs-section h2 {
	margin: 0 0 12px;
	color: #010131;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.jbs-section__lead {
	margin: 0 0 32px;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.65;
	color: #4b5563;
}

.jbs-grid-2,
.jbs-grid-3,
.jbs-grid-4 {
	display: grid;
	gap: 20px;
}

.jbs-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jbs-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jbs-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* wpautop <br> between cards breaks grid rhythm */
.jbs-grid-2 > br,
.jbs-grid-3 > br,
.jbs-grid-4 > br {
	display: none !important;
}

.jbs-grid-2 > p,
.jbs-grid-3 > p,
.jbs-grid-4 > p {
	display: contents;
}

.jbs-card {
	background: #ffffff;
	border: 1px solid #d4d4d4;
	border-radius: 16px;
	padding: 28px 24px;
	transition: box-shadow 220ms ease, transform 220ms ease;
}

.jbs-card:hover {
	box-shadow: 0 14px 28px rgba(1, 1, 49, 0.1);
	transform: translateY(-2px);
}

.jbs-card h3 {
	margin: 0 0 10px;
	color: #050090;
	font-size: 20px;
	font-weight: 700;
}

.jbs-card p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

.jbs-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #b20106 !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.jbs-card__link:hover {
	text-decoration: underline !important;
}

.jbs-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jbs-list li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-bottom: 1px solid #d4d4d4;
	font-size: 16px;
	line-height: 1.5;
	color: #4b5563;
}

.jbs-list li:last-child {
	border-bottom: 0;
}

.jbs-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.15em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b20106;
	transform: translateY(-50%);
}

.jbs-note {
	margin: 28px 0 0;
	padding: 18px 20px;
	border-left: 3px solid #b20106;
	background: #ffffff;
	border-radius: 0 12px 12px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #010131;
}

.jbs-cta-band {
	background: linear-gradient(120deg, #010131 0%, #050090 100%);
	padding: 56px 0;
	color: #ffffff;
	text-align: center;
}

.jbs-cta-band h2 {
	margin: 0 0 12px;
	color: #ffffff;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
}

.jbs-cta-band p {
	margin: 0 auto 24px;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 17px;
	line-height: 1.6;
}

.jbs-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.jbs-split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: start;
}

.jbs-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b20106;
}

/* Content-shell extras (Contact / Gallery / Service Areas) */

a.jbs-card--link {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

a.jbs-card--link:hover {
	text-decoration: none !important;
}

a.jbs-card--link .jbs-card__link {
	margin-top: auto;
}

.jbs-areas-yard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 28px;
	margin: 0 0 20px;
	padding: 28px 28px;
	border: 1px solid #d4d4d4;
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: #f7f8fa;
}

.jbs-areas-yard h3 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #010131;
}

.jbs-areas-yard h3 a {
	color: inherit !important;
	text-decoration: none !important;
}

.jbs-areas-yard h3 a:hover {
	color: #b20106 !important;
}

.jbs-areas-yard p:not(.jbs-kicker) {
	margin: 0;
	max-width: 520px;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

.jbs-areas-dir {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	border: 1px solid #d4d4d4;
	border-radius: 0 0 16px 16px;
	background: #ffffff;
	overflow: hidden;
}

.jbs-areas-dir > br,
.jbs-areas-dir > p {
	display: none !important;
}

.jbs-areas-dir li {
	margin: 0;
	border-right: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.jbs-areas-dir li:nth-child(3n) {
	border-right: 0;
}

.jbs-areas-dir li:nth-last-child(-n + 3) {
	border-bottom: 0;
}

.jbs-areas-dir a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	color: #010131 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 180ms ease, color 180ms ease;
}

.jbs-areas-dir a::after {
	content: "→";
	color: #b20106;
	font-weight: 700;
}

.jbs-areas-dir a:hover {
	background: #f7f8fa;
	color: #b20106 !important;
}

.jbs-areas-methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid #d4d4d4;
}

.jbs-areas-methods > br,
.jbs-areas-methods > p {
	display: none !important;
}

.jbs-areas-methods > div {
	padding: 28px 0;
}

.jbs-areas-methods > div:first-child {
	padding-right: 32px;
	border-right: 1px solid #d4d4d4;
}

.jbs-areas-methods > div:last-child {
	padding-left: 32px;
}

.jbs-areas-methods h3 {
	margin: 0 0 10px;
	color: #050090;
	font-size: 20px;
	font-weight: 700;
}

.jbs-areas-methods p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

.jbs-areas-info .jbs-section__lead {
	margin-bottom: 20px;
}

@media (max-width: 900px) {
	.jbs-areas-dir {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jbs-areas-dir li:nth-child(3n) {
		border-right: 1px solid #e5e7eb;
	}

	.jbs-areas-dir li:nth-child(2n) {
		border-right: 0;
	}

	.jbs-areas-dir li:nth-last-child(-n + 3) {
		border-bottom: 1px solid #e5e7eb;
	}

	.jbs-areas-dir li:nth-last-child(-n + 2) {
		border-bottom: 0;
	}

	.jbs-areas-methods {
		grid-template-columns: 1fr;
	}

	.jbs-areas-methods > div:first-child,
	.jbs-areas-methods > div:last-child {
		padding: 24px 0;
		border-right: 0;
	}

	.jbs-areas-methods > div:first-child {
		border-bottom: 1px solid #d4d4d4;
	}
}

@media (max-width: 560px) {
	.jbs-areas-yard {
		padding: 22px 18px;
		border-radius: 12px 12px 0 0;
	}

	.jbs-areas-dir {
		grid-template-columns: 1fr;
		border-radius: 0 0 12px 12px;
	}

	.jbs-areas-dir li {
		border-right: 0 !important;
	}

	.jbs-areas-dir li:last-child {
		border-bottom: 0;
	}
}

.jbs-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* wpautop injects <br>/<p> between items and creates a checkerboard grid */
.jbs-gallery > br,
.jbs-gallery > p:empty {
	display: none !important;
}

.jbs-gallery > p {
	display: contents;
}

.jbs-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid #d4d4d4;
	background: #f7f8fa;
	text-decoration: none !important;
	aspect-ratio: 16 / 10;
}

.jbs-gallery__item br {
	display: none !important;
}

.jbs-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 240ms ease;
}

.jbs-gallery__item:hover img {
	transform: scale(1.04);
}

.jbs-home-catalog__category {
	aspect-ratio: auto;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.jbs-home-catalog__category img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.jbs-home-catalog__category .jbs-gallery__label {
	position: relative;
	z-index: 1;
	inset: auto;
	padding: 14px 16px;
	background: #ffffff;
	color: #010131;
}

.jbs-gallery__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 16px;
	background: linear-gradient(180deg, transparent 0%, rgba(1, 1, 49, 0.85) 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
}

.jbs-gallery__item--cta {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border: 0;
	text-align: center;
	transition: transform 220ms ease, filter 220ms ease;
}

.jbs-gallery__item--cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.jbs-gallery__item--cta .jbs-gallery__cta-label {
	color: #ffffff;
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	max-width: 12em;
}

.jbs-gallery__item--cta-catalog {
	background: #b20106;
}

.jbs-gallery__item--cta-quote {
	background: #050090;
}

.jbs-gallery__item--cta-calc {
	background: #010131;
}

.jbs-embed {
	margin-top: 8px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #d4d4d4;
	background: #ffffff;
}

.jbs-embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
}

.jbs-split--contact {
	align-items: start;
}

/* Home hero — full-bleed media + neutral contrast overlay */
.jbs-home-hero {
	position: relative;
	min-height: min(92vh, 820px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #000000;
}

.jbs-home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jbs-home-hero__video,
.jbs-home-hero__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jbs-home-hero__fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jbs-home-hero__video {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #f7f8fa;
}

/* Hide static fallback once the hero video can play */
.jbs-home-hero.is-video-playing .jbs-home-hero__fallback {
	opacity: 0;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.jbs-home-hero__video {
		display: none;
	}

	.jbs-home-hero__fallback {
		z-index: 1;
		opacity: 1;
		visibility: visible;
	}
}

.jbs-home-hero__fade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.38);
	pointer-events: none;
}

.jbs-home-hero__content {
	position: relative;
	z-index: 2;
	padding-top: 96px;
	padding-bottom: 72px;
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.jbs-home-hero .jbs-wrap.jbs-home-hero__content {
	margin-left: auto;
	margin-right: auto;
}

.jbs-home-hero__brand {
	margin: 0 0 10px;
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: #ffffff;
	text-shadow: 0 2px 14px rgba(1, 1, 49, 0.45);
}

.jbs-home-hero .jbs-hero__eyebrow {
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 8px rgba(1, 1, 49, 0.55);
}

.jbs-home-hero .jbs-hero__rule {
	background: #ffffff;
}

.jbs-home-hero h1 {
	margin: 0 0 16px;
	max-width: 910px;
	color: #ffffff;
	font-size: clamp(38px, 5.2vw, 64px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-transform: uppercase;
	text-shadow: 0 3px 12px rgba(1, 1, 49, 0.72);
}

.jbs-home-hero .jbs-home-hero__content > p:not(.jbs-hero__eyebrow):not(.jbs-home-hero__brand) {
	margin: 0;
	max-width: 600px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 8px rgba(1, 1, 49, 0.55);
}

/* Home: material calculator promo band (directly under hero) */
.jbs-calc-banner {
	background: linear-gradient(120deg, #010131 0%, #050090 100%);
	color: #ffffff;
	padding: 36px 0;
	border-top: 3px solid #b20106;
	animation: jbs-calc-banner-in 280ms ease both;
}

@keyframes jbs-calc-banner-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jbs-calc-banner {
		animation: none;
	}
}

.jbs-calc-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}

.jbs-calc-banner__copy {
	min-width: 0;
	flex: 1;
}

.jbs-calc-banner__copy h2 {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.jbs-calc-banner__copy p {
	margin: 0;
	max-width: 520px;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 400;
}

.jbs-calc-banner .jbs-btn {
	flex-shrink: 0;
}

/* PDP: contained band matching .jbs-wrap width */
.jbs-section--calc-banner {
	padding-top: 0;
	padding-bottom: 0;
}

.jbs-calc-banner--contained {
	padding: 32px 28px;
	border-radius: 16px;
	border-top: 3px solid #b20106;
	overflow: hidden;
}

.jbs-calc-banner--contained .jbs-calc-banner__inner {
	max-width: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 700px) {
	.jbs-calc-banner {
		padding: 28px 0;
	}

	.jbs-calc-banner--contained {
		padding: 28px 20px;
	}

	.jbs-calc-banner__inner {
		flex-direction: column;
		align-items: center;
		gap: 18px;
		text-align: center;
	}

	.jbs-calc-banner__copy p {
		margin-left: auto;
		margin-right: auto;
	}
}

.jbs-city-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.jbs-city-row a {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid #d4d4d4;
	border-radius: 999px;
	background: #ffffff;
	color: #010131 !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.jbs-city-row a:hover {
	border-color: #b20106;
	color: #b20106 !important;
	transform: translateY(-1px);
}

.jbs-faq {
	display: grid;
	gap: 12px;
	max-width: 800px;
}

.jbs-faq__item {
	border: 1px solid #d4d4d4;
	border-radius: 16px;
	background: #ffffff;
	padding: 4px 18px;
}

.jbs-faq__item summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 700;
	color: #010131;
}

.jbs-faq__item summary::-webkit-details-marker {
	display: none;
}

.jbs-faq__item p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
}

.jbs-prose {
	max-width: 760px;
	font-size: 16px;
	line-height: 1.7;
	color: #4b5563;
}

.jbs-prose h2 {
	margin: 36px 0 12px;
	color: #010131;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.jbs-prose h2:first-child {
	margin-top: 0;
}

.jbs-prose p {
	margin: 0 0 16px;
}

.jbs-prose ul,
.jbs-prose ol {
	margin: 0 0 16px;
	padding-left: 1.25em;
}

.jbs-prose a {
	color: #b20106;
	font-weight: 600;
}

.jbs-sitemap ul {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.jbs-sitemap li {
	padding: 8px 0;
	border-bottom: 1px solid #d4d4d4;
}

@media (max-width: 1100px) {
	.jbs-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.jbs-grid-2,
	.jbs-grid-3,
	.jbs-grid-4,
	.jbs-split {
		grid-template-columns: 1fr;
	}

	.jbs-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jbs-hero {
		padding: 56px 0 48px;
	}

	.jbs-section {
		padding: 48px 0;
	}

	.jbs-home-hero {
		min-height: min(85vh, 720px);
	}

	.jbs-home-hero .jbs-wrap.jbs-home-hero__content {
		margin-left: auto;
		margin-right: auto;
		padding-left: 24px;
		padding-right: 24px;
	}

	.jbs-home-hero h1 {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.jbs-wrap {
		padding: 0 16px;
	}

	.jbs-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
