/*
 * Brand Section block — heading + subheading + brand logo strip + optional
 * CTA button. Background spans the full viewport; inner is capped at the
 * same 1440px the site header uses, with padding inside that cap.
 *
 * Three editable colors are passed in as CSS custom properties from the
 * block's inline style attribute (--coastal-brands-bg / -heading /
 * -subheading) with sensible fallbacks here so the styles are still
 * readable if the inline style fails for any reason.
 *
 * !important on .coastal-brands__inner max-width is required to beat
 * Astra's page-builder grandchild rule — see hero-banner.css for the
 * full explanation.
 */

.coastal-brands {
	background: var(--coastal-brands-bg, #ffffff);
	width: 100%;
}

.coastal-brands .coastal-brands__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px !important;
	margin-inline: auto;
	padding: 50px 5px;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: center;
}

.coastal-brands .coastal-brands__heading {
	margin: 0 0 8px;
	font-family: inherit;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.2;
	color: var(--coastal-brands-heading, #2c2c75);
}

.coastal-brands .coastal-brands__subheading {
	margin: 0 0 48px;
	font-family: inherit;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: var(--coastal-brands-subheading, #000);
}

.coastal-brands__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.coastal-brands__item {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.coastal-brands__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 150ms ease-in-out;
}

.coastal-brands__link:hover,
.coastal-brands__link:focus-visible {
	opacity: 0.7;
}

.coastal-brands__logo {
	display: block;
	max-width: 200px;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.coastal-brands__name {
	font-family: inherit;
	font-weight: 700;
	font-size: 20px;
	color: var(--coastal-brands-heading, #2c2c75);
	letter-spacing: 0.02em;
}

.coastal-brands__placeholder {
	margin: 32px 0 0;
	padding: 32px;
	background: rgba(0, 0, 0, 0.04);
	color: #555;
	font-style: italic;
}

.coastal-brands__cta {
	margin-top: 50px;
}

.coastal-brands__cta .coastal-button,
.coastal-brands__cta .coastal-button:visited {
	display: inline-block;
	padding: 16px 8px;
	border-radius: 1000px;
	background: transparent;
	border: 2px solid #2c2c75;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #2c2c75;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color 150ms ease-in-out, color 150ms ease-in-out;
}

.coastal-brands__cta .coastal-button:hover,
.coastal-brands__cta .coastal-button:focus-visible {
	background: #d5d5e3;
	border-color: #2c2c75;
	color: #2c2c75;
	text-decoration: none !important;
}

@media (max-width: 1024px) {
	.coastal-brands .coastal-brands__inner {
		padding: 64px 48px;
	}

	.coastal-brands__list {
		justify-content: center;
		gap: 24px 40px;
	}

	.coastal-brands__item {
		flex: 0 0 auto;
	}
}

@media (max-width: 640px) {
	.coastal-brands .coastal-brands__inner {
		padding: 48px 24px;
	}

	.coastal-brands .coastal-brands__heading {
		font-size: 26px;
	}

	.coastal-brands .coastal-brands__subheading {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.coastal-brands__list {
		gap: 24px 32px;
	}

	.coastal-brands__logo {
		max-width: 130px;
		max-height: 80px;
	}

	.coastal-brands__cta {
		margin-top: 40px;
	}
}
