/**
 * Feature Cards 5 Component Styles
 * Figma reference: Home - Desktop Feature cards 5 and Mobile
 * Complex component with stats, testimonial cards, categories, screenshot, and download buttons
 */

.section-why-word-swag {
	width: 100%;
	background: var(--color-bg-white);
	position: relative;
	padding: 0;
	margin: 0;
	/* No overflow: hidden - would clip carousel nav buttons that extend via translateX */
}

.section-why-word-swag__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	position: relative;
	padding: 0 32px 110px 32px; /* Match social media: 32px sides for carousel nav buttons */
}

/* Heading: Why Word Swag? */
.section-why-word-swag__heading {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: 110px 32px 0 32px; /* padding-top like social media - margin collapses */
	/* Typography handled by .typog-h2 */
	text-align: center;
}

/* Stats Section: Frame 405 */
.section-why-word-swag__stats {
	width: 100%;
	max-width: 932px;
	margin: 48px auto 0;
	padding: 0 32px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
}

.stats-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.stats-number {
	/* Typography handled by .text-stats-number */
	margin-bottom: 0;
	text-align: center;
}

.stats-label {
	/* Typography handled by .text-stats-label */
	margin-top: 0;
	text-align: center;
}

/* Testimonial Cards */
.section-why-word-swag__cards-wrapper {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 92px auto 0;
	display: flex;
	align-items: center;
}

.section-why-word-swag__cards {
	width: 100%; /* Constrain scroll area so overflow works when viewport narrower than cards */
	flex: 0 1 auto;
	display: flex;
	justify-content: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	/* Hide scrollbar on desktop */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.section-why-word-swag__cards::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.section-why-word-swag__cards-container {
	display: flex;
	flex-direction: row;
	align-items: stretch; /* Equal height cards */
	gap: 12px;
	padding-bottom: 16px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

/* Navigation Buttons */
.section-why-word-swag__carousel-btn {
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
	position: absolute;
	z-index: 10;
}

.section-why-word-swag__carousel-btn:first-child {
	left: 0;
	transform: translateX(-50%);
}

.section-why-word-swag__carousel-btn:last-child {
	right: 0;
	transform: translateX(50%);
}

.section-why-word-swag__carousel-btn:hover:not(.is-disabled) {
	opacity: 0.8;
}

.section-why-word-swag__carousel-btn.is-disabled {
	display: none;
}

.section-why-word-swag__carousel-btn img {
	width: 100%;
	height: 100%;
	display: block;
}

.testimonial-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 32px;
	gap: 32px;
	width: 380px;
	min-width: 300px;
	max-width: 380px;
	min-height: 217px; /* ~2 lines + author, allow expansion for full content */
	background: var(--color-bg-white);
	border: 1px solid var(--color-border-light);
	box-shadow: 0px 4px 8px var(--color-shadow-light), 0px 12px 32px var(--color-shadow-dark);
	border-radius: 16px;
	flex: 0 0 auto;
}

.testimonial-card:nth-child(3) {
	padding: 34px 32px;
}

.testimonial-text {
	width: 100%;
	max-width: 324px;
	/* Typography handled by .text-body */
	margin: 0;
	flex: none;
	align-self: stretch;
	overflow-wrap: break-word;
}

.testimonial-author {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0;
	gap: 16px;
	width: 324px;
	height: 63px;
	flex: none;
	align-self: stretch;
}

.author-image {
	width: 48px;
	height: 48px;
	background: var(--color-bg-light-gray);
	border-radius: 8px;
	flex: none;
}

.author-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.author-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	gap: 2px;
	width: 260px;
	height: 63px;
	flex: 1;
}

.author-name {
	width: 260px;
	height: 32px;
	/* Typography handled by .text-subtitle-bold */
	display: flex;
	align-items: center;
}

.author-title {
	width: 260px;
	/* Typography handled by .text-body */
	line-height: 1rem !important; /* Override text-body line-height */
	color: var(--color-text-muted);
	display: flex;
	align-items: center;
}

/* Category Sections + Secondary Heading */
.section-why-word-swag__categories {
	width: 100%;
	max-width: 1040px;
	margin: 115px auto 0;
	padding: 0 32px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section-why-word-swag__heading-secondary {
	width: 100%;
	max-width: 880px;
	margin: 0 auto 85px;
	/* Typography handled by .typog-h2 */
	text-align: center;
}

.section-why-word-swag__categories-items {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 32px;
	width: 100%;
}

.category-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 295px;
	flex: 1;
}

.category-icon {
	width: 112px;
	height: 98px;
	margin-bottom: 16px;
	flex-shrink: 0;
}

.category-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.category-title {
	width: 100%;
	/* Typography handled by .text-subtitle-bold */
	display: block;
	text-align: center;
	margin: 0 0 8px 0;
}

.category-description {
	width: 100%;
	max-width: 331px;
	/* Typography handled by .text-body */
	display: flex;
	align-items: center;
	text-align: center;
	margin: 0;
}

/* Feature Grid Section: Group 449 */
/* Grid styles are now in grid-items.css (reusable component) */
.section-why-word-swag__grid {
	margin-top: 115px;
	margin-left: 80px;
	margin-right: 80px;
}

.section-why-word-swag__grid .grid-items {
	margin-top: 0;
}

/* Download Buttons: Group 432 (at bottom) */
.section-why-word-swag__downloads {
	width: 100%;
	max-width: 1280px;
	margin: 120px auto 0;
	padding: 0 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.section-why-word-swag__downloads .download-buttons-group {
	display: flex;
	justify-content: center;
	align-items: center;
}

.section-why-word-swag__downloads .primary-button--app-store {
	width: 206px;
	height: 68.67px;
	background: none;
	border: none;
	border-radius: 12.875px;
}

.section-why-word-swag__downloads .primary-button--ratings {
	width: 125.37px;
	height: 69px;
}

.section-why-word-swag__cta-button {
	width: 343px;
	height: 50px;
	margin-top: 16px;
	background: var(--color-purple);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Typography handled by .text-button */
	text-decoration: none;
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.section-why-word-swag__cta-button:hover {
	background: var(--color-purple-hover);
	color: var(--color-white);
	text-decoration: none;
}

.section-why-word-swag__cta-button:active {
	background: var(--color-purple-active);
	color: var(--color-white);
	text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 1023px) {
	.section-why-word-swag {
		width: 100%;
		margin: 0;
		overflow-x: hidden; /* Contain full-bleed carousel (100vw) */
	}
	
	.section-why-word-swag__inner {
		max-width: 375px;
		padding: 0 24px 100px 24px; /* Match social media mobile */
	}
	
	.section-why-word-swag__heading {
		max-width: 100%;
		margin: 0 auto;
		padding: 64px 16px 0 16px; /* padding-top like social media */
		/* Typography responsive handled by .typog-h2 */
		text-align: center;
	}
	
	.section-why-word-swag__stats {
		width: 100%;
		max-width: 362px;
		margin: 32px auto 0;
		flex-direction: column;
		gap: 32px;
		align-items: center;
	}
	
	.stats-item {
		width: 100%;
		align-items: center;
	}
	
	.stats-number {
		/* Typography responsive handled by .text-stats-number */
		text-align: center;
		margin-bottom: 8px;
	}
	
	.stats-label {
		/* Typography responsive handled by .text-stats-label */
		width: 100%;
		max-width: 334px;
		margin-top: 8px;
		text-align: center;
	}
	
	/* Full-bleed carousel track; gutter lives on cards-container only */
	.section-why-word-swag__cards-wrapper {
		margin-top: 80px;
		padding: 0;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
		max-width: 100vw;
	}

	.section-why-word-swag__carousel-btn {
		display: none !important; /* Hide navigation buttons on mobile */
	}

	.section-why-word-swag__cards {
		width: 100%;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE and Edge */
	}

	.section-why-word-swag__cards::-webkit-scrollbar {
		display: none; /* Chrome, Safari, Opera */
	}

	.section-why-word-swag__cards-container {
		gap: 19px;
		padding-left: 24px;
		padding-right: 24px;
		margin: 0;
		max-width: none;
	}
	
	.testimonial-card {
		width: 388px;
		min-width: 327px;
		max-width: 327px;
		min-height: 188px; /* Allow expansion for full content */
	}
	
	.testimonial-card:nth-child(3) {
		min-height: 170px;
	}
	
	.testimonial-text {
		width: 100%;
		max-width: 100%;
		/* Typography responsive handled by .text-body */
		overflow-wrap: break-word;
	}
	
	.testimonial-author {
		width: 100%;
		max-width: 100%;
		align-items: flex-start; /* Prevent vertical squeeze when content wraps */
	}
	
	.author-text {
		width: 100%;
		min-width: 0;
		height: auto; /* Override base height: 63px */
		gap: 8px; /* Fixed gap - consistent regardless of wrap */
		align-items: flex-start;
	}
	
	.author-name {
		width: 100%;
		min-width: 0;
		height: auto; /* Override base height: 32px */
		display: block;
		margin: 0;
		/* Typography responsive handled by .text-subtitle-bold */
	}
	
	.author-title {
		width: 100%;
		min-width: 0;
		height: auto; /* Override base height: 29px */
		display: block;
		margin: 0;
		padding: 0;
		/* Typography responsive handled by .text-body */
		line-height: 1rem !important;
		overflow-wrap: break-word;
	}
	
	.section-why-word-swag__categories {
		max-width: 100%;
		margin-top: 105px;
		padding: 0 24px;
		align-items: stretch;
	}
	
	.section-why-word-swag__heading-secondary {
		width: 100%;
		max-width: 100%;
		margin: 0 auto 52px;
		/* Typography responsive handled by .typog-h2 */
		text-align: center;
	}
	
	.section-why-word-swag__categories-items {
		flex-direction: column;
		gap: 32px;
	}
	
	.category-item {
		max-width: none;
		width: 100%;
	}
	
	.category-icon {
		width: 83.43px;
		height: 73px;
	}
	
	.category-title {
		width: 100%;
		height: 23px;
		/* Typography responsive handled by .text-subtitle-bold */
	}
	
	.category-description {
		width: 100%;
		max-width: none;
		/* Typography responsive handled by .text-body */
	}
	
	.section-why-word-swag__grid {
		margin-top: 80px;
		margin-left: 24px; /* Match mobile padding */
		margin-right: 24px;
	}
	
	.section-why-word-swag__grid .grid-items {
		margin-top: 0;
	}
	
	.section-why-word-swag__downloads {
		margin-top: 60px;
		padding: 0 24px;
	}
	
	.section-why-word-swag__downloads .download-buttons-group {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.section-why-word-swag__downloads .primary-button--app-store {
		width: 183.04px;
		height: 61.01px;
		border-radius: 11.44px;
		border: none;
		background: none;
	}
	
	.section-why-word-swag__downloads .primary-button--ratings {
		width: 111.35px;
		height: 61px;
	}
	
	.section-why-word-swag__cta-button {
		width: 312px;
		height: 49px;
		margin-top: 16px;
		font-size: 12px;
		line-height: 145%;
	}
}

