/* Ziebart UAE - service pages (English and Arabic): new layout in the style of the home page.
   inc/zb-service.php loads it on the service pages only and adds the classes used here to the page HTML:
   zbsv-banner (the wide picture at the top), zbsv-split with zbsv-main and zbsv-aside (the text beside a side column),
   zbsv-nav (the related services card), zbsv-book (the "Book this service" box) and zbsv-cards / zbsv-card (numbered points).
   Xtreme IT Services, 2026-11-20. */

/* ---------- The wide picture at the top ---------- */
html.zbfl .vc_row.zbsv-banner { margin-bottom: 36px; }
html.zbfl .vc_row.zbsv-banner .wpb_content_element { margin-bottom: 0; }
html.zbfl .vc_row.zbsv-banner :is(.vc_figure, .vc_single_image-wrapper, p) { display: block; margin: 0; }
html.zbfl .vc_row.zbsv-banner img {
	display: block; width: 100%; max-width: none; height: clamp(150px, 22vw, 300px); object-fit: cover;
	border-radius: 12px; box-shadow: 0 10px 30px rgba(18, 20, 23, .14);
}

/* ---------- Text beside a side column ---------- */
html.zbfl .vc_row.zbsv-split {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-left: 0; margin-right: 0; margin-bottom: 24px;
}
html.zbfl .vc_row.zbsv-split::before,
html.zbfl .vc_row.zbsv-split::after { content: none; display: none; } /* bootstrap clearfix would add grid cells */
html.zbfl .vc_row.zbsv-split > .vc_column_container { float: none; width: auto; min-width: 0; padding: 0; }
html.zbfl .vc_row.zbsv-split > .vc_column_container > .vc_column-inner { height: 100%; padding: 0; }
html.zbfl .vc_row.zbsv-split > .zbsv-main { order: 1; }
html.zbfl .vc_row.zbsv-split > .zbsv-aside { order: 2; }
html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper { display: flex; flex-direction: column; gap: 24px; height: 100%; }
html.zbfl .zbsv-aside .wpb_content_element { margin-bottom: 0; }
html.zbfl .zbsv-aside .wpb_video_widget { margin-bottom: 0; }

/* The opening paragraph a little larger */
html.zbfl .entry-content .zbsv-main > .vc_column-inner > .wpb_wrapper > .wpb_text_column:first-child > .wpb_wrapper > p:first-child {
	font-size: 17.5px; line-height: 1.7; color: var(--zb-ink);
}
html.zbfl .entry-content .zbsv-main .wpb_text_column img { height: auto; }

/* Lists in the text: ticks on a soft grey panel */
html.zbfl .entry-content .zbsv-main .wpb_text_column ul:not([class]) {
	margin: 4px 0 24px; padding: 18px 20px 10px; background: var(--zb-soft); border-radius: var(--zb-radius);
}
html.zbfl .entry-content .zbsv-main .wpb_text_column ul:not([class]) > li { padding-inline-start: 32px; margin: 0 0 10px; }
html.zbfl .entry-content .zbsv-main .wpb_text_column ul:not([class]) > li::before {
	inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--zb-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* ---------- Numbered points (a small heading with its text) ---------- */
html.zbfl .entry-content .zbsv-cards {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 6px 0 30px; counter-reset: zbsv-card;
}
html.zbfl .entry-content .zbsv-card {
	counter-increment: zbsv-card; padding: 20px 20px 18px; background: #fff;
	border: 1px solid var(--zb-line); border-top: 3px solid var(--zb-red); border-radius: var(--zb-radius);
	box-shadow: 0 1px 2px rgba(18, 20, 23, .05);
}
html.zbfl .entry-content .zbsv-card h3 { margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.35; } /* !important: an older site-wide style forces 20px and 20px margins on these headings */
html.zbfl .entry-content .zbsv-card h3::before {
	content: counter(zbsv-card, decimal-leading-zero); display: block; margin: 0 0 8px;
	font: 800 13px/1 "Open Sans", Arial, sans-serif; letter-spacing: .08em; color: var(--zb-red);
}
html.zbfl .entry-content .zbsv-card p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; }
html.zbfl .entry-content .zbsv-card p:last-child { margin-bottom: 0; }

/* ---------- Related services card ---------- */
html.zbfl .entry-content .zbsv-nav {
	display: block; padding: 22px 22px 10px; background: #fff;
	border: 1px solid var(--zb-line); border-radius: 12px; box-shadow: var(--zb-shadow);
}
html.zbfl .entry-content .zbsv-nav .interior { margin: 0; padding: 0; background: none; } /* the old grey boxes */
html.zbfl .entry-content .zbsv-nav .wpb_wrapper > :last-child { margin-bottom: 0; }
html.zbfl .entry-content .zbsv-nav :is(h2, h3) {
	margin: 0 0 12px !important; font-size: 16px !important; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: start !important; color: var(--zb-ink);
}
html.zbfl .entry-content .zbsv-nav :is(h2, h3)::after { content: none; }
/* A picture at the top of the card (fabric protection pages) runs to its edges */
html.zbfl .entry-content .zbsv-nav h3:has(> img) { margin: -22px -22px 18px !important; line-height: 0; }
html.zbfl .entry-content .zbsv-nav h3 > img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 11px 11px 0 0; }
/* The list (English pages: a plain list; Arabic pages: a menu). The class is doubled to outweigh the general list styles. */
html.zbfl .entry-content .zbsv-nav.zbsv-nav ul { margin: 0; padding: 0; list-style: none; background: none; direction: inherit; }
html.zbfl .entry-content .zbsv-nav.zbsv-nav ul > li { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zb-line); text-align: start; }
html.zbfl .entry-content .zbsv-nav.zbsv-nav ul > li::before { content: none; display: none; }
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px;
	font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--zb-ink); text-decoration: none; border: 0; background: none;
	transition: color .2s;
}
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a::after {
	content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-inline-end: 4px;
	border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .45;
	transition: opacity .2s;
}
html.zbfl--ar .entry-content .zbsv-nav.zbsv-nav li a::after { transform: rotate(-135deg); }
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a:hover,
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a:focus-visible,
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a[aria-current="page"] { color: var(--zb-red); }
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a:hover::after,
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a[aria-current="page"]::after { opacity: 1; }
html.zbfl .entry-content .zbsv-nav.zbsv-nav li a[aria-current="page"] { font-weight: 700; }

/* Other blocks in the side column (some Arabic pages keep a short text there) */
html.zbfl .entry-content .zbsv-aside .wpb_text_column:not(.zbsv-nav *) {
	padding: 20px 22px; background: var(--zb-soft); border-radius: 12px;
}
html.zbfl .entry-content .zbsv-aside .wpb_text_column:not(.zbsv-nav *) h2 { margin-top: 0; font-size: 20px; }

/* ---------- "Book this service" box ---------- */
html.zbfl .entry-content .zbsv-book {
	position: relative; overflow: hidden; isolation: isolate; padding: 26px 24px 24px; border-radius: 12px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, rgba(221, 0, 23, .55) 0%, rgba(221, 0, 23, 0) 60%), #16181b;
	box-shadow: 0 14px 34px rgba(18, 20, 23, .22);
}
html.zbfl--ar .entry-content .zbsv-book { background: radial-gradient(120% 90% at 0% 0%, rgba(221, 0, 23, .55) 0%, rgba(221, 0, 23, 0) 60%), #16181b; }
html.zbfl .entry-content .zbsv-book p { color: inherit; }
html.zbfl .entry-content .zbsv-book p.zbsv-book__title {
	margin: 0 0 6px; font: 800 22px/1.25 "Open Sans", Arial, sans-serif; letter-spacing: -.01em; color: #fff;
}
html.zbfl .entry-content .zbsv-book p.zbsv-book__service {
	display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .78);
}
html.zbfl .entry-content .zbsv-book p.zbsv-book__service::before { content: ""; flex: 0 0 auto; width: 18px; height: 2px; border-radius: 2px; background: var(--zb-red); }
html.zbfl .entry-content .zbsv-book p.zbsv-book__text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
html.zbfl .entry-content .zbsv-book .zbfl-btn { display: flex; width: 100%; padding-left: 16px; padding-right: 16px; white-space: normal; text-align: center; }
html.zbfl .entry-content .zbsv-book .zbfl-btn + .zbfl-btn { margin-top: 10px; }
html.zbfl .entry-content .zbsv-book .zbfl-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .55); }
html.zbfl .entry-content .zbsv-book .zbfl-btn--ghost:hover,
html.zbfl .entry-content .zbsv-book .zbfl-btn--ghost:focus-visible { background: #fff; border-color: #fff; color: var(--zb-ink); }

/* ---------- Wider screens ---------- */
/* Points sit two to a line when the text column is wide enough for it */
html.zbfl .zbsv-main > .vc_column-inner { container-type: inline-size; }
@container (min-width: 620px) {
	html.zbfl .entry-content .zbsv-cards:not(.zbsv-cards--wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html.zbfl .entry-content .zbsv-cards:not(.zbsv-cards--wide) > .zbsv-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 991px) {
	/* Side column under the text: the list and the booking box side by side */
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper > .wpb_video_widget,
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper > .wpb_text_column { grid-column: 1 / -1; }
	html.zbfl .zbsv-aside--solo > .vc_column-inner > .wpb_wrapper { grid-template-columns: minmax(0, 1fr); }
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper > .zbsv-nav { order: 1; }
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper > .zbsv-book { order: 2; }
	html.zbfl .zbsv-aside > .vc_column-inner > .wpb_wrapper > .wpb_text_column { order: 3; }
}
@media (min-width: 992px) {
	html.zbfl .vc_row.zbsv-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
	html.zbfl .vc_row.zbsv-split > .zbsv-main { grid-column: 1; grid-row: 1; }
	html.zbfl .vc_row.zbsv-split > .zbsv-aside { grid-column: 2; grid-row: 1; }
	/* The booking box stays in view while the text is read */
	html.zbfl .entry-content .zbsv-book { position: sticky; top: 112px; }
}
@media (min-width: 1200px) {
	html.zbfl .vc_row.zbsv-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
}

/* ---------- Arabic ---------- */
html.zbfl--ar .entry-content .zbsv-book p.zbsv-book__title,
html.zbfl--ar .entry-content .zbsv-card h3::before { font-family: "Changa", "Noto Sans Kufi Arabic", Tahoma, Arial, sans-serif; letter-spacing: 0; }
html.zbfl--ar .entry-content .zbsv-book p.zbsv-book__title { font-weight: 700; }

@media print {
	html.zbfl .zbsv-book { display: none; }
	html.zbfl .vc_row.zbsv-split { display: block; }
}
