/* Ziebart UAE - "Who we are" page: company history timeline (inc/zb-timeline.php builds it, timeline.js adds the moving parts).
   Uses the colours and type of inner-v3.css. Selectors start with html.zbfl .zbtl so the page's general text and list
   styles (inner-v3.css) do not reach inside the timeline. Xtreme IT Services, 2026-11-20. */

html.zbfl .zbtl {
	--zbtl-top: 72px;          /* height of the fixed site header above the year bar */
	--zbtl-gap: 28px;          /* space between the line and the cards (phones) */
	--zbtl-year: #8a9097;
	margin: 36px 0 12px; color: var(--zb-text);
}
@media (min-width: 1081px) { html.zbfl .zbtl { --zbtl-top: var(--zb-pin, 90px); } } /* white bar of the pinned header, measured by zbfl_hero_offset_script() */

/* ---------- Heading and order switch ---------- */
html.zbfl .zbtl .zbtl__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 0 0 16px; }
html.zbfl .zbtl .zbtl__intro { flex: 1 1 420px; max-width: 720px; }
html.zbfl .zbtl p.zbtl__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px;
	font: 700 13px/1.2 "Open Sans", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--zb-red);
}
html.zbfl .zbtl p.zbtl__eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--zb-red); }
html.zbfl .zbtl h3.zbtl__title {
	margin: 0 0 8px; padding: 0; font: 800 clamp(26px, 1.4vw + 16px, 36px)/1.15 "Open Sans", Arial, sans-serif; color: var(--zb-ink); text-transform: none;
}
html.zbfl .zbtl p.zbtl__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--zb-muted); }

html.zbfl .zbtl .zbtl__order { flex: 0 0 auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--zb-soft); border: 1px solid var(--zb-line); }
html.zbfl .zbtl .zbtl__order[hidden] { display: none; }
html.zbfl .zbtl .zbtl__order button {
	min-height: 36px; margin: 0; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--zb-muted);
	font: 700 13px/1 "Open Sans", Arial, sans-serif; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}
html.zbfl .zbtl .zbtl__order button:hover { color: var(--zb-ink); }
html.zbfl .zbtl .zbtl__order button[aria-pressed="true"] { background: #fff; color: var(--zb-ink); box-shadow: 0 1px 3px rgba(18, 20, 23, .15); }
html.zbfl .zbtl .zbtl__order button:focus-visible { outline: 2px solid var(--zb-red); outline-offset: 1px; }

/* ---------- Year bar: stays under the site header while the timeline scrolls ---------- */
html.zbfl .zbtl .zbtl__bar {
	position: sticky; top: var(--zbtl-top); z-index: 5;
	margin: 0 0 22px; padding: 8px 0;
	background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--zb-line);
	box-shadow: 0 6px 16px -12px rgba(18, 20, 23, .35);
}
@supports (backdrop-filter: blur(6px)) { html.zbfl .zbtl .zbtl__bar { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(6px); } }
html.zbfl .zbtl .zbtl__years {
	overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
html.zbfl .zbtl .zbtl__years::-webkit-scrollbar { display: none; }
html.zbfl .zbtl ol.zbtl__chips { display: flex; gap: 6px; width: max-content; margin: 0; padding: 2px 20px; list-style: none; }
html.zbfl .zbtl ol.zbtl__chips > li { margin: 0; padding: 0; list-style: none; line-height: 1; }
html.zbfl .zbtl ol.zbtl__chips > li::before, html.zbfl .zbtl ol.zbtl__chips > li::marker { content: none; }
html.zbfl .zbtl a.zbtl__chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px;
	border: 1px solid var(--zb-line); background: #fff; color: var(--zb-ink);
	font: 700 14px/1 "Open Sans", Arial, sans-serif; white-space: nowrap; text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
html.zbfl .zbtl a.zbtl__chip:hover { border-color: var(--zb-red); color: var(--zb-red); }
html.zbfl .zbtl a.zbtl__chip:focus-visible { outline: 2px solid var(--zb-red); outline-offset: 2px; }
html.zbfl .zbtl a.zbtl__chip.is-active { background: var(--zb-red); border-color: var(--zb-red); color: #fff; }

/* ---------- Line, dots and cards (phones: line on the start side) ---------- */
html.zbfl .zbtl .zbtl__track { position: relative; }
html.zbfl .zbtl .zbtl__line {
	position: absolute; top: 8px; bottom: 8px; inset-inline-start: 9px; width: 3px; border-radius: 3px; background: var(--zb-line); overflow: hidden;
}
html.zbfl .zbtl .zbtl__fill {
	position: absolute; inset: 0; background: linear-gradient(180deg, var(--zb-red), var(--zb-red-dark));
	transform: scaleY(0); transform-origin: 50% 0; will-change: transform;
}
html.zbfl .zbtl:not(.zbtl--js) .zbtl__fill { transform: none; }
html.zbfl .zbtl ol.zbtl__list { margin: 0; padding: 0; padding-inline-start: calc(21px + var(--zbtl-gap)); list-style: none; }
html.zbfl .zbtl li.zbtl__item {
	position: relative; margin: 0 0 16px; padding: 0; list-style: none;
	scroll-margin-top: calc(var(--zbtl-top) + 80px);
}
html.zbfl .zbtl li.zbtl__item::before, html.zbfl .zbtl li.zbtl__item::marker { content: none; }
html.zbfl .zbtl li.zbtl__item:focus { outline: none; }
html.zbfl .zbtl li.zbtl__item:focus-visible .zbtl__card { outline: 2px solid var(--zb-red); outline-offset: 3px; }
html.zbfl .zbtl .zbtl__dot {
	position: absolute; top: 20px; inset-inline-start: calc(-1 * var(--zbtl-gap) - 21px + 3px); width: 15px; height: 15px; border-radius: 50%;
	background: #fff; border: 3px solid var(--zb-red); box-sizing: border-box;
	transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
html.zbfl .zbtl .is-current .zbtl__dot { background: var(--zb-red); box-shadow: 0 0 0 5px rgba(221, 0, 23, .16); transform: scale(1.15); }
html.zbfl .zbtl p.zbtl__year { display: none; }
html.zbfl .zbtl .zbtl__card {
	position: relative; padding: 14px 18px 4px; border: 1px solid var(--zb-line); border-radius: var(--zb-radius); background: #fff; box-shadow: var(--zb-shadow);
	transition: border-color .25s ease, opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
}
html.zbfl .zbtl .is-current .zbtl__card { border-color: rgba(221, 0, 23, .45); }
html.zbfl .zbtl p.zbtl__card-year { margin: 0 0 6px; font: 800 22px/1.15 "Open Sans", Arial, sans-serif; color: var(--zb-red); letter-spacing: 0; }
html.zbfl .zbtl .zbtl__card p:not(.zbtl__card-year) { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--zb-text); }

/* Cards ease in once as they reach the screen (only when the visitor has not asked for less motion). */
html.zbfl .zbtl--reveal li.zbtl__item:not(.is-in) .zbtl__card { opacity: 0; transform: translateY(18px); }

/* ---------- Wider screens: line in the middle, cards on alternate sides, year opposite each card ---------- */
@media (min-width: 900px) {
	html.zbfl .zbtl .zbtl__bar { margin-bottom: 26px; padding: 6px; border: 1px solid var(--zb-line); border-radius: 999px; }
	html.zbfl .zbtl .zbtl__line { inset-inline-start: calc(50% - 1.5px); }
	html.zbfl .zbtl ol.zbtl__list { padding-inline-start: 0; }
	html.zbfl .zbtl li.zbtl__item {
		display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); grid-template-areas: "card dot year"; align-items: start; margin-bottom: 6px;
	}
	html.zbfl .zbtl li.zbtl__item:nth-child(even) { grid-template-areas: "year dot card"; }
	html.zbfl .zbtl .zbtl__dot { position: relative; grid-area: dot; top: auto; inset-inline-start: auto; justify-self: center; margin-top: 21px; width: 17px; height: 17px; }
	html.zbfl .zbtl .zbtl__card { grid-area: card; padding-top: 16px; }
	html.zbfl .zbtl p.zbtl__card-year { display: none; }
	html.zbfl .zbtl p.zbtl__year {
		display: block; grid-area: year; margin: 13px 0 0; font: 800 30px/1.1 "Open Sans", Arial, sans-serif; letter-spacing: 0; color: var(--zbtl-year);
		transition: color .3s ease;
	}
	html.zbfl .zbtl li.zbtl__item:nth-child(even) p.zbtl__year { text-align: end; }
	html.zbfl .zbtl .is-current p.zbtl__year { color: var(--zb-red); }
}
@media (min-width: 900px) and (hover: hover) {
	html.zbfl .zbtl .zbtl__card:hover { border-color: rgba(221, 0, 23, .45); }
	html.zbfl .zbtl li.zbtl__item:hover p.zbtl__year { color: var(--zb-red); }
}

/* ---------- Arabic ---------- */
html.zbfl--ar .zbtl p.zbtl__eyebrow { letter-spacing: 0; }
html.zbfl--ar .zbtl h3.zbtl__title,
html.zbfl--ar .zbtl .zbtl__order button { font-family: "Changa", "Noto Sans Kufi Arabic", Tahoma, Arial, sans-serif; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
	html.zbfl .zbtl .zbtl__card, html.zbfl .zbtl .zbtl__dot, html.zbfl .zbtl p.zbtl__year, html.zbfl .zbtl a.zbtl__chip { transition: none; }
	html.zbfl .zbtl--reveal li.zbtl__item .zbtl__card { opacity: 1; transform: none; }
}
@media print {
	html.zbfl .zbtl .zbtl__bar, html.zbfl .zbtl .zbtl__line, html.zbfl .zbtl .zbtl__order { display: none; }
	html.zbfl .zbtl--reveal li.zbtl__item .zbtl__card { opacity: 1; transform: none; }
}
