/* --------------------------------------------------------------------------
   Homepage — Figma "Dosh-web"
   Sections: hero, marquee, flavors, news.
   Engineered / testimonial / small pouch, headings, leaf pattern and the
   "They tried" gallery: sections.css (shared with the About page).
   -------------------------------------------------------------------------- */

.ap-home {
	overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ap-hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Fill the visible viewport below the top bar. */
	min-height: calc(100vh - var(--ap-topbar-h));
	min-height: calc(100svh - var(--ap-topbar-h));
	background: var(--ap-black);
	color: var(--ap-white);
	overflow: hidden;
}

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

.ap-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.ap-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: var(--header-height);
	padding-bottom: clamp(30px, 6vh, 60px);
}

.ap-hero__content {
	max-width: min(877px, 46vw);
}

.ap-hero__title {
	margin: 0;
	color: var(--ap-white);
	font-weight: 500;
	font-size: clamp(48px, min(4.45vw, 8.5vh), 88px);
	line-height: 1.16;
}

.ap-hero__lead {
	margin: clamp(20px, 1.5vw, 30px) 0 0;
	font-size: clamp(20px, 1.42vw, 28px);
	line-height: 1.5;
}

.ap-hero__lead strong {
	font-weight: 600;
}

.ap-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 510px;
	margin: 25px 0 0;
	padding: 25px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.7);
	list-style: none;
}

.ap-hero__stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.ap-hero__stats strong {
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
}

.ap-hero__stats span {
	font-weight: 500;
	font-size: 12px;
	line-height: 1.3;
}

.ap-hero__btn {
	margin-top: clamp(25px, 4.5vh, 45px);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.ap-marquee {
	display: flex;
	align-items: center;
	height: 110px;
	background: var(--ap-black);
	overflow: hidden;
}

.ap-marquee__track {
	display: flex;
	width: max-content;
	animation: ap-marquee 35s linear infinite;
}

.ap-marquee__list {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-marquee__item {
	display: flex;
	align-items: center;
	gap: 37px;
	padding-right: 37px;
	color: var(--ap-white);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 40px;
	line-height: 1;
	white-space: nowrap;
}

.ap-marquee__leaf {
	width: auto;
	height: 44px;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   What's new with us (latest posts)
   -------------------------------------------------------------------------- */
.ap-news {
	padding: 100px 0;
	background: var(--ap-bg-soft);
}

.ap-news__title {
	margin: 0 0 50px;
	font-weight: 600;
	font-size: 40px;
	line-height: 1.3;
	text-align: center;
}

.ap-news__slider .swiper-slide {
	height: auto;
}

.ap-post-card__media {
	display: block;
	height: 220px;
	border-radius: 20px;
	background: var(--ap-border-light);
	overflow: hidden;
}

.ap-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ap-post-card__media:hover img {
	transform: scale(1.04);
}

.ap-post-card__meta {
	margin: 20px 0 0;
	color: #777;
	font-family: var(--font-heading);
	font-size: 13px;
	line-height: 1.4;
}

.ap-post-card__title {
	margin: 10px 0 0;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.4;
}

.ap-post-card__title a:hover {
	color: var(--ap-pink);
}

.ap-post-card__excerpt {
	margin: 10px 0 0;
	color: var(--ap-text-muted);
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
	.ap-marquee {
		height: 90px;
	}

	.ap-marquee__item {
		gap: 28px;
		padding-right: 28px;
		font-size: 32px;
	}

	.ap-marquee__leaf {
		height: 36px;
	}

	.ap-news {
		padding: 90px 0;
	}
}

@media (max-width: 767px) {
	/* Hero: text on black, packshot below */
	.ap-hero {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		text-align: center;
	}

	.ap-hero__media {
		position: relative;
		order: 2;
		margin-top: -10px;
	}

	/* Blend the packshot into the black text area */
	.ap-hero__media::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 30%;
		background: linear-gradient(180deg, var(--ap-black), rgba(11, 3, 5, 0));
		pointer-events: none;
	}

	.ap-hero__media img {
		height: auto;
		aspect-ratio: 1;
	}

	.ap-hero__inner {
		padding-top: calc(var(--header-height) + 30px);
		padding-bottom: 0;
	}

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

	.ap-hero__title {
		font-size: 52px;
		line-height: 1.12;
	}

	.ap-hero__lead {
		margin-top: 15px;
		font-size: 21px;
		line-height: 1.6;
	}

	.ap-hero__stats {
		max-width: none;
		margin-top: 20px;
		padding-top: 20px;
	}

	.ap-hero__stats strong {
		font-size: 18px;
	}

	.ap-hero__stats span {
		font-size: 10px;
	}

	.ap-hero__btn {
		display: flex;
		width: 100%;
		height: 54px;
		margin-top: 35px;
		border-radius: 27px;
		font-size: 18px;
	}

	/* Marquee */
	.ap-marquee {
		height: 100px;
	}

	.ap-marquee__item {
		gap: 24px;
		padding-right: 24px;
		font-size: 24px;
	}

	.ap-marquee__leaf {
		height: 32px;
	}

	.ap-news {
		padding: 70px 0;
	}

	.ap-news__title {
		margin-bottom: 35px;
		font-size: 32px;
	}

	.ap-post-card__title {
		font-size: 22px;
		line-height: 1.15;
	}
}

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