/* ============================================================
   KODIF — WALL OF LOVE (page-specific)
   Tokens (--primary, --white, …) live in css/style.css.
   Order: components → @media (breakpoints at the end of the file).
   ============================================================ */

/* ============ HERO ============ */
.section-wol-hero {
	position: relative;
	background: var(--bg-reverse);
	overflow: hidden;
}

/* Two columns: pitch on the left, award badges on the right */
.wol-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 64px;
	align-items: start;
}

.wol-hero__content {
	max-width: 640px;
	padding: 96px 0 120px;
}

.section-wol-hero .title {
	margin-bottom: 28px;
}

.wol-hero__lead {
	max-width: 520px;
	font-size: 18px;
	line-height: 1.6;
	color: #c1c1c1;
}

/* ============ G2 BADGES ============ */
.wol-badges {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	list-style: none;
}

.wol-badge__img {
	display: block;
	width: 116px;
	height: auto;
}

/* ============ CX & GROWTH TEAMS (testimonial masonry) ============ */
.section-wol-teams {
	background: var(--bg);
	padding: 120px 0;
}

/* Heading: pitch left, G2 rating pinned top-right */
.wol-teams__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 40px;
	margin-bottom: 64px;
}

.wol-teams__head .title {
	margin-bottom: 24px;
}

.wol-teams__lead {
	max-width: 640px;
	color: var(--text-mute);
}

/* G2 aggregate rating pill */
.wol-rating {
	margin-top: 48px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 10px 24px;
	background: #fdeee4; /* soft peach — keeps the G2 orange legible */
	border-radius: 999px; /* pill shape per design */
	white-space: nowrap;
}

/* G2 mark + score grouped in one box */
.wol-rating__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.wol-rating__mark {
	display: inline-flex;
}

.wol-rating__mark img {
	width: 32px;
	height: 32px;
}

.wol-rating__score {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
	line-height: 1;
}

.wol-rating__out {
	font-size: 18px;
	color: var(--text-title);
}

.wol-rating__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--primary);
}

.wol-rating__stars img {
	width: 24px;
	height: 24px;
}

.wol-rating__src {
	font-size: 18px;
}

/* Masonry — baseline is a single accessible stack; js-masonry rebuilds it
   into N shortest-column columns and adds .is-masonry. --cols drives the
   column count the script reads at each breakpoint. */
.wol-grid {
	--cols: 3;
	--gutter: 20px;
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
}

.wol-grid.is-masonry {
	flex-direction: row;
	align-items: center;
}

.masonry__col {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: var(--gutter);
}

/* Card */
.wol-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--chat-bg);
	/* Lift on hover — entrance is handled by AOS (data-aos="fade-up") */
	transition-property: all !important;
}

.wol-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Respect reduced-motion: no lift, no transition */
@media (prefers-reduced-motion: reduce) {
	.wol-card {
		transition: none;
	}
	.wol-card:hover {
		transform: none;
		box-shadow: none;
	}
}

.wol-card__quote {
	font-size: 24px;
	line-height: 1.45;
	color: var(--text-title);
}

/* Divider sits above the person row */
.wol-card__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Headshot avatar */
.wol-card__avatar {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.wol-card__person {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin-right: auto;
}

.wol-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-title);
}

.wol-card__org {
	font-size: 14px;
	color: var(--text-dim);
}

.wol-card__g2 {
	flex: none;
	display: inline-flex;
}

.wol-card__g2 img {
	width: 32px;
	height: 32px;
}

/* ============ THE PEOPLE THEY SERVE (end-customer masonry) ============ */
/* Pink graph-paper field; grid lines themselves are a gradient (see ::before). */
.section-wol-serve {
	position: relative;
	padding: 120px 0;
	background-color: #ffbcf1; /* cell fill */
	overflow: hidden;
}

/* Gradient grid: a full-cover gradient layer revealed ONLY along the grid lines
   via a mask, so the lines run #FFBCF1 -> #FFA7ED instead of a flat tone.
   background-clip can't follow a grid pattern, mask can. */
.section-wol-serve::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 50%, #ffbcf1, #ffa7ed);
	-webkit-mask-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
	mask-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
	-webkit-mask-size: 50px 50px;
	mask-size: 50px 50px;
	pointer-events: none;
}

/* Keep content above the absolutely-positioned grid layer */
.wol-serve__inner {
	position: relative;
	z-index: 1;
}

/* Centered heading block */
.wol-serve__head {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.wol-serve__head .title {
	margin-bottom: 20px;
}

.wol-serve__lead {
	max-width: 560px;
	margin: 0 auto;
	color: var(--text-title);
}

/* Card — quote mark on top, brand + verified badge in the footer */
.serve-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--white);
	transition-property: all !important;
}

.serve-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Respect reduced-motion: no lift, no transition */
@media (prefers-reduced-motion: reduce) {
	.serve-card {
		transition: none;
	}
	.serve-card:hover {
		transform: none;
		box-shadow: none;
	}
}

.serve-card__mark {
	display: inline-flex;
	margin-bottom: 24px;
}

.serve-card__mark img {
	display: block;
	width: 15px;
	height: auto;
}

.serve-card__quote {
	font-size: 24px;
	line-height: 1.5;
	color: var(--text-title);
}

/* Divider sits above the brand row */
.serve-card__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.serve-card__brand {
	display: inline-flex;
	margin-right: auto;
	min-width: 0;
}

/* Per-logo width set via --size on the <img> in the HTML (fallback 90px) */
.serve-card__brand img {
	display: block;
	width: var(--size, 90px);
	height: auto;
	object-fit: contain;
}

.serve-card__verified {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 14px;
	color: var(--text-mute);
	white-space: nowrap;
}

.serve-card__check {
	display: inline-flex;
}

.serve-card__check img {
	display: block;
	width: 18px;
	height: 18px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1680px) {
	/* Teams: ease the vertical rhythm on large desktops */
	.section-wol-teams {
		padding: 110px 0;
	}
	.wol-teams__head {
		margin-bottom: 56px;
	}
	.section-wol-serve {
		padding: 110px 0;
	}
}

@media (max-width: 1399px) {
	/* Teams: laptop — tighten band, scale the quote down a step */
	.section-wol-teams {
		padding: 100px 0;
	}
	.wol-teams__head {
		gap: 36px;
		margin-bottom: 48px;
	}
	.wol-card {
		padding: 28px;
	}
	.wol-card__quote {
		font-size: 22px;
	}
	.section-wol-serve {
		padding: 100px 0;
	}
	.wol-serve__head {
		margin-bottom: 48px;
	}
	.serve-card {
		padding: 28px;
	}
	.serve-card__mark {
		margin-bottom: 22px;
	}
	.serve-card__quote {
		font-size: 22px;
	}
}

@media (max-width: 1199px) {
	.wol-hero__inner {
		gap: 40px;
	}
	.wol-badges {
		gap: 14px;
	}
	.wol-badge__img {
		width: 104px;
	}

	/* Teams: tighten the heading band */
	.section-wol-teams {
		padding: 96px 0;
	}
	.wol-teams__head {
		gap: 32px;
		margin-bottom: 48px;
	}
	.wol-card__quote {
		font-size: 21px;
	}
	.section-wol-serve {
		padding: 96px 0;
	}
	.serve-card__mark {
		margin-bottom: 20px;
	}
	.serve-card__quote {
		font-size: 20px;
	}
}

@media (max-width: 991px) {
	/* Stacked: padding wraps both rows, so move it back to the section */
	.section-wol-hero {
		padding: 0 0 88px;
	}

	/* Serve: tighten band, shrink cards to match the 2-col masonry */
	.section-wol-serve {
		padding: 80px 0;
	}
	/* Tighter grid cells on tablet/mobile */
	.section-wol-serve::before {
		-webkit-mask-size: 44px 44px;
		mask-size: 44px 44px;
	}
	.wol-serve__head {
		margin-bottom: 32px;
	}
	.serve-card {
		padding: 20px;
	}
	.serve-card__mark {
		margin-bottom: 16px;
	}
	.serve-card__mark img {
		width: 13px;
	}
	.serve-card__quote {
		font-size: 18px;
	}
	.serve-card__foot {
		margin-top: 16px;
		padding-top: 16px;
	}
	.serve-card__brand img {
		height: 18px;
	}
	.serve-card__verified {
		font-size: 13px;
	}

	/* Teams: pitch over rating, two-column masonry */
	.section-wol-teams {
		padding: 80px 0;
	}
	.wol-teams__head {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 40px;
	}
	.wol-teams__lead {
		max-width: none;
	}
	/* Rating drops below the pitch, aligned to the right edge */
	.wol-rating {
		margin-top: 0;
		justify-self: end;
		padding: 8px 16px;
	}
	.wol-rating__mark img {
		width: 28px;
		height: 28px;
	}
	.wol-rating__score {
		font-size: 18px;
	}
	.wol-rating__out {
		font-size: 14px;
	}
	.wol-rating__stars img {
		width: 20px;
		height: 20px;
	}
	.wol-rating__src {
		font-size: 15px;
	}
	.wol-grid {
		--cols: 2;
	}
	/* Align masonry columns to the top instead of centering them */
	.wol-grid.is-masonry {
		align-items: flex-start;
	}
	.wol-card {
		padding: 16px;
	}
	.wol-card__quote {
		font-size: 16px;
	}
	.wol-card__foot {
		margin-top: 12px;
		padding-top: 12px;
	}
	.wol-card__name {
		font-size: 14px;
	}
	.wol-card__org {
		font-size: 13px;
	}
	.wol-card__avatar {
		width: 44px;
		height: 44px;
	}
	.wol-card__g2 img {
		width: 28px;
		height: 28px;
	}
	/* Tighter gutter for grid + masonry columns (both read --gutter) */
	.wol-grid {
		--gutter: 16px;
	}
	/* Stack with badges on top, pitch below */
	.wol-hero__inner {
		display: flex;
		flex-direction: column-reverse;
		gap: 40px;
	}
	.wol-hero__content {
		max-width: none;
		padding: 0;
	}
	.wol-badges {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	.wol-badge__img {
		width: 70px;
	}
}

@media (max-width: 767px) {
	.section-wol-hero {
		padding: 0 0 72px;
	}
	.wol-hero__content {
		padding: 0;
	}
	.wol-hero__lead {
		max-width: none;
		font-size: 15px;
	}
	/* Two badges per row so they wrap evenly instead of a cramped single line */
	.wol-badges {
		gap: 8px;
		justify-content: flex-start;
	}
	.wol-badge__img {
		width: 60px;
	}

	.section-wol-teams {
		padding: 64px 0;
	}
	.section-wol-serve {
		padding: 64px 0;
	}
	/* Rating pill: allow wrap and scale type down so it never overflows */
	.wol-rating {
		flex-wrap: wrap;
		gap: 10px 14px;
	}
}

@media (max-width: 539px) {
	.wol-badges {
		justify-content: center;
	}
	.wol-badge__img {
		max-width: 80px;
		margin: 0 auto;
	}

	/* Single column on mobile */
	.section-wol-teams {
		padding: 56px 0;
	}
	.section-wol-serve {
		padding: 56px 0;
	}
	.wol-serve__head {
		margin-bottom: 28px;
	}
	/* Keep the lead from forcing an awkward break on narrow screens */
	.wol-serve__lead br {
		display: none;
	}
	.wol-teams__head {
		gap: 20px;
		margin-bottom: 32px;
	}
	.wol-grid {
		--cols: 1;
	}
	.wol-card__foot {
		gap: 12px;
	}
	/* Shrink the rating pill so it stays on one or two tidy rows */
	.wol-rating {
		gap: 8px 12px;
		padding: 8px 16px;
	}
	.wol-rating__brand {
		gap: 10px;
	}
}
