/* Frontend styles for Multi-Brand Contact Buttons. */

.mbc-section {
	margin: 2rem 0;
}

.mbc-title {
	text-align: center;
	margin-bottom: 1.5rem;
}

/*
 * Default layout: every button is the same fixed width and buttons in the
 * same row stretch to the same height, so rows always line up tidily.
 * Rows are centred, so 5 buttons in a wide container show as 3 + 2 centred,
 * and in a narrow column they stack in a single neat line.
 */
.mbc-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	align-items: stretch;
}

.mbc-button {
	box-sizing: border-box;
	width: 230px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.25rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mbc-button:hover,
.mbc-button:focus {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	filter: brightness(1.06);
	text-decoration: none;
}

/*
 * Fixed column counts via the shortcode's columns attribute, e.g.
 * [brand_contact_buttons columns="1"]. Buttons fill the column width equally.
 */
.mbc-cols-1 .mbc-buttons,
.mbc-cols-2 .mbc-buttons,
.mbc-cols-3 .mbc-buttons,
.mbc-cols-4 .mbc-buttons,
.mbc-cols-5 .mbc-buttons {
	display: grid;
	gap: 1rem;
	justify-content: stretch;
}

.mbc-cols-1 .mbc-buttons { grid-template-columns: 1fr; }
.mbc-cols-2 .mbc-buttons { grid-template-columns: repeat(2, 1fr); }
.mbc-cols-3 .mbc-buttons { grid-template-columns: repeat(3, 1fr); }
.mbc-cols-4 .mbc-buttons { grid-template-columns: repeat(4, 1fr); }
.mbc-cols-5 .mbc-buttons { grid-template-columns: repeat(5, 1fr); }

.mbc-cols-1 .mbc-button,
.mbc-cols-2 .mbc-button,
.mbc-cols-3 .mbc-button,
.mbc-cols-4 .mbc-button,
.mbc-cols-5 .mbc-button {
	width: auto;
}

/*
 * Every logo renders inside a box of exactly --mbc-logo-height (set from the
 * plugin settings). The image scales to fit that box, so all brand logos
 * appear the same size no matter what dimensions were uploaded.
 */
.mbc-logo {
	height: var(--mbc-logo-height, 60px);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mbc-logo img {
	max-height: 100%;
	max-width: min(100%, 200px);
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.mbc-label {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	color: inherit;
	text-align: center;
}

@media (max-width: 600px) {
	.mbc-buttons,
	.mbc-cols-2 .mbc-buttons,
	.mbc-cols-3 .mbc-buttons,
	.mbc-cols-4 .mbc-buttons,
	.mbc-cols-5 .mbc-buttons {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.mbc-button {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
 * Company overview section ([company_overview] shortcode)
 * ---------------------------------------------------------------------- */

.mbc-overview {
	max-width: 1080px;
	margin: 2rem auto;
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
}

.mbc-ov-heading {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 1.25rem;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mbc-accent, #14335f);
}

.mbc-ov-heading::after {
	content: "";
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--mbc-accent, #14335f), transparent);
}

/* About: fact cards with an accent bar. */
.mbc-ov-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.mbc-ov-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-left: 5px solid var(--mbc-accent, #14335f);
	border-radius: 10px;
	padding: 1.35rem 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font-size: 1.05rem;
	line-height: 1.55;
	color: #1f2937;
}

/* Mission: full-width accent banner. */
.mbc-ov-mission {
	background: var(--mbc-accent, #14335f);
	color: #fff;
	border-radius: 12px;
	padding: 1.9rem 2.25rem;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Brands: white logo tiles, uniform logo height. */
.mbc-ov-brands {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1rem;
}

.mbc-ov-brand {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	min-height: calc(var(--mbc-logo-height, 60px) + 2.5rem);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none;
}

a.mbc-ov-brand:hover,
a.mbc-ov-brand:focus {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mbc-ov-brand img {
	max-height: var(--mbc-logo-height, 60px);
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Equipment: bold centred tiles with an accent top edge. */
.mbc-ov-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.mbc-ov-tile {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 4px solid var(--mbc-accent, #14335f);
	border-radius: 10px;
	padding: 1.4rem 1rem;
	text-align: center;
	font-weight: 700;
	font-size: 1.1rem;
	color: #1f2937;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Capabilities: multi-column tick list. */
.mbc-ov-checks {
	list-style: none;
	margin: 0;
	padding: 1.5rem 1.75rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.65rem 1.75rem;
}

.mbc-ov-checks li {
	position: relative;
	padding-left: 1.8rem;
	line-height: 1.55;
	color: #1f2937;
	margin: 0;
}

.mbc-ov-checks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--mbc-accent, #14335f);
}

/* Customers: pill badges. */
.mbc-ov-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.mbc-ov-pill {
	background: #fff;
	border: 2px solid var(--mbc-accent, #14335f);
	color: var(--mbc-accent, #14335f);
	border-radius: 999px;
	padding: 0.45rem 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}

@media (max-width: 600px) {
	.mbc-overview {
		gap: 2rem;
	}

	.mbc-ov-mission {
		font-size: 1.1rem;
		padding: 1.4rem 1.25rem;
	}
}
