/* =========================================================
   home.css — hero, categories, promo, services, signup
   ========================================================= */

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

.hero {
	position: relative;
	height: min(78vh, 720px);
	min-height: 460px;
	overflow: hidden;
	background: var(--ink);
}

.hero__track { height: 100%; }

.hero__slide {
	position: absolute;
	inset: 0;
	display: grid;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease;
}

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

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(16, 16, 19, .78) 0%,
		rgba(16, 16, 19, .5) 42%,
		rgba(16, 16, 19, .18) 68%,
		rgba(16, 16, 19, .1) 100%
	);
}

.hero__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--muted);
	background: var(--mist);
	font-size: 13px;
	text-align: center;
	line-height: 1.7;
}

.hero__copy {
	position: relative;
	z-index: 1;
	color: var(--paper);
	padding-block: 48px;
}

.hero__copy .hero__title {
	font-size: clamp(40px, 5.6vw, 76px);
	text-transform: uppercase;
	color: var(--paper);
	margin-bottom: 20px;
}

.hero__copy .hero__title em {
	color: var(--accent);
	font-style: italic;
}

.hero__copy .hero__text {
	max-width: 44ch;
	font-size: 17px;
	color: rgba(255, 255, 255, .78);
	margin: 0 0 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn--ghost-light {
	color: var(--paper);
	border-color: rgba(255, 255, 255, .4);
}

.btn--ghost-light:hover { border-color: var(--paper); }

/* ---------- controls ---------- */

.hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
	background: rgba(16, 16, 19, .35);
	color: var(--paper);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	transition: background-color .15s ease;
}

.hero__arrow:hover { background: rgba(16, 16, 19, .6); }
.hero__arrow--prev { left: var(--gutter); }
.hero__arrow--next { right: var(--gutter); }

.hero__dots {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 2;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.hero__dot.is-active {
	background: var(--paper);
	transform: scale(1.15);
}

/* ---------- categories ---------- */

.cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.cat a {
	display: block;
	padding: 20px;
	background: var(--mist);
	border-radius: var(--radius);
	transition: background-color .2s ease, transform .2s ease;
}

.cat a:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); }

.cat__media {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	margin-bottom: 18px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper);
}

.cat a:hover .cat__media { background: rgba(255, 255, 255, .1); }

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

.cat__name {
	display: block;
	font-family: var(--display);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.cat__count { display: block; font-size: 13px; color: inherit; opacity: .6; }

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

.promo {
	background: var(--ink);
	color: var(--paper);
}

.promo__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 56px;
	padding-block: var(--step);
}

.promo__title {
	font-size: clamp(32px, 4.4vw, 56px);
	text-transform: uppercase;
	margin-bottom: 18px;
}

.promo__text {
	max-width: 40ch;
	color: rgba(255, 255, 255, .72);
	margin: 0 0 30px;
}

.promo__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .06);
	overflow: hidden;
}

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

/* ---------- brand strip: sliding marquee, white logos on black ---------- */

.brands {
	padding-block: 40px;
	background: var(--ink);
}

.brands__label {
	margin: 0 0 22px;
	font-family: var(--display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
	text-align: center;
}

.brands__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands__track {
	display: flex;
	width: max-content;
	animation: brands-scroll 28s linear infinite;
}

.brands__viewport:hover .brands__track { animation-play-state: paused; }

@keyframes brands-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.brands__item {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 160px;
	height: 46px;
	padding-inline: 8px;
	opacity: .6;
	transition: opacity .2s ease;
}

.brands__item:hover { opacity: 1; }

.brands__item img {
	max-height: 28px;
	width: auto;
	object-fit: contain;
	/* Forces any logo — whatever its original colors — to render pure
	   white. brightness(0) crushes it to solid black, invert(1) flips
	   that to solid white. Works for any single-tone logo; a logo with
	   fine internal detail in multiple colors can lose that detail since
	   this ignores the source colors entirely. */
	filter: brightness(0) invert(1);
}

.brands__name {
	font-family: var(--display);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, .85);
}

@media (prefers-reduced-motion: reduce) {
	.brands__track { animation: none; }
}

/* ---------- ranked best sellers ---------- */

.ranked { position: relative; }
.ranked__num {
	position: absolute;
	top: -6px;
	left: -6px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	box-shadow: 0 4px 12px rgba(226, 58, 30, .35);
}

.ranked__sold {
	margin: 8px 0 0;
	font-family: var(--display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- services ---------- */
/* Moved to base.css: services.php is shared across the homepage and the
   product page, so its styles need to live in a stylesheet both pages
   actually load, not one that's homepage-only. */


/* ---------- testimonials: parallax slider ---------- */

.reviews {
	position: relative;
	overflow: hidden;
	padding-block: 100px;
	color: var(--paper);
}

/* Parallax layer: sized taller than the section and nudged via transform
   in JS as the page scrolls, so it moves slower than the foreground. Needs
   a real photo (testimonials-bg.jpg) to read as intentional — see fallback
   below for what happens without one. */
.reviews__bg {
	position: absolute;
	inset: -20% 0;
	z-index: 0;
	will-change: transform;
}

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

.reviews__bg[data-no-image] {
	background: linear-gradient(160deg, #1B2A5B 0%, var(--ink) 70%);
}

.reviews__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(16, 16, 19, .62);
}

.reviews__inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	text-align: center;
}

.reviews .eyebrow--light { display: block; }

.reviews__track { position: relative; min-height: 260px; }

.review {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .5s ease, transform .5s ease;
}

.review.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.review__mark {
	color: var(--accent);
	opacity: .9;
}

.review__mark .icon { width: 30px; height: 30px; }

.review__stars { display: flex; gap: 4px; color: rgba(255, 255, 255, .3); }

.review__quote {
	margin: 0;
	max-width: 54ch;
	font-family: var(--display);
	font-size: clamp(19px, 2.4vw, 26px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.review__who {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.review__avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	font-family: var(--display);
	font-size: 15px;
	font-weight: 800;
}

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

.review__who { text-align: left; }

.review__who strong {
	display: block;
	font-family: var(--display);
	font-size: 14.5px;
	letter-spacing: -0.01em;
}

.review__who em {
	display: block;
	font-size: 12.5px;
	font-style: normal;
	color: rgba(255, 255, 255, .6);
}

.reviews__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}

.reviews__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	color: var(--paper);
	font-size: 16px;
	cursor: pointer;
	transition: background-color .15s ease;
}

.reviews__arrow:hover { background: rgba(255, 255, 255, .18); }

.reviews__dots { display: flex; gap: 8px; }

.reviews__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.reviews__dot.is-active {
	background: var(--paper);
	transform: scale(1.2);
}



/* ---------- trends ---------- */

.trends {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.trend {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.trend:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(16, 16, 19, .1);
}

.trend__media {
	position: relative;
	display: grid;
	place-items: center;
	/* aspect-ratio: 16 / 10; */
	overflow: hidden;
	background: var(--mist);
}

.trend__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.trend:hover .trend__media img { transform: scale(1.05); }

.trend__placeholder { font-size: 12px; color: var(--muted); }

.trend__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 10px;
	border-radius: 2px;
	background: var(--paper);
	font-family: var(--display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.trend__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
}

.trend__title {
	font-size: 19px;
	letter-spacing: -0.01em;
}

.trend__text { margin: 0; font-size: 14.5px; color: var(--muted); }

.trend__more {
	margin-top: 6px;
	font-family: var(--display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

/* ---------- signup ---------- */

.signup { padding-block: var(--step); }

.signup__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}

.signup__title {
	font-size: clamp(26px, 3vw, 38px);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.signup__text { margin: 0; color: var(--muted); }

.signup__form { display: flex; gap: 10px; }

.signup__form input {
	flex: 1;
	padding: 15px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
}

.signup__form input::placeholder { color: var(--muted); }
.signup__form input:focus { border-color: var(--ink); outline: none; }

/* ---------- our partners: strip ---------- */


.partners {
	border-block: 1px solid var(--line);
	background: var(--ink);
}

.partners__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding-block: 26px;
}

.partners__label {
	position: relative;
	padding-right: 24px;
	font-family: var(--display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.partners__label::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 20px;
	background: var(--line);
	transform: translateY(-50%);
}

.partners__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
}

.partners__list a {
	font-family: var(--display);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--mist);
	transition: color .15s ease;
}

.partners__list a:hover { color: var(--accent); }
