/* ==========================================================================
   Homepage sections
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------
   Full-bleed photo with a translucent headline panel sitting low-left, the
   single green CTA beneath it and the trust-badge strip under that.
   ---------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Full viewport height, per the brief. `svh` keeps mobile browser chrome
	   from cropping it; `vh` is the fallback for engines without it. */
	min-height: 100vh;
	min-height: 100svh;
	padding-top: var(--header-h);
	padding-bottom: var(--header-h);
	overflow: hidden;
	background: var(--c-dark);
	isolation: isolate;
}



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

.hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero__inner {
	position: relative;
}

.hero__panel {
	max-width: 560px;
	margin-bottom: var(--s-5);
	padding: var(--s-5) var(--s-6);
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(7px);
	border-radius: var(--r-md);
}

.hero__title {
	margin: 0;
	color: var(--c-ink);
	font-size: clamp(1.375rem, 1.05rem + 1.05vw, 1.875rem);
	line-height: 1.02;
	letter-spacing: normal;
	text-wrap: pretty;
}

.hero__actions {
	margin-bottom: var(--s-5);
}

.hero__actions .btn {
	/* Measured off live's hero: a 216x39 pill, where ours was 241x36 — narrower
	   sides and a little more height. */
	min-height: 39px;
	padding: 10px 20px;
}

.hero__badges-img {
	width: auto;
	max-width: min(100%, 340px);
	height: auto;
}

/* --- Trust band ----------------------------------------------------------- */

.trust {
	background: var(--c-dark);
}

/* The live band stacks to a single column below the desktop breakpoint. */
.trust .grid--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 1025px) {
	/* Measured off the live band: three 397px cards, 29px apart, in a 1249px
	   column centred in the viewport. */
	.trust .grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 1249px;
		margin-inline: auto;
		gap: var(--s-6);
	}
}

.trust__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--card-pad);
	background: var(--c-white);
	border-radius: 18px;
}

.trust__title {
	margin-bottom: var(--s-4);
	/* Measured off the live card: 25px on a 27px line, no negative tracking. */
	font-size: clamp(1.25rem, 1.0rem + 0.9vw, 1.5625rem);
	line-height: 1.08;
	letter-spacing: normal;
}

.trust__text {
	margin-bottom: var(--s-6);
	color: var(--c-body);
	/* Measured: 16px on a 25px line. */
	font-size: var(--fs-body);
	line-height: 1.55;
}

.trust__cta {
	/* Label and chevron read as one centred group on the live cards, not
	   pinned to opposite edges. */
	justify-content: center;
	gap: var(--s-6);
	min-height: 30px;
	margin-top: auto;
	padding-block: 4px;
}

/* --- Most Popular Peptides ------------------------------------------------- */

.popular {
	background: var(--c-surface-alt);
	/* The track scrolls internally; `clip` stops its overflow contributing to
	   the document's scroll width without creating a second scroll container. */
	overflow-x: clip;
}

.popular__title {
	margin-bottom: var(--s-7);
	font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
}

/* --- Carousel --------------------------------------------------------------
   A scroll-snap track rather than a slider library: no dependency, keyboard
   and touch both work, and it degrades to a plain scroller without JS.
   ------------------------------------------------------------------------ */

.carousel {
	position: relative;
}

ul.products.carousel__track,
.carousel__track {
	/* Flex, not grid: a percentage `grid-auto-columns` resolves against free
	   space rather than the container here, collapsing every slide to ~50px. */
	display: flex;
	grid-template-columns: none;
	gap: var(--s-5);
	margin: 0;
	padding: 0 0 var(--s-2);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	list-style: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

ul.products.carousel__track > li.product,
.carousel__track > li.product {
	flex: 0 0 calc(100% - var(--s-6));
	scroll-snap-align: start;
	margin: 0;
}

@media (min-width: 600px) {
	ul.products.carousel__track > li.product,
	.carousel__track > li.product {
		flex-basis: calc(50% - var(--s-4));
	}
}

@media (min-width: 1025px) {
	/* The live carousel shows three cards per view, 25px apart. */
	ul.products.carousel__track,
	.carousel__track {
		gap: var(--s-5);
	}

	ul.products.carousel__track > li.product,
	.carousel__track > li.product {
		flex-basis: calc(33.3333% - 17px);
	}
}

.carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	color: var(--c-muted);
	transform: translateY(-50%);
	transition: color var(--t-fast);
}

.carousel__nav:hover {
	color: var(--c-ink);
}

.carousel__nav:disabled {
	opacity: 0.25;
	cursor: default;
}

@media (min-width: 768px) {
	.carousel__nav {
		display: inline-flex;
	}
}

.carousel__nav--prev {
	/* Sits inside the container gutter at every breakpoint, so the buttons
	   never push past the viewport edge and create horizontal scroll. */
	left: calc(var(--gutter) * -1 + 4px);
	transform: translateY(-50%) rotate(90deg);
}

.carousel__nav--next {
	right: calc(var(--gutter) * -1 + 4px);
	transform: translateY(-50%) rotate(-90deg);
}

.carousel__dots {
	display: flex;
	justify-content: center;
	gap: var(--s-2);
	margin-top: var(--s-5);
}

.carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: var(--c-line);
	border: 0;
	border-radius: var(--r-pill);
	transition: background var(--t-fast), transform var(--t-fast);
}

.carousel__dot.is-active {
	background: var(--c-green-cart);
	transform: scale(1.15);
}

/* --- FAQ ------------------------------------------------------------------- */

.faq-section {
	background: var(--c-white);
}

.faq-section .section-head {
	max-width: none;
	margin-inline: 0;
	text-align: left;
}

.faq-section .section-head__title {
	font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
}

.faq-section .section-head__lead {
	max-width: none;
	color: var(--c-body);
	font-size: var(--fs-body);
}

/* --- Closing CTA ------------------------------------------------------------ */

.cta-band {
	background: var(--c-white);
	text-align: center;
}

.cta-band__title {
	margin-bottom: var(--s-3);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}

.cta-band__text {
	margin: 0;
	color: var(--c-body);
}
