/**
 * Card system for inner pages: tiles, step cards, showcases.
 * Loaded after main.css.
 */

/* ---------- Tiles ---------- */

.wb-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
	gap: 22px;
}

.wb-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--wb-white);
	border: 1px solid var(--wb-border);
	border-radius: 18px;
	padding: 30px 26px 26px;
	box-shadow: 0 22px 44px -38px rgba(16, 60, 52, 0.5);
	overflow: hidden;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.wb-tile::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wb-gold), var(--wb-gold-light));
	opacity: 0;
	transform: scaleX(0.4);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.wb-tile:hover {
	transform: translateY(-6px);
	border-color: rgba(196, 154, 69, 0.45);
	box-shadow: 0 36px 60px -40px rgba(16, 60, 52, 0.55);
}

.wb-tile:hover::before {
	opacity: 1;
	transform: scaleX(1);
}

.wb-tile-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 15px;
	background: linear-gradient(155deg, rgba(196, 154, 69, 0.16), rgba(196, 154, 69, 0.04));
	color: var(--wb-gold);
	border: 1px solid rgba(196, 154, 69, 0.2);
}

.wb-tile-icon .wb-icon {
	width: 26px;
	height: 26px;
}

.wb-tile-title {
	font-size: 19px;
	line-height: 1.55;
	margin: 18px 0 8px;
	color: var(--wb-navy);
	font-weight: 700;
}

.wb-tile-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.85;
	color: var(--wb-muted);
}

.wb-tile-meta {
	display: inline-block;
	margin-block-start: 16px;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--wb-border);
	width: 100%;
	font-size: 12.5px;
	letter-spacing: 0.06em;
	color: var(--wb-gold);
	font-weight: 600;
}

.wb-tile--dark {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

.wb-tile--dark .wb-tile-title,
.wb-tile--dark .wb-tile-text {
	color: var(--wb-white);
}

.wb-tile--dark .wb-tile-text {
	color: rgba(255, 255, 255, 0.7);
}

.wb-tile--dark .wb-tile-icon {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(216, 182, 110, 0.35);
	color: var(--wb-gold-light);
}

.wb-tile--dark .wb-tile-meta {
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--wb-gold-light);
}

/* ---------- Step cards ---------- */

.wb-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wb-step-card {
	position: relative;
	background: var(--wb-white);
	border: 1px solid var(--wb-border);
	border-radius: 18px;
	padding: 28px 24px 26px;
	box-shadow: 0 22px 44px -40px rgba(16, 60, 52, 0.45);
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.wb-step-card:hover {
	transform: translateY(-5px);
	border-color: rgba(196, 154, 69, 0.45);
	box-shadow: 0 32px 56px -40px rgba(16, 60, 52, 0.5);
}

.wb-step-num {
	display: block;
	font-family: var(--wb-font-en);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	margin-block-end: 12px;
	background: linear-gradient(180deg, var(--wb-gold), rgba(196, 154, 69, 0.18));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wb-step-card h3 {
	font-size: 17.5px;
	line-height: 1.6;
	margin: 0 0 8px;
	color: var(--wb-navy);
}

.wb-step-card p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--wb-muted);
}

.wb-section--navy .wb-step-card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
}

.wb-section--navy .wb-step-card h3 {
	color: var(--wb-white);
}

.wb-section--navy .wb-step-card p {
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Showcase ---------- */

.wb-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	align-items: stretch;
	background: var(--wb-white);
	border: 1px solid var(--wb-border);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--wb-shadow-lg);
}

.wb-showcase-media {
	position: relative;
	margin: 0;
	min-height: 460px;
	background: var(--wb-navy);
}

.wb-showcase-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wb-showcase-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 45, 40, 0.05), rgba(8, 45, 40, 0.35));
	pointer-events: none;
}

.wb-showcase-badge {
	position: absolute;
	z-index: 2;
	inset-block-start: 22px;
	inset-inline-start: 22px;
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wb-navy);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.6);
}

.wb-showcase-body {
	padding: 46px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
}

.wb-showcase-title {
	font-size: clamp(23px, 2.1vw, 30px);
	line-height: 1.45;
	margin: 0;
	color: var(--wb-navy);
}

.wb-showcase-text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.9;
	color: var(--wb-muted);
}

.wb-showcase-list {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
}

.wb-showcase-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-block: 13px;
	border-block-end: 1px solid var(--wb-border);
}

.wb-showcase-list li:last-child {
	border-block-end: 0;
	padding-block-end: 0;
}

.wb-showcase-list strong {
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--wb-navy);
	line-height: 1.6;
}

.wb-showcase-list span {
	display: block;
	font-size: 13.5px;
	color: var(--wb-muted);
	line-height: 1.7;
}

.wb-showcase-dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin-block-start: 9px;
	background: var(--wb-gold);
	transform: rotate(45deg);
}

.wb-showcase .wb-btn {
	align-self: flex-start;
	margin-block-start: 4px;
}

/* ---------- Misc helpers ---------- */

.wb-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wb-pill-row li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--wb-border);
	background: var(--wb-white);
	font-size: 13px;
	color: var(--wb-navy);
}

.wb-pill-row .wb-icon {
	width: 15px;
	height: 15px;
	color: var(--wb-gold);
}

.wb-section-intro {
	max-width: 720px;
	margin-inline: auto;
}

.wb-section-intro p {
	margin: 0;
	color: var(--wb-muted);
	font-size: 16px;
	line-height: 1.9;
}

.wb-tiles--3,
.wb-steps--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
	.wb-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wb-showcase-body {
		padding: 36px 32px;
	}
}

@media (max-width: 900px) {
	.wb-tiles--3,
	.wb-steps--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.wb-showcase {
		grid-template-columns: minmax(0, 1fr);
	}

	.wb-showcase-media {
		min-height: 320px;
	}
}

@media (max-width: 620px) {
	.wb-tiles,
	.wb-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.wb-tile {
		padding: 26px 22px 22px;
	}

	.wb-showcase-body {
		padding: 28px 22px;
	}

	.wb-step-num {
		font-size: 34px;
	}
}

/* Refined card surfaces and interactions */
.wb-tiles {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.wb-tile {
	min-height: 100%;
	border-radius: 20px;
	padding: clamp(24px, 2.6vw, 32px);
	background: linear-gradient(155deg, #fff 0%, #fff 72%, rgba(247, 247, 242, 0.75) 100%);
	box-shadow: 0 12px 32px -26px rgba(16, 60, 52, 0.42), 0 1px 2px rgba(16, 60, 52, 0.04);
}

.wb-tile::before {
	inset-block-start: 0;
	height: 4px;
	transform-origin: center;
}

.wb-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 42px -30px rgba(16, 60, 52, 0.48), 0 8px 18px -14px rgba(196, 154, 69, 0.3);
}

.wb-tile-icon {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(196, 154, 69, 0.2), rgba(216, 182, 110, 0.07));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wb-tile-title {
	margin-block: 20px 8px;
	font-size: clamp(18px, 1.4vw, 20px);
	letter-spacing: -0.015em;
}

.wb-tile-text {
	max-width: 42ch;
	font-size: 15px;
	line-height: 1.9;
}

.wb-tile:focus-within,
.wb-step-card:focus-within {
	outline: 3px solid rgba(196, 154, 69, 0.45);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.wb-tile,
	.wb-tile::before,
	.wb-step-card {
		transition-duration: 0.01ms !important;
	}

	.wb-tile:hover {
		transform: none;
	}
}
/* Put partnership imagery above the content and give photos the full card width. */
.wb-card--partner {
	flex-direction: column;
	overflow: hidden;
}

.wb-card--partner .wb-partner-logo {
	width: 100%;
	height: 230px;
	min-height: 230px;
	flex: 0 0 230px;
	padding: 0;
	border-inline-end: 0;
	border-block-end: 1px solid var(--wb-border);
}

.wb-card--partner .wb-partner-logo:not(.wb-partner-logo--photo) img {
	max-width: min(72%, 220px);
	max-height: 145px;
	object-fit: contain;
}

.wb-card--partner .wb-partner-logo--photo img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
}

@media (max-width: 620px) {
	.wb-card--partner .wb-partner-logo {
		height: 270px;
		min-height: 270px;
		flex-basis: 270px;
	}
}
