/* ==========================================================================
   ESTONE PRE-FOOTER CALL TO ACTION SECTION STYLESHEET
   ========================================================================== */

/* Frontend Full Screen Edge-to-Edge Container Breakout */
.estone-prefooter-wrapper {
	position: relative !important;
	width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	margin-bottom: 0 !important;
	background: transparent !important;
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	overflow: visible !important;
	box-sizing: border-box;
	z-index: 15 !important;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-prefooter-wrapper,
.block-editor-block-list__layout .estone-prefooter-wrapper,
.block-editor-block-list__block .estone-prefooter-wrapper,
.block-editor-iframe__html .estone-prefooter-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow: visible !important;
}

.estone-prefooter-wrapper * {
	box-sizing: border-box;
}

.estone-pf-top-stage {
	width: 100% !important;
	position: relative !important;
	overflow: visible !important;
	box-sizing: border-box;
	padding-top: 120px !important;
	padding-bottom: 200px !important;
	background-color: #ebf4fc !important;
}

/* Inner Container */
.estone-pf-inner-container {
	margin: 0 auto;
	width: 100%;
	position: relative;
	z-index: 10;
}

/* 1. Top Sub-Section ("Can't Find The Perfect Fit?") */
.estone-pf-top-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

.estone-pf-top-title {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-weight: 700;
	margin: 0 0 0.85rem 0;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.estone-pf-top-subtitle {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	line-height: 1.55;
	margin: 0 0 1.75rem 0;
	font-weight: 500;
}

.estone-pf-top-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 500;
	padding: 9px 24px;
	border-radius: 50px;
	transition: all 0.25s ease;
	line-height: 1;
	font-size: 0.92rem;
}

.estone-pf-top-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 56, 117, 0.12);
}

.estone-pf-top-btn .arrow-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.estone-pf-top-btn:hover .arrow-icon {
	transform: translate(2px, -2px);
}

/* 2. Overlapping Card ("Ready to Build Your Custom Solution?") */
.estone-pf-card-stage {
	position: relative;
	width: 100%;
	margin-top: -135px !important;
	margin-bottom: -135px !important;
	z-index: 20 !important;
	transition: margin-bottom 0.25s ease;
}

.estone-pf-bottom-card {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
	border-radius: 8px;
}

.estone-pf-bottom-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.estone-pf-bottom-content {
	position: relative;
	z-index: 2;
	max-width: 560px;
	padding: 2.25rem 3rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.estone-pf-bottom-title {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 0.5rem 0;
	font-size: 1.625rem;
	line-height: 1.25;
}

.estone-pf-bottom-subtitle {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.5;
	font-size: 0.85rem;
	margin: 0 0 1.25rem 0;
}

.estone-pf-bottom-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.82rem;
	padding: 8px 22px;
	border-radius: 50px;
	transition: all 0.25s ease;
	line-height: 1;
	backdrop-filter: blur(4px);
}

.estone-pf-bottom-btn:hover {
	transform: translateY(-2px);
}

.estone-pf-bottom-btn .arrow-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.estone-pf-bottom-btn:hover .arrow-icon {
	transform: translate(2px, -2px);
}

/* Hidden Notice Banner for Gutenberg Editor Canvas */
.estone-pf-hidden-notice {
	padding: 20px;
	background: #f8fafc;
	border: 2px dashed #94a3b8;
	border-radius: 8px;
	text-align: center;
	color: #64748b;
	font-weight: 600;
	margin: 15px 0;
}

/* Interactive Canvas Image Picker Helper */
.estone-pf-canvas-img-picker {
	cursor: pointer;
	position: relative;
	width: 100%;
}

.estone-pf-canvas-img-picker:hover::after {
	content: 'Click to Change Hero Background Image';
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 56, 117, 0.85);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	z-index: 10;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
	.estone-prefooter-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		left: 0 !important;
		right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

@media (max-width: 1199.98px) {
	.estone-pf-card-stage {
		margin-bottom: -110px !important;
	}
}

@media (max-width: 768px) {
	.estone-pf-top-content {
		padding: 0 1rem;
	}

	.estone-pf-card-stage {
		margin-top: 24px !important;
		margin-bottom: -60px !important;
	}

	.estone-pf-bottom-content {
		padding: 2rem 1.5rem;
		max-width: 100%;
	}

	.estone-pf-bottom-title {
		font-size: 1.35rem !important;
		line-height: 1.3 !important;
	}

	.estone-pf-bottom-subtitle {
		font-size: 0.82rem !important;
	}
}

@media (max-width: 480px) {
	.estone-pf-top-stage {
		padding-top: 60px !important;
		padding-bottom: 120px !important;
	}
	.estone-pf-bottom-title {
		font-size: 1.2rem !important;
		line-height: 1.25 !important;
	}
	.estone-pf-bottom-content {
		padding: 1.5rem 1.25rem;
	}
}

