/* --------------------------------------------------------------------------
   Sections shared by the homepage and product page — Figma "Dosh-web":
   section headings with the pink chip + arc, faint leaf pattern,
   "They tried — and loved it" gallery.
   -------------------------------------------------------------------------- */
.ap-section-title {
	margin: 0;
	color: var(--ap-black);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 64px;
	line-height: 1.2;
}

.ap-heading-deco {
	position: relative;
	display: grid;
	justify-items: start;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 65px;
}

.ap-heading-deco .ap-chip {
	margin-bottom: 4px;
}

.ap-heading-deco__arc {
	position: absolute;
	top: 13px;
	right: 100%;
	width: 37px;
	height: auto;
	margin-right: 4px;
	pointer-events: none;
}

.ap-heading-deco--below {
	justify-items: end;
}

.ap-heading-deco--below .ap-chip {
	margin: 2px 0 0;
}

.ap-heading-deco--below .ap-heading-deco__arc {
	top: 38px;
	right: auto;
	left: 100%;
	margin: 0 0 0 4px;
	transform: scaleX(-1);
}

/* Faint leaf pattern fading to white */
.ap-pattern {
	background-color: var(--ap-white);
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0) 0, var(--ap-white) 55%),
		url("../img/leaf-pattern.svg?v=3");
	background-repeat: no-repeat, repeat;
	background-size: 100% 100%, 176px 156px;
}

/* The Flavors product slider (homepage + Info Section With Products pages) */
.ap-flavors {
	padding: 110px 0 100px;
	overflow: hidden;
}

.ap-flavors__slider {
	overflow: visible;
}

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

/* They tried — and loved it (infinite gallery) */
.ap-tried {
	padding: 110px 0 100px;
	overflow: hidden;
}

.ap-tried .ap-heading-deco {
	margin-bottom: 45px;
}

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

.ap-tried__gallery:hover .ap-tried__track {
	animation-play-state: paused;
}

.ap-tried__list {
	display: flex;
	flex-shrink: 0;
	gap: 30px;
	margin: 0;
	padding: 0 30px 0 0;
	list-style: none;
}

.ap-tried__item {
	width: 347px;
}

.ap-tried__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 347 / 428;
	border-radius: 20px;
	object-fit: cover;
}

@keyframes ap-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 1199px) {
	.ap-section-title {
		font-size: 48px;
	}

	.ap-flavors {
		padding: 90px 0 80px;
	}

	.ap-tried {
		padding: 90px 0 80px;
	}
}

@media (max-width: 991px) {
	.ap-tried__item {
		width: 260px;
	}
}

@media (max-width: 767px) {
	.ap-section-title {
		font-size: 44px;
	}

	.ap-heading-deco {
		margin-bottom: 40px;
	}

	.ap-heading-deco__arc {
		width: 30px;
	}

	.ap-heading-deco--below .ap-heading-deco__arc {
		top: 30px;
	}

	.ap-flavors {
		padding: 60px 0;
	}

	.ap-tried {
		padding: 60px 0;
	}

	.ap-tried__list {
		gap: 20px;
		padding-right: 20px;
	}

	.ap-tried__item {
		width: 190px;
	}
}

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

	.ap-tried__gallery {
		overflow-x: auto;
	}
}

/* --------------------------------------------------------------------------
   Shared content sections (homepage + About page)
   -------------------------------------------------------------------------- */
.ap-about {
	overflow-x: clip;
}

/* Two-column text + media layout (engineered / small pouch) */
.ap-split {
	display: grid;
	align-items: center;
}

.ap-split__text {
	min-width: 0;
}

.ap-split__title {
	max-width: 599px;
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 64px;
	line-height: 0.9;
	letter-spacing: -0.5px;
}

.ap-split__title .ap-accent {
	display: block;
}

.ap-split__body {
	max-width: 360px;
	margin: 25px 0 35px;
	color: var(--ap-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.35;
}

.ap-split__body strong {
	color: var(--ap-black);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Engineered smaller
   -------------------------------------------------------------------------- */
.ap-engineered {
	padding: 150px 0;
	background: var(--ap-bg-soft);
}

/* First section on the About page: sits right under the header */
.ap-engineered--hero {
	padding: 40px 0 100px;
}

.ap-engineered .ap-split {
	grid-template-columns: 728fr 598fr;
	column-gap: clamp(40px, 10.4%, 154px);
}

.ap-engineered__media {
	margin: 0;
}

/* Composite exported from Figma (photos, pink block, 0.1 mm mark, leaf outline). */
.ap-engineered__img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.ap-testimonial {
	padding: 70px 0 110px;
	text-align: center;
}

.ap-testimonial .ap-rating {
	margin-top: 20px;
}

.ap-testimonial__quote {
	max-width: 976px;
	margin: 30px auto 0;
	color: var(--ap-navy);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 40px;
	line-height: 1.5;
	transition: opacity 0.4s ease;
}

/* --------------------------------------------------------------------------
   Small pouch, big experience
   -------------------------------------------------------------------------- */
.ap-small-pouch {
	padding: 100px 0;
	background: var(--ap-black);
}

.ap-small-pouch .ap-split {
	grid-template-columns: 755fr 725fr;
}

.ap-small-pouch .ap-split__title {
	color: var(--ap-white);
}

.ap-small-pouch .ap-split__body {
	color: var(--ap-text-light);
}

.ap-small-pouch .ap-split__body strong {
	color: var(--ap-white);
}

.ap-small-pouch__media {
	margin: 0;
}

/* Composite exported from Figma (photo, pink block, leaves). */
.ap-small-pouch__img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 1599px) {
	.ap-split__title {
		font-size: 56px;
	}
}

@media (max-width: 1199px) {
	.ap-split__title {
		font-size: 48px;
	}

	.ap-engineered {
		padding: 100px 0;
	}

	.ap-engineered--hero {
		padding: 40px 0 80px;
	}

	.ap-small-pouch {
		padding: 90px 0;
	}

	.ap-small-pouch .ap-split {
		column-gap: 40px;
	}

	.ap-testimonial__quote {
		font-size: 34px;
	}
}

@media (max-width: 991px) {
	.ap-split,
	.ap-engineered .ap-split,
	.ap-small-pouch .ap-split {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 50px;
	}

	.ap-small-pouch__media {
		order: -1;
	}

	.ap-split__body {
		max-width: 560px;
	}
}

@media (max-width: 767px) {
	.ap-split__title {
		font-size: 36px;
		line-height: 0.95;
	}

	.ap-split__body {
		margin: 20px 0 30px;
	}

	.ap-split .ap-btn {
		display: flex;
		width: 100%;
		height: 54px;
		border-radius: 27px;
		font-size: 18px;
	}

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

	.ap-engineered--hero {
		padding: 30px 0 60px;
	}

	.ap-split,
	.ap-engineered .ap-split,
	.ap-small-pouch .ap-split {
		row-gap: 40px;
	}

	.ap-small-pouch {
		padding: 70px 0;
	}

	.ap-testimonial {
		padding: 50px 0 70px;
	}

	.ap-testimonial__quote {
		color: var(--ap-black);
		font-size: 34px;
		line-height: 1.45;
	}
}
