/* Cards: assets/css/cards.css (uses tokens.css) */

/* ---------- Case card (Cases section, Projects archive) ----------
Markup:
<article class="card-case">
	<a class="card-case__link" href="...">
		<div class="card-case__media"><img src="..." alt="" loading="lazy" width="969" height="600"></div>
		<div class="card-case__body">
			<ul class="card-case__tags">
				<li class="tag tag--purple">PMS</li>
				<li class="tag">Ux</li>
				<li class="tag">Web App</li>
			</ul>
			<div class="card-case__content">
				<h3 class="card-case__title">Case and project name</h3>
				<p class="card-case__text">Optional short text</p>
			</div>
		</div>
	</a>
</article>
*/

.card-case {
	flex: 1 1 0;
	min-width: 0;
	border-radius: 30px;
	overflow: hidden;
	background: var(--color-bg);
}

.card-case__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 0 0 50px;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card-case__media {
	align-self: stretch;
	aspect-ratio: 484.5 / 300;
	background: #FFFFFF;
	overflow: hidden;
}
.card-case__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-case__tags {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0 24px;
	list-style: none;
}

.card-case__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 12px;
	padding: 0 24px;
}

.card-case__title {
	margin: 0;
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 40px;
	line-height: 1.2;
	color: var(--color-light);
}

/* Optional description, hidden in the current Figma design.
Remove the next rule or add a modifier to show it. */
.card-case__text {
	display: none;
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-text);
	opacity: .7;
}

/* ---------- Tag ---------- */
.tag {
	box-sizing: border-box;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border: 1px solid rgba(242, 242, 242, 0.3);
	border-radius: 21px;
	font-family: var(--font-main);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--color-light);
}

/* Highlighted first tag */
.tag--purple {
	background: var(--color-cta-secondary);
	border-color: transparent;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.tag--orange {
	background: var(--color-cta-primary);   /* from the layout screenshot; not in the exported CSS */
	border-color: transparent;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* ---------- Base glass card ----------
Used by: "Sound familiar" (Problem/Solution), "What you get" (Why), "Process", "Reviews".
Base values come from the Figma export of the Why card. Process and Reviews specifics are
estimated from screenshots (marked "check"); replace with exported CSS if you have it.

Markup (Why):
<div class="card">
	<div class="card__icon card__icon--circle" aria-hidden="true">💪</div>
	<h3 class="card__title">Title</h3>
	<div class="card__text">
		<p>Main text</p>
		<p class="card__highlight">Highlighted line</p>
	</div>
</div>
*/

.card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 26px;
	padding: 80px 30px 50px;
	background: rgba(255, 255, 255, 0.01);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 40px;
	flex: 1 1 0;
	min-width: 0;
}

/* Soft glow at the top (Ellipse 6 in Figma) */
.card::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 23px;
	left: 50%;
	width: 77px;
	height: 77px;
	transform: translateX(-50%);
	background: var(--color-text);
	opacity: 0.7;
	filter: blur(100px);
	pointer-events: none;
}

/* Icon in the top right corner */
.card__icon {
	position: absolute;
	top: 23px;
	right: 46px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
}
.card__icon--circle {
	background: #FFFFFF;
	border-radius: 50%;
	font-size: 45px;
	line-height: 1;
	color: #000000;
}
.card__icon img,
.card__icon svg { display: block; max-width: 100%; height: auto; }

.card__title {
	margin: 0;
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 36px;
	line-height: 1.15;
	color: var(--color-light);
}

.card__text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 18px;
	line-height: 1.5;
}
.card__text p {
	margin: 0;
	color: var(--color-light);
	opacity: 0.7;
}
.card__text .card__highlight {
	font-style: italic;
	text-decoration: underline;
	opacity: 1;
}

/* ---------- Process card (check: estimated from screenshot) ---------- */
.card--process .card__title { font-size: 40px; line-height: 1.2; }
.card__list {
	margin: 0;
	padding-left: 24px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-light);
	opacity: 0.7;
}
.card--process .card__icon { right: 30px; width: 60px; height: 60px; }

/* ---------- Review card (check: estimated from screenshot) ---------- */
.card--review { padding: 30px; gap: 20px; }
.card--review::before { display: none; }
.card--review .card__title { font-size: 40px; line-height: 1.2; }
.card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-light);
}
.card__meta > * + * {
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.card__meta a { color: inherit; text-decoration: underline; }

/* ---------- Feature card (Problem / Solution, with large image) ----------
Same glass card, different padding and a large media block.
Markup:
<div class="card card--feature">
	<div class="card__body">
		<ul class="card-case__tags"> ...optional tags... </ul>
		<h3 class="card__title">Title</h3>
		<p><strong>Problem</strong> text</p>
		<p><strong>Solution</strong> text</p>
	</div>
	<div class="card__media"><img src="..." alt="" loading="lazy"></div>
</div>
Add .card--media-top to put the image above the text (the layout alternates). */
.card--feature {
	align-items: stretch;
	padding: 40px 32px 32px;
	gap: 26px;
}
.card--feature::before { display: none; }

.card--feature .card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 4px;
}
.card--feature .card-case__tags { padding: 0; }
.card--feature .card__body p {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-light);
}
/* Figma exports whole lines as 600, but the layout shows only the label bold */
.card--feature .card__body strong { font-weight: 600; }
.card--feature .card__body p { font-weight: 400; }

.card__media {
	align-self: stretch;
	aspect-ratio: 451 / 250;
	overflow: hidden;
}
.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card--feature.card--media-top .card__media { order: -1; }

/* ---------- Service card (Services / Packages; check: estimated from screenshot) ---------- */
.card--service { padding: 0 0 32px; gap: 24px; }
.card--service::before { display: none; }
.card--service .card__media { aspect-ratio: 417 / 350; border-radius: 0; }
.card--service .card__title,
.card--service .card__text { padding: 0 30px; }
.card--service .card__title { font-size: 32px; line-height: 1.2; }
.card--service .card__text p { opacity: 1; font-size: 16px; }

/* Highlighted card with text and two buttons (Complex solution / main package) */
.card--cta {
	justify-content: center;
	padding: 40px 56px;
	background: rgba(255, 255, 255, 0.03);
}
.card--cta::before { display: none; }
.card--cta .card__title { font-size: 32px; line-height: 1.2; }
.card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.card-case__title { font-size: 28px; }
	.card-case__link { padding-bottom: 32px; }

	.card { padding: 72px 24px 36px; border-radius: 30px; }
	.card__title { font-size: 28px; }
	.card--process .card__title,
	.card--review .card__title { font-size: 30px; }
	.card--review { padding: 24px; }
	.card--feature { padding: 28px 20px 20px; }
	.card--service .card__title,
	.card--service .card__text { padding: 0 20px; }
	.card--cta { padding: 32px 24px; }
}
