/* ============================================================
   consulting-restructure.css
   Extends consulting-service.css for the restructuring page.
   Import AFTER consulting-service.css.
   ============================================================ */

.bess-consulting--restructure .bess-consulting-layout {
	align-items: start;
	grid-template-columns: minmax(0, 1fr);
}

.bess-consulting--restructure .bess-consulting-abstract {
	aspect-ratio: 3 / 1;
	min-height: 118px;
}

/* ── Phase blocks wrapper ── */
.bess-restructure-phases {
	display: grid;
	gap: 22px;
	background: transparent;
	border: 0;
}

/* ── Single phase block ── */
.bess-restructure-phase {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: #fff;
	border: 1px solid rgba(15, 132, 135, 0.14);
	overflow: hidden;
	box-shadow: 0 10px 32px rgba(12, 46, 48, 0.045);
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.bess-restructure-phase::before {
	content: "";
	position: absolute;
	inset: 0;
	width: auto;
	background: var(--color-primary);
	opacity: 0;
	transition: opacity 0.22s ease;
}

.bess-restructure-phase::after {
	content: attr(data-phase);
	position: absolute;
	right: clamp(20px, 4vw, 42px);
	bottom: -18px;
	color: rgba(15, 132, 135, 0.045);
	font-size: clamp(92px, 12vw, 168px);
	font-weight: 800;
	letter-spacing: -0.1em;
	line-height: 0.8;
	pointer-events: none;
	transition: color 0.22s ease, transform 0.22s ease;
}

.bess-restructure-phase:last-child {
	border-bottom: 1px solid var(--color-border);
}

/* ── Phase header (number + title + description) ── */
.bess-restructure-phase__header {
	display: grid;
	align-content: start;
	gap: 18px;
	cursor: default;
	padding: 36px 38px;
	background:
		linear-gradient(135deg, rgba(15, 132, 135, 0.1), rgba(15, 132, 135, 0) 62%),
		#f7fbfb;
	border-right: 1px solid rgba(15, 132, 135, 0.14);
	position: relative;
	z-index: 1;
}

.bess-restructure-phase__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	border: 0;
	border-radius: 999px;
	background: var(--color-primary);
	box-shadow: 0 12px 28px rgba(15, 132, 135, 0.18);
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.bess-restructure-phase__meta {
	display: contents;
}

.bess-restructure-phase__title {
	margin: 0 0 10px;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--color-neutral-900);
}

.bess-restructure-phase__desc {
	margin: 0;
	max-width: 760px;
	color: var(--color-neutral-800);
	font-size: 14px;
	line-height: 1.7;
}

/* ── Phase body (groups of sub-items) ── */
.bess-restructure-phase__body {
	grid-column: 2 / 4;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	gap: 18px;
	border-top: 0;
	margin-left: 0;
	background: #fbfdfd;
	position: relative;
	z-index: 1;
	padding: 24px;
}

/* ── Single group ── */
.bess-restructure-group {
	position: relative;
	align-items: start;
	display: block;
	min-height: 0;
	padding: 18px 22px;
	border: 1px solid rgba(15, 132, 135, 0.11);
	background: #fff;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bess-restructure-phase__body--4 .bess-restructure-group {
	min-height: 170px;
}

.bess-restructure-phase__body--1 .bess-restructure-group {
	grid-column: 1 / -1;
}

.bess-restructure-phase__body--1 .bess-restructure-group__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px 24px;
}

.bess-restructure-phase__body--3 .bess-restructure-group:nth-child(3) {
	grid-row: 1 / span 2;
	grid-column: 2;
}

.bess-restructure-group:last-child {
	border-bottom: 1px solid rgba(15, 132, 135, 0.11);
}

.bess-restructure-group__label {
	margin: 0 0 13px;
	color: var(--color-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.bess-restructure-group__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
}

.bess-restructure-group__list li {
	position: relative;
	padding-left: 14px;
	color: var(--color-neutral-800);
	font-size: 13.5px;
	line-height: 1.55;
}

.bess-restructure-group__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 1px;
	background: var(--color-primary);
	opacity: 0.5;
	transition: width 0.18s ease, opacity 0.18s ease;
}

/* ── Phase accent on hover ── */
.bess-restructure-phase:hover {
	border-color: rgba(15, 132, 135, 0.24);
	box-shadow: 0 18px 44px rgba(12, 46, 48, 0.07);
	transform: translateY(-2px);
	z-index: 2;
}

.bess-restructure-phase:hover::before {
	opacity: 0.018;
}

.bess-restructure-phase:hover::after {
	color: rgba(15, 132, 135, 0.08);
	transform: translateY(-4px);
}

.bess-restructure-phase:hover .bess-restructure-phase__number {
	transform: translateY(-1px);
}

.bess-restructure-group:hover {
	border-color: rgba(15, 132, 135, 0.24);
	background: #fdfefe;
	transform: translateY(-1px);
}

.bess-restructure-group:hover .bess-restructure-group__list li::before {
	width: 8px;
	opacity: 0.9;
}

/* Solution services: flat 1/3 + 2/3 layout with expandable feature cards. */
.bess-restructure-phases {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #fff;
	border: 1px solid #cfdede;
	overflow: hidden;
}

.bess-restructure-phase {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	background: #fff;
	border: 0;
	overflow: hidden;
	box-shadow: none;
	transform: none;
	transition: none;
}

.bess-restructure-phase:not(:last-child) {
	border-bottom: 3px solid #cfdede;
}

.bess-restructure-phase:hover {
	border-color: #cfdede;
	box-shadow: none;
	transform: none;
	z-index: auto;
}

.bess-restructure-phase:not(:last-child):hover {
	border-bottom-color: #cfdede;
}

.bess-restructure-phase::before,
.bess-restructure-phase::after {
	display: none;
}

.bess-restructure-phase:not(:last-child)::after {
	display: none;
}

.bess-restructure-phase__header {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 100%;
	padding: 36px 30px;
	background-color: #eefafa;
	border-right: 3px solid #0f8487;
	overflow: hidden;
}

.bess-restructure-phase:not(:last-child) .bess-restructure-phase__header::after {
	display: none;
}

.bess-restructure-phase:not(:last-child) .bess-restructure-phase__header::before {
	display: none;
}

.bess-restructure-phase__watermark {
	position: absolute;
	right: 0px;
	bottom: 60px;
	z-index: 0;
	color: rgba(15, 132, 135, 0.08);
	font-size: clamp(117px, 10.8vw, 156px);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.bess-restructure-phase__eyebrow {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #0f8487;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bess-restructure-phase__divider {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 1px;
	background: rgba(15, 132, 135, 0.18);
}

.bess-restructure-phase__divider::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 1px;
	background: #0f8487;
}

.bess-restructure-phase__meta {
	position: relative;
	z-index: 1;
	display: block;
}

.bess-restructure-phase__title {
	margin: 0 0 10px;
	color: var(--color-text-primary, var(--color-neutral-900));
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.bess-restructure-phase__desc {
	margin: 0;
	color: var(--color-text-secondary, var(--color-neutral-800));
	font-size: 15px;
	line-height: 2;
}

.bess-restructure-phase__cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: 24px;
	padding: 8px 12px;
	border: 1px solid rgba(15, 132, 135, 0.22);
	border-radius: 999px;
	background: rgba(15, 132, 135, 0.045);
	color: #0f8487;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.18s ease;
}

.bess-restructure-phase__cta:hover {
	color: #0f8487;
	border-color: rgba(15, 132, 135, 0.42);
	background: rgba(15, 132, 135, 0.08);
	opacity: 1;
}

.bess-restructure-phase__body {
	grid-column: auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 8px;
	padding: 70px 20px 20px;
	background: #fff;
	border: 0;
	overflow: visible;
}

.bess-restructure-phase:not(:last-child) .bess-restructure-phase__header,
.bess-restructure-phase:not(:last-child) .bess-restructure-phase__body {
	box-shadow: none;
}

.bess-restructure-group,
.bess-restructure-phase__body--1 .bess-restructure-group,
.bess-restructure-phase__body--3 .bess-restructure-group:nth-child(3) {
	grid-column: auto;
	grid-row: auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: #fff;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bess-restructure-phase__body .bess-restructure-group:last-child {
	border-bottom: 0;
}

.bess-restructure-group:hover,
.bess-restructure-group.open {
	background: #fff;
	transform: translateY(-4px);
	z-index: 6;
}

.bess-restructure-group.open {
	z-index: 5;
}

.bess-restructure-group__shell {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	aspect-ratio: 5 / 3;
	border: 1px solid rgba(13, 16, 16, 0.14);
	background: #fbfefe;
	box-shadow: 0 8px 22px rgba(12, 46, 48, 0.035);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bess-restructure-group__shell::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 3px;
	background: rgba(15, 132, 135, 0.55);
}

.bess-restructure-group__inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	box-sizing: border-box;
	gap: 8px;
	padding: 18px 18px 12px;
	background: transparent;
}

.bess-restructure-group__label,
.bess-restructure-group__sub {
	margin: 0;
}

.bess-restructure-group__label {
	flex: 0 0 auto;
	color: var(--color-text-primary, var(--color-neutral-900));
	font-size: 25px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
}

.bess-restructure-group__note {
	margin: 8px 30px 0 0;
	color: var(--color-text-secondary, var(--color-neutral-800));
	font-size: 14px;
	line-height: 1.75;
}

.bess-restructure-group__sub {
	margin-top: auto;
	color: #0f8487;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
}

.bess-restructure-group__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 12px 18px 15px;
	border-top: 1px solid rgba(13, 16, 16, 0.1);
	background: rgba(255, 255, 255, 0.72);
}

.bess-restructure-group:hover .bess-restructure-group__shell,
.bess-restructure-group.open .bess-restructure-group__shell {
	border-color: rgba(15, 132, 135, 0.4);
}

.bess-restructure-group:hover .bess-restructure-group__shell {
	background: #fff;
	box-shadow: 0 16px 34px rgba(12, 46, 48, 0.12);
}

.bess-restructure-group__more {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #0f8487;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.bess-restructure-group__more svg {
	transition: transform 0.2s ease;
}

.bess-restructure-group.open .bess-restructure-group__more svg {
	transform: rotate(90deg);
}

.bess-restructure-group__body {
	display: none;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px 14px;
	border: 0;
	background: var(--color-background-secondary, #f7fbfb);
}

.bess-restructure-group.open .bess-restructure-group__body {
	display: block;
	flex: 1;
	border: 0.5px solid rgba(15, 132, 135, 0.4);
	border-top: 0;
}

.bess-restructure-group__list,
.bess-restructure-phase__body--1 .bess-restructure-group__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bess-restructure-group__list li {
	position: relative;
	padding-left: 11px;
	color: var(--color-text-secondary, var(--color-neutral-800));
	font-size: 13.5px;
	line-height: 1.5;
}

.bess-restructure-group__list li::before,
.bess-restructure-group:hover .bess-restructure-group__list li::before {
	top: 7px;
	width: 4px;
	height: 1px;
	background: #0f8487;
	opacity: 1;
}

.bess-consulting--restructure .bess-consulting-benefits {
	margin-top: 0;
}

.bess-restructure-cta {
	padding-top: 64px;
}

.bess-restructure-cta__card {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
	gap: 36px;
	align-items: start;
	padding: 34px;
	border: 1px solid rgba(15, 132, 135, 0.22);
	background:
		linear-gradient(135deg, rgba(15, 132, 135, 0.1), rgba(15, 132, 135, 0) 54%),
		#fff;
	box-shadow: 0 18px 50px rgba(3, 33, 38, 0.08);
}

.bess-restructure-cta__card h2 {
	max-width: 620px;
	margin: 10px 0 18px;
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.16;
}

.bess-restructure-cta__link {
	color: var(--color-primary);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.bess-restructure-cta__link:hover {
	color: var(--color-neutral-900);
}

/* ── Neutralize legacy phase borders ── */
.bess-restructure-phase:nth-child(1) {
	border-left: 0;
}

.bess-restructure-phase:nth-child(2) {
	border-left: 0;
}

.bess-restructure-phase:nth-child(3) {
	border-left: 0;
}

.bess-restructure-phase:nth-child(4) {
	border-left: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.bess-restructure-phase {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.bess-restructure-phase__header {
		border-right: 0;
		border-bottom: 1px solid var(--color-border);
	}

	.bess-restructure-phase__body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bess-restructure-cta__card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.bess-restructure-phase {
		grid-template-columns: 1fr;
	}

	.bess-restructure-phase__number {
		width: 46px;
		height: 46px;
		font-size: 12px;
	}

	.bess-restructure-phase__meta {
		padding: 20px 18px 18px;
	}

	.bess-restructure-phase__body {
		grid-column: auto;
		grid-template-columns: 1fr;
		background: #fff;
		margin-left: 0;
		padding: 18px;
	}

	.bess-restructure-group {
		align-items: start;
		min-height: 0;
		padding: 16px 18px;
		border: 1px solid rgba(15, 132, 135, 0.11);
	}

	.bess-restructure-group__list {
		grid-template-columns: 1fr;
	}

	.bess-restructure-phase__body--1 .bess-restructure-group__list {
		grid-template-columns: 1fr;
	}

	.bess-restructure-phase__body--3 .bess-restructure-group:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}

	.bess-restructure-group:last-child {
		border-bottom: 1px solid rgba(15, 132, 135, 0.11);
	}
}

/* ── Hero background + problem cards visual refresh ── */
body:has(.bess-consulting--restructure) .bess-header {
	background: #fff;
	border-bottom-color: rgba(13, 16, 16, 0.08);
	color: #0d1010;
}

body:has(.bess-consulting--restructure) .bess-header__wordmark,
body:has(.bess-consulting--restructure) .bess-nav-item__link,
body:has(.bess-consulting--restructure) .bess-header__search-btn,
body:has(.bess-consulting--restructure) .bess-header__hamburger-desktop,
body:has(.bess-consulting--restructure) .bess-header__hamburger {
	color: #0d1010;
}

body:has(.bess-consulting--restructure) .bess-header__hamburger-desktop span,
body:has(.bess-consulting--restructure) .bess-header__hamburger-line {
	background: #0d1010;
}

body:has(.bess-consulting--restructure) .bess-header__cta {
	background: #0f8487;
	color: #fff;
}

.bess-consulting--restructure .bess-consulting-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(8, 25, 27, 0.9) 0%, rgba(10, 32, 34, 0.78) 42%, rgba(8, 25, 27, 0.48) 100%),
		url("https://bess.company/wp-content/uploads/2026/06/www.beatsnoop.com-aQhHI-1.jpg") center / cover no-repeat;
}

.bess-consulting--restructure .bess-consulting-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(8, 25, 27, 0.18);
	backdrop-filter: blur(2px);
}

.bess-consulting--restructure .bess-consulting-hero .bess-consulting-eyebrow {
	color: #73e1dd;
}

.bess-consulting--restructure .bess-global-header,
.bess-consulting--restructure .site-header,
.bess-consulting--restructure header {
	background: #102022;
	color: #fff;
}

.bess-consulting--restructure .bess-global-header a,
.bess-consulting--restructure .site-header a,
.bess-consulting--restructure header a {
	color: #fff;
}

.bess-consulting--restructure .bess-global-header svg,
.bess-consulting--restructure .site-header svg,
.bess-consulting--restructure header svg {
	color: #fff;
}

.bess-consulting--restructure .bess-consulting-hero h1,
.bess-consulting--restructure .bess-consulting-hero__content > p:not(.bess-consulting-eyebrow) {
	color: #fff;
}

.bess-consulting--restructure .bess-consulting-hero__visual {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.bess-consulting--restructure .bess-consulting-button,
.bess-consulting--restructure .bess-consulting .bess-consulting-button {
	border-color: #fff;
	background: #fff !important;
	color: #102022 !important;
}

.bess-consulting--restructure .bess-consulting-button:hover {
	border-color: #fff;
	background: #fff !important;
	color: #102022 !important;
	opacity: 0.92;
}

.bess-consulting--restructure .bess-consulting-link {
	border-color: rgba(255, 255, 255, 0.58);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.bess-consulting--restructure .bess-consulting-link:hover {
	border-color: #fff;
	background: #fff;
	color: #102022;
}

.bess-consulting--restructure .bess-consulting-problems {
	gap: 18px;
	background: transparent;
	border: 0;
}

.bess-consulting--restructure .bess-consulting-problem {
	position: relative;
	min-height: 250px;
	padding: 34px 32px;
	border: 1px solid #dfe6e6;
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bess-consulting--restructure .bess-consulting-problem::after {
	content: "";
	position: absolute;
	top: 40px;
	right: 32px;
	width: 46px;
	height: 1px;
	background: rgba(15, 132, 135, 0.34);
}

.bess-consulting--restructure .bess-consulting-problem:hover {
	border-color: rgba(15, 132, 135, 0.3);
	background: #fbfefe;
	transform: translateY(-2px);
}

.bess-consulting--restructure .bess-consulting-problem span {
	margin-bottom: 36px;
	color: #0f8487;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.bess-consulting--restructure .bess-consulting-problem h3 {
	margin: 0 0 14px;
	color: #0d1010;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.18;
}

.bess-consulting--restructure .bess-consulting-problem p {
	color: #5b696a;
	font-size: 15px;
	line-height: 1.65;
}

@media (max-width: 767px) {
	.bess-consulting--restructure .bess-consulting-hero {
		background:
			linear-gradient(90deg, rgba(8, 25, 27, 0.92), rgba(8, 25, 27, 0.68)),
			url("https://bess.company/wp-content/uploads/2026/06/www.beatsnoop.com-aQhHI-1.jpg") center / cover no-repeat;
	}

	.bess-consulting--restructure .bess-consulting-problem {
		min-height: auto;
		padding: 28px 24px;
	}

	.bess-consulting--restructure .bess-consulting-problem::after {
		top: 34px;
		right: 24px;
		width: 38px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.bess-restructure-phase {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.bess-restructure-phase__header {
		border-right: 1px solid var(--color-border-tertiary, var(--color-border));
		border-bottom: 0;
	}

	.bess-restructure-phase__body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bess-restructure-phase {
		grid-template-columns: 1fr;
	}

	.bess-restructure-phase__header {
		border-right: 0;
		border-bottom: 1px solid var(--color-border-tertiary, var(--color-border));
	}

	.bess-restructure-phase__body {
		grid-template-columns: 1fr;
		padding: 20px;
		border-top: 1px solid #0f8487;
	}

	.bess-restructure-group,
	.bess-restructure-phase__body--1 .bess-restructure-group,
	.bess-restructure-phase__body--3 .bess-restructure-group:nth-child(3) {
		aspect-ratio: auto;
		padding: 0;
	}

	.bess-restructure-group__shell {
		aspect-ratio: 5 / 3;
	}
}
