/* ==========================================================================
   Beyond the Build
   Editorial accordion section + inverted Store Audit CTA.
   Reuses the site's existing accent gradient (#FB591E -> #F4EA8C) and
   dark tone (#0b0b0f) from the hero section — no new colour system.
   ========================================================================== */

.btb {
	background: #e6e6e6;
	color: #1a1a1a;
	padding: 5rem 0 0;
}

.btb__inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* ---- Intro ---- */

.btb__intro {
	max-width: 620px;
	margin: 0 0 1.5rem;
}

.btb__eyebrow {
	margin: 0 0 1rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #FB591E;
}

.btb__heading {
	color: #1a1a1a;
}

.btb__lede {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #2a2a2a;
}

/* ---- Row list ---- */

.btb__list {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btb__row {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btb__row-heading {
	margin: 0;
	font-weight: inherit;
}

.btb__trigger:focus-visible,
.btb-audit__cta:focus-visible {
	outline: 2px solid #FB591E;
	outline-offset: 4px;
}

.btb__trigger {
	display: grid;
	grid-template-columns: 56px 1fr 40px;
	align-items: center;
	width: 100%;
	padding: 1rem 0 0.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}

.btb__trigger:hover,
.btb__trigger:active,
.btb__trigger:focus-visible,
.btb__trigger[aria-expanded="true"],
.btb__trigger:focus {
	color: inherit;
  background: transparent;
	box-shadow: none;
}

.btb__index {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #393E46;
}

.btb__title {
	color: inherit;
}

/* Plus / minus toggle */

.btb__toggle {
	position: relative;
	width: 32px;
	height: 32px;
	justify-self: end;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.18);
}

.btb__toggle-line {
	position: absolute;
	top: 50%;
	left: 50%;
	background: #1a1a1a;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.btb__toggle-line--h {
	width: 12px;
	height: 1.5px;
	transform: translate(-50%, -50%);
}

.btb__toggle-line--v {
	width: 1.5px;
	height: 12px;
	transform: translate(-50%, -50%);
}

.btb__trigger[aria-expanded="true"] .btb__toggle-line--v {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

/* Statement line (always visible, sits under the title row) */

.btb__statement {
	margin: 0 0 0 56px;
	padding-bottom: 1rem;
	font-size: 16px;
	color: #393E46;
}

/* Expandable panel — grid-rows trick for smooth height animation,
   no JS height measurement needed. */

.btb__panel-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
	margin-left: 56px;
}

.btb__row.is-open .btb__panel-wrap {
	grid-template-rows: 1fr;
}

.btb__panel {
	overflow: hidden;
	min-height: 0;
}

.btb__description {
	max-width: 640px;
	margin: 0 0 1rem;
	font-size: 16px;
	line-height: 1.65;
	color: #000;
}

.btb__tags {
	margin: 0 0 1rem;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: #222831;
}

/* ==========================================================================
   Store Audit — inverted CTA block
   ========================================================================== */

.btb-audit {
	margin-top: 6rem;
	background: #0b0b0f;
	padding: 6rem 50px;
}

.btb-audit__inner {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.btb-audit__eyebrow {
	margin: 0 0 1rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #F4EA8C;
}

.btb-audit__heading {
	margin: 0 0 1rem;
	font-weight: 700;
	color: #ffffff;
}

.btb-audit__lede {
	margin: 0 0 1.25rem;
	font-size: 18px;
	color: #e6e6e6;
}

.btb-audit__body {
	margin: 0 0 1.75rem;
	font-size: 15px;
	line-height: 1.65;
	color: #a3a3ad;
}

.btb-audit__tags {
	margin: 0 0 2.5rem;
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--global-palette3);
}

.btb-audit__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	border-radius: 4px;
	background: linear-gradient(90deg, #FB591E 33%, #F4EA8C 88%);
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: none;
	overflow: hidden;
	z-index: 0;
}

.btb-audit__cta span {
	position: relative;
	z-index: 2;
	transition: color 0.35s ease;
}

.btb-audit__cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #FB591E;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s ease;
	z-index: 1;
}

.btb-audit__cta:hover::before {
	transform: scaleX(1);
}

.btb-audit__cta:hover span {
	color: #ffffff;
}

.btb-audit__cta-arrow {
	transition: transform 0.3s ease;
}

.btb-audit__cta:hover .btb-audit__cta-arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {

	.btb {
		padding: 3rem 0 0;
	}

	.btb__inner {
	  padding: 0 20px;
	}

	.btb__heading {
		font-size: 30px;
    line-height: 1.2;
    margin-bottom: 15px;
	}

	.btb-audit__heading {
		font-size: 30px;
    line-height: 1.2;
	}

	.btb__intro {
		margin-bottom: 1.5rem;
	}

	.btb__trigger {
		grid-template-columns: 32px 1fr 32px;
		padding: 1rem 0;
		gap: 12px;
	}

	.btb__index {
		font-size: 12px;
	}

	.btb__title {
		font-size: 18px;
	}

	.btb__description {
		font-size: 14px;
	}

	.btb__toggle {
		width: 28px;
		height: 28px;
	}

	.btb__statement,
	.btb__panel-wrap {
		margin-left: 0;
	}

	.btb-audit {
		margin-top: 4rem;
		padding: 4rem 24px;
	}

	.btb-audit__cta {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btb__toggle-line,
	.btb__panel-wrap,
	.btb-audit__cta,
	.btb-audit__cta::before,
	.btb-audit__cta-arrow {
		transition: none !important;
	}
}