/* ==========================================================================
   Galleria De Rings: Category spotlight (home page, below the Solitaire banner)
   Two editorial blocks side by side on white:
     left:  heading · text · button, then a tall photo
     right: a tall photo, then heading · text · button (right-aligned)
   so the two columns step against each other. Photos 4 : 5 with the site's
   rounded corners and a soft shadow, never zoomed; they open with the site's
   curtain reveal (motion.js).
   Button: navy outline pill; a navy curtain sweeps in on hover.
   Phones: one block under the other, photo first (square, so it takes
   less height), then the text, left-aligned.
   ========================================================================== */

.cat-spotlight {
	--cs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	padding: clamp(56px, 7vw, 112px) clamp(16px, 4vw, 64px);
	background: var(--g-white);
}

.cat-spotlight__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 88px);
	max-width: 1240px;
	margin: 0 auto;
}

.cat-spotlight__item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(28px, 3vw, 44px);
	min-width: 0;
}

/* Left block shows its text above the photo. */
.cat-spotlight__item--text-first .cat-spotlight__text {
	order: -1;
}

/* Right block: text under the photo, aligned right. */
.cat-spotlight__item--media-first .cat-spotlight__text {
	align-items: flex-end;
	text-align: right;
}

/* Photo */
.cat-spotlight__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	--reveal-radius: clamp(18px, 1.8vw, 26px); /* keeps the corners round during the curtain reveal */

	border-radius: var(--reveal-radius); /* same family as the category cards */
	background: #f1efe9; /* close to the photos' backdrop while they load */
	box-shadow: 0 28px 56px -36px rgba(11, 19, 42, 0.4);
}

.cat-spotlight__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Text */
.cat-spotlight__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cat-spotlight__title {
	margin: 0 0 clamp(14px, 1.4vw, 20px);
	color: var(--g-navy);
	font-family: var(--g-font-heading);
	font-size: clamp(30px, 3.1vw, 46px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.cat-spotlight__title em {
	display: block;
	color: var(--g-sapphire, #1e3358);
	font-style: italic;
}

.cat-spotlight__desc {
	max-width: 48ch;
	margin: 0 0 clamp(22px, 2.2vw, 32px);
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: 1rem;
	line-height: 1.7;
}

/* Button: navy outline pill, as wide as its label (pills like the rest of
   the site); a navy curtain sweeps in from the left on hover (and out to the
   right on leave), the label turns white. */
.cat-spotlight__btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	min-height: 54px;
	padding: 0 34px;
	overflow: hidden;
	border: 1px solid var(--g-navy);
	border-radius: 999px;
	color: var(--g-navy);
	font-family: var(--g-font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s var(--cs-ease) 0.05s, box-shadow 0.35s ease;
}

.cat-spotlight__btn::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--g-navy);
	content: "";
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.45s var(--cs-ease);
}

/* Small arrow that slides in after the label */
.cat-spotlight__btn-label::after {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 0;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	content: "";
	opacity: 0;
	transform: translateX(-6px) rotate(45deg);
	vertical-align: 0.12em;
	transition: opacity 0.25s ease, margin-left 0.35s var(--cs-ease), transform 0.35s var(--cs-ease);
}

.cat-spotlight__btn:hover,
.cat-spotlight__btn:focus-visible {
	color: var(--g-white);
	box-shadow: 0 12px 26px -16px rgba(11, 19, 42, 0.6);
}

.cat-spotlight__btn:hover::before,
.cat-spotlight__btn:focus-visible::before {
	transform: scaleX(1);
	transform-origin: left center;
}

.cat-spotlight__btn:hover .cat-spotlight__btn-label::after,
.cat-spotlight__btn:focus-visible .cat-spotlight__btn-label::after {
	margin-left: 12px;
	opacity: 1;
	transform: translateX(0) rotate(45deg);
	transition-delay: 0.1s;
}

.cat-spotlight__btn:active::before {
	background: var(--g-navy-hover);
}

.cat-spotlight__btn:focus-visible {
	outline: 2px solid var(--g-navy);
	outline-offset: 3px;
}

/* Tablet: a little tighter */
@media (max-width: 991px) {
	.cat-spotlight__grid {
		gap: 32px;
	}

	.cat-spotlight__title {
		font-size: clamp(26px, 3.6vw, 34px);
	}
}

/* Phones: one column, each block photo first, then text, all left-aligned */
@media (max-width: 767px) {
	.cat-spotlight {
		padding: 48px 16px 56px;
	}

	.cat-spotlight__grid {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.cat-spotlight__item {
		justify-content: flex-start;
		gap: 22px;
	}

	.cat-spotlight__item .cat-spotlight__text {
		order: 1;
	}

	.cat-spotlight__item--media-first .cat-spotlight__text {
		align-items: flex-start;
		text-align: left;
	}

	.cat-spotlight__title {
		font-size: clamp(28px, 7.4vw, 34px);
	}

	.cat-spotlight__desc {
		font-size: 0.95rem;
	}

	/* Phones: full-width pill */
	.cat-spotlight__btn {
		width: 100%;
		min-height: 52px;
	}

	/* Square photo: shorter than the 4 : 5 one on wide screens */
	.cat-spotlight__media {
		--reveal-radius: 18px;

		aspect-ratio: 1 / 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat-spotlight__btn,
	.cat-spotlight__btn::before,
	.cat-spotlight__btn-label::after {
		transition: none;
	}
}
