/* ==========================================================================
   Storefront - home page
   --------------------------------------------------------------------------
   Loaded by store/home.blade.php only, after store.css. Just the sections
   no other page has; the cards, buttons, sliders, tabs and tokens they are
   built from live in store.css.
   ========================================================================== */

/* ------------------------------------------------------------ blocks --- */

/* Each section is a block the panel can move or hide, so the gap is set
   between blocks rather than inside any one of them. */
.st-home { padding-bottom: var(--st-gap); }
.st-home__block + .st-home__block { margin-top: var(--st-gap); }
.st-home__block:first-child:not(.st-hero-wrap) { margin-top: 48px; }
.st-home__rule { margin-bottom: var(--st-gap); }
.st-home__block:first-child > .st-home__rule { display: none; }

/* -------------------------------------------------------------- hero --- */

.st-hero-wrap { padding-top: 24px; }

.st-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: clamp(460px, 46vw, 620px);
	border-radius: 16px;
	background: var(--st-sand);
	overflow: hidden;
}

.st-hero__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 32px;
	padding: 64px;
	padding-inline-end: 16px;
}

.st-hero__kicker { font-size: 20px; font-weight: 600; color: #525252; }

.st-hero__title {
	margin: 0;
	font-size: clamp(34px, 4.6vw, 68px);
	font-weight: 700;
	line-height: 1.15;
	color: #171717;
}

.st-hero__media { position: relative; }

.st-hero__lines {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(118%, 700px);
	transform: translate(-50%, -46%);
	color: rgba(146, 104, 64, .2);
	pointer-events: none;
}

/* ------------------------------------------------------ how it works --- */

.st-steps__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 64px;
}

/* The dashed path joining the four tiles, level with their middles. */
.st-steps__grid::before {
	content: "";
	position: absolute;
	top: 70px;
	inset-inline: 12.5%;
	border-top: 2px dashed var(--st-200);
}

.st-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 300px;
	margin-inline: auto;
	text-align: center;
}

.st-step__art {
	display: grid;
	place-items: center;
	width: 140px;
	height: 140px;
	margin-bottom: 40px;
	border-radius: 24px;
	background: var(--tone-50);
}

.st-step__art span {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #FFF;
	color: var(--tone-600);
	box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .25);
}

.st-step__art svg { width: 32px; height: 32px; }

.st-step h3 { margin: 20px 0 0; font-size: 16px; font-weight: 600; }
.st-step p { margin: 12px 0 0; font-size: 14px; line-height: 1.75; }

/* ------------------------------------------------------------- promo --- */

.st-promo {
	position: relative;
	min-height: 560px;
	padding: 96px 80px;
	border-radius: 40px;
	background: var(--st-50);
	overflow: hidden;
}

.st-promo__copy { position: relative; z-index: 2; width: 50%; max-width: 520px; }
.st-promo h2 { font-size: 48px; font-weight: 600; line-height: 1.15; }
.st-promo p { margin: 28px 0 0; }

.st-perks { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }

.st-perks li {
	display: flex;
	align-items: center;
	gap: 16px;
	font-weight: 500;
	color: var(--st-text);
}

.st-promo .st-search { max-width: 384px; margin-top: 40px; }

.st-promo__media {
	position: absolute;
	top: 40px;
	bottom: 40px;
	inset-inline-end: 40px;
	width: calc(50% - 80px);
	border-radius: 28px;
	overflow: hidden;
}

.st-promo__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* ------------------------------------------------- large product card --- */

.st-slider__track--wide  { --st-per: 2.5; }
.st-slider__track--edits { --st-per: 2.5; --st-gutter: 20px; }

.st-lcard { position: relative; display: flex; flex-direction: column; height: 100%; }

.st-lcard__main {
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: 16px;
	background: var(--st-100);
}

.st-lcard img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	transition: filter .3s;
}

.st-lcard:hover img { filter: brightness(.9); }

.st-lcard__thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.st-lcard__thumbs span {
	display: block;
	height: 112px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--st-100);
}

/* Close crops standing in for photos the piece does not have: the top, the
   middle and the hem of its first picture. */
.st-lcard__crop img { transform: scale(1.9); }
.st-lcard__crop--1 img { transform-origin: 50% 12%; }
.st-lcard__crop--2 img { transform-origin: 50% 55%; }
.st-lcard__crop--3 img { transform-origin: 50% 92%; }

.st-lcard__info {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
}

.st-lcard h3 { font-size: 20px; font-weight: 600; }

.st-lcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 10px;
	font-size: 14px;
}

.st-lcard__meta .st-stock { margin: 0; font-size: 14px; }
.st-lcard__sep { width: 1px; height: 18px; background: var(--st-200); }
.st-lcard .st-price { flex: 0 0 auto; margin-top: 2px; }

/* The last slide: a quiet tile that sends you to the whole catalogue. */
.st-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 100%;
	min-height: 410px;
	border-radius: 16px;
	background: rgba(0, 0, 0, .05);
	color: var(--st-ink);
	font-size: 14px;
	text-align: center;
	transition: background-color .2s;
}

.st-more:hover { background: rgba(0, 0, 0, .08); }

.st-more__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 600;
}

.st-more__title svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------- explore --- */

.st-explore__band {
	max-width: 1340px;
	margin-inline: auto;
	padding: 112px 0 80px;
	border-radius: 40px;
	background: rgba(245, 245, 245, .7);
}

.st-explore__title {
	margin: 0 0 48px;
	font-size: 48px;
	font-weight: 600;
	text-align: center;
}

.st-explore__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.st-xcard {
	--xc-ring: rgba(99, 102, 241, .35);
	--xc-soft: #EEF2FF;

	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	padding: 32px;
	border-radius: 24px;
	background: #FFF;
	overflow: hidden;
	transition: box-shadow .25s;
}

.st-xcard:hover { box-shadow: var(--st-shadow-lg); }

/* A different tint per card, cycling. */
.st-explore__grid > .st-xcard:nth-child(6n + 2) { --xc-ring: rgba(236, 72, 153, .3);  --xc-soft: #FDF2F8; }
.st-explore__grid > .st-xcard:nth-child(6n + 3) { --xc-ring: rgba(245, 158, 11, .35); --xc-soft: #FFFBEB; }
.st-explore__grid > .st-xcard:nth-child(6n + 4) { --xc-ring: rgba(20, 184, 166, .35); --xc-soft: #F0FDFA; }
.st-explore__grid > .st-xcard:nth-child(6n + 5) { --xc-ring: rgba(139, 92, 246, .32); --xc-soft: #F5F3FF; }
.st-explore__grid > .st-xcard:nth-child(6n + 6) { --xc-ring: rgba(244, 63, 94, .3);   --xc-soft: #FFF1F2; }

/* Rings in the corner - the reference's decorative artwork, drawn in CSS. */
.st-xcard__deco {
	position: absolute;
	inset-inline-end: -60px;
	bottom: -60px;
	z-index: -1;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 20px, var(--xc-ring) 20px 21.5px);
	opacity: .7;
	transition: transform .5s ease;
}

.st-xcard:hover .st-xcard__deco { transform: scale(1.08); }

.st-xcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.st-xcard__thumb {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--xc-soft);
	font-size: 24px;
	font-weight: 600;
	color: var(--st-ink);
}

.st-xcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-xcard__thumb--logo img { width: 68%; height: 68%; object-fit: contain; }

.st-xcard__arrow { display: grid; color: var(--st-muted); transition: color .2s, transform .2s; }
.st-xcard__arrow svg { width: 22px; height: 22px; }
.st-xcard:hover .st-xcard__arrow { color: var(--st-ink); transform: translate(2px, -2px); }

.st-xcard__copy { margin-top: 48px; }
.st-xcard__copy p { margin: 0; font-size: 14px; }
.st-xcard__copy h3 { margin-top: 8px; font-size: 30px; font-weight: 600; line-height: 1.2; }
.st-xcard__count { margin: 72px 0 0; font-size: 14px; }

.st-explore .st-center { margin-top: 72px; }

/* ---------------------------------------------------- discover more --- */

.st-ccard {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tone-50);
}

.st-ccard::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .1);
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}

.st-ccard:hover::after { opacity: .4; }

.st-ccard__media {
	position: absolute;
	top: 32px;
	bottom: 32px;
	inset-inline-end: 32px;
	width: 40%;
	max-width: 210px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .12), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.st-ccard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* The copy stops short of the photo rather than at a fixed width, so a long
   title wraps instead of running underneath it. */
.st-ccard__copy {
	position: absolute;
	inset-block: 32px;
	inset-inline-start: 32px;
	inset-inline-end: calc(min(40%, 210px) + 52px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.st-ccard__label { margin-bottom: 16px; font-size: 14px; color: #525252; }

.st-ccard__title {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
	color: #171717;
	text-wrap: balance;
}

.st-ccard .st-btn { margin-top: auto; }

/* ---------------------------------------------------- favourite grid --- */

.st-favs .st-head { margin-bottom: 40px; }

.st-favs__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 48px;
}

/* --------------------------------------------------------------- help --- */

.st-help__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}

.st-help__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 24px;
	background: var(--st-100);
}

.st-help__media img { width: 100%; height: 100%; object-fit: cover; }

.st-help__feature h3 { margin-top: 40px; font-size: 24px; font-weight: 600; }
.st-help__feature p { margin: 16px 0 0; }
.st-help__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.st-help .st-faq__item:first-child .st-faq__q { padding-top: 4px; }

/* ------------------------------------------------------------- final --- */

.st-final { display: flex; align-items: center; gap: 40px; }
.st-final__copy { flex: 0 0 40%; min-width: 0; }

.st-final__logo {
	display: inline-flex;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--st-ink);
}

.st-final__logo img { max-height: 40px; width: auto; }

.st-final h2 {
	margin-top: 40px;
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.st-final p { max-width: 440px; margin: 24px 0 0; }
.st-final__actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 48px; }

.st-final__media { position: relative; flex: 1; min-width: 0; padding: 28px; }

.st-final__blob {
	position: absolute;
	inset: 0 6%;
	border-radius: 48px;
	background: var(--st-sand);
	transform: rotate(-4deg);
}

.st-final__media img {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: 50% 18%;
	border-radius: 28px;
}

/* -------------------------------------------------------- responsive --- */

@media (max-width: 1339px) {
	/* Once the band meets the edges of the screen, rounding reads as a gap. */
	.st-explore__band { border-radius: 0; }
}

@media (max-width: 1279px) {
	.st-slider__track--wide  { --st-per: 2; }
	.st-slider__track--edits { --st-per: 2.33; }
	.st-explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-promo { padding: 72px 56px; }
	.st-promo h2 { font-size: 42px; }
}

@media (max-width: 1023px) {
	.st-hero { grid-template-columns: 1fr; }
	.st-hero__copy { padding: 48px 32px 0; gap: 24px; }
	.st-hero__media { height: 420px; }
	.st-hero .st-arch { top: 40px; width: min(72%, 360px); }

	.st-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
	.st-steps__grid::before { display: none; }

	.st-slider__track--wide,
	.st-slider__track--edits { --st-per: 1.5; }

	.st-promo { min-height: 0; padding: 48px 32px 32px; border-radius: 28px; }
	.st-promo__copy { width: 100%; }
	.st-promo__media {
		position: static;
		width: 100%;
		aspect-ratio: 4 / 3;
		margin-top: 40px;
		border-radius: 20px;
	}

	.st-help__grid { grid-template-columns: 1fr; }

	.st-final { flex-direction: column; align-items: stretch; }
	.st-final__copy { flex: none; }
}

@media (max-width: 767px) {
	.st-hero__kicker { font-size: 16px; }
	.st-hero__media { height: 360px; }

	.st-promo h2,
	.st-explore__title { font-size: 34px; }

	.st-explore__band { padding: 80px 0 64px; }
	.st-explore__grid { grid-template-columns: 1fr; gap: 16px; }
	.st-xcard { padding: 24px; }
	.st-xcard__copy { margin-top: 36px; }
	.st-xcard__copy h3 { font-size: 24px; }
	.st-xcard__count { margin-top: 40px; }

	.st-ccard { aspect-ratio: 16 / 11; }
	.st-ccard__media { top: 20px; bottom: 20px; inset-inline-end: 20px; }
	.st-ccard__copy { inset-block: 20px; inset-inline: 20px calc(min(40%, 210px) + 32px); }
	.st-ccard__title { font-size: 20px; }

	.st-lcard__thumbs span { height: 96px; }
	.st-more { min-height: 320px; }
}

@media (max-width: 639px) {
	.st-steps__grid { grid-template-columns: 1fr; gap: 48px; }
	.st-step__art { margin-bottom: 24px; }

	.st-slider__track--wide,
	.st-slider__track--edits { --st-per: 1.09; }

	.st-favs__bar .st-btn { width: 100%; }

	.st-xcard__copy { margin-top: 24px; }
	.st-xcard__count { margin-top: 24px; }
}
