/* Built Different — 8 feature cards on a dark ground (design.md §built-different). */

.tt-built-different {
	padding-block: 60px 70px;
	background: #21211f;
}

/* Head */
.tt-built-different__head {
	text-align: center;
	margin-bottom: 40px;
}

.tt-built-different__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", sans-serif) !important;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-built-different__eyebrow::before {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-built-different__title {
	margin: 0 auto;
	max-width: 560px;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 600 !important;
	font-size: 62px;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	color: #fff !important;
}

/* Grid */
.tt-built-different__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 3px;
	max-width: 1728px;
	margin-inline: auto;
	padding-inline: 50px;
}

.tt-feature {
	position: relative;
	flex: 0 1 404px;
	box-sizing: border-box;
	min-height: 268px;
	padding: 22px 23px 24px;
	background: #191917;
}

/* The card header is a real <button> so the mobile accordion is keyboard- and
   screen-reader-operable. At desktop widths it is a plain block — the toggle
   carries no styling of its own and feature-accordion.js takes it out of the
   tab order, since there is nothing to toggle. */
.tt-feature__heading {
	margin: 0;
	font: inherit;
}

.tt-feature__toggle {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: default;
}

.tt-feature__arrow {
	display: none;
}

.tt-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 71px;
	height: 73px;
	background: rgba(207, 32, 38, 0.1);
}

.tt-feature__icon img {
	width: 45px;
	height: 45px;
	object-fit: contain;
}

.tt-feature__title {
	display: block;
	margin: 10px 0 0;
	font-family: var(--wp--preset--font-family--oswald, "Oswald", sans-serif) !important;
	font-weight: 500 !important;
	font-size: 20px;
	line-height: 1.45;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff !important;
}

.tt-feature__body {
	margin: 14px 0 0;
	max-width: 358px;
	font-family: var(--wp--preset--font-family--barlow, "Barlow", sans-serif) !important;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
}

/* Full-width red bar along the card's bottom edge. Note the Figma vector
   (`Line 4`) is 392px on a 404px card — flush left, stopping ~12px short on the
   right — but full width is the intended treatment (Edward, review 2026-08-13).
   It was previously inset by the card's 23px padding on BOTH sides, which read
   as a short centred stub. */
.tt-feature::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--red, #cf2026);
}

/* ---- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
	.tt-built-different {
		padding-block: 40px;
	}

	.tt-built-different__title {
		font-size: 34px;
	}

	.tt-built-different__grid {
		padding-inline: 20px;
		gap: 10px;
	}

	/* FAQ-style accordion (design node 4013:2): each card collapses to a 97px
	   row — icon, title, and a chevron top-right — with one panel open at a
	   time and the first open by default (its item is 230px tall in the design).
	   feature-accordion.js drives it; the markup ships expanded so the copy is
	   still readable without JS. */
	.tt-feature {
		flex: 1 1 100%;
		min-height: 0;
		padding: 0;
	}

	.tt-feature__toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 20px;
		cursor: pointer;
	}

	.tt-feature__icon {
		flex: none;
		width: 72px;
		height: 72px;
	}

	.tt-feature__title {
		flex: 1 1 auto;
		margin: 0;
	}

	/* 19 × 10 chevron at the row's right edge (Figma `Frame 71` at x=339),
	   flipping to point up when the panel is open. */
	.tt-feature__arrow {
		display: block;
		flex: none;
		width: 19px;
		height: 10px;
		color: #fff;
		transition: transform 0.2s ease;
	}

	.tt-feature__arrow svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	.tt-feature.is-open .tt-feature__arrow {
		transform: rotate(180deg);
	}

	/* Body hangs under the title, not the icon — 82px in from the content edge
	   in the design, i.e. 102 from the card's left. */
	.tt-feature__panel {
		padding: 0 20px 16px 102px;
	}

	.tt-feature__body {
		margin: 0;
	}
}
