/* =============================================================================
 * Block: Case studies — tabs + phone triptych.  Handle: pb-ll-cases-tabs-triptych
 *
 * Section header + a blue "Discuss your project" CTA above a centered underline
 * tab strip. Each tab shows a dark case card (tag pill, title, starred
 * Challenge/Solution/Impact + a Read Full Case Study button) on the left and a
 * blue media panel holding a 3-phone triptych on the right. Circular prev/next
 * controls overlap the card edges (desktop); a <select> + prev/next pagination
 * drive it on mobile. Palette scoped to .ll-cc; font is
 * var(--ll-font, <literal stack>).
 * ========================================================================== */
.ll-cc {
	--c-card: #010005;
	--c-dark: #010005;
	--c-muted: #768297;
	--c-grey1: #f9fafb;
	--c-grey3: #374151;
	--c-stroke: #e5e7eb;
	--c-accent: #1690d3;
	--c-blue-top: #3aa0e2;
	--c-blue-bot: #1668a8;
	--c-white: #fff;

	background: var(--c-grey1); /* section bg always #f9fafb (operator) */
	padding: 70px 0;
}
.ll-cc__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

/* Section header (block-scoped — no global .block-head) */
.ll-cc__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	text-align: center;
	max-width: 860px;
}
.ll-cc__eyebrow {
	font: 700 12px/16px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--c-muted);
}
.ll-cc__heading {
	margin: 0;
	font: 600 36px/48px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	letter-spacing: -1px;
	color: var(--c-dark);
}
.ll-cc__subtitle {
	margin: 0;
	font: 400 16px/27px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-grey3);
}

/* Section CTA button (above the tabs) */
.ll-cc__section-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px auto 6px;
	background: var(--c-accent);
	border-radius: 999px;
	padding: 14px 30px;
	font: 600 15px/1.5 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-white);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ll-cc__section-cta:hover { box-shadow: 0 8px 24px rgba(22, 144, 211, 0.35); transform: translateY(-1px); }

/* Tab strip (underline) */
.ll-cc__tabs {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 48px;
	max-width: 100%;
	flex-wrap: wrap;
	margin-bottom: 2px;
}
.ll-cc__tab {
	position: relative;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0 0 10px;
	font: 500 14px/20px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-grey3);
	text-align: center;
}
.ll-cc__tab--active { font-weight: 700; color: var(--c-accent); }
.ll-cc__tab--active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 126px;
	max-width: calc(100% - 20px);
	height: 2px;
	border-radius: 999px;
	background: var(--c-accent);
}

.ll-cc__body {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Stage holds the panels + the circular edge controls */
.ll-cc__stage { position: relative; width: 100%; }
.ll-cc__panels { width: 100%; }
.ll-cc__panel { display: none; }
.ll-cc__panel--active { display: block; }

.ll-cc__card {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background: var(--c-card);
	border-radius: 16px;
	width: 100%;
}
.ll-cc__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	padding: 48px 56px;
}
.ll-cc__tag {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	font: 600 12px/16px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	letter-spacing: 0.6px;
	color: var(--c-white);
	text-transform: uppercase;
}
.ll-cc__title {
	margin: 0;
	font: 600 26px/1.25 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-white);
}
.ll-cc__blocks {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ll-cc__block { display: flex; gap: 12px; align-items: flex-start; }
.ll-cc__block-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.ll-cc__block-body { flex: 1 1 0; min-width: 0; }
.ll-cc__label {
	font: 700 14px/22px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-accent);
}
.ll-cc__para {
	margin: 0;
	font: 400 14px/22.75px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-white);
}
p.ll-cc__label { margin: 0 0 8px; display: block; }
.ll-cc__impact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ll-cc__impact li { display: flex; align-items: center; gap: 8px; font: 400 14px/21.7px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif); color: var(--c-white); }
.ll-cc__impact-icon { flex: 0 0 14px; width: 14px; height: 14px; }
.ll-cc__block-body .ll-cc__tags--inline { margin-top: 2px; }

/* Read Full Case Study — outlined blue pill on the dark card */
.ll-cc__cta-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	margin-top: 6px;
	border: 1px solid var(--c-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--c-accent);
	font: 600 14px/1.4 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.ll-cc__cta-btn:hover { background: var(--c-accent); color: var(--c-white); }

/* Blue media panel + 3-phone triptych */
.ll-cc__media {
	flex: 0 0 48%;
	max-width: 48%;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background: #1668a8 url(/wp-content/themes/litslink/sections/litslink-blocks/_shared/statsbg.webp) center / cover no-repeat;
}
/* Empty right block (no case image, any layout) = one clean full-bleed stats-bg
   placeholder, no phone ghosts. Base .ll-cc__media already carries the image. */
.ll-cc__media--empty { padding: 0; min-height: 420px; }
.ll-cc__triptych {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
}
.ll-cc__phone {
	position: relative;
	border-radius: 26px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.ll-cc__phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ll-cc__phone--side {
	flex: 0 0 30%;
	aspect-ratio: 150 / 320;
	transform: translateY(18px) scale(0.94);
	z-index: 1;
}
.ll-cc__phone--side:first-child { margin-right: -18px; }
.ll-cc__phone--side:last-child { margin-left: -18px; }
.ll-cc__phone--center {
	flex: 0 0 38%;
	aspect-ratio: 170 / 360;
	z-index: 2;
}
/* Empty-slot placeholder — subtle phone-shaped fill */
.ll-cc__phone-ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: inherit;
}

/* Circular edge controls (desktop) */
.ll-cc__edge {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: #2a2a2d;
	color: var(--c-white);
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: background 0.2s ease, opacity 0.2s ease;
}
.ll-cc__edge:hover { background: var(--c-accent); }
.ll-cc__edge--prev { left: 20px; }
.ll-cc__edge--next { right: 20px; }
.ll-cc__edge[aria-disabled="true"] { opacity: 0.35; cursor: default; }

/* Mobile switcher */
.ll-cc__select-wrap { display: none; position: relative; width: 100%; }
.ll-cc__select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	margin: 0;
	background: var(--c-white);
	border: 1px solid var(--c-stroke);
	border-radius: 12px;
	padding: 14px 48px 14px 16px;
	font: 400 14px/20px var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-dark);
	cursor: pointer;
}
.ll-cc__select-chevron { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); pointer-events: none; }
.ll-cc__pagination { display: none; gap: 20px; justify-content: center; margin-top: 24px; }
.ll-cc__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--c-grey1);
	border: 0.8px solid var(--c-stroke);
	color: var(--c-muted);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ll-cc__nav--active { border-color: var(--c-accent); color: var(--c-accent); }
.ll-cc__nav[aria-disabled="true"] { opacity: 0.5; cursor: default; }

@media (max-width: 1024px) {
	.ll-cc { padding: 56px 0; }
	.ll-cc__inner { padding: 0 40px; }
	.ll-cc__heading { font-size: 30px; line-height: 40px; }
	.ll-cc__card { flex-direction: column; }
	.ll-cc__text { padding: 36px 32px; }
	.ll-cc__media { flex: none; max-width: none; width: 100%; padding: 32px 20px; }
	.ll-cc__edge { display: none; }
}
@media (max-width: 767px) {
	.ll-cc { padding: 30px 0; }
	.ll-cc__inner { padding: 0 20px; gap: 22px; }
	.ll-cc__heading { font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
	.ll-cc__tabs { display: none; }
	.ll-cc__select-wrap { display: block; }
	.ll-cc__pagination { display: flex; }
	.ll-cc__body { gap: 20px; }
	.ll-cc__text { padding: 28px 20px; }
	.ll-cc__title { font-size: 22px; }
}

/* ---- consolidated-block additions (ll-case-single + ll-cases-tabbed) ---- */

/* multiple tag pills */
.ll-cc__tags { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.ll-cc__tags .ll-cc__tag { align-self: auto; }

/* per-block heading colour toggle: default label is blue; --plain = white */
.ll-cc__label--plain { color: var(--c-white); }

/* per-block star toggle off: no icon, body flush-left */
.ll-cc__block--nostar { gap: 0; }

/* single image — FULL-BLEED: fills the whole right media column edge to edge */
.ll-cc__media--single { padding: 0; background: none; }
.ll-cc__media--single .ll-cc__single { width: 100%; height: 100%; align-self: stretch; }
.ll-cc__single { width: 100%; height: 100%; overflow: hidden; }
.ll-cc__single img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ll-cc__single .ll-cc__phone-ph {
	display: block; width: 100%; height: 100%; min-height: 320px;
	background: #1668a8 url(/wp-content/themes/litslink/sections/litslink-blocks/_shared/statsbg.webp) center / cover no-repeat;
	border: 0;
}
/* blue-panel image — image framed on the blue panel (keeps padding + blue bg) */
.ll-cc__media--blue_panel .ll-cc__single {
	max-width: 460px; height: auto; aspect-ratio: 16 / 11;
	border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
	background: rgba(255, 255, 255, 0.08);
}
.ll-cc__media--blue_panel .ll-cc__single .ll-cc__phone-ph {
	min-height: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 100%);
	border: 1px solid rgba(255,255,255,0.35);
}

/* single-case block: header can carry a right-aligned CTA (tabbed) */
.ll-cc__head--tabbed {
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
	max-width: 1240px;
	width: 100%;
	gap: 24px;
	flex-wrap: wrap;
}
.ll-cc__head--tabbed .ll-cc__head-main { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.ll-cc__head--tabbed .ll-cc__heading,
.ll-cc__head--tabbed .ll-cc__subtitle { text-align: left; }
.ll-cc__header-cta {
	display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
	background: var(--c-accent); border-radius: 999px; padding: 14px 30px;
	font: 600 15px/1.5 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	color: var(--c-white); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ll-cc__header-cta:hover { box-shadow: 0 8px 24px rgba(22,144,211,0.35); transform: translateY(-1px); }

/* closing CTA bar */
.ll-cc__footer {
	width: 100%;
	margin-top: 4px;
	background: var(--c-white);
	border: 1px solid var(--c-stroke);
	border-radius: 20px;
	padding: 22px 36px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; flex-wrap: wrap;
	box-shadow: 0 20px 40px -28px rgba(1, 0, 5, 0.3);
}
.ll-cc__footer-title { margin: 0; font: 700 clamp(17px,2vw,22px)/1.3 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif); color: var(--c-dark); }
.ll-cc__footer-btn {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	background: var(--c-accent); color: var(--c-white); border-radius: 999px; padding: 12px 24px;
	font: 600 15px/1.5 var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif); text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ll-cc__footer-btn:hover { box-shadow: 0 8px 24px rgba(22,144,211,0.35); transform: translateY(-1px); }

@media (max-width: 860px) {
	.ll-cc__head--tabbed { flex-direction: column; align-items: flex-start; }
	.ll-cc__footer { flex-direction: column; align-items: flex-start; }
}
