/**
 * Product Archive / Graveyard — page + flip card (Figma 875:8680).
 * Brand palette: sky #00a6e1, ocean #0070b0, light #ebf9ff. Poppins.
 */

.mca-gy {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 1240px;
	margin: 0 auto;
	padding: 48px 24px 96px;
	text-align: center;
}

.mca-gy__title {
	font-weight: 800;
	font-size: clamp(30px, 4.6vw, 50px);
	line-height: 1;
	color: #0070b0;
	text-transform: uppercase;
	margin: 0 0 22px;
	letter-spacing: 0.5px;
}

.mca-gy__subtitle {
	font-weight: 600;
	font-size: clamp(19px, 2.7vw, 40px);
	line-height: 1.08;
	color: #0070b0;
	max-width: 860px;
	margin: 0 auto 56px;
}

.mca-gy__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	align-items: stretch;
}

.mca-gy__empty {
	grid-column: 1 / -1;
	color: #0070b0;
	font-weight: 600;
}

/* ---------- Flip card ---------- */
.mca-gy-card {
	container-type: inline-size;
	position: relative;
	aspect-ratio: 322 / 640;
	perspective: 1200px;
	transition: transform 0.3s ease, filter 0.3s ease;
}
.mca-gy-card:hover {
	transform: translateY(-4px);
	filter: drop-shadow(0 9px 16px rgba(0, 112, 176, 0.22));
}
/* No lift once the card is flipped (back is open). */
.mca-gy-card:has(.mca-gy-card__toggle:checked):hover {
	transform: none;
	filter: none;
}

/* Whole front face is a flip toggle (sits above the content, below nothing interactive). */
.mca-gy-card__flip {
	position: absolute;
	inset: 0;
	z-index: 3;
	cursor: pointer;
}
/* Once flipped, the front overlay must stop catching clicks so the back's links
   and the < BACK button are individually clickable. */
.mca-gy-card__toggle:checked ~ .mca-gy-card__inner .mca-gy-card__flip {
	pointer-events: none;
}

.mca-gy-card__toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mca-gy-card__inner {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.mca-gy-card__toggle:checked ~ .mca-gy-card__inner {
	transform: rotateY(180deg);
}

.mca-gy-card__face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 16cqw;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 26px rgba(0, 64, 102, 0.12);
}

/* FRONT */
.mca-gy-card__image {
	flex: 0 0 45%;
	background: #ebf9ff;
	overflow: hidden;
}

.mca-gy-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.mca-gy-card__info {
	flex: 1;
	background: #00a6e1;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.6cqw;
	padding: 6cqw 6cqw 7cqw;
	text-align: center;
}

.mca-gy-card__line1 { font-weight: 700; font-size: 7.2cqw; line-height: 1.05; }
.mca-gy-card__line2 { font-weight: 500; font-size: 5.6cqw; line-height: 1.1; }
.mca-gy-card__line3 { font-weight: 500; font-size: 5.2cqw; line-height: 1.1; opacity: 0.95; }

.mca-gy-card__cann { width: 82%; margin-top: 1.5cqw; }
.mca-gy-card__cann-labels,
.mca-gy-card__cann-values { display: flex; justify-content: space-around; gap: 3cqw; }
.mca-gy-card__cann-labels span { font-weight: 700; font-size: 5.4cqw; }
.mca-gy-card__cann-values span { font-weight: 500; font-size: 4.4cqw; }
.mca-gy-card__cann-rule { display: block; height: 1px; background: rgba(255, 255, 255, 0.75); margin: 1cqw 0; }

.mca-gy-card__btn {
	margin-top: auto;
	background: #fff;
	color: #0070b0;
	font-weight: 600;
	font-size: 5.4cqw;
	border-radius: 99px;
	padding: 2.6cqw 8cqw;
	text-transform: uppercase;
	cursor: pointer;
	border: 2px solid #fff; /* stays white in both states: invisible on the white pill, a ring on the blue one */
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
/* Front button reacts to the whole card; back button reacts to itself (back has links, no overlay). */
.mca-gy-card__front:hover .mca-gy-card__btn,
.mca-gy-card__btn--back:hover {
	background: #0070b0;
	color: #fff;
}

/* BACK */
.mca-gy-card__back {
	background: #00a6e1;
	color: #fff;
	align-items: center;
	padding: 8cqw 6cqw 7cqw;
	transform: rotateY(180deg);
	text-align: center;
}
.mca-gy-card__back-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2cqw;
	width: 100%;
	flex: 1;
	overflow-y: auto;
}
.mca-gy-card__back-title { font-weight: 700; font-size: 7cqw; line-height: 1.05; }
.mca-gy-card__back-sub { font-weight: 500; font-size: 5.2cqw; }
.mca-gy-card__prev { font-weight: 600; font-size: 4.6cqw; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2cqw; }
.mca-gy-card__provinces { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; }
.mca-gy-card__prov { background: #fff; color: #0070b0; font-weight: 600; font-size: 4.6cqw; border-radius: 99px; padding: 1.4cqw 4cqw; }
.mca-gy-card__desc { font-weight: 500; font-size: 4.6cqw; line-height: 1.4; margin-top: 2cqw; }
.mca-gy-card__desc a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.mca-gy-card__desc a:hover { color: #0070b0; text-decoration-color: #0070b0; }
.mca-gy-card__desc p { margin: 0 0 1.5cqw; }
.mca-gy-card__btn--back { margin-top: 3cqw; }

/* ---------- Back to top ---------- */
.mca-gy__top-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 44px auto 0;
	color: #0070b0;
	font-weight: 600;
	text-decoration: none;
	transform-origin: center center;
	transition: transform 0.2s ease;
}
.mca-gy__top-link:hover {
	transform: scale(1.05);
}
.mca-gy__top-arrow {
	width: 16px;
	height: 16px;
	border-left: 4px solid #0070b0;
	border-top: 4px solid #0070b0;
	transform: rotate(45deg);
	border-radius: 2px;
}

/* ---------- CTA ---------- */
.mca-gy__cta {
	background: #0070b0;
	color: #fff;
	border-radius: 60px;
	max-width: 760px;
	margin: 56px auto 0;
	padding: 42px 30px;
}
.mca-gy__cta-title { font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 6px; }
.mca-gy__cta-sub { font-weight: 500; font-size: clamp(16px, 2vw, 20px); margin: 0 0 22px; }
.mca-gy__cta-btn {
	display: inline-block;
	background: #fff;
	color: #0070b0;
	font-weight: 600;
	text-transform: uppercase;
	border: 2px solid #fff; /* white in both states: invisible on the white pill, a ring on hover */
	border-radius: 99px;
	padding: 12px 34px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.mca-gy__cta-btn:hover {
	background: #0070b0;
	color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .mca-gy__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 760px)  { .mca-gy__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 430px)  { .mca-gy__grid { grid-template-columns: 1fr; max-width: 330px; margin-inline: auto; } }
