/*
 * POS-BOOKING start page sections (#562). SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Impressions grid, team cards, opening hours and route cards and the closing
 * band for the Divi start page, from the --pb-* tokens only. Built from native
 * Divi modules (images, text, code): a clone swaps images and texts in the Visual
 * Builder, while staff, opening hours and address come from LatePoint.
 */

/* 1. Section rhythm and heading block --------------------------------------- */
html body .et_pb_section.pb-section {
	padding: 40px 0;
	background: transparent;
}

.pb-section .et_pb_row {
	padding: 0;
}

/* Padding, not margin: Divi zeroes the margin of the last module in a column. */
html body .pb-section .et_pb_text.pb-section-head {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 0 32px;
	text-align: center;
}

.pb-section-head .pb-eyebrow {
	margin-bottom: 14px;
}

html body .pb-section-head h2 {
	margin: 0 0 12px;
	padding: 0;
	color: var(--pb-ink);
	font-family: var(--pb-font-head);
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

html body .pb-section-head .pb-lead {
	max-width: 34em;
	margin: 0 auto;
}

/* 2. Impressions: six Divi image modules in one column become a 3 x 2 grid ---- */
.pb-gallery-grid .et_pb_column {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

html body .pb-gallery-grid .et_pb_image {
	margin: 0;
}

.pb-gallery-grid .et_pb_image .et_pb_image_wrap,
.pb-gallery-grid .et_pb_image a {
	display: block;
	overflow: hidden;
	border-radius: var(--pb-radius-md);
}

.pb-gallery-grid .et_pb_image .et_pb_image_wrap {
	box-shadow: var(--pb-shadow-sm);
}

.pb-gallery-grid .et_pb_image img {
	display: block;
	transition: transform .4s ease;
}

.pb-gallery-grid .et_pb_image a:hover img,
.pb-gallery-grid .et_pb_image a:focus-visible img {
	transform: scale(1.04);
}

.pb-gallery-grid .et_pb_image a:focus-visible {
	outline: 2px solid var(--pb-brand);
	outline-offset: 3px;
}

/* 3. Team: cards from [posbooking_team] ------------------------------------- */
html body .et_pb_text .pb-team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .pb-team .pb-team-member {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 28px 22px 26px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius-lg);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-xs);
	text-align: center;
}

.pb-team .pb-team-photo {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 112px;
	height: 112px;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--pb-brand-tint);
	box-shadow: 0 0 0 4px var(--pb-brand-tint);
}

.pb-team .pb-team-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pb-team .pb-team-initials {
	color: var(--pb-brand-strong);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
}

.pb-team .pb-team-name {
	display: block;
	color: var(--pb-ink);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.pb-team .pb-team-role {
	display: block;
	margin-top: 4px;
	color: var(--pb-brand-strong);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

html body .pb-team .pb-team-bio {
	margin: 12px 0 0;
	padding: 0;
	color: var(--pb-text);
	font-size: 15px;
	line-height: 1.6;
}

/* 4. Opening hours and route: two cards from LatePoint data ------------------ */
.pb-visit .et_pb_row.et_pb_equal_columns > .et_pb_column {
	display: flex;
	flex-direction: column;
}

html body .pb-visit .pb-card {
	box-sizing: border-box;
	flex: 1 1 auto;
	margin: 0;
	padding: 28px 30px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius-lg);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-xs);
}

html body .pb-card h3 {
	margin: 0 0 16px;
	padding: 0;
	color: var(--pb-ink);
	font-family: var(--pb-font-head);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

html body .pb-card .pb-hours {
	display: grid;
	margin: 0;
}

html body .pb-card .pb-hours > div {
	display: grid;
	align-items: baseline;
	grid-template-columns: 5.5em minmax(0, 1fr);
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--pb-line);
}

.pb-card .pb-hours > div:first-child {
	padding-top: 0;
}

.pb-card .pb-hours > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

html body .pb-card .pb-hours dt {
	margin: 0;
	padding: 0;
	color: var(--pb-ink);
	font-weight: 600;
}

html body .pb-card .pb-hours dd {
	margin: 0;
	color: var(--pb-text);
	font-variant-numeric: tabular-nums;
}

.pb-card .pb-hours .is-closed dd {
	color: var(--pb-muted);
}

.pb-card .pb-contact address {
	display: flex;
	flex-direction: column;
	margin: 0 0 12px;
	color: var(--pb-text);
	font-style: normal;
	line-height: 1.6;
}

.pb-card .pb-contact address strong {
	color: var(--pb-ink);
	font-weight: 600;
}

html body .pb-card .pb-contact .pb-contact-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

html body .pb-card .pb-contact .pb-contact-list li {
	margin: 0;
	padding: 0;
	color: var(--pb-text);
}

html body .pb-card .pb-contact a:not(.pb-route) {
	color: var(--pb-brand-strong);
	font-weight: 600;
	text-decoration: none;
}

html body .pb-card .pb-contact a:not(.pb-route):hover {
	text-decoration: underline;
}

html body .pb-card .pb-contact a.pb-route {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--pb-brand-line);
	border-radius: var(--pb-radius-sm);
	background: var(--pb-surface);
	color: var(--pb-brand-strong);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.pb-card .pb-contact a.pb-route::after {
	content: "\2192";
}

html body .pb-card .pb-contact a.pb-route:hover {
	border-color: var(--pb-brand);
	background: var(--pb-brand-tint);
}

.pb-card a:focus-visible {
	outline: 2px solid var(--pb-brand);
	outline-offset: 3px;
}

/* 5. Closing band: brand colour with the inverse button ---------------------- */
html body .et_pb_section.pb-section.pb-cta {
	padding: 24px 0 72px;
}

.pb-section.pb-cta .et_pb_row {
	padding: 56px 32px;
	border-radius: var(--pb-radius-lg);
	background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pb-on-brand) 12%, transparent), transparent 55%), var(--pb-brand);
	box-shadow: var(--pb-shadow-md);
	text-align: center;
}

html body .pb-cta .et_pb_text {
	text-align: center;
}

html body .pb-cta h2 {
	margin: 0 0 12px;
	padding: 0;
	color: var(--pb-on-brand);
	font-family: var(--pb-font-head);
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

html body .pb-cta .et_pb_text p {
	max-width: 34em;
	margin: 0 auto;
	padding: 0;
	color: var(--pb-on-brand);
	font-size: 18px;
	line-height: 1.6;
}

html body .pb-cta .et_pb_text .pb-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 22px;
	max-width: none;
	margin-top: 28px;
}

html body .pb-cta a.pb-btn {
	border-color: var(--pb-on-brand);
	background: var(--pb-on-brand);
	box-shadow: none;
	color: var(--pb-brand);
}

html body .pb-cta a.pb-btn:hover {
	border-color: var(--pb-on-brand);
	background: color-mix(in srgb, var(--pb-on-brand) 88%, var(--pb-brand));
	color: var(--pb-brand);
}

html body .pb-cta .pb-cta-actions .pb-cta-call {
	color: var(--pb-on-brand);
	font-size: 16px;
}

html body .pb-cta .pb-phone {
	color: var(--pb-on-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.pb-cta a:focus-visible {
	outline: 2px solid var(--pb-on-brand);
	outline-offset: 3px;
}

/* 6. Responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
	html body .et_pb_section.pb-section {
		padding: 28px 0;
	}

	.pb-gallery-grid .et_pb_column {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	html body .et_pb_section.pb-section.pb-cta {
		padding: 16px 0 48px;
	}

	.pb-section.pb-cta .et_pb_row {
		padding: 40px 20px;
	}
}

@media (max-width: 480px) {
	html body .pb-visit .pb-card {
		padding: 22px 20px;
	}

	.pb-card .pb-hours > div {
		grid-template-columns: 4.5em minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pb-gallery-grid .et_pb_image img {
		transition: none;
	}

	.pb-gallery-grid .et_pb_image a:hover img,
	.pb-gallery-grid .et_pb_image a:focus-visible img {
		transform: none;
	}
}
