/* ==========================================================================
   Practices band — the three GP surgery logos shown above the footer.

   Shared by two render paths so they look identical:
     • bar/practices block (per-page, InnerBlocks logo children)
     • the global band in footer.php (driven by the ACF Options Page)

   Loaded globally (inc/enqueue.php) and into the editor iframe
   (add_editor_style in inc/setup.php), so neither path needs a block stylesheet.
   ========================================================================== */

.bar-practices {
	background-color: #ffffff;
}

.bar-practices__inner {
	max-width: var(--bar-content);
	margin-inline: auto;
	padding-inline: var(--bar-section-x);
	padding-block: var(--bar-section-y);
}

/* ---------------------------------------------------------------------------
 * Intro copy — centred, bold, with the brand name picked out in green
 * --------------------------------------------------------------------------- */
.bar-practices__intro {
	max-width: 900px;
	margin: 0 auto 48px;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	line-height: 1.6;
	color: var(--wp--preset--color--text-default, rgba(0, 0, 0, 0.9));
}

.bar-practices__intro p {
	margin: 0;
}

/* Leaf green from the logo lockup — confirm the exact token with the designer. */
.bar-practices__brand {
	color: #43a047;
}

/* ---------------------------------------------------------------------------
 * Logo row — individual images, evenly spread
 * --------------------------------------------------------------------------- */
.bar-practices__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
}

.bar-practices__logo {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

a.bar-practices__logo:hover,
a.bar-practices__logo:focus-visible {
	opacity: 0.8;
	transform: translateY(-1px);
}

.bar-practices__logo img {
	display: block;
	max-width: 100%;
	max-height: 96px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Practice name — rendered below the logo (the uploaded logos are icon-only) */
.bar-practices__name {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--wp--preset--color--text-default, rgba(0, 0, 0, 0.9));
}

/* ---------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.bar-practices__logos {
		justify-content: center;
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.bar-practices__inner {
		padding-inline: var(--bar-gutter);
		padding-block: 40px;
	}

	.bar-practices__intro {
		margin-bottom: 32px;
	}

	.bar-practices__logo img {
		max-height: 72px;
	}

	.bar-practices__name {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bar-practices__logo,
	a.bar-practices__logo:hover {
		transition: none;
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Editor-only: the logo picker inside bar/practice-logo
 * --------------------------------------------------------------------------- */
.bar-practice-logo__picker {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.bar-practice-logo__picker img {
	display: block;
	max-height: 96px;
	width: auto;
	object-fit: contain;
}
