/*--------------------------------------------------------------
# About Section
# Centered heading + bento grid of stat / testimonial / data cards.
--------------------------------------------------------------*/

/* ── Section wrapper ── */
.about {
	background: var(--tpp-white);
	padding: 100px 0 80px;
	overflow: hidden;
}

/* With the logo strip straight above (the current homepage order), 70px at
   every width, matching the services grid's 70px above the strip (see
   services-grid.css). Its two-class specificity outranks the breakpoint
   paddings below, so this one rule covers every width. */
.social-proof + .about {
	padding-top: 70px;
}

/* ── Container ── */
.about__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* ── Section heading ── */
.about__heading {
	text-align: center;
	margin-bottom: 64px;
}

.about__title {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0;

	/* Scroll-reveal animation */
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
				transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__title.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.about__title-accent {
	color: var(--tpp-text-light);
}

/* ── Bento grid ── */
.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media screen and (min-width: 768px) {
	.about__grid {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: 320px;
		gap: 16px;
		align-items: stretch;
	}
}

/* ── Shared card base ── */
.about__card {
	border-radius: 20px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	min-height: 0;

	/* Scroll-reveal animation */
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
				transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered delays */
.about__card:nth-child(1) { transition-delay: 0.1s; }
.about__card:nth-child(2) { transition-delay: 0.25s; }
.about__card:nth-child(3) { transition-delay: 0.4s; }

/* ── Card label (small text above number) ── */
.about__card-label {
	font-family: var(--tpp-font-body);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tpp-text-light);
	margin-bottom: 4px;
	display: block;
}

/* ── Card number (large stat) ── */
.about__card-number {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	display: block;
	margin-bottom: 8px;
}

/* ── Card description ── */
.about__card-desc {
	font-family: var(--tpp-font-body);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
}

/* ──────────────────────────────────────────────
   Card 1 — Image + stat (lavender / blue tint)
   ────────────────────────────────────────────── */
.about__card--image {
	background: #e8e2f4;
	color: var(--tpp-black);
	padding: 0;
	position: relative;
}

.about__card--image .about__card-stat {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	background: var(--tpp-white);
	border-radius: 16px;
	padding: 20px 22px 22px;
	z-index: 2;
}

.about__card--image .about__card-number {
	color: var(--tpp-black);
}

/* The white box is narrow on a tablet, three cards across: at 768px it has
   156px of room, and "20,000+" sets 169px wide at the card size. Sizing the
   figure against the box itself (23cqi ≈ the widest it can be and still
   fit) shrinks it only between 768px and ~830px, and leaves it at the card
   size everywhere else. Browsers without container units drop the whole
   declaration and keep the size above. */
.about__card--image .about__card-stat {
	container-type: inline-size;
}

.about__card--image .about__card-number {
	font-size: min(clamp(2.5rem, 4vw, 3.5rem), 23cqi);
}

.about__card--image .about__card-desc {
	color: rgba(26, 26, 26, 0.7);
	font-size: 0.82rem;
}

/* Image wrapper — fills entire card */
.about__card-image-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	overflow: hidden;
	border-radius: 20px;
}

.about__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about__card--image:hover .about__card-image {
	transform: scale(1.04);
}

/* Brand name text */
.about__card-name {
	position: absolute;
	top: 16px;
	left: 18px;
	font-family: var(--tpp-font-heading);
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--tpp-white);
	z-index: 2;
}

/* Chart icon badge */
.about__card-icon {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tpp-black);
}

/* ──────────────────────────────────────────────
   Card 2 — Commitment / testimonial (white)
   ────────────────────────────────────────────── */
.about__card--testimonial {
	background: var(--tpp-off-white);
	border: 1px solid var(--tpp-border-light);
	color: var(--tpp-black);
	padding: 28px 28px 24px;
	justify-content: flex-start;
}

.about__card--testimonial .about__card-label {
	color: var(--tpp-text-light);
	margin-bottom: 2px;
}

.about__card--testimonial .about__card-number {
	color: var(--tpp-black);
	margin-bottom: 12px;
}

/* Avatars row */
.about__card-avatars {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.about__card-avatars-img {
	height: 42px;
	width: auto;
	display: block;
}

/* Quote */
.about__card-quote {
	margin: 0;
	margin-top: auto;
	padding: 0;
	border: none;
}

.about__card-quote p {
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--tpp-black);
	margin: 0;
}

/* Who said it: the quote is a real member's, so it carries her name */
.about__card-cite {
	display: block;
	margin-top: 6px;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--tpp-text-light);
}

/* ──────────────────────────────────────────────
   Card 3 column — stacked green + dark cards
   ────────────────────────────────────────────── */
.about__col-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;

	/* Scroll-reveal animation (matches cards) */
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
				transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.about__col-stack.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Green data card — takes remaining space */
.about__card--data {
	background: var(--tpp-accent);
	color: var(--tpp-black);
	padding: 24px;
	flex: 1;
}

.about__card--data .about__card-label {
	color: rgba(26, 26, 26, 0.6);
}

.about__card--data .about__card-number {
	color: var(--tpp-black);
}

.about__card--data .about__card-desc {
	color: rgba(26, 26, 26, 0.68);
	margin-bottom: 0;
	font-size: 0.82rem;
}

/* Black continents card */
.about__card--continents {
	background: var(--tpp-black);
	color: var(--tpp-white);
	border-radius: 20px;
	padding: 20px 24px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.about__card-badge-label {
	font-family: var(--tpp-font-body);
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--tpp-accent);
}

.about__card-badge-number {
	font-family: var(--tpp-font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--tpp-white);
}

/* ── Responsive ── */

/* Tablet (≥768px) */
@media screen and (min-width: 768px) {
	.about {
		padding: 120px 0 100px;
	}

	.about__heading {
		margin-bottom: 72px;
	}

	.about__card {
		border-radius: 24px;
	}

	.about__card-image-wrap {
		border-radius: 24px;
	}
}

/* Desktop (≥992px) */
@media screen and (min-width: 992px) {
	.about__grid {
		gap: 20px;
	}
}

/* Large desktop (≥1280px) */
@media screen and (min-width: 1280px) {
	.about {
		padding: 140px 0 120px;
	}

	.about__heading {
		margin-bottom: 80px;
	}
}

/* Mobile adjustments (≤767px) */
@media screen and (max-width: 767px) {
	.about {
		padding: 72px 0 56px;
	}

	.about__heading {
		margin-bottom: 40px;
	}

	.about__title {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.about__card {
		border-radius: 18px;
	}

	.about__card-image-wrap {
		border-radius: 18px;
	}

	.about__card-number {
		font-size: 2.5rem;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	/* No `padding: 0` here. It used to sit on .about__card to flush the
	   image card, but .about__card--image already zeroes its own padding —
	   all the blanket rule did was strip the padding off
	   .about__card--continents, which carries the same single-class weight
	   and lost on source order. */
	.about__card {
		border-radius: 16px;
	}

	.about__card--testimonial,
	.about__card--data {
		padding: 24px;
	}

	.about__card--continents {
		padding: 18px 20px;
	}

	.about__card-image-wrap {
		border-radius: 16px;
	}

	/* Two classes to match the base .about__card--image .about__card-stat
	   rule, which would otherwise outrank this. */
	.about__card--image .about__card-stat {
		padding: 18px 20px 20px;
		bottom: 10px;
		left: 10px;
		right: 10px;
	}

	.about__card-badge-number {
		font-size: 1.5rem;
	}

	.about__card-badge-label {
		font-size: 0.95rem;
	}
}
