/**
 * SCBL — About block.
 *
 * Figma node 10006:5. Two-column section: image + "Founded in [year]" badge
 * (left), eyebrow + headline + body + 2x2 highlights + CTA (right).
 *
 * Typography source-of-truth: typography.css. The block uses semantic tags
 * plus utility classes in the markup for size/weight variants. This file
 * handles only colors, layout, spacing and component-specific transforms.
 */

.about {
	background: var(--color-white);
	color: var(--color-text);
	padding-block: clamp(3rem, 7vw, 6rem);
}

.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	/* Extra gap on mobile leaves room for the badge that hangs -1rem below the image. */
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}

/* ─── Media (image + founded badge) ──────────────────────────────────── */
.about__media {
	position: relative;
	width: 100%;
	max-width: 40rem;          /* 560px — matches Figma image width */
	aspect-ratio: 7 / 8;       /* 560 × 640 — slightly shorter than Figma's 7/9 */
	background: var(--color-orange-500);
	border-radius: 1.5rem;
	padding: 0 1rem 1rem 0;
	box-sizing: border-box;
	/* No margin-inline: auto — content sits at the container's left padding
	 * edge, matching the .hero block's flush-left convention. */
}

.about__media--landscape {
	max-width: 50rem;
	aspect-ratio: 16 / 9;
}

.about__image-frame {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 1.5rem;
	overflow: hidden;
}

.about__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.about__badge {
	position: absolute;
	right: 1rem; /* aligns with image right edge (the orange frame extends 1rem further) */
	bottom: -2.25rem;
	min-width: clamp(9.5rem, 28vw, 12rem); /* fits "2010" comfortably; scales up on tablet+ */
	padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.25rem, 2vw, 1.5rem) clamp(1rem, 1.5vw, 1.25rem);
	background: var(--color-indigo-600);
	color: var(--color-white);
	border-radius: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	box-shadow: 0 1.25rem 2rem rgba(24, 12, 39, 0.25);
}

.about__badge-label {
	color: var(--color-white);
}

.about__badge-year {
	color: var(--color-white);
}

/* ─── Content (right column) ─────────────────────────────────────────── */
.about__content {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.5rem);
	max-width: 41rem; /* 656px */
}

.about__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--color-indigo-900);
}

.about__eyebrow-strip {
	display: inline-block;
	width: 5rem;
	height: 1px;
	background: var(--color-orange-500);
	flex-shrink: 0;
}

.about__title {
	text-transform: uppercase;
	color: var(--color-indigo-900);
	margin: 0;
	display: flex;
	flex-direction: column;
}

.about__title-line {
	font-size: clamp(2rem, 3vw + 1rem, 3rem);
	color: var(--color-indigo-900);
} /* default — line 1 */

.about__title-line--primary {
	font-size: clamp(2rem, 3vw + 1rem, 3rem);
	color: var(--color-orange-500);
} /* line 2 — brand orange */

.about__title-line--accent {
	font-size: clamp(2rem, 3vw + 1rem, 3rem);
	color: var(--color-indigo-600);
} /* line 3 — brand purple */

.about__description {
	color: var(--color-text-muted);
	margin: 0;
	max-width: 38rem;
}

/* ─── Highlights ─────────────────────────────────────────────────────── */
.about__highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-block-start: 1.5rem;
}

.about__highlight {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.about__highlight-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border-radius: 0.5rem;
	color: var(--color-orange-500);
	overflow: hidden;
}

.about__highlight-icon svg,
.about__highlight-icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.about__highlight-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.about__highlight-title {
	color: var(--color-indigo-900);
	margin: 0; /* h3 global resets margin on frontend; explicit here for editor preview. */
	max-width: 11rem; /* 176px — forces multi-word titles to wrap into a compact 2-line block */
}

.about__highlight-text {
	color: var(--color-text-muted);
	margin: 0;
}

.about__secondary-description {
	color: var(--color-text-muted);
	margin: 0;
	max-width: 38rem;
}

.about__continuation {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	margin-block-start: clamp(0.5rem, 2vw, 1rem);
	padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.about__continuation-media {
	order: -1; /* image stacks above copy on mobile */
}

.about__continuation-copy {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.25rem);
	color: var(--color-text-muted);
}

.about__continuation-title {
	margin: 0;
	color: var(--color-indigo-900);
	display: flex;
	flex-direction: column;
	text-transform: uppercase;
}

.about__continuation-copy p {
	margin: 0;
}

.about__continuation-media {
	position: relative;
	justify-self: stretch;
	width: 100%;
	max-width: 40rem;
	border-radius: 1.5rem;
	background: var(--color-orange-500);
	padding: 0 0 1rem 1rem;
	box-sizing: border-box;
}

.about__continuation-image-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 1.5rem;
}

.about__continuation-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ─── CTA button ─────────────────────────────────────────────────────── */
.about__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.625rem;
	border: 1px solid var(--color-black);
	background: var(--color-white);
	color: var(--color-indigo-900);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	margin-block-start: 0.75rem;
}

.about__cta:hover {
	background: var(--color-indigo-900);
	color: var(--color-white);
	border-color: var(--color-indigo-900);
	transform: translateY(-2px);
}

.about__cta:focus { outline: none; }
.about__cta:focus-visible {
	outline: 2px solid var(--color-orange-500);
	outline-offset: 3px;
}

.about__cta-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.about__cta-icon svg { width: 100%; height: 100%; display: block; }

/* ─── Editor preview hint ────────────────────────────────────────────── */
.about__placeholder-note {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.75rem 1rem;
	background: var(--color-surface-alt);
	border-radius: 0.5rem;
	color: var(--color-text-muted);
}

/* ─── Tablet: 2-column highlight grid ────────────────────────────────── */
@media (min-width: 40rem) {
	.about__highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 2rem;
	}
}

/* ─── Desktop: side-by-side image + content ──────────────────────────── */
@media (min-width: 64rem) {
	.about__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(2.5rem, 5vw, 5rem);
		align-items: center;
	}

	.about__media {
		aspect-ratio: 7 / 8;
		justify-self: start;     /* flush-left in grid cell — matches .hero block convention */
		width: 100%;
		max-width: 40rem;
	}

	.about__media--landscape {
		aspect-ratio: 16 / 9;
		max-width: 50rem;
	}

	.about__content {
		max-width: 41rem;
	}

	.about__continuation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.about__continuation-media {
		justify-self: end;
		order: 0; /* restore source order on desktop: copy left, image right */
	}
}
