/**
 * Franchise process timeline — styles from EverSmith-HTML-PAGE franchising-process.
 * Root uses .franchising-process.timeline-block to match static HTML class names.
 */

.franchising-process.timeline-block {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	--orange: #e57440;
	--smith-grey: #404a50;
	--btn-primary-rest: #e57440;
	--btn-primary-hover: #d86a38;
	--btn-primary-pressed: #c55f32;
	--transition-fast: 0.2s ease;
}

.franchising-process.timeline-block {
	padding: 100px 80px;
	width: 100%;
}

/* Optional full-bleed background (matches timeline-brands / about-history layering + parallax img).
 * Scoped to .franchising-process.timeline-block only — never use generic -bg class names without this prefix. */
.franchising-process.timeline-block.franchising-process--bg-image {
	overflow: hidden;
}

.franchising-process.timeline-block.franchising-process--bg-image .timeline-block__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.franchising-process.timeline-block.franchising-process--bg-image .timeline-block__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
	transform-origin: center center;
}

.franchising-process.timeline-block.franchising-process--bg-image .timeline-block__bg-overlay {
	position: absolute;
	inset: 0;
	/* Unified soft tint matching text-4-columns-block and other blocks */
	background: rgba(233, 247, 248, 0.2);
}

/* When background image is enabled, add base light teal background */
.franchising-process.timeline-block.franchising-process--bg-image {
	background: #E9F7F8;
}

/* Ensure background image has unified opacity */
.franchising-process.timeline-block.franchising-process--bg-image .timeline-block__bg img {
	opacity: 0.24; /* Unified opacity with text-4-columns-block */
}

.franchising-process.timeline-block.franchising-process--bg-image .franchising-process-inner {
	position: relative;
	z-index: 1;
}

.franchising-process.timeline-block .franchising-process-timeline {
	position: relative;
	width: 100%;
}

.franchising-process.timeline-block .franchising-process-watermark {
	position: absolute;
	width: 400px;
	height: 240px;
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}

.franchising-process.timeline-block .franchising-process-watermark--top {
	top: -20px;
	left: -80px;
}

.franchising-process.timeline-block .franchising-process-watermark--bottom {
	bottom: 185px;
	right: -80px;
}

.franchising-process.timeline-block .franchising-process-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 80px;
	align-items: center;
}

.franchising-process.timeline-block .franchising-process-header {
	text-align: center;
	max-width: 900px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.franchising-process.timeline-block .franchising-process-header .home-section-label {
	justify-content: center;
}

.franchising-process.timeline-block .franchising-process-header .home-section-label span {
	color: #0097a7;
	font-weight: 700;
}

.franchising-process.timeline-block .franchising-process-timeline {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.franchising-process.timeline-block .process-row {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	width: 100%;
	position: relative;
	z-index: 1;
}

.franchising-process.timeline-block .process-row--right {
	justify-content: flex-end;
}

.franchising-process.timeline-block .process-row--left {
	justify-content: flex-start;
}

.franchising-process.timeline-block .process-space {
	flex: 1 1 0;
	min-height: 1px;
	min-width: 1px;
	align-self: stretch;
}

.franchising-process.timeline-block .process-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 32px;
	align-self: stretch;
	flex-shrink: 0;
}

.franchising-process.timeline-block .process-line {
	width: 3px;
	background: var(--orange, #e57440);
}

.franchising-process.timeline-block .process-line--top {
	height: 24px;
	flex-shrink: 0;
}

.franchising-process.timeline-block .process-line--bottom {
	flex: 1 0 0;
	min-height: 1px;
}

.franchising-process.timeline-block .franchising-process-timeline .process-row:first-child .process-line--top {
	height: 24px;
}

.franchising-process.timeline-block .process-circle {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--orange, #e57440);
	flex-shrink: 0;
	margin: 8px 0;
}

.franchising-process.timeline-block .process-content {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 1px;
	min-height: 1px;
	padding-top: 16px;
	align-items: flex-start;
}

.franchising-process.timeline-block .process-content--left {
	align-items: flex-end;
	text-align: right;
}

.franchising-process.timeline-block .process-text {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: var(--smith-grey, #404a50);
	margin: 0;
	white-space: pre-wrap;
}

.franchising-process.timeline-block .franchising-process-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 8px 32px;
	border-radius: 8px;
	background-color: var(--btn-primary-rest);
	color: #fff;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.franchising-process.timeline-block .franchising-process-btn:hover {
	background-color: var(--btn-primary-hover);
	box-shadow: 0 6px 14px rgba(1, 13, 20, 0.1);
}

.franchising-process.timeline-block .franchising-process-btn:active {
	background-color: var(--btn-primary-pressed);
	box-shadow: none;
}

.franchising-process.timeline-block .franchising-process-btn:focus-visible {
	outline: 2px solid var(--btn-primary-pressed);
	outline-offset: 2px;
}

/* Tablet */
@media (max-width: 1024px) {
	.franchising-process.timeline-block {
		padding: 80px 40px;
	}

	.franchising-process.timeline-block .franchising-process-watermark {
		width: 300px;
		height: 180px;
	}

	.franchising-process.timeline-block .franchising-process-watermark--top {
		top: -10px;
		left: -40px;
	}

	.franchising-process.timeline-block .franchising-process-watermark--bottom {
		bottom: 185px;
		right: -40px;
	}

	.franchising-process.timeline-block .franchising-process-timeline {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 40px;
	}

	.franchising-process.timeline-block .process-space,
	.franchising-process.timeline-block .process-track,
	.franchising-process.timeline-block .process-line,
	.franchising-process.timeline-block .process-circle {
		display: none;
	}

	.franchising-process.timeline-block .process-row,
	.franchising-process.timeline-block .process-row--right,
	.franchising-process.timeline-block .process-row--left {
		position: relative;
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 0;
		padding-left: 48px;
		margin-bottom: 0;
	}

	.franchising-process.timeline-block .process-row::after {
		content: "";
		position: absolute;
		left: 10px;
		top: 12px;
		width: 15px;
		height: 15px;
		border-radius: 50%;
		background: var(--orange, #e57440);
		transform: translateX(-50%);
		z-index: 2;
	}

	.franchising-process.timeline-block .process-row::before {
		content: "";
		position: absolute;
		left: 10px;
		top: 0;
		height: 4px;
		width: 3px;
		transform: translateX(-50%);
		background: var(--orange, #e57440);
		z-index: 0;
	}

	.franchising-process.timeline-block .process-row:first-child::before {
		height: 19px;
		top: -15px;
	}

	.franchising-process.timeline-block .process-row .process-content::before {
		content: "";
		position: absolute;
		left: -38px;
		top: 35px;
		bottom: -40px;
		width: 3px;
		transform: translateX(-50%);
		background: var(--orange, #e57440);
		z-index: 0;
	}

	.franchising-process.timeline-block .process-row:last-child .process-content::before {
		bottom: 0;
	}

	.franchising-process.timeline-block .process-content,
	.franchising-process.timeline-block .process-content--left {
		flex: 1;
		min-width: 0;
		padding-top: 0;
		align-items: flex-start;
		text-align: left;
		gap: 12px;
		position: relative;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.franchising-process.timeline-block {
		padding: 60px 24px;
	}

	.franchising-process.timeline-block .franchising-process-header {
		gap: 12px;
	}

	.franchising-process.timeline-block .franchising-process-watermark {
		width: 200px;
		height: 120px;
	}

	.franchising-process.timeline-block .franchising-process-watermark--top {
		top: -5px;
		left: -20px;
	}

	.franchising-process.timeline-block .franchising-process-watermark--bottom {
		bottom: 185px;
		right: -20px;
	}

	.franchising-process.timeline-block .franchising-process-timeline {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 40px;
	}

	.franchising-process.timeline-block .process-row,
	.franchising-process.timeline-block .process-row--right,
	.franchising-process.timeline-block .process-row--left {
		position: relative;
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 0;
		padding-left: 48px;
		margin-bottom: 0;
	}

	.franchising-process.timeline-block .process-row::before {
		content: "";
		position: absolute;
		left: 10px;
		top: 0;
		height: 4px;
		width: 3px;
		transform: translateX(-50%);
		background: var(--orange, #e57440);
		z-index: 0;
	}

	.franchising-process.timeline-block .process-row:first-child::before {
		height: 19px;
		top: -15px;
	}

	.franchising-process.timeline-block .process-row::after {
		content: "";
		position: absolute;
		left: 10px;
		top: 12px;
		width: 15px;
		height: 15px;
		border-radius: 50%;
		background: var(--orange, #e57440);
		transform: translateX(-50%);
		z-index: 2;
	}

	.franchising-process.timeline-block .process-row .process-content::before {
		content: "";
		position: absolute;
		left: -38px;
		top: 35px;
		bottom: -40px;
		width: 3px;
		transform: translateX(-50%);
		background: var(--orange, #e57440);
		z-index: 0;
	}

	.franchising-process.timeline-block .process-row:last-child .process-content::before {
		bottom: 0;
	}

	.franchising-process.timeline-block .process-space,
	.franchising-process.timeline-block .process-track,
	.franchising-process.timeline-block .process-line,
	.franchising-process.timeline-block .process-circle {
		display: none;
	}

	.franchising-process.timeline-block .process-content,
	.franchising-process.timeline-block .process-content--left {
		flex: 1;
		min-width: 0;
		padding-top: 0;
		align-items: flex-start;
		text-align: left;
		gap: 12px;
		position: relative;
	}

	.franchising-process.timeline-block .process-text {
		font-size: 15px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.franchising-process.timeline-block .process-row,
	.franchising-process.timeline-block .process-row--right,
	.franchising-process.timeline-block .process-row--left {
		padding-left: 32px;
	}

	.franchising-process.timeline-block .process-row::after {
		width: 14px;
		height: 14px;
		top: 11px;
	}

	.franchising-process.timeline-block .process-row::before {
		height: 3px;
		left: 10px;
	}

	.franchising-process.timeline-block .process-row:first-child::before {
		height: 18px;
		top: -15px;
	}

	.franchising-process.timeline-block .process-row .process-content::before {
		top: 33px;
		left: -22px;
	}

	.franchising-process.timeline-block .franchising-process-watermark {
		display: none;
	}
}
