/**
 * We The People Patriots — front page sections (uses wtp-global.css variables).
 */

body.wtp-front-page {
	background: var(--wtp-paper);
}

.wtp-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wtp-page #wtp-main {
	flex: 1;
}

.wtp-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-family: var(--wtp-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wtp-btn--primary {
	color: var(--wtp-btn-primary-text);
	background: var(--wtp-btn-primary-bg);
}

.wtp-btn--primary:hover,
.wtp-btn--primary:focus {
	color: var(--wtp-btn-primary-text);
	background: var(--wtp-navy-hover);
	transform: translateY(-1px);
}

.wtp-btn--ghost {
	color: var(--wtp-on-navy);
	border: 2px solid rgba(255, 255, 255, 0.65);
	background: transparent;
}

.wtp-btn--ghost:hover,
.wtp-btn--ghost:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.wtp-hero {
	position: relative;
	padding: 4.5rem 1.25rem 5rem;
	text-align: center;
	background: var(--wtp-navy) center / cover no-repeat;
	border-bottom: 3px solid var(--wtp-accent);
}

html[data-theme="light"] .wtp-hero {
	background-image: linear-gradient(135deg, #0f2340 0%, #1a3a5c 100%);
}

html[data-theme="dark"] .wtp-hero {
	background-image: linear-gradient(135deg, #0a1628 0%, #1e2430 100%);
}

.wtp-hero__overlay {
	display: none;
}

.wtp-hero__content {
	position: relative;
	z-index: 1;
	max-width: 42rem;
	margin: 0 auto;
}

.wtp-hero__badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wtp-navy);
	background: #f4f3f0;
	border-radius: 2px;
}

html[data-theme="dark"] .wtp-hero__badge {
	color: #0f2340;
}

.wtp-hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	line-height: 1.05;
	color: #fff;
	text-transform: uppercase;
}

.wtp-hero__tagline {
	max-width: 36rem;
	margin: 0 auto 1.75rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.wtp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;
}

.wtp-hero__actions .wtp-btn--primary {
	background: var(--wtp-accent);
}

.wtp-hero__actions .wtp-btn--primary:hover {
	background: var(--wtp-accent-hover);
}

.wtp-collections {
	padding: 2.5rem 1.25rem;
	background: var(--wtp-paper);
}

.wtp-collections__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	max-width: 1170px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

.wtp-collections__tile {
	display: block;
	padding: 2rem 1rem;
	text-align: center;
	text-decoration: none;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-stroke);
	border-radius: 8px;
	color: var(--wtp-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wtp-collections__tile:hover {
	border-color: var(--wtp-navy);
	box-shadow: var(--wtp-shadow);
}

.wtp-collections__tile strong {
	display: block;
	font-family: var(--wtp-font-heading);
	font-size: 1.15rem;
	text-transform: uppercase;
}

.wtp-collections__tile span {
	font-size: 0.85rem;
	color: var(--wtp-muted);
}

.wtp-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 2rem max(1.25rem, calc(50vw - 585px));
	box-sizing: border-box;
	background-color: var(--wtp-trust-bg) !important;
	border-top: 3px solid var(--wtp-accent);
	border-bottom: 1px solid var(--wtp-stroke);
	color: var(--wtp-trust-text);
}

.wtp-trust__item {
	color: var(--wtp-trust-text);
}

.wtp-trust__item strong {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--wtp-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wtp-trust-heading) !important;
}

.wtp-trust__item span {
	display: block;
	font-size: 0.88rem;
	color: var(--wtp-trust-text) !important;
	line-height: 1.55;
}

.wtp-products {
	padding: 3rem 1.25rem 3.5rem;
	background: var(--wtp-paper);
}

.wtp-section-head {
	max-width: 1170px;
	margin: 0 auto 2rem;
	text-align: center;
}

.wtp-section-head h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: var(--wtp-ink);
	text-transform: uppercase;
}

.wtp-section-head p {
	margin: 0;
	color: var(--wtp-muted);
}

.wtp-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.wtp-product-card {
	display: flex;
	flex-direction: column;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-stroke);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.wtp-product-card:hover {
	border-color: var(--wtp-stroke-strong);
	box-shadow: var(--wtp-shadow);
}

.wtp-product-card__image-link {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--wtp-paper);
}

.wtp-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: var(--wtp-paper);
}

.wtp-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.4rem;
	padding: 0.85rem 0.85rem 1rem;
}

.wtp-product-card__title {
	margin: 0;
	font-size: clamp(0.85rem, 1.6vw, 0.95rem);
	line-height: 1.35;
	font-family: var(--wtp-font-body);
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wtp-product-card__title a {
	color: var(--wtp-ink);
	text-decoration: none;
}

.wtp-product-card__price {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wtp-price);
}

.wtp-btn--card {
	margin-top: auto;
	width: 100%;
	text-align: center;
	padding: 0.55rem 1rem;
	font-size: 0.8rem;
	color: #fff;
	background: var(--wtp-accent);
}

.wtp-btn--card:hover {
	background: var(--wtp-accent-hover);
	color: #fff;
}

.wtp-products__empty {
	max-width: 32rem;
	margin: 0 auto 1rem;
	padding: 2rem;
	text-align: center;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-stroke);
	border-radius: 8px;
}

.wtp-products__cta {
	margin-top: 2rem;
	text-align: center;
}

.wtp-shipping {
	padding: 2.5rem 1.25rem;
	background: var(--wtp-surface);
	border-top: 1px solid var(--wtp-stroke);
}

.wtp-shipping__inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.wtp-shipping h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: var(--wtp-ink);
	text-transform: uppercase;
}

.wtp-shipping p {
	margin: 0;
	color: var(--wtp-muted);
}

@media (max-width: 1024px) {
	.wtp-collections__grid,
	.wtp-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wtp-collections__grid,
	.wtp-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 1024px) {
	.wtp-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 540px) {
	.wtp-trust {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.wtp-hero {
		padding-top: 3rem;
		padding-bottom: 3.5rem;
	}

	.wtp-hero__actions {
		flex-direction: column;
	}

	.wtp-btn {
		width: 100%;
		max-width: 280px;
	}
}
