/*
 * Homepage v7 — "Therapeutic Collections" bento grid.
 * Depends on: log-home-v7-shared.css
 */

/* ── 3D tilt / "4D" hover physics (reference: .tilt-card) — mousemove
   physics live in log-bento-tilt-v7.js, this just supplies the transform
   transition + glare layer it animates. ── */
.v7-tilt {
	transform-style: preserve-3d;
	transition: transform .12s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
	will-change: transform;
}

.v7-tilt:hover {
	box-shadow: 0 30px 60px -20px rgba(30, 20, 64, .4);
}

.v7-tilt-glare {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	border-radius: inherit;
	opacity: 0;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 55%);
	transition: opacity .3s ease;
	mix-blend-mode: overlay;
}

.v7-tilt:hover .v7-tilt-glare {
	opacity: 1;
}

.v7-bento-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.v7-bento-head h2 { margin-bottom: 16px; }

.v7-bento-head p {
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #4a3570;
	margin: 0;
}

.v7-bento-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 200px;
	gap: 16px;
}

@media (min-width: 768px) {
	.v7-bento-grid { grid-auto-rows: 240px; gap: 24px; }
}

.v7-bento-large {
	grid-column: 1 / -1;
	grid-row: span 2;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 40px -10px rgba(30, 20, 64, .15);
	background-size: cover;
	/* Runner's head sits in the top third of the source photo (1200x896);
	   the tile is much wider/shorter than that, so a plain "center" crop
	   scales the image up and cuts his head off. Bias the crop upward. */
	background-position: center 15%;
	background-color: #e3d9f0;
}

@media (min-width: 768px) {
	.v7-bento-large { grid-column: 1 / span 8; }
}

.v7-bento-large-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(30, 20, 64, .8), rgba(30, 20, 64, .2) 60%, transparent);
}

.v7-bento-large-body {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 20px;
}

@media (min-width: 768px) {
	.v7-bento-large-body { padding: 32px; }
}

.v7-bento-large-body h3 {
	font-family: 'EB Garamond', Georgia, serif;
	font-weight: 400;
	font-size: 22px;
	color: #fff;
	margin: 0 0 8px;
}

@media (min-width: 768px) {
	.v7-bento-large-body h3 { font-size: 32px; }
}

.v7-bento-large-body p {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, .85);
	max-width: 420px;
	margin: 0 0 16px;
	display: none;
}

@media (min-width: 768px) {
	.v7-bento-large-body p { display: block; }
}

.v7-bento-small {
	grid-column: span 12;
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}

@media (min-width: 768px) {
	.v7-bento-small { grid-column: span 4; }
}

.v7-bento-small-plain {
	background: #f8f5fb;
	border: 1px solid rgba(212, 197, 232, .3);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-decoration: none;
}

.v7-bento-small-plain:hover { border-color: rgba(30, 20, 64, .3); }

.v7-bento-icon { width: 28px; height: 28px; color: #887daf; margin-bottom: 12px; }

.v7-bento-small-plain h3 {
	font-family: 'EB Garamond', Georgia, serif;
	font-weight: 400;
	font-size: 20px;
	color: #010006;
	margin: 0 0 8px;
}

.v7-bento-small-plain p {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	color: #4a3570;
	margin: 0;
}

.v7-bento-small-img {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 20px;
	background-size: cover;
	/* Source photo is square (512x512) but this tile is a wide, short
	   rectangle — a plain "center" crop scales the image up and cuts her
	   head off, same issue as the large tile. Bias the crop upward. */
	background-position: center 10%;
	background-color: #e3d9f0;
	text-decoration: none;
	box-shadow: 0 20px 40px -10px rgba(30, 20, 64, .15);
}

.v7-bento-small-img-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(30, 20, 64, .9), transparent 65%);
}

.v7-bento-small-img h3 {
	position: relative;
	font-family: 'EB Garamond', Georgia, serif;
	font-weight: 400;
	font-size: 20px;
	color: #fff;
	margin: 0 0 4px;
}

.v7-bento-small-img p {
	position: relative;
	font-family: 'Manrope', sans-serif;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .85);
	margin: 0;
}

.v7-bento-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}

.v7-bento-large-body .v7-bento-link { position: relative; }

.v7-bento-small-plain .v7-bento-link { color: #1e1440; margin-top: 16px; }

.v7-bento-link svg { width: 14px; height: 14px; }

.v7-bento-cta { text-align: center; margin-top: 48px; }

.v7-bento-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 1px solid #d4c5e8;
	border-radius: 2px;
	color: #1e1440;
	font-family: 'Manrope', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s;
}

.v7-bento-cta-btn:hover { background: #ece3f7; }

/* Whole card is the link (large + plain small tiles were only linked from
   the "Explore Category" text; the image tile already was an <a>). */
a.v7-bento-large,
a.v7-bento-small {
	display: block;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

a.v7-bento-small-plain,
a.v7-bento-small-img { display: flex; }

a.v7-bento-large:focus-visible,
a.v7-bento-small:focus-visible {
	outline: 2.5px solid #c9a15a;
	outline-offset: 3px;
}

a.v7-bento-small-plain:hover .v7-bento-link svg,
a.v7-bento-large:hover .v7-bento-link svg { transform: translateX(3px); }

.v7-bento-link svg { transition: transform .2s; }
