/*
 * TIS Why Choose Us. Desktop: Figma frame 1672 x 941 — copy on the left, a 782 x 714 photo bleeding off
 * the right edge, a statistics bar overlapping the photo and a soft 50px strip along the bottom.
 */

.tis-why {
	background: var(--tis-bg);
	overflow: hidden;
}

.tis-why__inner {
	position: relative;
	padding-right: calc(45 * var(--tis-u));
	padding-left: calc(46 * var(--tis-u));
}

.tis-why__edge {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(50 * var(--tis-u));
	overflow: hidden;
}

.tis-why__edge .tis-why__edge-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Copy column (sits above the photo, which it overlaps slightly) */
.tis-why__content {
	position: relative;
	z-index: 2;
	max-width: calc(930 * var(--tis-u));
	padding-left: calc(34 * var(--tis-u));
}

.tis-why__eyebrow .tis-eyebrow__line { width: calc(216 * var(--tis-u)); }

.tis-why__title {
	margin: calc(10.6 * var(--tis-u)) 0 0 calc(-2 * var(--tis-u));
	font-family: var(--tis-font-display);
	font-size: max(30px, calc(62 * var(--tis-u)));
	font-weight: 900;
	line-height: 1.12;
	color: var(--tis-ink);
}

.tis-why__text {
	max-width: calc(735 * var(--tis-u));
	margin-top: calc(23 * var(--tis-u));
	font-size: max(15px, calc(21 * var(--tis-u)));
	font-weight: 400;
	line-height: 1.38;
	color: var(--tis-body);
}

.tis-why__text p { margin: 0 0 0.6em; }
.tis-why__text p:last-child { margin-bottom: 0; }

/* Benefit cards */
.tis-why__features {
	display: grid;
	grid-template-columns: repeat(3, calc(270 * var(--tis-u)));
	column-gap: calc(11.5 * var(--tis-u));
	row-gap: calc(19 * var(--tis-u));
	margin: var(--tis-gap) 0 0 calc(-2 * var(--tis-u));
}

.tis-why__feature {
	display: flex;
	align-items: flex-start;
	gap: calc(17 * var(--tis-u));
	height: calc(100 * var(--tis-u));
	padding: calc(12 * var(--tis-u)) calc(8 * var(--tis-u)) 0 calc(10 * var(--tis-u));
	border: 1px solid var(--tis-line);
	border-radius: calc(15 * var(--tis-u));
	background: rgba(255, 255, 255, 0.91);
	transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tis-why__feature.is-visible:hover {
	transform: translateY(-3px);
	border-color: #c4d5f2;
	box-shadow: 0 14px 28px rgba(31, 66, 108, 0.1);
}

.tis-why__feature-icon {
	width: max(44px, calc(65 * var(--tis-u)));
	height: max(44px, calc(65 * var(--tis-u)));
	color: var(--tis-primary);
}

.tis-why__feature-icon svg {
	width: max(24px, calc(34 * var(--tis-u)));
	height: max(24px, calc(34 * var(--tis-u)));
}

.tis-why__feature-copy {
	display: flex;
	flex-direction: column;
	margin-top: calc(5 * var(--tis-u));
	min-width: 0;
	max-width: calc(172 * var(--tis-u));
}

.tis-why__feature-title {
	font-size: max(13px, calc(14 * var(--tis-u)));
	font-weight: 600;
	line-height: 1.4;
	color: var(--tis-ink);
}

.tis-why__feature-text {
	margin-top: calc(7.4 * var(--tis-u));
	font-size: max(12px, calc(13 * var(--tis-u)));
	font-weight: 400;
	line-height: 1.4;
	color: #415783;
}

/* Buttons */
.tis-why__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(20 * var(--tis-u));
	margin-top: var(--tis-gap);
}

.tis-why__btn--primary { min-width: calc(330 * var(--tis-u)); font-size: max(15px, calc(20 * var(--tis-u))); }
.tis-why__btn--secondary { min-width: calc(216 * var(--tis-u)); font-size: max(15px, calc(20 * var(--tis-u))); }

/* Photograph: sits behind the copy and dissolves into the page on its left, top and bottom edges. */
.tis-why__photo {
	--fl: 46%;
	--ft: 8%;
	--fb: 14%;
	position: absolute;
	top: calc(29 * var(--tis-u));
	right: 0;
	z-index: 0;
	width: calc(782 * var(--tis-u));
	height: calc(714 * var(--tis-u));
	overflow: hidden;
}

.tis-why__photo .tis-why__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Statistics bar (Figma: 1581 x 146, 18px radius) */
.tis-why__stats {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: var(--tis-cols, repeat(5, 1fr));
	align-items: center;
	height: calc(146 * var(--tis-u));
	margin-top: var(--tis-gap);
	border-radius: calc(18 * var(--tis-u));
	background: var(--tis-white);
}

.tis-why__stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: calc(15 * var(--tis-u));
	min-width: 0;
	padding-left: calc(33 * var(--tis-u));
}

.tis-why__stat + .tis-why__stat::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: calc(96 * var(--tis-u));
	background: #cbd9fa;
	transform: translateY(-50%);
}

.tis-why__stat-icon {
	width: max(48px, calc(79 * var(--tis-u)));
	height: max(48px, calc(79 * var(--tis-u)));
	color: var(--tis-primary);
}

.tis-why__stat-icon svg {
	width: max(26px, calc(43 * var(--tis-u)));
	height: max(26px, calc(43 * var(--tis-u)));
}

.tis-why__stat-copy { display: flex; flex-direction: column; min-width: 0; }

.tis-why__stat-value {
	font-size: max(22px, calc(33 * var(--tis-u)));
	font-weight: 700;
	line-height: 1.2;
	color: var(--tis-ink-2);
	font-variant-numeric: tabular-nums;
}

.tis-why__stat-label {
	margin-top: calc(3.4 * var(--tis-u));
	font-size: max(13px, calc(16 * var(--tis-u)));
	font-weight: 500;
	line-height: 1.4;
	color: #07104a;
}

.tis-why__stat-sub {
	margin-top: calc(3.6 * var(--tis-u));
	font-size: max(11px, calc(13 * var(--tis-u)));
	font-weight: 400;
	line-height: 1.4;
	color: #6480bb;
}

/* ---------------------------------------------------------------------
 * Tablet
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.tis-why__inner { padding-left: var(--tis-gutter); padding-right: var(--tis-gutter); }
	.tis-why__content { max-width: none; padding-left: 0; }
	.tis-why__eyebrow .tis-eyebrow__line { width: 120px; }
	.tis-why__title { margin: 14px 0 0; font-size: 46px; }
	.tis-why__text { max-width: 680px; margin-top: 20px; font-size: 18px; }
	.tis-why__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: var(--tis-gap) 0 0; }
	.tis-why__feature { height: auto; min-height: 100px; gap: 14px; padding: 14px 14px 14px 12px; }
	.tis-why__feature-icon { width: 56px; height: 56px; }
	.tis-why__feature-icon svg { width: 28px; height: 28px; }
	.tis-why__feature-copy { margin-top: 2px; max-width: none; }
	.tis-why__feature-title { font-size: 15px; }
	.tis-why__feature-text { font-size: 13px; }
	.tis-why__actions { margin-top: var(--tis-gap); gap: 16px; }
	.tis-why__btn--primary,
	.tis-why__btn--secondary { min-width: 0; padding: 0 34px; }

	.tis-why__photo {
		position: relative;
		top: auto;
		right: auto;
		width: calc(100% + 2 * var(--tis-gutter));
		height: clamp(300px, 56vw, 480px);
		margin: 44px calc(-1 * var(--tis-gutter)) 0;
	}

	.tis-why__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; margin-top: -40px; padding: 26px 8px; border-radius: 18px; box-shadow: 0 18px 44px rgba(31, 66, 108, 0.1); }
	.tis-why__stat { padding: 14px 18px; gap: 12px; }
	.tis-why__stat + .tis-why__stat::before { display: none; }
	.tis-why__stat-icon { width: 56px; height: 56px; }
	.tis-why__stat-icon svg { width: 28px; height: 28px; }
	.tis-why__stat-value { font-size: 26px; }
}

/* ---------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.tis-why__eyebrow .tis-eyebrow__line { width: 56px; }
	.tis-why__title { font-size: 30px; }
	.tis-why__text { font-size: 16px; }
	.tis-why__features { grid-template-columns: 1fr; gap: 12px; }
	.tis-why__actions { flex-direction: column; align-items: stretch; }
	.tis-why__btn--primary,
	.tis-why__btn--secondary { width: 100%; }
	.tis-why__photo { height: clamp(240px, 70vw, 340px); margin-top: 36px; }
	.tis-why__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; padding: 18px 4px; }
	.tis-why__stat { padding: 12px 12px; gap: 10px; }
	.tis-why__stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.tis-why__stat-icon { width: 46px; height: 46px; }
	.tis-why__stat-icon svg { width: 24px; height: 24px; }
	.tis-why__stat-value { font-size: 22px; }
	.tis-why__stat-label { font-size: 13px; }
	.tis-why__feature-copy { margin-top: 0px !Important; }
}
