/**
 * Card component.
 *
 * @package NexoBase
 */

.nexo-card {
	--nexo-card-background: #ffffff;
	--nexo-card-text-background: #d9d9d9;
	--nexo-card-title-color: #1f2523;
	--nexo-card-text-color: #1f2523;
	--nexo-card-border-color: rgba(0, 0, 0, 0.08);
	--nexo-card-border-radius: 8px;
	--nexo-card-padding: 28px;
	--nexo-card-title-size: 1.45rem;
	--nexo-card-text-size: 0.95rem;
	--nexo-card-shadow: none;

	position: relative;
	overflow: hidden;
	width: 100%;
	background: var(--nexo-card-background);
	border: 1px solid var(--nexo-card-border-color);
	border-radius: var(--nexo-card-border-radius);
	box-shadow: var(--nexo-card-shadow);
	color: var(--nexo-card-text-color);
}

.nexo-card__media {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.nexo-card__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
}

.nexo-card__body {
	padding: var(--nexo-card-padding);
}

.nexo-card__title {
	margin: 0 0 1rem;
	color: var(--nexo-card-title-color);
	font-size: var(--nexo-card-title-size);
	font-weight: 800;
	line-height: 1.18;
}

.nexo-card__title-link {
	color: inherit;
	text-decoration: none;
}

.nexo-card__title-link:hover,
.nexo-card__title-link:focus {
	color: inherit;
	text-decoration: underline;
}

.nexo-card__text {
	margin: 0;
	color: var(--nexo-card-text-color);
	font-size: var(--nexo-card-text-size);
	line-height: 1.45;
}

.nexo-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.25rem;
	padding: 0.85rem 1.35rem;
	border-radius: 6px;
	background: #f58220;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.nexo-card__button:hover,
.nexo-card__button:focus {
	background: #d96d12;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.nexo-card--align-left {
	text-align: left;
}

.nexo-card--align-center {
	text-align: center;
}

.nexo-card--align-right {
	text-align: right;
}

/**
 * Default card.
 */
.nexo-card--default {
	--nexo-card-background: #ffffff;
	--nexo-card-border-color: rgba(0, 0, 0, 0.1);
	--nexo-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/**
 * Use/application card.
 *
 * Variação usada nos cards da seção "Veja onde e como a barra
 * de ancoragem é utilizada".
 */
.nexo-card--use {
	--nexo-card-border-radius: 8px;
	--nexo-card-title-size: 1.42rem;
	--nexo-card-text-size: 0.82rem;

	position: relative;
	aspect-ratio: 448 / 527;
	min-height: 360px;
	border: 0;
	background: var(--nexo-card-text-background);
	box-shadow: none;
}

.nexo-card--use .nexo-card__media {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
}

.nexo-card--use .nexo-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.nexo-card--use .nexo-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	min-height: 43%;
	padding: 30px 30px 28px;
	background:
		linear-gradient(
			to bottom,
			rgba(217, 217, 217, 0) 0%,
			rgba(217, 217, 217, 0.88) 18%,
			rgba(217, 217, 217, 1) 34%,
			rgba(217, 217, 217, 1) 100%
		);
}

.nexo-card--use .nexo-card__title {
	max-width: 95%;
	margin-bottom: 1rem;
	font-size: var(--nexo-card-title-size);
	font-weight: 800;
	line-height: 1.15;
}

.nexo-card--use .nexo-card__text {
	max-width: 95%;
	font-size: var(--nexo-card-text-size);
	font-weight: 400;
	line-height: 1.28;
}

/**
 * Dark card.
 */
.nexo-card--dark {
	--nexo-card-background: #171d1b;
	--nexo-card-title-color: #ffffff;
	--nexo-card-text-color: #ffffff;
	--nexo-card-border-color: rgba(255, 255, 255, 0.08);
	--nexo-card-border-radius: 8px;
	--nexo-card-padding: 64px 48px;
	--nexo-card-title-size: 2rem;
	--nexo-card-text-size: 1rem;

	background: var(--nexo-card-background);
}

/**
 * Outline card.
 */
.nexo-card--outline {
	--nexo-card-background: transparent;
	--nexo-card-border-color: rgba(0, 0, 0, 0.18);
}

/**
 * Minimal card.
 */
.nexo-card--minimal {
	--nexo-card-background: transparent;
	--nexo-card-border-color: transparent;
	--nexo-card-padding: 0;

	border: 0;
}

/**
 * Ajustes para widgets do SiteOrigin.
 */
.widget .nexo-card,
.so-panel .nexo-card {
	margin: 0;
}

.widget .nexo-card__title,
.so-panel .nexo-card__title,
.widget .nexo-card__text,
.so-panel .nexo-card__text {
	clear: none;
}

/**
 * Responsivo.
 */
@media (max-width: 1024px) {
	.nexo-card--use .nexo-card__body {
		padding: 26px 24px 24px;
	}

	.nexo-card--use .nexo-card__title {
		font-size: 1.25rem;
	}

	.nexo-card--use .nexo-card__text {
		font-size: 0.78rem;
	}
}

@media (max-width: 767px) {
	.nexo-card--use {
		min-height: 420px;
	}

	.nexo-card--use .nexo-card__body {
		min-height: 45%;
		padding: 28px 24px 26px;
	}

	.nexo-card--use .nexo-card__title {
		font-size: 1.35rem;
	}

	.nexo-card--use .nexo-card__text {
		font-size: 0.88rem;
	}

	.nexo-card--dark {
		--nexo-card-padding: 44px 24px;
	}
}