/* Header & Footer CSS for Egg Break Theme */

.egg-break-header {
	background-color: #FBBE05; /* Default Egg Break Yellow */
	padding: 16px 0;
	width: 100%;
}

.egg-break-header-container {
	display: flex;
	align-items: center !important;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.egg-break-header .site-branding {
	display: flex;
	align-items: center !important;
	align-self: center !important;
	margin: 0;
	padding: 0;
}

.egg-break-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.egg-break-header .custom-logo-link img {
	max-height: 75px;
	width: auto;
	display: block;
}

.egg-break-header .site-title {
	margin: 0;
	font-family: var(--egg-break-font-family, 'Inter', sans-serif);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
}

.egg-break-header .site-title a {
	color: #1C1C1C;
	text-decoration: none;
}

.egg-break-header .site-description {
	margin: 0;
	font-size: 14px;
	color: #444444;
}

/* Floating Rounded Pill Navigation Container */
.egg-break-header .main-navigation {
	display: flex;
	align-items: center !important;
	align-self: center !important;
	margin-top: auto !important;
	margin-bottom: auto !important;
	background: rgba(255, 255, 255, 0.32);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 15px;
	padding: 12px 32px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.egg-break-header .main-navigation ul,
.egg-break-pill-menu {
	display: flex;
	align-items: center !important;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 28px;
}

.egg-break-header .main-navigation a {
	font-family: var(--egg-break-font-family, 'Inter', sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: -0.08px;
	color: #2D2D2D;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	position: relative;
	transition: color 0.2s ease;
}

.egg-break-header .main-navigation a:hover,
.egg-break-header .main-navigation a:focus,
.egg-break-header .main-navigation .current-menu-item > a,
.egg-break-header .main-navigation .current_page_item > a {
	color: #000000;
}

/* Animated Left-to-Right Underline Effect */
.egg-break-header .main-navigation.enable-underline a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2.5px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.egg-break-header .main-navigation.enable-underline a:hover::after,
.egg-break-header .main-navigation.enable-underline a:focus::after,
.egg-break-header .main-navigation.enable-underline .current-menu-item > a::after,
.egg-break-header .main-navigation.enable-underline .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Fallback Footer Styling */
.egg-break-fallback-footer {
	background-color: #1C1C1C;
	color: #CCCCCC;
	border-top: 1px solid #333333;
	padding: 40px 0;
	font-family: var(--egg-break-font-family, 'Inter', sans-serif);
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.08px;
}

.egg-break-footer-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.egg-break-fallback-footer p {
	margin: 0;
}

.egg-break-fallback-footer a {
	color: #FFFFFF;
	text-decoration: none;
}

.egg-break-fallback-footer a:hover {
	text-decoration: underline;
}

.egg-break-fallback-footer .footer-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 20px;
}

/* Mobile Responsiveness for Header Menu */
@media (max-width: 991px) {
	.egg-break-header-container {
		justify-content: center;
	}

	.egg-break-header .main-navigation {
		width: 100%;
		border-radius: 24px;
		padding: 12px 20px;
	}

	.egg-break-header .main-navigation ul,
	.egg-break-pill-menu {
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
	}

	.egg-break-header .main-navigation a {
		font-size: 16px;
	}
}

/* Global Footer Layout Protection & Permanent Logo Bounding */
.egg-break-footer-wrapper {
	width: 100%;
	position: relative;
	clear: both;
	display: block;
	z-index: 10;
	margin-top: 0;
}

.egg-break-footer-wrapper img {
	max-width: 100%;
	height: auto;
}

.egg-break-footer-wrapper .elementor-widget-container img {
	max-width: 180px;
	height: auto;
}

/* Ensure the EGG BREAK logo in the left card is ALWAYS constrained to 140px on all pages */
.egg-break-footer-wrapper .elementor-column:first-child img,
.egg-break-footer-wrapper .elementor-widget-image img[src*="logo"],
.egg-break-footer-wrapper .elementor-widget-image img[src*="EGG"],
.egg-break-footer-wrapper .elementor-widget-image img[src*="egg"] {
	max-width: 140px !important;
	width: 140px !important;
	height: auto !important;
}

/* ==========================================================================
   STICKY HEADER (ACTIVE ONLY WHEN IS-STICKY-ENABLED IS PRESENT)
   ========================================================================== */

.egg-break-header-wrapper.is-sticky-enabled,
header.site-header.is-sticky-enabled,
header[role="banner"].is-sticky-enabled,
.egg-break-header.is-sticky-enabled {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	z-index: 9990 !important; /* Keep below WordPress Admin Bar (#wpadminbar z-index is 99999) */
	transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Offset top position when logged-in WordPress Admin Bar is visible */
body.admin-bar .egg-break-header-wrapper.is-sticky-enabled,
body.admin-bar header.site-header.is-sticky-enabled,
body.admin-bar header[role="banner"].is-sticky-enabled,
body.admin-bar .egg-break-header.is-sticky-enabled {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .egg-break-header-wrapper.is-sticky-enabled,
	body.admin-bar header.site-header.is-sticky-enabled,
	body.admin-bar header[role="banner"].is-sticky-enabled,
	body.admin-bar .egg-break-header.is-sticky-enabled {
		top: 46px !important;
	}
}



/* ==========================================================================
   CIRCULAR SCROLL PROGRESS BACK-TO-TOP BUTTON
   ========================================================================== */

.egg-break-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 56px;
	height: 56px;
	z-index: 9999;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	outline: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.9);
	transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.egg-break-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.egg-break-back-to-top:hover {
	transform: translateY(-4px) scale(1.08);
}

.egg-break-back-to-top .egg-break-progress-ring {
	width: 56px;
	height: 56px;
	position: absolute;
	top: 0;
	left: 0;
	transform: rotate(-90deg);
}

.egg-break-back-to-top .egg-break-progress-bar {
	transition: stroke-dashoffset 0.15s linear;
}

.egg-break-back-to-top .egg-break-btt-circle {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 48px;
	height: 48px;
	background-color: #FFFFFF;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.egg-break-back-to-top:hover .egg-break-btt-circle {
	background-color: #FBBE05;
}

.egg-break-back-to-top .egg-break-btt-arrow {
	transition: transform 0.25s ease;
}

.egg-break-back-to-top:hover .egg-break-btt-arrow {
	transform: translateY(-2px);
}

/* ==========================================================================
   GLOBAL FULL-WIDTH BOTTOM BANNER IMAGE (800PX MAX HEIGHT)
   ========================================================================== */

.egg-break-bottom-callout-banner {
	position: relative;
	width: 100%;
	margin-top: 60px;
	margin-bottom: 0;
	overflow: hidden;
	line-height: 0;
}

.egg-break-bottom-banner-link {
	display: block;
	width: 100%;
	line-height: 0;
	text-decoration: none;
}

.egg-break-bottom-banner-img {
	width: 100%;
	height: auto;
	max-height: 800px;
	object-fit: cover;
	display: block;
}
