/*
 * am-card — a generic content card. Used for the "how I work" points, the
 * services teasers (the depth behind the workshop), and any grouped block that
 * should read as a discrete surface.
 *
 * Structure:
 *   am-card
 *     am-card__icon     optional inline SVG holder (no icon fonts — see CLAUDE.md)
 *     am-card__title    h3
 *     am-card__text     body copy
 *     am-card__link     optional read-more (am-cta--ghost pairs well)
 *
 * Restrained by design: a hairline, a soft shadow, a small lift on hover. No
 * heavy motion — performance is a brand signal.
 */

.am-card {
	display: flex;
	flex-direction: column;
	gap: var(--am-space-300);
	padding: var(--am-space-600);
	background-color: var(--am-color-surface);
	border: 1px solid var(--am-color-border);
	border-radius: var(--am-radius-lg);
	box-shadow: var(--am-shadow-sm);
	transition: box-shadow var(--am-transition), transform var(--am-transition);
}

/* Hover lift only where a card is interactive (has a link). Keep it subtle. */
.am-card--interactive:hover {
	box-shadow: var(--am-shadow-md);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.am-card--interactive:hover {
		transform: none;
	}
}

.am-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--am-space-700);
	height: var(--am-space-700);
	color: var(--am-color-accent);
	font-size: var(--am-space-600); /* sizes an icon-font <i>; SVGs use the rule below */
	line-height: 1;
}

.am-card__icon svg {
	width: 100%;
	height: 100%;
}

.am-card__title {
	margin-block: 0;
	font-family: var(--am-font-sans); /* small heading — Archivo bold, not Black */
	font-weight: var(--am-weight-bold);
	font-size: var(--am-font-size-500);
	letter-spacing: normal;
}

.am-card__text {
	margin-block: 0;
	color: var(--am-color-text);
}

/* Push a trailing link to the bottom so a grid of cards aligns their actions. */
.am-card__link {
	margin-block-start: auto;
	padding-block-start: var(--am-space-200);
}

/* A simple responsive grid to drop cards into. Elementor can also handle the
   grid; this exists for when the theme should own the rhythm. */
.am-card-grid {
	display: grid;
	gap: var(--am-space-500);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.am-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.am-card-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}
