/*
 * Card grid and comparison table, shared by the service pages. Colour and
 * type come from the child theme's tokens so these sit inside the same design
 * language as the rest of the site.
 */

.pi-blk {
	padding: clamp(3.5rem, 6vw, 4.5rem) 0;
}
.pi-blk--white { background: #fff; }
.pi-blk--cream { background: var(--pi-cream, #f5f1eb); }
.pi-blk--dark  { background: var(--pi-footer, #211d17); }

.pi-blk__inner {
	width: min(1280px, calc(100% - 36px));
	margin-inline: auto;
	padding-inline: 27px;
}

/* ---- Section head ------------------------------------------------------ */

.pi-blk__head { max-width: 62rem; margin-bottom: clamp(1.75rem, 3vw, 2.25rem); }

.pi-blk__eyebrow {
	font-family: var(--pi-font-accent, inherit);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pi-red, #e20e20);
	margin: 0 0 .55rem;
}

.pi-blk__title {
	font-family: var(--pi-font-display, inherit);
	font-size: clamp(1.75rem, 3.2vw, 2.125rem);
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .8rem;
}

.pi-blk__lede {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--pi-muted, #6b6459);
	max-width: 56rem;
	margin: 0;
}

.pi-blk--dark .pi-blk__title { color: #fff; }
.pi-blk--dark .pi-blk__lede  { color: rgba(255, 255, 255, .74); }
.pi-blk--dark .pi-blk__eyebrow { color: #fde9ea; }

/* ---- Card grid --------------------------------------------------------- */

.pi-blk__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pi-blk__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pi-line, #eae3d6);
	border-radius: 14px;
	overflow: hidden;
}
.pi-blk--white .pi-blk__card { background: var(--pi-cream, #f5f1eb); border-color: transparent; }
.pi-blk--dark  .pi-blk__card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }

.pi-blk__media {
	height: 170px;
	background: #fff;
	border-bottom: 1px solid var(--pi-line, #eae3d6);
	overflow: hidden;
}
.pi-blk__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Logos must sit inside the frame with air around them, not be cropped. */
.pi-blk__media.is-contain img {
	object-fit: contain;
	padding: 22px 26px;
}

.pi-blk__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}

.pi-blk__tag {
	font-family: var(--pi-font-accent, inherit);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pi-red, #e20e20);
	margin: 0 0 .45rem;
}

.pi-blk__card h3 {
	font-family: var(--pi-font-display, inherit);
	font-size: 1.1875rem;
	line-height: 1.25;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .5rem;
}

.pi-blk__card p {
	font-size: .9375rem;
	line-height: 1.65;
	color: var(--pi-muted, #6b6459);
	margin: 0;
}

.pi-blk--dark .pi-blk__card h3 { color: #fff; }
.pi-blk--dark .pi-blk__card p  { color: rgba(255, 255, 255, .72); }

.pi-blk__more { margin-top: auto; padding-top: 1rem; }
.pi-blk__more a,
.pi-blk__more a:visited {
	font-family: var(--pi-font-display, inherit);
	font-size: .9375rem;
	font-weight: 700;
	color: var(--pi-ink, #1e1b16);
	text-decoration: none;
	border-bottom: 2px solid var(--pi-red, #e20e20);
	padding-bottom: 2px;
}
.pi-blk__more a:hover { color: var(--pi-red, #e20e20); }
.pi-blk--dark .pi-blk__more a,
.pi-blk--dark .pi-blk__more a:visited { color: #fff; }

/* ---- Comparison table -------------------------------------------------- */

/* The table is the one thing on these pages that cannot reflow, so it gets
   its own scroller rather than pushing the page sideways. */
.pi-blk__scroll { overflow-x: auto; }

.pi-blk__table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	font-family: var(--pi-font-body, inherit);
}

.pi-blk__table th {
	background: var(--pi-ink, #1e1b16);
	color: #fff;
	text-align: left;
	padding: 14px 18px;
	font-size: .875rem;
	font-weight: 700;
}

.pi-blk__table tbody th {
	background: transparent;
	color: var(--pi-ink, #1e1b16);
	font-weight: 700;
	border: 1px solid var(--pi-line, #eae3d6);
	white-space: nowrap;
}

.pi-blk__table td {
	border: 1px solid var(--pi-line, #eae3d6);
	padding: 14px 18px;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--pi-muted, #6b6459);
	background: #fff;
	vertical-align: top;
}

.pi-blk--cream .pi-blk__table td,
.pi-blk--cream .pi-blk__table tbody th { background: #fff; }

.pi-blk__hint {
	font-size: .9375rem;
	line-height: 1.65;
	color: var(--pi-muted, #6b6459);
	margin: 1.1rem 0 0;
	max-width: 62rem;
}
.pi-blk--dark .pi-blk__hint { color: rgba(255, 255, 255, .66); }

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1000px) {
	.pi-blk__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.pi-blk__cards { grid-template-columns: 1fr; }
	.pi-blk__inner { padding-inline: 20px; }
}

/* ---- A hero opens the page ---------------------------------------------
 * Inner pages carry a body offset so ordinary content clears the floating
 * capsule. A page that opens on a hero does not want it: the photograph is
 * meant to run up behind the bar, exactly as it does on the home page and on
 * the Alexandria service pages.
 * --------------------------------------------------------------------- */

body.pi-page:has(.pi-hero) { padding-top: 0; }

/* ---- Checklist columns ------------------------------------------------- */

.pi-blk__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.pi-blk__check {
	background: #fff;
	border: 1px solid var(--pi-line, #eae3d6);
	border-radius: 14px;
	padding: 26px 28px;
}
.pi-blk--white .pi-blk__check { background: var(--pi-cream, #f5f1eb); border-color: transparent; }

.pi-blk__check h3 {
	font-family: var(--pi-font-display, inherit);
	font-size: 1.125rem;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .9rem;
}
.pi-blk__check ul { list-style: none; margin: 0; padding: 0; }
.pi-blk__check li {
	position: relative;
	padding: 8px 0 8px 26px;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--pi-muted, #6b6459);
	border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.pi-blk__check li:last-child { border-bottom: 0; }
.pi-blk__check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 8px;
	font-weight: 700;
	color: var(--pi-red, #e20e20);
}

/* ---- Price tiers ------------------------------------------------------- */

.pi-blk__tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.pi-blk__tier {
	background: #fff;
	border: 1px solid var(--pi-line, #eae3d6);
	border-radius: 14px;
	padding: 26px 26px 28px;
}
.pi-blk--cream .pi-blk__tier { background: #fff; }
.pi-blk__tier.is-featured { border: 2px solid var(--pi-red, #e20e20); }

.pi-blk__tier h3 {
	font-family: var(--pi-font-display, inherit);
	font-size: 1.1875rem;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .25rem;
}
.pi-blk__price {
	font-family: var(--pi-font-display, inherit);
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .2rem;
}
.pi-blk__note {
	font-size: .8125rem;
	line-height: 1.55;
	color: var(--pi-muted, #6b6459);
	margin: 0 0 1rem;
}
.pi-blk__tier ul { list-style: none; margin: 0; padding: 0; }
.pi-blk__tier li {
	position: relative;
	padding: 6px 0 6px 18px;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--pi-muted, #6b6459);
}
.pi-blk__tier li::before {
	content: "\2022";
	position: absolute;
	left: 2px;
	color: var(--pi-red, #e20e20);
}

.pi-blk__cta { margin: 1.5rem 0 0; }

/* ---- Brand chips ------------------------------------------------------- */

.pi-blk__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1rem 0 0 !important;
}
.pi-blk__chip {
	font-family: var(--pi-font-accent, inherit);
	font-size: .75rem;
	font-weight: 700;
	color: #fff;
	background: var(--pi-red, #e20e20);
	border-radius: 16px;
	padding: 6px 13px;
	line-height: 1.2;
}

@media (max-width: 1000px) {
	.pi-blk__tiers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.pi-blk__checks { grid-template-columns: 1fr; }
}

/* ---- Project gallery ---------------------------------------------------
 * One large photograph with its caption beside it, and a strip of the other
 * shots underneath. Sizes here are the defaults; the widget's Style tab
 * overrides every one of them per instance.
 * --------------------------------------------------------------------- */

.pi-gal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
	gap: 24px;
	align-items: stretch;
}

.pi-gal__figure { margin: 0; min-width: 0; }

.pi-gal__stage {
	height: 460px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--pi-cream, #f5f1eb);
}
.pi-gal__stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pi-gal__cap {
	font-size: .8125rem;
	line-height: 1.5;
	color: var(--pi-muted, #6b6459);
	margin: .7rem 0 0;
}
.pi-blk--dark .pi-gal__cap { color: rgba(255, 255, 255, .6); }

.pi-gal__note {
	display: flex;
	flex-direction: column;
	background: var(--pi-cream, #f5f1eb);
	border-radius: 14px;
	padding: 26px 28px 28px;
	min-width: 0;
}
.pi-blk--cream .pi-gal__note { background: #fff; }
.pi-blk--dark .pi-gal__note {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
}

.pi-gal__title {
	font-family: var(--pi-font-display, inherit);
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--pi-ink, #1e1b16);
	margin: 0 0 .6rem;
}
.pi-gal__note p {
	font-size: .9375rem;
	line-height: 1.7;
	color: var(--pi-muted, #6b6459);
	margin: 0 0 .8rem;
}
.pi-gal__note p:last-of-type { margin-bottom: 0; }

.pi-blk--dark .pi-gal__title { color: #fff; }
.pi-blk--dark .pi-gal__note p { color: rgba(255, 255, 255, .72); }

.pi-gal__strip {
	display: grid;
	/* auto-fit rather than a fixed count: eight shots fill one row on a wide
	   screen and reflow on their own, with no empty tracks left over. */
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

/* The Elementor Kit styles every bare <button> on the site as a red pill —
   `.elementor-kit-58 button` — and its sheet loads after this one. Two classes
   out-specify it; anything less and the thumbnails come out as red lozenges. */
.pi-gal__strip .pi-gal__thumb {
	display: block;
	width: 100%;
	height: 96px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--pi-cream, #f5f1eb);
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	overflow: hidden;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	/* An outline rather than a border: no layout shift when it turns on. */
	outline: 3px solid transparent;
	outline-offset: -3px;
	opacity: .78;
	transition: outline-color .18s ease, opacity .18s ease;
}
.pi-gal__strip .pi-gal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.pi-gal__strip .pi-gal__thumb:hover,
.pi-gal__strip .pi-gal__thumb:focus-visible {
	background: var(--pi-cream, #f5f1eb);
	opacity: 1;
}
.pi-gal__strip .pi-gal__thumb:focus-visible { outline-color: var(--pi-ink, #1e1b16); }
.pi-gal__strip .pi-gal__thumb.is-open {
	opacity: 1;
	outline-color: var(--pi-red, #e20e20);
}

@media (max-width: 900px) {
	.pi-gal { grid-template-columns: 1fr; }
	.pi-gal__stage { height: 340px; }
	.pi-gal__strip { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
	.pi-gal__strip .pi-gal__thumb { height: 84px; }
}

@media (max-width: 560px) {
	.pi-gal__stage { height: 240px; }
	.pi-gal__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pi-gal__strip .pi-gal__thumb { height: 68px; }
}
