/* =========================================================
   "Why us" section — painting background, light glass cards.
   Markup: templates/sec-whyUs.php · Motion: assets/js/whyus-gsap.js
   (the outlined "WHY US?" heading sits above, in its own white section)
   ========================================================= */

.why-ox {
	--why-olive: #71784B;
	--why-olive-dark: #5B6139;
	--why-ink: #1B1F17;
	--why-text: #4A4D45;
	--why-deep: #0E1211;
	--why-display: 'DM Serif Display', Georgia, serif;
	--why-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	position: relative;
	padding: clamp(72px, 9vw, 120px) 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--why-deep);
	font-family: var(--why-body);
}

/* oversized so the parallax never shows an edge */
.why-ox__bg {
	position: absolute;
	inset: -14% 0;
	z-index: -2;
	background: url('../../img/bg/why-us-bg.webp') center / cover no-repeat;
	will-change: transform;
}

/* light veil: keeps the painting visible while the light cards stand out */
.why-ox__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(14 18 17 / .35) 0%, rgb(14 18 17 / .15) 50%, rgb(14 18 17 / .4) 100%);
	pointer-events: none;
}

.why-ox__inner {
	position: relative;
}

/* ---------- Light glass cards ---------- */
.why-card {
	--mx: 50%;
	--my: 0%;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(28px, 3vw, 40px);
	border-radius: 20px;
	background:
		radial-gradient(420px circle at var(--mx) var(--my), rgb(113 120 75 / .08), transparent 60%),
		rgb(255 255 255 / .86);
	border: 1px solid rgb(255 255 255 / .7);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 20px 50px rgb(0 0 0 / .22);
	overflow: hidden;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, background-color .4s ease;
}

.why-card:hover,
.why-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 30px 70px rgb(0 0 0 / .3);
}

.why-card__num {
	display: block;
	margin-bottom: 18px;
	font: 600 13px/1 var(--why-body);
	letter-spacing: .2em;
	color: var(--why-olive);
}

.why-card__title {
	margin: 0 0 14px;
	font-family: var(--why-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 2.6vw, 2.6rem);
	line-height: 1.08;
	color: var(--why-ink);
}

.why-card__tag {
	margin: 0 0 12px;
	font: 600 1rem/1.45 var(--why-body);
	color: var(--why-olive);
}

.why-card__text {
	margin: 0 0 28px;
	font: 400 .98rem/1.7 var(--why-body);
	color: var(--why-text);
}

.why-card__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	align-self: flex-start;
	font: 600 15px/1 var(--why-body);
	color: var(--why-ink);
	text-decoration: none;
}

.why-card__arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--why-olive);
	color: var(--why-olive);
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.why-card__link:hover,
.why-card__link:focus-visible {
	color: var(--why-olive-dark);
}

.why-card__link:hover .why-card__arrow,
.why-card__link:focus-visible .why-card__arrow {
	background: var(--why-olive);
	color: #fff;
	transform: translateX(4px);
}

.why-card__link:focus-visible {
	outline: 2px solid var(--why-olive);
	outline-offset: 4px;
	border-radius: 4px;
}

/* desktop: the right column sits lower, like the original staggered layout;
   cards size to their own content so the offset doesn't stretch the left card */
@media (min-width: 768px) {
	.why-ox__grid {
		align-items: flex-start;
	}

	.why-ox__col--right {
		padding-top: 48px;
	}

	.why-card {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.why-card,
	.why-card__arrow {
		transition: none;
	}
}

/* Arrow icon inside the round "Learn more" button */
.why-card__arrow .ox-arrow {
	display: block;
	width: 18px;
	height: auto;
}