/**
 * Alpha Trade Shop — Help & Contact page template (warm minimal, 0.6).
 * Loaded only on pages using page-templates/help.php.
 */

.help {
	display: grid;
	gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.help__header {
	display: grid;
	gap: var(--ats-space-6);
	align-items: center;
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	border-radius: var(--ats-radius-xl);
	background-color: var(--ats-gray-100);
}

@media (min-width: 64em) {
	.help__header:has(.help__media) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
	}
}

.help__eyebrow {
	margin: 0 0 var(--ats-space-3);
	color: var(--ats-clay);
	font-size: var(--ats-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.help__title {
	margin-bottom: var(--ats-space-4);
	font-size: var(--ats-text-4xl);
	line-height: 1.02;
}

.help__text {
	max-width: 34rem;
	margin-bottom: var(--ats-space-5);
	color: var(--ats-color-text-muted);
	font-size: var(--ats-text-lg);
}

.help__jump {
	margin: 0;
}

.help__media {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--ats-radius-lg);
	background-color: var(--ats-gold-100);
}

.help__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.help__section-title {
	margin-bottom: var(--ats-space-5);
	font-size: var(--ats-text-2xl);
}

.help-topics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: var(--ats-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.help-topic {
	display: flex;
	flex-direction: column;
	gap: var(--ats-space-3);
	height: 100%;
	padding: var(--ats-space-6);
	border: 1px solid transparent;
	border-radius: var(--ats-radius-lg);
	background-color: var(--ats-white);
	color: var(--ats-gray-900);
	text-decoration: none;
	transition: border-color var(--ats-transition), transform var(--ats-transition);
}

.help-topic:hover {
	border-color: var(--ats-navy);
	color: var(--ats-gray-900);
	transform: translateY(-2px);
}

.help-topic__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--ats-radius-md);
	background-color: var(--ats-clay-100);
	color: var(--ats-clay);
}

.help-topic__icon .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.help-topic__title {
	font-family: var(--ats-font-heading);
	font-size: var(--ats-text-xl);
	line-height: 1.2;
}

.help-topic__text {
	color: var(--ats-color-text-muted);
	font-size: var(--ats-text-sm);
	line-height: 1.55;
}

.help-topic__more {
	margin-top: auto;
	color: var(--ats-navy);
	font-size: var(--ats-text-sm);
	font-weight: 700;
}

.help__layout {
	display: grid;
	gap: var(--ats-space-6);
	align-items: start;
}

@media (min-width: 64em) {
	.help__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--ats-space-7);
	}

	.help__layout--contact-only {
		grid-template-columns: minmax(0, 46rem);
		justify-content: center;
	}
}

.help__content {
	min-width: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.help__content h2 {
	font-size: var(--ats-text-2xl);
}

.help__content details {
	border-top: 1px solid var(--ats-color-border);
}

.help__content details:last-of-type {
	border-bottom: 1px solid var(--ats-color-border);
}

.help__content summary {
	display: flex;
	align-items: center;
	min-height: 3.75rem;
	font-weight: 600;
	cursor: pointer;
}

.help__contact {
	scroll-margin-top: 9rem;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	border-radius: var(--ats-radius-xl);
	background-color: var(--ats-white);
}

.help__contact-title {
	margin-bottom: var(--ats-space-3);
	font-size: var(--ats-text-3xl);
}

.help__contact-text {
	color: var(--ats-color-text-muted);
}

.help__details {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ats-space-2);
	margin: 0 0 var(--ats-space-6);
	padding: 0;
	list-style: none;
}

.help__details li {
	display: inline-flex;
	align-items: center;
	gap: var(--ats-space-2);
	min-height: var(--ats-tap);
	margin: 0;
	padding: 0 var(--ats-space-4);
	border-radius: var(--ats-radius-pill);
	background-color: var(--ats-cream);
	font-size: var(--ats-text-sm);
	font-weight: 600;
}

.help__details .icon {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--ats-clay);
}

.help__details a {
	color: var(--ats-gray-900);
	text-decoration: none;
}

.help__details a:hover {
	text-decoration: underline;
}
