/*
 * Icon, title and text card of the Escola do Queijo page (components/feature-card.php).
 *
 *   technique  839:21033: no fill, 20px padding, 64px icon box, a line under the icon.
 *   filled     808:68537: Gray 40, 32px padding, 50px icon box.
 */

.feature-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-card);
}

.feature-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--color-icon-accent);
}

.feature-card__glyph {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.feature-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.feature-card__title {
	margin: 0;
	color: var(--color-title-card);
	font-family: var(--font-heading);
	font-size: var(--font-h5);
	font-weight: var(--weight-heading);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
}

.feature-card__text {
	margin: 0;
	color: var(--color-text);
	font-size: var(--font-p2);
	line-height: 1.4;
	letter-spacing: var(--ls-body);
}

/* "Saiba mais", the LINK | MENU dark of the node: 16px Medium with the 12px arrow. */
.feature-card__link {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: var(--space-1);
	min-height: 36px;
	color: var(--color-link);
	font-size: var(--font-p3);
	font-weight: 500;
	line-height: 1.3;
}

.feature-card__link-text {
	--underline-offset: -1px;
	--underline-thickness: 2px;
}

.feature-card__link-icon {
	width: 12px;
	height: 12px;
}

/* Technique */

.feature-card--technique {
	gap: var(--space-3);
	padding: 20px;
	transition: background-color var(--duration-base) var(--ease-out);
}

/* 839:21034: the card turns white and the icon gets a Light Gray box. */
.feature-card--technique:hover {
	background-color: var(--color-surface);
}

.feature-card--technique:hover .feature-card__icon {
	border-radius: var(--radius-card);
	background-color: var(--color-surface-muted);
}

/* The glyphs sit at about 60% of the 64px box in the node (inset 18.75% / 20%). */
.feature-card--technique .feature-card__icon {
	width: 64px;
	height: 64px;
	padding: 12px;
}

.feature-card--technique .feature-card__body {
	padding-block-start: var(--space-3);
	border-top: 1px solid var(--color-hairline-dark);
}

/* Without an icon the line stays, so the four cards keep the same rhythm. */
.feature-card--technique:not(:has(.feature-card__icon)) .feature-card__body {
	margin-block-start: 80px;
}

/* Filled */

.feature-card--filled {
	gap: var(--space-5);
	padding: var(--space-5);
	background-color: var(--color-gray-40);
}

.feature-card--filled .feature-card__icon {
	width: 50px;
	height: 50px;
}
