/*
 * Ziebart UAE - "Services" page, new layout (see inc/zb-services-hub.php).
 * Colours and buttons come from inner-v3.css (--zb-* on html.zbfl).
 * Some headings carry !important because an older site-wide style forces sizes and margins on h2/h3.
 * Xtreme IT Services, 2026-11-20.
 */

html.zbfl .entry-content .zbsh {
	--sh-dark: #15171b;
	margin: 56px 0 8px;
	color: var(--zb-text);
}

html.zbfl .entry-content .zbsh ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

html.zbfl .entry-content .zbsh li {
	margin: 0;
	padding: 0;
}

html.zbfl .entry-content .zbsh li::before {
	content: none;
}

html.zbfl .entry-content .zbsh p {
	margin: 0;
}

html.zbfl .entry-content .zbsh a {
	text-decoration: none;
}

/* ---------- Intro: heading, text and the group buttons ---------- */

html.zbfl .entry-content .zbsh__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--zb-line);
}

html.zbfl .entry-content .zbsh__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--zb-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

html.zbfl .entry-content .zbsh__kicker::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--zb-red);
}

html.zbfl--ar .entry-content .zbsh__kicker {
	font-size: 15px;
	letter-spacing: 0;
}

html.zbfl .entry-content .zbsh__lead {
	margin: 0 0 14px !important;
	color: var(--zb-ink);
	font-size: clamp(26px, 1.3vw + 14px, 34px) !important;
	font-weight: 800;
	line-height: 1.2 !important;
	text-wrap: balance;
}

html.zbfl .entry-content .zbsh__intro-p {
	max-width: 560px;
	font-size: 16.5px;
	line-height: 1.7;
}

html.zbfl .entry-content .zbsh__jump ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

html.zbfl .entry-content .zbsh__chip {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 9px 14px 9px 10px;
	border: 1px solid var(--zb-line);
	border-radius: 12px;
	background: #fff;
	color: var(--zb-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

html.zbfl--ar .entry-content .zbsh__chip {
	padding: 9px 10px 9px 14px;
}

html.zbfl .entry-content .zbsh__chip img {
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 9px;
	object-fit: cover;
}

html.zbfl .entry-content .zbsh__chip:hover,
html.zbfl .entry-content .zbsh__chip:focus-visible {
	border-color: var(--zb-red);
	color: var(--zb-red);
	box-shadow: 0 8px 20px -14px rgba(18, 20, 23, .5);
}

/* ---------- A group: photo card beside the service cards ---------- */

html.zbfl .entry-content .zbsh__group {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-top: 48px;
	scroll-margin-top: calc(var(--zb-pin, 90px) + 16px);
}

html.zbfl .entry-content .zbsh__group + .zbsh__group {
	margin-top: 8px;
}

html.zbfl .entry-content .zbsh__media {
	position: sticky;
	top: calc(var(--zb-pin, 90px) + 24px);
	overflow: hidden;
	border-radius: 16px;
	background: var(--sh-dark);
	box-shadow: var(--zb-shadow);
}

html.zbfl .entry-content .zbsh__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	margin: 0;
	object-fit: cover;
}

html.zbfl .entry-content .zbsh__media-text {
	position: relative;
	padding: 20px 24px 24px;
}

html.zbfl .entry-content .zbsh__media-text::before {
	content: "";
	position: absolute;
	inset-inline-start: 24px;
	top: -2px;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--zb-red);
}

html.zbfl .entry-content .zbsh__count {
	margin-bottom: 6px;
	color: #ff8a95;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

html.zbfl--ar .entry-content .zbsh__count {
	font-size: 14px;
	letter-spacing: 0;
}

html.zbfl .entry-content .zbsh__title {
	margin: 0 0 6px !important;
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 800;
	line-height: 1.25 !important;
}

html.zbfl .entry-content .zbsh__note {
	color: #b9bec6;
	font-size: 15px;
	line-height: 1.55;
}

html.zbfl .entry-content .zbsh__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

html.zbfl .entry-content .zbsh__cards > li {
	display: flex;
}

/* A group with only one service: the card uses the full width. */
html.zbfl .entry-content .zbsh__cards > li:only-child {
	grid-column: 1 / -1;
}

html.zbfl .entry-content .zbsh__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 158px;
	padding: 20px 22px 18px;
	border: 1px solid var(--zb-line);
	border-radius: 14px;
	background: #fff;
	color: var(--zb-text);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html.zbfl .entry-content .zbsh__card-name {
	margin: 0 0 8px !important;
	color: var(--zb-ink) !important;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.3 !important;
}

html.zbfl .entry-content .zbsh__card-name sup {
	top: -.5em;
	font-size: .6em;
}

html.zbfl .entry-content .zbsh__card-text {
	margin-bottom: 14px !important;
	color: var(--zb-muted);
	font-size: 15px;
	line-height: 1.6;
}

html.zbfl .entry-content .zbsh__card-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--zb-red);
	font-size: 14.5px;
	font-weight: 700;
}

html.zbfl .entry-content .zbsh__arrow {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

html.zbfl--ar .entry-content .zbsh__arrow {
	transform: scaleX(-1);
}

html.zbfl .entry-content .zbsh__card:hover,
html.zbfl .entry-content .zbsh__card:focus-visible {
	border-color: rgba(221, 0, 23, .45);
	box-shadow: 0 14px 30px -18px rgba(18, 20, 23, .45);
	transform: translateY(-2px);
}

html.zbfl .entry-content .zbsh__card:hover .zbsh__arrow,
html.zbfl .entry-content .zbsh__card:focus-visible .zbsh__arrow {
	transform: translateX(4px);
}

html.zbfl--ar .entry-content .zbsh__card:hover .zbsh__arrow,
html.zbfl--ar .entry-content .zbsh__card:focus-visible .zbsh__arrow {
	transform: scaleX(-1) translateX(4px);
}

html.zbfl .entry-content .zbsh__card:focus-visible,
html.zbfl .entry-content .zbsh__chip:focus-visible {
	outline: 2px solid var(--zb-red);
	outline-offset: 2px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1199px) {
	html.zbfl .entry-content .zbsh__group {
		grid-template-columns: 290px minmax(0, 1fr);
		gap: 24px;
	}

	html.zbfl .entry-content .zbsh__title {
		font-size: 22px !important;
	}
}

@media (max-width: 991px) {
	html.zbfl .entry-content .zbsh {
		margin-top: 40px;
	}

	html.zbfl .entry-content .zbsh__intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-bottom: 32px;
	}

	html.zbfl .entry-content .zbsh__group {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding-top: 40px;
		scroll-margin-top: 90px;
	}

	/* The photo card becomes a wide strip above the cards. */
	html.zbfl .entry-content .zbsh__media {
		position: static;
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: center;
	}

	html.zbfl .entry-content .zbsh__photo {
		height: 100%;
		aspect-ratio: auto;
		min-height: 150px;
	}

	html.zbfl .entry-content .zbsh__media-text::before {
		top: 22px;
		inset-inline-start: 0;
		width: 4px;
		height: 36px;
	}
}

@media (max-width: 575px) {
	html.zbfl .entry-content .zbsh__intro-p {
		font-size: 16px;
	}

	html.zbfl .entry-content .zbsh__jump ul {
		gap: 8px;
	}

	html.zbfl .entry-content .zbsh__chip {
		gap: 9px;
		min-height: 54px;
		padding: 7px 10px 7px 7px;
		font-size: 14px;
	}

	html.zbfl--ar .entry-content .zbsh__chip {
		padding: 7px 7px 7px 10px;
	}

	html.zbfl .entry-content .zbsh__chip img {
		width: 36px;
		height: 36px;
	}

	html.zbfl .entry-content .zbsh__media {
		grid-template-columns: minmax(0, 1fr);
	}

	html.zbfl .entry-content .zbsh__photo {
		height: auto;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	html.zbfl .entry-content .zbsh__media-text {
		padding: 16px 18px 18px;
	}

	html.zbfl .entry-content .zbsh__media-text::before {
		top: -2px;
		inset-inline-start: 18px;
		width: 44px;
		height: 4px;
	}

	html.zbfl .entry-content .zbsh__title {
		font-size: 21px !important;
	}

	html.zbfl .entry-content .zbsh__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	/* Shorter cards on phones: the arrow sits at the side, the "View service" words are kept for screen readers only. */
	html.zbfl .entry-content .zbsh__card {
		position: relative;
		min-height: 0;
		padding: 14px 52px 14px 16px;
	}

	html.zbfl--ar .entry-content .zbsh__card {
		padding: 14px 16px 14px 52px;
	}

	html.zbfl .entry-content .zbsh__card-name {
		margin-bottom: 4px !important;
		font-size: 17px !important;
	}

	html.zbfl .entry-content .zbsh__card-text {
		margin-bottom: 0 !important;
		font-size: 14.5px;
		line-height: 1.5;
	}

	html.zbfl .entry-content .zbsh__card-more {
		position: absolute;
		top: 50%;
		inset-inline-end: 14px;
		justify-content: center;
		width: 30px;
		height: 30px;
		margin: -15px 0 0;
		border-radius: 50%;
		background: rgba(221, 0, 23, .08);
	}

	html.zbfl .entry-content .zbsh__card-more-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	html.zbfl .entry-content .zbsh__arrow {
		width: 16px;
		height: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbsh__card,
	html.zbfl .entry-content .zbsh__arrow,
	html.zbfl .entry-content .zbsh__chip {
		transition: none;
	}

	html.zbfl .entry-content .zbsh__card:hover {
		transform: none;
	}
}
