/**
 * Vastraa — front page bands.
 */

/* ==========================================================================
   1. Hero
   ========================================================================== */

.vs-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 860px);
	overflow: hidden;
	background: var(--vs-ink);
	color: var(--vs-paper);
}

.vs-hero--plain {
	min-height: min(72vh, 680px);
	background: var(--vs-sand);
	color: var(--vs-ink);
}

.vs-hero__media {
	position: absolute;
	inset: 0;
}

/*
 * <picture> is the element that actually sits in the frame; without an
 * explicit height it collapses to the image's intrinsic ratio and the hero's
 * dark background shows through underneath.
 */
.vs-hero__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

/*
 * Two scrims: one lifting the headline off the image, and a stronger band at
 * the top so the overlaid white header stays legible against a light photo.
 */
.vs-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(12, 9, 7, 0.5) 0%, rgba(12, 9, 7, 0.18) 14%, rgba(12, 9, 7, 0) 26%),
		linear-gradient(
			to top,
			rgba(12, 9, 7, 0.74) 0%,
			rgba(12, 9, 7, 0.44) 38%,
			rgba(12, 9, 7, 0.14) 70%,
			rgba(12, 9, 7, 0.14) 100%
		);
}

.vs-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.vs-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}

.vs-hero__content {
	max-width: 100%;
	text-align: center;
}

.vs-hero__eyebrow {
	display: inline-block;
	margin-bottom: var(--vs-4);
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	color: var(--vs-gold);
	font-size: var(--vs-fs-xs);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.vs-hero--media .vs-hero__eyebrow {
	color: #e6cfa6;
}

.vs-hero__title {
	margin: 0;
	font-size: var(--vs-fs-display);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.vs-hero__text {
	margin: var(--vs-4) 0 0;
	max-width: 100%;
	font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
	line-height: 1.65;
	opacity: 0.88;
}

.vs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vs-3);
	margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	justify-content: center;
}

.vs-hero--media .vs-hero__cta2 {
	border-color: rgba(255, 255, 255, 0.65);
	color: var(--vs-paper);
}

.vs-hero--media .vs-hero__cta2:hover {
	background: var(--vs-paper);
	border-color: var(--vs-paper);
	color: var(--vs-ink);
}

.vs-hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: var(--vs-2);
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	font-size: var(--vs-fs-xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.75;
}

.vs-hero__scroll svg {
	animation: vs-bob 2.4s var(--vs-ease) infinite;
}

.vs-hero__scroll:hover {
	opacity: 1;
	color: inherit;
}

@keyframes vs-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

@media (max-width: 782px) {
	.vs-hero {
		min-height: min(78vh, 620px);
	}

	.vs-hero__content {
		max-width: none;
	}

	.vs-hero__actions .vs-btn {
		flex: 1 1 auto;
		min-width: 140px;
	}

	.vs-hero__scroll {
		display: none;
	}
}



/* --- Hero slider ------------------------------------------------------- */

/*
 * The slides share one grid cell rather than stacking absolutely, so the band
 * keeps the height of the tallest slide and the rest of the page is unaffected.
 * Each slide is still a plain `.vs-hero`, so everything above applies untouched
 * whether the hero is a slider or a single static panel.
 */
.vs-heroslider {
	position: relative;
}

.vs-heroslider__track {
	display: grid;
	/*
	 * Vertical scrolling still belongs to the page; horizontal gestures come to
	 * the slider. Without this the browser claims the gesture before the
	 * pointer handlers can read it.
	 */
	touch-action: pan-y;
}

.vs-heroslider__track > .vs-hero {
	grid-area: 1 / 1;
	opacity: 0;
	/* visibility, not display: it takes the hidden slide out of the tab order. */
	visibility: hidden;
	transition: opacity 0.7s var(--vs-ease), visibility 0.7s;
}

.vs-heroslider__track > .vs-hero.is-active {
	opacity: 1;
	visibility: visible;
}

/* Bars, centred along the bottom edge. */
.vs-heroslider__bars {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.vs-heroslider__bar {
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: var(--vs-radius-pill);
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background-color 0.3s var(--vs-ease), width 0.3s var(--vs-ease);
}

.vs-heroslider__bar:hover {
	background: rgba(255, 255, 255, 0.65);
}

.vs-heroslider__bar.is-active {
	width: 44px;
	background: var(--vs-paper);
}

.vs-heroslider__bar:focus-visible {
	outline: 2px solid var(--vs-paper);
	outline-offset: 4px;
}

/* No photograph behind the bars, so they need ink rather than white. */
.vs-heroslider--plain .vs-heroslider__bar {
	background: rgba(23, 19, 16, 0.25);
}

.vs-heroslider--plain .vs-heroslider__bar:hover {
	background: rgba(23, 19, 16, 0.45);
}

.vs-heroslider--plain .vs-heroslider__bar.is-active {
	background: var(--vs-ink);
}

.vs-heroslider--plain .vs-heroslider__bar:focus-visible {
	outline-color: var(--vs-ink);
}

/* While a drag is in flight, nothing inside should be selected or ghost-dragged. */
.vs-heroslider.is-dragging,
.vs-heroslider.is-dragging * {
	user-select: none;
}

.vs-heroslider__track img {
	-webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
	.vs-heroslider__track > .vs-hero {
		transition-duration: 0.01ms;
	}

	.vs-heroslider__bar {
		transition-duration: 0.01ms;
	}
}

@media (max-width: 640px) {
	.vs-heroslider__bar {
		width: 22px;
	}

	.vs-heroslider__bar.is-active {
		width: 34px;
	}
}

/* ==========================================================================
   2. Category showcase
   ========================================================================== */

.vs-cats__group + .vs-cats__group {
	margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.vs-cats__grouphead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--vs-4);
	margin-bottom: var(--vs-5);
	padding-bottom: var(--vs-3);
	border-bottom: 1px solid var(--vs-line);
}

.vs-cats__groupname {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

.vs-cats__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-cattile {
	display: block;
	text-decoration: none;
}

.vs-cattile__media {
	margin-bottom: var(--vs-3);
	background: var(--vs-sand);
}

.vs-cattile__img {
	transition: transform 0.7s var(--vs-ease);
}

.vs-cattile:hover .vs-cattile__img {
	transform: scale(1.05);
}

.vs-cattile__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--vs-font-display);
	font-size: 3rem;
	color: var(--vs-line-strong);
}

.vs-cattile__label {
	display: block;
}

.vs-cattile__name {
	display: block;
	font-size: var(--vs-fs-sm);
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: color 0.2s var(--vs-ease);
}

.vs-cattile:hover .vs-cattile__name {
	color: var(--vs-accent);
}

.vs-cattile__count {
	display: block;
	margin-top: 2px;
	color: var(--vs-ink-35);
	font-size: 0.6875rem;
}

@media (max-width: 1024px) {
	.vs-cats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.vs-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vs-cats__grouphead {
		gap: var(--vs-2);
	}
}

/* Three 4:5 tiles under 420px leave ~85px each — too small to read. */
@media (max-width: 420px) {
	.vs-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================================
   3. Promo banners
   ========================================================================== */

.vs-banners__grid {
	display: grid;
	gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
}

.vs-banners__grid--3 {
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.vs-banners__grid--3 .vs-banner--lead {
	grid-row: span 2;
}

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

.vs-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 260px;
	overflow: hidden;
	background: var(--vs-sand);
	color: var(--vs-paper);
	text-decoration: none;
}

.vs-banner--lead {
	min-height: 520px;
}

.vs-banner__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--vs-ease);
}

.vs-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12, 9, 7, 0.66), rgba(12, 9, 7, 0.08) 62%);
	transition: opacity 0.4s var(--vs-ease);
}

a.vs-banner:hover .vs-banner__img {
	transform: scale(1.05);
}

.vs-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

.vs-banner__eyebrow {
	color: #e6cfa6;
	font-size: var(--vs-fs-xs);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.vs-banner__title {
	font-family: var(--vs-font-display);
	font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
	font-weight: 600;
	line-height: 1.05;
	max-width: 18ch;
}

.vs-banner--sub .vs-banner__title {
	font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.85rem);
}

.vs-banner__text {
	max-width: 34ch;
	font-size: var(--vs-fs-sm);
	opacity: 0.85;
}

.vs-banner__cta {
	display: inline-block;
	align-self: flex-start;
	margin-top: var(--vs-3);
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-size: var(--vs-fs-xs);
	font-weight: 500;
	letter-spacing: var(--vs-tracking-label);
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.vs-banners__grid--3,
	.vs-banners__grid--2 {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.vs-banners__grid--3 .vs-banner--lead {
		grid-row: auto;
	}

	.vs-banner--lead {
		min-height: 340px;
	}

	.vs-banner {
		min-height: 220px;
	}
}

/* ==========================================================================
   4. Editorial band
   ========================================================================== */

.vs-editorial__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 1rem + 4vw, 5rem);
}

.vs-editorial__media {
	position: relative;
}

.vs-editorial__media::before {
	content: '';
	position: absolute;
	inset: auto auto -18px -18px;
	width: 55%;
	height: 55%;
	border: 1px solid var(--vs-gold);
	z-index: -1;
}

.vs-editorial__img,
.vs-editorial__placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--vs-sand);
}

.vs-editorial__title {
	margin: var(--vs-2) 0 var(--vs-4);
	font-size: var(--vs-fs-h2);
}

.vs-editorial__copy {
	max-width: 100%;
	margin-bottom: var(--vs-5);
	color: var(--vs-ink-70);
	line-height: 1.8;
}

@media (max-width: 900px) {
	.vs-editorial__inner {
		grid-template-columns: 1fr;
	}

	.vs-editorial__media::before {
		display: none;
	}
}

/* ==========================================================================
   5. Shop by category band
   ========================================================================== */

.vs-sbc__list {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.75rem, 0.4rem + 1vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-sbc__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--vs-2);
	width: 150px;
	text-decoration: none;
}

.vs-sbc__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 125px;
	height: 125px;
	overflow: hidden;
	border: 1px solid var(--vs-line);
	border-radius: 50%;
	background: var(--vs-canvas);
	transition: border-color 0.24s var(--vs-ease), transform 0.24s var(--vs-ease);
}

.vs-sbc__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-sbc__item:hover .vs-sbc__media {
	border-color: var(--vs-ink);
	transform: translateY(-3px);
}

.vs-sbc__initial {
	font-family: var(--vs-font-display);
	font-size: 2rem;
	color: var(--vs-line-strong);
}

.vs-sbc__name {
	font-size: var(--vs-fs-md);
	letter-spacing: 0.06em;
	text-align: center;
	line-height: 1.35;
}

@media (max-width: 600px) {
	.vs-sbc__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: var(--vs-2);
	}

	.vs-sbc__list::-webkit-scrollbar {
		display: none;
	}

	.vs-sbc__item {
		flex: none;
		width: 86px;
	}

	.vs-sbc__media {
		width: 76px;
		height: 76px;
	}
}

/* ==========================================================================
   6. Trust strip — styles live in components.css
   --------------------------------------------------------------------------
   The strip also renders in the footer on every page, so it cannot depend on
   this stylesheet, which is only enqueued on the front page.
   ========================================================================== */

/* ==========================================================================
   7. Reviews
   ========================================================================== */

.vs-reviews__track {
	grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
	align-items: stretch;
}

.vs-review {
	display: flex;
	flex-direction: column;
	gap: var(--vs-3);
	padding: clamp(1.25rem, 1rem + 1vw, 2rem);
	border: 1px solid var(--vs-line);
	background: var(--vs-paper);
	list-style: none;
}

.vs-review__quote {
	color: var(--vs-gold);
	opacity: 0.5;
}

.vs-review__text {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--vs-font-display);
	font-size: 1.15rem;
	line-height: 1.5;
	color: var(--vs-ink);
}

.vs-review__meta {
	display: flex;
	flex-direction: column;
	gap: var(--vs-3);
	padding-top: var(--vs-3);
	border-top: 1px solid var(--vs-line);
}

.vs-review__author {
	font-size: var(--vs-fs-sm);
	font-weight: 500;
}

.vs-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: var(--vs-2);
	color: var(--vs-success);
	font-size: 0.625rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vs-review__product {
	display: flex;
	align-items: center;
	gap: var(--vs-3);
	text-decoration: none;
}

.vs-review__product img {
	width: 46px;
	height: 58px;
	object-fit: cover;
	background: var(--vs-sand);
}

.vs-review__product span {
	color: var(--vs-ink-50);
	font-size: var(--vs-fs-xs);
	line-height: 1.4;
}

@media (max-width: 1180px) {
	.vs-reviews__track {
		grid-auto-columns: calc((100% - 1.25rem) / 2);
	}
}

@media (max-width: 700px) {
	.vs-reviews__track {
		grid-auto-columns: 84%;
	}
}

/* ==========================================================================
   8. Instagram
   ========================================================================== */

.vs-insta__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-insta__tile {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--vs-sand);
}

.vs-insta__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--vs-ease);
}

.vs-insta__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(23, 19, 16, 0.42);
	color: var(--vs-paper);
	opacity: 0;
	transition: opacity 0.28s var(--vs-ease);
}

.vs-insta__tile:hover .vs-insta__img {
	transform: scale(1.06);
}

.vs-insta__tile:hover .vs-insta__overlay {
	opacity: 1;
}

@media (max-width: 900px) {
	.vs-insta__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   9. Newsletter band
   ========================================================================== */

.vs-news {
	background: var(--vs-sand);
}

.vs-news__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.vs-news--media .vs-news__inner {
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}

.vs-news__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.vs-news__text {
	max-width: 52ch;
}

.vs-news:not(.vs-news--media) .vs-news__text {
	margin-inline: auto;
	text-align: center;
}

.vs-news:not(.vs-news--media) .vs-head__eyebrow {
	justify-content: center;
}

.vs-news__title {
	margin: var(--vs-2) 0 var(--vs-3);
	font-size: var(--vs-fs-h2);
}

.vs-news__copy {
	margin-bottom: var(--vs-5);
	color: var(--vs-ink-70);
}

@media (max-width: 900px) {
	.vs-news--media .vs-news__inner {
		grid-template-columns: 1fr;
	}
}

.vs-sbc .vs-head__link, .vs-sbc .vs-head__eyebrow {
	display: none;
}
.vs-sbc .vs-head, .vs-sbc .vs-sbc__list {
	justify-content: center;
}
