/**
 * c-bento - six-tile grid for the practice info panel
 * ===================================================
 * Fixed layout on desktop (4 columns x 3 rows), by tile position:
 *
 *   +-----------+-----------+
 *   |           |     2     |      1  feature tile: photo + dark veil + white copy
 *   |     1     +-----+-----+      2  wide tile
 *   |           |  3  |  4  |      3-5 small tiles
 *   |           +-----+-----+      6  "about us" tile (gradient)
 *   |           |  5  |  6  |
 *   +-----------+-----+-----+
 *
 * Phones/tablets (< 992px): two columns, every tile full width except
 * .c-bento__tile--half. Rows grow with their text (no fixed heights).
 *
 * Tile parts and variants
 *   .c-bento__tile               glass tile
 *   .c-bento__tile--feature      photo tile (.c-bento__bg image + .c-bento__content)
 *   .c-bento__tile--fade         photo fading in from the right (.c-bento__fade image)
 *   .c-bento__tile--team         brand gradient, avatars (.c-bento__avatars)
 *   .c-bento__heading            icon + title in a row
 *   .c-bento__title              small sans title;  --serif: large serif title
 *   .c-bento__text               body copy;  .c-bento__badge: pill on the photo
 */

.c-bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(3, minmax(14rem, auto));
	gap: 1.6rem;
}

.c-bento > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 4; }
.c-bento > :nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.c-bento > :nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
.c-bento > :nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }
.c-bento > :nth-child(5) { grid-column: 3 / 4; grid-row: 3 / 4; }
.c-bento > :nth-child(6) { grid-column: 4 / 5; grid-row: 3 / 4; }

.c-bento__tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.8rem;
	padding: 2rem 2.4rem;
	border-radius: var(--radius-xl, 3.2rem);
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid var(--glass-border);
}

.c-bento__heading {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
}

.c-bento__icon {
	display: block;
	width: 2.2rem;
	height: 2.2rem;
	flex-shrink: 0;
	color: var(--tertiary);
}

.c-bento__title {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
}

.c-bento__title--serif {
	font-family: var(--font-heading);
	font-weight: var(--font-heading-weight, 400);
	font-size: clamp(2.6rem, 2rem + 1vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.c-bento__text {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.45;
	color: var(--ink-muted);
}

/* ---------- feature: photo + veil + white copy ---------- */
.c-bento__tile--feature {
	justify-content: flex-end;
	padding: 3.2rem;
	border-radius: 3.6rem;
	border: 0;
	color: #fff;
	background: var(--grey1, #1B2F45);
}

.c-bento__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-bento__tile--feature::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 38, 66, 0) 35%, rgba(18, 38, 66, 0.82) 100%);
}

.c-bento__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	max-width: 46rem;
}

.c-bento__tile--feature .c-bento__text {
	font-size: 1.5rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.c-bento__badge {
	align-self: flex-start;
	padding: 0.7rem 1.4rem;
	border-radius: var(--radius-full, 999px);
	background: rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* ---------- fade: photo fading in from the right ---------- */
.c-bento__fade {
	position: absolute;
	top: 0;
	right: 0;
	width: 55%;
	height: 100%;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(270deg, #000 25%, transparent 100%);
	mask-image: linear-gradient(270deg, #000 25%, transparent 100%);
}

.c-bento__tile--fade > :not(.c-bento__fade) {
	position: relative;
	max-width: 62%;
}

/* ---------- team: brand gradient ---------- */
.c-bento__tile--team {
	justify-content: space-between;
	padding: 1.8rem 2.2rem;
	border: 0;
	color: #fff;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, var(--tertiary-d-1) 100%);
}

.c-bento__tile--team .c-bento__title--serif {
	font-size: 2.2rem;
}

.c-bento__tile--team .c-bento__text {
	font-size: 1.3rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.c-bento__team-head {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.2rem;
}

.c-bento__avatars {
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
}

.c-bento__avatar {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.85);
}

.c-bento__avatar + .c-bento__avatar {
	margin-left: -1rem;
}

/* ---------- phones + tablets ---------- */
@media (max-width: 991px) {
	.c-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 1.2rem;
	}

	.c-bento > :nth-child(n) {
		grid-column: span 2;
		grid-row: auto;
	}

	.c-bento > .c-bento__tile--half {
		grid-column: span 1;
	}

	.c-bento__tile {
		padding: 1.8rem;
		border-radius: 2.6rem;
	}

	/* only the plain glass tiles - feature and team keep their own fill */
	.c-bento__tile:not(.c-bento__tile--feature):not(.c-bento__tile--team) {
		background: rgba(255, 255, 255, 0.7);
	}

	.c-bento__tile--feature .c-bento__title--serif {
		font-size: 2.8rem;
	}

	.c-bento__tile--feature {
		min-height: 34rem;
		padding: 2.4rem;
		border-radius: 3rem;
	}

	.c-bento__tile--fade {
		min-height: 12.8rem;
		padding: 1.8rem 2rem;
	}

	.c-bento__fade {
		width: 44%;
	}

	.c-bento__title:not(.c-bento__title--serif) {
		font-size: 1.6rem;
	}

	.c-bento__tile--half .c-bento__text {
		font-size: 1.3rem;
	}

	.c-bento__tile--team {
		padding: 2rem;
		border-radius: 2.6rem;
		gap: 0.8rem;
	}

	.c-bento__tile--team .c-bento__title--serif {
		font-size: 2.4rem;
	}
}
