/**
 * Glansco Badge Grid + Badge styles.
 */

/* Light variant gets the same soft primary tint as the Process/Testimonials
   sections: its cards are solid white, so on a plain white page background
   they read as flat, borderless ghosts; on the tint they pop as cards and
   the section takes its place in the site's white/tint alternating rhythm. */
.glansco-badge-section {
	padding: 64px 0;
	background: color-mix( in srgb, var( --glansco-color-primary, #0a5f4a ) 4%, #fff );
}

.glansco-badge-section:has( .glansco-badge-grid--inline ) {
	padding: 40px 0;
}

.glansco-badge-section--dark {
	background: var( --glansco-color-secondary, #111 );
	color: #fff;
}

.glansco-badge-section__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.glansco-badge-grid--grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
}

/* Left-aligned (not centered) so this row starts flush with every other
   section's left edge — the same edge as the logo/heading above it —
   instead of floating in the middle of the page. Dividers sit in the gap
   between items via ::before on every item but the first, rather than
   padding on every item, so the row's own left edge has no extra inset. */
.glansco-badge-grid--inline {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 28px;
}

.glansco-badge-grid--inline .glansco-badge {
	position: relative;
}

.glansco-badge-grid--inline .glansco-badge:not( :first-child )::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -14px;
	transform: translateY( -50% );
	width: 1px;
	height: 20px;
	background: rgba( 0, 0, 0, 0.1 );
}

.glansco-badge-grid--inline .glansco-badge__label {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.55;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.glansco-badge-grid--inline .glansco-badge:hover .glansco-badge__label {
	opacity: 1;
	color: var( --glansco-color-primary, #0a5f4a );
}

@media ( max-width: 480px ) {
	.glansco-badge-grid--inline {
		gap: 16px;
	}

	.glansco-badge-grid--inline .glansco-badge:not( :first-child )::before {
		display: none;
	}
}

.glansco-badge {
	display: flex;
	align-items: center;
	gap: 12px;
}

.glansco-badge-grid--grid .glansco-badge {
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glansco-badge-grid--grid .glansco-badge:hover {
	transform: translateY( -4px );
	box-shadow: 0 16px 32px rgba( 0, 0, 0, 0.08 );
}

.glansco-badge-section--dark .glansco-badge-grid--grid .glansco-badge {
	background: rgba( 255, 255, 255, 0.05 );
	border-color: rgba( 255, 255, 255, 0.12 );
}

.glansco-badge .glansco-icon {
	font-size: 1.375rem;
	color: var( --glansco-color-primary, #0a5f4a );
	flex-shrink: 0;
}

.glansco-badge-section--dark .glansco-badge .glansco-icon {
	color: var( --glansco-color-accent, #f5a623 );
}

.glansco-badge__label {
	font-weight: 700;
	font-size: 0.875rem;
	font-family: var( --glansco-font-heading, "Segoe UI", sans-serif );
}

.glansco-badge__sublabel {
	font-size: 0.75rem;
	opacity: 0.65;
}

@media ( max-width: 768px ) {
	.glansco-badge-grid--grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 480px ) {
	.glansco-badge-grid--grid {
		grid-template-columns: 1fr;
	}

	.glansco-badge-grid--inline {
		flex-direction: column;
		align-items: flex-start;
	}
}
