/**
 * Homepage body sections: hero, trends scroller, split hero, brand
 * carousel, hype banner, magazine grid.
 */

/* ---------- Hero slideshow ---------- */

.tb-hero {
	background: var(--tb-white);
	padding-block-start: 24px;
}

.tb-hero__slideshow {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.tb-hero__slide {
	position: relative;
	display: block;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}

.tb-hero__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.tb-hero__slide:not(.is-active) {
	position: absolute;
	inset: 0;
}

.tb-hero__img {
	width: 100%;
	height: 56.7vw;
	max-height: 820px;
	min-height: 320px;
	object-fit: cover;
}

.tb-hero__content {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, min(1800px, 100% - 96px)) minmax(0, 1fr);
	align-items: center;
	pointer-events: none;
}

.tb-hero__heading {
	grid-column: 2;
	justify-self: start;
	max-width: 400px;
	font-family: var(--tb-font-display);
	font-size: 80px;
	line-height: 72px;
	letter-spacing: 2px;
	white-space: nowrap;
	color: var(--tb-hero-heading);
	text-transform: none;
}

@media (max-width: 767px) {
	.tb-hero__img {
		height: 133.4vw;
		max-height: none;
	}

	.tb-hero__heading {
		font-size: 44px;
		line-height: 42px;
		white-space: normal;
	}
}

/* ---------- THE TRENDS scroller ---------- */

.tb-trends {
	background: var(--tb-white);
	padding-block: 44px;
}

.tb-trends__inner {
	padding-inline: 60px;
}

.tb-trends__heading {
	font-family: var(--tb-font-display);
	font-size: 36px;
	line-height: 41.4px;
	font-weight: 800;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 24px;
}

.tb-trends__carousel {
	position: relative;
}

.tb-trends__scroll {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 8px 2px 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.65) rgba(0, 0, 0, 0.1);
}

.tb-trends__card {
	flex: 0 0 clamp(180px, 18vw, 320px);
	width: clamp(180px, 18vw, 320px);
	border: 1px solid var(--tb-border-soft);
	padding: 10px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	text-decoration: none;
	color: var(--tb-black);
	display: block;
}

.tb-trends__img {
	width: 100%;
	aspect-ratio: 700 / 900;
	object-fit: cover;
}

.tb-trends__label {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	line-height: 18.2px;
	font-weight: 800;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	text-align: center;
}

.tb-trends__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--tb-border-soft);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	color: var(--tb-text-nav);
}

.tb-trends__arrow--prev {
	left: 14px;
}

.tb-trends__arrow--next {
	right: 14px;
}

@media (max-width: 767px) {
	.tb-trends__inner {
		padding-inline: 20px;
	}

	.tb-trends__arrow {
		display: none;
	}
}

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

.tb-split-hero {
	background: var(--tb-dark-panel);
}

.tb-split-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.tb-split-hero__panel {
	position: relative;
	display: block;
	height: var(--tb-panel-height, 680px);
	overflow: hidden;
	text-decoration: none;
}

.tb-split-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-split-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.04) 100%);
}

.tb-split-hero--dark .tb-split-hero__scrim {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.04) 100%);
}

.tb-split-hero__content {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 42px;
	max-width: 520px;
	display: grid;
	gap: 8px;
}

.tb-split-hero__title {
	font-size: 54px;
	line-height: 51.3px;
	font-weight: 900;
	letter-spacing: -1.4px;
	text-transform: uppercase;
	color: var(--tb-white);
}

.tb-split-hero__subtext {
	font-size: 16px;
	line-height: 22.4px;
	font-weight: 600;
	color: var(--tb-white);
}

.tb-split-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 56px;
	padding-inline: 24px;
	border: 1px solid var(--tb-white);
	color: var(--tb-white);
	font-size: 15px;
	font-weight: 700;
	margin-top: 8px;
	width: fit-content;
	transition: background 0.2s ease, color 0.2s ease;
}

.tb-split-hero__panel:hover .tb-split-hero__cta {
	background: var(--tb-white);
	color: var(--tb-black);
}

@media (max-width: 767px) {
	.tb-split-hero__grid {
		grid-template-columns: 1fr;
	}

	.tb-split-hero__title {
		font-size: 34px;
		line-height: 34px;
	}
}

/* ---------- Brand logo carousel ---------- */

.tb-brand-carousel {
	background: var(--tb-white);
	padding-block: 24px;
}

.tb-brand-carousel__track {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
}

.tb-brand-carousel__items {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	height: 100%;
	width: 100%;
	max-width: 900px;
}

.tb-brand-carousel__item {
	flex: 0 0 auto;
	width: 150px;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
	transform: scale(0.78);
	transition: transform 0.45s ease, opacity 0.35s ease;
}

.tb-brand-carousel__item.is-active {
	opacity: 1;
	transform: scale(1.08);
}

.tb-brand-carousel__logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(rgba(0, 0, 0, 0.18) 0 14px 18px);
}

.tb-brand-carousel__arrow {
	position: relative;
	z-index: 5;
	width: 42px;
	height: 42px;
	border-radius: var(--tb-radius-pill);
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tb-black);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	flex-shrink: 0;
	margin-inline: 16px;
}

@media (max-width: 767px) {
	.tb-brand-carousel__items {
		gap: 8px;
	}

	.tb-brand-carousel__item {
		width: 90px;
		height: 90px;
	}
}

/* ---------- Hype banner ---------- */

.tb-hype {
	background: var(--tb-off-white);
	padding-block: 10px;
}

.tb-hype__slide {
	position: relative;
	display: block;
	text-decoration: none;
}

.tb-hype__img {
	width: 100%;
	height: auto;
	display: block;
}

.tb-hype__heading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--tb-font-display);
	font-size: 80px;
	line-height: 80px;
	letter-spacing: 2px;
	color: var(--tb-white);
	text-align: center;
	text-transform: none;
}

@media (max-width: 767px) {
	.tb-hype__heading {
		font-size: 36px;
		line-height: 36px;
	}
}

/* ---------- Magazine grid ---------- */

.tb-magazine {
	background: linear-gradient(var(--tb-maroon-dark) 0%, var(--tb-maroon-dark) 49%, var(--tb-white) 49%, var(--tb-white) 100%);
	padding-block: 24px 44px;
}

.tb-magazine__container {
	max-width: 1600px;
	margin-inline: auto;
	padding-inline: 16px;
}

.tb-magazine__heading {
	font-family: var(--tb-font-sans);
	font-weight: 900;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--tb-white);
	font-size: 26px;
	line-height: 28.6px;
	text-align: center;
	margin-bottom: 30px;
}

.tb-magazine__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: stretch;
}

.tb-magazine__card {
	border-radius: 30px;
	background: var(--tb-card-bg);
	border: 1px solid var(--tb-border-hair);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
	overflow: hidden;
}

.tb-magazine__img-link {
	display: block;
}

.tb-magazine__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tb-magazine__body {
	padding: 24px 18px 20px;
	min-height: 180px;
}

.tb-magazine__meta {
	font-size: 12px;
	line-height: 15.6px;
	color: var(--tb-text-nav);
	opacity: 0.7;
	margin-bottom: 8px;
}

.tb-magazine__title {
	font-size: 23px;
	line-height: 25.3px;
	font-weight: 800;
	letter-spacing: -0.46px;
	color: var(--tb-text-nav);
	margin-bottom: 14px;
}

.tb-magazine__title a {
	color: inherit;
	text-decoration: none;
}

.tb-magazine__read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	color: var(--tb-text-nav);
	text-decoration: none;
}

.tb-magazine__footer {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.tb-btn--magazine {
	background: var(--tb-near-black);
	color: var(--tb-white);
	min-width: 180px;
	min-height: 54px;
	padding: 14px 34px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.56px;
	text-transform: uppercase;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 989px) {
	.tb-magazine__grid {
		grid-template-columns: 1fr;
	}
}
