/**
 * Keystone Theme — Brand Cards component
 *
 * Three-column grid of brand/product overview cards.
 * Each card: logo, name, type label, description.
 *
 * BEM: .keystone-brands
 *   Elements: __inner  __label  __sub  __grid
 *             .keystone-brand-card  __logo  __name  __type  __desc
 */

/* ── Section wrapper ────────────────────────────────────────────────────────── */
.keystone-brands {
	width: 100vw !important;
	max-width: none !important;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	background: #f5f6fa;
	padding-block: clamp(3rem, 6vw, 5rem);
	margin-block: 0;
}

.keystone-brands__inner {
	max-width: var(--wp--style--global--wide-size, 1340px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--50, clamp(20px, 4vw, 50px));
}

.keystone-brands__label {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 900;
	color: #0a1828;
	margin: 0 0 0.4rem;
}

.keystone-brands__sub {
	font-size: 15px;
	color: var(--wp--preset--color--accent-4, #64748b);
	margin: 0 0 2rem;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.keystone-brands__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.keystone-brand-card {
	background: #fff;
	border-radius: var(--keystone-card-radius, 12px);
	padding: 32px 28px;
	box-shadow: var(--keystone-card-shadow);
	transition: box-shadow var(--keystone-card-shadow-transition, 0.2s ease),
	            transform 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.keystone-brand-card:hover {
	box-shadow: var(--keystone-card-shadow-hover);
	transform: translateY(-3px);
}

.keystone-brand-card__logo {
	height: 44px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	display: block;
	margin-bottom: 4px;
}

.keystone-brand-card__name {
	font-size: 18px;
	font-weight: 800;
	color: #0a1828;
	margin: 0;
	line-height: 1.2;
}

.keystone-brand-card__type {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #4a9eff;
}

.keystone-brand-card__desc {
	font-size: 14px;
	line-height: 1.65;
	color: var(--wp--preset--color--accent-4, #64748b);
	margin: 4px 0 0;
}

/* ── CTA link (Apply Now / Book a call within a card) ───────────────────────── */
.keystone-brand-card__cta {
	display: inline-block;
	background: #1a1a72;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	margin-top: auto;
	text-align: center;
	transition: background 0.2s;
}
.keystone-brand-card__cta:hover {
	background: #2a2aaa;
}

/* ── Author row (used in meeting cards) ─────────────────────────────────────── */
.keystone-brand-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 0.5rem;
}
.keystone-brand-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}
.keystone-brand-card__author-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0a1828;
	line-height: 1.3;
}
.keystone-brand-card__author-role {
	display: block;
	font-size: 12px;
	color: #64748b;
	line-height: 1.3;
}

/* ── Muted variant (expired / unavailable) ──────────────────────────────────── */
.keystone-brand-card--muted {
	opacity: 0.5;
	pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.keystone-brands__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.keystone-brands__grid {
		grid-template-columns: 1fr;
	}
}
