/**
 * About page styles (scoped). Reuses the theme design tokens from main.css.
 * main.css is never modified.
 *
 * @package B2BMoneyGuides
 */

.b2bmg-section-title--center {
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Who We Are (media + text)
   ========================================================================== */

.b2bmg-media-text__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.b2bmg-media-text--right .b2bmg-media-text__media {
	order: 2;
}

.b2bmg-media-text__media {
	border-radius: var(--b2bmg-radius-md);
	overflow: hidden;
	box-shadow: var(--b2bmg-shadow-md);
	aspect-ratio: 4 / 3;
	background-color: var(--b2bmg-bg-light);
}

.b2bmg-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b2bmg-media-text__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--b2bmg-bg-light), rgba(255, 81, 1, 0.1));
}

.b2bmg-media-text__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--b2bmg-primary);
}

.b2bmg-media-text__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 800;
	margin-bottom: 16px;
}

.b2bmg-media-text__desc {
	color: var(--b2bmg-muted);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 24px;
}

.b2bmg-media-text__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.b2bmg-media-text__list li {
	position: relative;
	padding-left: 34px;
	font-weight: 500;
	color: var(--b2bmg-text);
}

.b2bmg-media-text__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--b2bmg-primary);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 14px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 14px no-repeat;
}

.b2bmg-media-text__cta {
	margin-top: 28px;
}

/* ==========================================================================
   Feature cards (Mission / Vision / Values + Why Choose Us)
   ========================================================================== */

.b2bmg-feature-cards__grid {
	display: grid;
	gap: 24px;
	margin-top: 48px;
	align-items: stretch;
}

.b2bmg-feature-cards__grid--2 { grid-template-columns: repeat(2, 1fr); }
.b2bmg-feature-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
.b2bmg-feature-cards__grid--4 { grid-template-columns: repeat(4, 1fr); }

.b2bmg-feature-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 32px 28px;
	background-color: var(--b2bmg-card-bg);
	border: 1px solid var(--b2bmg-border);
	border-radius: var(--b2bmg-radius-md);
	box-shadow: var(--b2bmg-shadow-sm);
	transition: transform var(--b2bmg-transition), box-shadow var(--b2bmg-transition), border-color var(--b2bmg-transition);
}

.b2bmg-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--b2bmg-shadow-md);
	border-color: var(--b2bmg-primary);
}

.b2bmg-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	font-size: 1.375rem;
	color: var(--b2bmg-primary);
	background-color: var(--b2bmg-bg-light);
	border-radius: var(--b2bmg-radius-sm);
}

.b2bmg-feature-card__icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.b2bmg-feature-card__title {
	margin: 0 0 10px;
	font-size: 1.1875rem;
	font-weight: 700;
}

.b2bmg-feature-card__desc {
	margin: 0;
	color: var(--b2bmg-muted);
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* ==========================================================================
   Team / Trust cards
   ========================================================================== */

.b2bmg-team__grid {
	display: grid;
	gap: 24px;
	margin-top: 48px;
	align-items: stretch;
}

.b2bmg-team__grid--2 { grid-template-columns: repeat(2, 1fr); }
.b2bmg-team__grid--3 { grid-template-columns: repeat(3, 1fr); }
.b2bmg-team__grid--4 { grid-template-columns: repeat(4, 1fr); }

.b2bmg-team__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background-color: var(--b2bmg-card-bg);
	border: 1px solid var(--b2bmg-border);
	border-radius: var(--b2bmg-radius-md);
	box-shadow: var(--b2bmg-shadow-sm);
	transition: transform var(--b2bmg-transition), box-shadow var(--b2bmg-transition), border-color var(--b2bmg-transition);
}

.b2bmg-team__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--b2bmg-shadow-md);
	border-color: var(--b2bmg-primary);
}

.b2bmg-team__media {
    width: 100%;
    overflow: hidden;
    background-color: var(--b2bmg-bg-light);
    border-bottom: 1px solid var(--b2bmg-primary);
}

.b2bmg-team__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.b2bmg-team__card:hover .b2bmg-team__media img {
	transform: scale(1.05);
}

.b2bmg-team__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--b2bmg-bg-light), rgba(255, 81, 1, 0.1));
}

.b2bmg-team__body {
	padding: 22px 24px 26px;
}

.b2bmg-team__name {
	margin: 0 0 4px;
	font-size: 1.125rem;
	font-weight: 700;
}

.b2bmg-team__role {
	display: block;
	margin-bottom: 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--b2bmg-primary);
}

.b2bmg-team__desc {
	margin: 0;
	color: var(--b2bmg-muted);
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* ==========================================================================
   Stats / counters
   ========================================================================== */

.b2bmg-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.b2bmg-stats__item {
	text-align: center;
	padding: 28px 20px;
	background-color: var(--b2bmg-card-bg);
	border: 1px solid var(--b2bmg-border);
	border-radius: var(--b2bmg-radius-md);
	box-shadow: var(--b2bmg-shadow-sm);
}

.b2bmg-stats__number {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--b2bmg-primary);
}

.b2bmg-stats__label {
	margin-top: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--b2bmg-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.b2bmg-media-text__grid {
		gap: 32px;
	}

	.b2bmg-feature-cards__grid--4,
	.b2bmg-team__grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.b2bmg-feature-cards__grid--3,
	.b2bmg-team__grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.b2bmg-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.b2bmg-media-text__grid {
		grid-template-columns: 1fr;
	}

	.b2bmg-media-text--right .b2bmg-media-text__media {
		order: 0;
	}

	.b2bmg-feature-cards__grid--2,
	.b2bmg-feature-cards__grid--3,
	.b2bmg-feature-cards__grid--4,
	.b2bmg-team__grid--2,
	.b2bmg-team__grid--3,
	.b2bmg-team__grid--4 {
		grid-template-columns: 1fr;
	}

	.b2bmg-stats__grid {
		grid-template-columns: 1fr 1fr;
	}
}
