/**
 * Custom Header & Footer Redesign
 * Modern, professional styling with dark theme and lime green accents
 *
 * @package kadence
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
	--header-bg: #0a0a0a;
	--header-bg-scrolled: rgba(10, 10, 10, 0.95);
	--header-text: #ffffff;
	--header-text-muted: #9ca3af;
	--accent-color: #a3e635;
	--accent-hover: #84cc16;
	--border-color: #1f1f1f;
	--footer-bg: #0a0a0a;
	--footer-bg-middle: #141414;
	--footer-text: #ffffff;
	--footer-text-muted: #9ca3af;
	--transition-fast: 0.2s ease;
	--transition-medium: 0.3s ease;
	--transition-slow: 0.4s ease;
	--shadow-header: 0 4px 30px rgba(0, 0, 0, 0.3);
	--shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Remove ALL margins/padding from root elements */
html, body {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* WordPress admin bar fix */
body.admin-bar #masthead {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar #masthead {
		top: 46px !important;
	}
}

/* Main Header Container - flush to top */
#masthead {
	position: fixed;
	top: 0 !important;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--header-bg);
	transition: all var(--transition-medium);
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* Header scrolled state */
#masthead.scrolled,
#masthead.is-sticky {
	background: var(--header-bg-scrolled);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: var(--shadow-header);
}

/* Header Inner Wrap - No border */
.site-header-wrap,
.site-header-row-container-inner,
.site-main-header-inner-wrap {
	border: none !important;
	outline: none !important;
}

/* Remove ALL padding/margin from header containers */
.site-header-wrap,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-header-upper-inner-wrap {
	padding: 0 !important;
	margin: 0 !important;
}

.site-header-upper-wrap {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.site-header-row-container-inner {
	padding: 0 !important;
	margin: 0 !important;
}

/* Header Row - flush to top */
.site-header-row {
	height: 70px !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Debug - Add red background to see where space is */
#wrapper {
	padding-top: 70px !important;
}

/* ========================================
   LOGO STYLING
   ======================================== */

.site-header-item[data-section="title_tagline"] {
	display: flex;
	align-items: center;
}

/* Logo link styling */
.site-branding a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: opacity var(--transition-fast);
}

.site-branding a:hover {
	opacity: 0.8;
}

/* Custom Logo Image */
.site-branding img {
	max-height: 45px;
	width: auto;
	transition: transform var(--transition-fast);
}

.site-branding a:hover img {
	transform: scale(1.02);
}

/* Site Title (if no logo) */
.site-branding .site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--header-text);
	letter-spacing: -0.5px;
	margin: 0;
}

.site-branding .site-title span {
	color: var(--accent-color);
}

.site-branding .site-description {
	font-size: 0.75rem;
	color: var(--header-text-muted);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
}

/* ========================================
   NAVIGATION STYLING
   ======================================== */

/* Navigation Container */
.site-header-item-main-navigation {
	display: flex;
	align-items: center;
}

/* Primary Menu */
#primary-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Menu Items */
#primary-menu li {
	position: relative;
}

#primary-menu a {
	display: block;
	padding: 10px 18px;
	color: var(--header-text-muted);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 6px;
	transition: all var(--transition-fast);
	position: relative;
}

/* Hover State */
#primary-menu a:hover {
	color: var(--header-text);
	background: rgba(163, 230, 53, 0.1);
}

/* Active/Current State */
#primary-menu .current-menu-item a,
#primary-menu .current-page-item a {
	color: var(--accent-color);
	background: rgba(163, 230, 53, 0.15);
}

/* Underline Animation */
#primary-menu a::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent-color);
	transition: all var(--transition-fast);
	transform: translateX(-50%);
}

#primary-menu a:hover::after,
#primary-menu .current-menu-item a::after {
	width: calc(100% - 36px);
}

/* Dropdown Menus */
#primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	width: max-content;
	max-width: 350px;
	background: var(--header-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 8px 0;
	margin-top: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all var(--transition-medium);
	box-shadow: var(--shadow-card);
	z-index: 1000;
}

#primary-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#primary-menu .sub-menu li {
	display: block;
}

#primary-menu .sub-menu a {
	padding: 10px 20px;
	font-size: 0.85rem;
	border-radius: 0;
	white-space: normal;
	line-height: 1.4;
}

#primary-menu .sub-menu a:hover {
	background: rgba(163, 230, 53, 0.1);
	padding-left: 25px;
}

/* Dropdown Arrow */
#primary-menu .menu-item-has-children > a::before {
	content: '›';
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%) rotate(90deg);
	font-size: 0.7rem;
	transition: transform var(--transition-fast);
}

#primary-menu .menu-item-has-children:hover > a::before {
	transform: translateY(-50%) rotate(-90deg);
}

/* ========================================
   HEADER BUTTONS & CTA
   ======================================== */

/* Header Button Area */
.site-header-section-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Primary CTA Button */
.header-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--accent-color);
	color: #0a0a0a;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: all var(--transition-fast);
	border: 2px solid var(--accent-color);
}

.header-cta-button:hover {
	background: transparent;
	color: var(--accent-color);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(163, 230, 53, 0.2);
}

/* Secondary Button */
.header-secondary-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: transparent;
	color: var(--header-text);
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 8px;
	text-decoration: none;
	transition: all var(--transition-fast);
	border: 2px solid var(--border-color);
}

.header-secondary-button:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

/* ========================================
   HEADER SEARCH
   ======================================== */

.header-search-toggle {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
	border: 2px solid var(--border-color);
	color: var(--header-text);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.header-search-toggle:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: scale(1.05);
}

/* ========================================
   MOBILE HEADER
   ======================================== */

/* Mobile Header Container */
#mobile-header {
	display: none;
	background: var(--header-bg);
	border-bottom: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
	#mobile-header {
		display: block;
	}

	.mobile-header-row {
		height: 70px;
		align-items: center;
	}

	/* Mobile Logo */
	.mobile-header-row .site-branding img {
		max-height: 40px;
	}

	/* Mobile Menu Toggle */
	.mobile-toggle-open-container {
		display: flex;
		justify-content: flex-end;
	}

	.mobile-toggle-open {
		width: 44px;
		height: 44px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		background: transparent;
		border: 2px solid var(--border-color);
		border-radius: 8px;
		cursor: pointer;
		transition: all var(--transition-fast);
	}

	.mobile-toggle-open:hover {
		border-color: var(--accent-color);
	}

	.mobile-toggle-open span {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--header-text);
		transition: all var(--transition-fast);
		border-radius: 2px;
	}

	.mobile-toggle-open:hover span {
		background: var(--accent-color);
	}

	/* Mobile Menu Panel */
	#mobile-drawer,
	#mobile-drawer .drawer-inner,
	#mobile-drawer .drawer-content,
	#mobile-drawer .popup-drawer-inner {
		background: var(--header-bg) !important;
	}

	#mobile-drawer {
		border-left: 1px solid var(--border-color);
	}

	#mobile-drawer .drawer-inner {
		padding: 30px;
	}

	/* Mobile Navigation */
	#mobile-drawer #primary-menu-mobile {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	#mobile-drawer #primary-menu-mobile li {
		border-bottom: 1px solid var(--border-color);
	}

	#mobile-drawer #primary-menu-mobile a {
		display: block;
		padding: 16px 0;
		color: var(--header-text);
		font-size: 1.1rem;
		font-weight: 500;
		text-decoration: none;
		transition: all var(--transition-fast);
	}

	#mobile-drawer #primary-menu-mobile a:hover {
		color: var(--accent-color);
		padding-left: 10px;
	}

	/* Mobile Close Button */
	.mobile-toggle-close {
		position: absolute;
		top: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		border: 2px solid var(--border-color);
		border-radius: 50%;
		color: var(--header-text);
		cursor: pointer;
		transition: all var(--transition-fast);
	}

	.mobile-toggle-close:hover {
		border-color: var(--accent-color);
		color: var(--accent-color);
		transform: rotate(90deg);
	}
}

/* ========================================
   PAGE BACKGROUND - FORCE DARK
   ======================================== */

/* Only force dark background for footer areas */
#colophon,
#colophon #wrapper,
#colophon #inner-wrap {
	background: #0a0a0a !important;
}

/* ========================================
   HIDE OLD FOOTER - REMOVE DUPLICATES
   ======================================== */

/* Hide old semantic footer if it exists - BE SPECIFIC */
.semantic-footer,
.semantic-footer__main,
.semantic-footer__container,
.semantic-footer__brand,
.semantic-footer__title,
.semantic-footer__services,
.semantic-footer__contact,
.semantic-footer__copyright {
	display: none !important;
}

/* ========================================
   HIDE FIRST FOOTER WITH OUR SERVICES
   ======================================== */

/* Hide top footer row - typically contains widgets/our services */
.site-top-footer-wrap,
.site-top-footer-inner-wrap {
	display: none !important;
}

/* Hide middle footer row if it doesn't have our custom footer */
.site-middle-footer-wrap:not(:has(.custom-footer-wrapper)) {
	display: none !important;
}

/* Hide default footer HTML content area */
.footer-html,
.footer-html-inner,
.site-info {
	display: none !important;
}

/* But show footer-html that contains our custom wrapper */
.footer-html:has(.custom-footer-wrapper),
.site-info:has(.custom-footer-wrapper) {
	display: block !important;
}

/* Always show our custom footer - override any hiding rules */
.custom-footer-wrapper,
.custom-footer-wrapper .site-container {
	display: block !important;
}

/* Grid layout for footer columns */
.custom-footer-wrapper .custom-footer-grid {
	display: grid !important;
}

/* Ensure footer elements display properly */
.custom-footer-wrapper .footer-social-links,
.custom-footer-wrapper .footer-bottom-bar,
.custom-footer-wrapper .footer-bottom {
	display: flex !important;
}

.custom-footer-wrapper .footer-links,
.custom-footer-wrapper .footer-simple-links {
	display: block !important;
}

/* ========================================
   HIDE DUPLICATE THEME FOOTER ON SINGLE POSTS
   ======================================== */

/* Only hide the theme's default footer structure, not custom footers */
.single-post #colophon.site-footer,
.single-post .site-footer-wrap,
.single-post footer#colophon:not(.custom-footer-wrapper),
.post-template-default #colophon.site-footer,
.post-template-default .site-footer-wrap,
.post-template-default footer#colophon:not(.custom-footer-wrapper) {
	display: none !important;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

/* Main Footer Container */
#colophon {
	background: #0a0a0a !important;
	border-top: 1px solid #1f1f1f;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* Ensure full width */
.site-footer-wrap {
	width: 100% !important;
	max-width: 100% !important;
}

/* Custom Footer Wrapper - Reference Design */
.custom-footer-wrapper {
	background: #0a0a0a !important;
	color: #ffffff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	padding: 60px 0 40px;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box;
}

/* Container for custom footer content */
.custom-footer-wrapper .site-container {
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 40px !important;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.custom-footer-wrapper .site-container {
		padding: 0 20px !important;
	}
}

/* Footer Grid Layout - 3 Columns Side by Side */
.custom-footer-grid {
	display: grid !important;
	grid-template-columns: 1.5fr 1fr 1.5fr !important;
	gap: 40px !important;
	margin-bottom: 40px !important;
	background: transparent !important;
	align-items: start !important;
	width: 100% !important;
}

@media (max-width: 1024px) {
	.custom-footer-grid {
		grid-template-columns: 1fr 1fr !important;
		gap: 32px !important;
	}
}

@media (max-width: 640px) {
	.custom-footer-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

@media (max-width: 1024px) {
	.custom-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.custom-footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Force ALL footer text to be light colored */
.custom-footer-wrapper,
.custom-footer-wrapper p,
.custom-footer-wrapper span,
.custom-footer-wrapper a,
.custom-footer-wrapper h4,
.custom-footer-wrapper li,
.custom-footer-wrapper div {
	color: #e5e7eb !important;
}

.custom-footer-wrapper .footer-column-title,
.custom-footer-wrapper .contact-icon {
	color: #ffffff !important;
}

.custom-footer-wrapper .footer-tagline,
.custom-footer-wrapper .contact-text,
.custom-footer-wrapper .footer-links a {
	color: #9ca3af !important;
}

.custom-footer-wrapper .footer-links a:hover {
	color: #ffffff !important;
}

.custom-footer-wrapper .footer-copyright,
.custom-footer-wrapper .status-indicator {
	color: #6b7280 !important;
}

.custom-footer-wrapper .status-indicator.operational {
	color: #a3e635 !important;
}

/* Footer Brand Column */
.footer-brand-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-brand-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #ffffff !important;
	margin: 0;
}

.footer-tagline {
	color: #9ca3af !important;
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 0;
	max-width: 280px;
}

/* Social Boxes */
.footer-social-links {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.social-box {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid #3f3f46;
	border-radius: 8px;
	color: #9ca3af;
	text-decoration: none;
	transition: all 0.2s ease;
}

.social-box svg {
	width: 16px;
	height: 16px;
}

.social-box:hover {
	border-color: #a3e635;
	color: #0a0a0a;
	background: #a3e635;
}

/* Footer Column Base */
.footer-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Footer Links Columns */
.footer-column-title {
	color: #ffffff !important;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #27272a;
}

/* Navigation Row Layout */
.footer-links-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.footer-link-group h5 {
	color: #a1a1aa !important;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 12px 0;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a {
	color: #d4d4d8 !important;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-block;
	padding: 2px 0;
}
.footer-links a:hover {
	color: #a3e635 !important;
}

/* Contact Info */
.footer-contact-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-row {
	border-bottom: 1px solid #27272a;
	padding-bottom: 12px;
}

.contact-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.contact-item:hover .value {
	color: #ffffff !important;
}

.contact-icon {
	color: #a3e635 !important;
	font-size: 14px;
	width: 16px;
	text-align: center;
}

.contact-detail {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.contact-detail .label {
	color: #71717a !important;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.contact-detail .value {
	color: #d4d4d8 !important;
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Legal Row */
.footer-legal-row {
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.8rem;
}

.footer-legal-row a {
	color: #71717a !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-legal-row a:hover {
	color: #a3e635 !important;
}

.footer-legal-row .divider {
	color: #3f3f46;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 32px;
	border-top: 1px solid #27272a;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copyright {
	color: #71717a !important;
	font-size: 0.85rem;
	margin: 0;
}

.footer-copyright strong {
	color: #d4d4d8 !important;
	font-weight: 500;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #111111;
	border: 1px solid #27272a;
	border-radius: 20px;
	font-size: 0.75rem;
	color: #a1a1aa !important;
}

.status-badge.operational {
	color: #a3e635 !important;
	border-color: rgba(163,230,53,0.25);
	background: rgba(163,230,53,0.06);
}

.status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
	animation: pulse 2s infinite;
	background: #a3e635;
}

@keyframes pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(163,230,53,0.4); }
	50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(163,230,53,0); }
}

@media (max-width: 768px) {
	.footer-bottom-bar {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
}

/* ========================================
   TOP FOOTER - Newsletter/CTA Area
   ======================================== */

.site-top-footer-wrap {
	background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
	padding: 80px 0;
	border-bottom: 1px solid var(--border-color);
}

.site-top-footer-inner-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	align-items: center;
}

/* Newsletter Section */
.footer-newsletter {
	flex: 1;
	min-width: 300px;
}

.footer-newsletter h3 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--footer-text);
	margin: 0 0 12px 0;
}

.footer-newsletter h3 span {
	color: var(--accent-color);
}

.footer-newsletter p {
	color: var(--footer-text-muted);
	font-size: 1rem;
	margin: 0;
}

/* Newsletter Form */
.footer-newsletter-form {
	flex: 1;
	min-width: 300px;
	display: flex;
	gap: 12px;
}

.footer-newsletter-form input[type="email"] {
	flex: 1;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid var(--border-color);
	border-radius: 10px;
	color: var(--footer-text);
	font-size: 1rem;
	transition: all var(--transition-fast);
}

.footer-newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: var(--accent-color);
	background: rgba(163, 230, 53, 0.05);
}

.footer-newsletter-form input[type="email"]::placeholder {
	color: var(--footer-text-muted);
}

.footer-newsletter-form button {
	padding: 16px 32px;
	background: var(--accent-color);
	color: #0a0a0a;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.footer-newsletter-form button:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(163, 230, 53, 0.2);
}

/* ========================================
   MIDDLE FOOTER - Widget Area
   ======================================== */

.site-middle-footer-wrap {
	background: var(--footer-bg-middle);
	padding: 80px 0 60px;
}

.site-middle-footer-inner-wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 50px;
}

@media (max-width: 1024px) {
	.site-middle-footer-inner-wrap {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
	}
	.footer-brand-column {
		grid-column: 1 / -1;
	}
	.footer-contact-column {
		grid-column: 2;
	}
}

@media (max-width: 768px) {
	.site-middle-footer-inner-wrap {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.footer-brand-column,
	.footer-contact-column {
		grid-column: auto;
	}
}

/* Footer Widget Column */
.site-footer-middle-section-1,
.site-footer-middle-section-2,
.site-footer-middle-section-3,
.site-footer-middle-section-4 {
	padding: 0;
}

/* Widget Titles */
.site-middle-footer-wrap .widget-title,
.site-middle-footer-wrap .wp-block-heading {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--footer-text);
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--border-color);
	position: relative;
}

.site-middle-footer-wrap .widget-title::after,
.site-middle-footer-wrap .wp-block-heading::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--accent-color);
}

/* Widget Content */
.site-middle-footer-wrap .widget {
	margin-bottom: 0;
}

.site-middle-footer-wrap p {
	color: var(--footer-text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0 0 16px 0;
}

/* Footer Menu Links */
.site-middle-footer-wrap ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-middle-footer-wrap ul li {
	margin-bottom: 12px;
}

.site-middle-footer-wrap ul li a {
	color: var(--footer-text-muted);
	font-size: 0.95rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all var(--transition-fast);
}

.site-middle-footer-wrap ul li a::before {
	content: '→';
	font-size: 0.8rem;
	opacity: 0;
	transform: translateX(-10px);
	transition: all var(--transition-fast);
}

.site-middle-footer-wrap ul li a:hover {
	color: var(--accent-color);
	padding-left: 5px;
}

.site-middle-footer-wrap ul li a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

/* Contact Info Widget */
.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 20px;
}

.footer-contact-icon {
	width: 40px;
	height: 40px;
	background: rgba(163, 230, 53, 0.1);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-color);
	font-size: 1rem;
	flex-shrink: 0;
}

.footer-contact-text {
	color: var(--footer-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.footer-contact-text strong {
	color: var(--footer-text);
	display: block;
	margin-bottom: 4px;
}

/* ========================================
   FOOTER SOCIAL LINKS
   ======================================== */

.footer-social-links {
	display: flex;
	gap: 12px;
	margin-top: 25px;
}

.footer-social-links a {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid var(--border-color);
	border-radius: 10px;
	color: var(--footer-text-muted);
	font-size: 1rem;
	text-decoration: none;
	transition: all var(--transition-fast);
}

.footer-social-links a:hover {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: #0a0a0a;
	transform: translateY(-3px);
}

/* ========================================
   BOTTOM FOOTER - Copyright Area
   ======================================== */

.site-bottom-footer-wrap {
	background: #050505 !important;
	padding: 25px 0;
	border-top: 1px solid var(--border-color);
}

.site-bottom-footer-inner-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

/* Copyright Text */
.site-bottom-footer-wrap .copyright {
	color: #6b7280;
	font-size: 0.85rem;
	margin: 0;
	letter-spacing: 0.5px;
}

.site-bottom-footer-wrap .copyright a {
	color: #a3e635;
	text-decoration: none;
	transition: opacity var(--transition-fast);
	font-weight: 500;
}

.site-bottom-footer-wrap .copyright a:hover {
	opacity: 0.8;
}

/* Footer Bottom Menu */
.footer-bottom-menu {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom-menu a {
	color: var(--footer-text-muted);
	font-size: 0.9rem;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-bottom-menu a:hover {
	color: var(--accent-color);
}

@media (max-width: 768px) {
	.site-bottom-footer-inner-wrap {
		flex-direction: column;
		text-align: center;
	}

	.footer-bottom-menu {
		gap: 20px;
	}
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

#kt-scroll-up {
	width: 50px;
	height: 50px;
	background: var(--accent-color);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0a0a0a;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all var(--transition-fast);
	box-shadow: 0 4px 20px rgba(163, 230, 53, 0.3);
}

#kt-scroll-up:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(163, 230, 53, 0.4);
}

/* ========================================
   CONTENT SPACING FIX (for fixed header)
   ======================================== */

#wrapper {
	padding-top: 70px;
}

@media (max-width: 1024px) {
	#wrapper {
		padding-top: 60px;
	}
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1200px) {
	/* Adjust header padding on smaller screens */
	.site-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 768px) {
	/* Newsletter form stack */
	.footer-newsletter-form {
		flex-direction: column;
	}

	.footer-newsletter-form button {
		width: 100%;
	}

	/* Footer sections padding */
	.site-top-footer-wrap,
	.site-middle-footer-wrap {
		padding: 60px 0;
	}
}

/* ========================================
   REFERENCE FOOTER DESIGN - ADDITIONAL STYLES
   ======================================== */

/* Footer Column Titles */
.footer-col-title {
	color: #9ca3af !important;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 16px 0;
}

/* Simple Links List */
.footer-simple-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-simple-links li {
	margin-bottom: 10px;
}

.footer-simple-links a {
	color: #9ca3af !important;
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-simple-links a:hover {
	color: #ffffff !important;
}

/* Contact Block */
.footer-contact-block {
	margin-top: 16px;
}

.contact-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: #9ca3af !important;
	line-height: 1.5;
}

.contact-icon-svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Footer Divider */
.footer-divider {
	height: 1px;
	background: #1f1f1f;
	margin: 0 0 24px 0;
}

/* Footer Bottom */
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copyright {
	color: #6b7280 !important;
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	margin: 0;
}

.footer-status-badges {
	display: flex;
	gap: 16px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.7rem;
	color: #6b7280 !important;
	letter-spacing: 0.5px;
}

.status-pill.operational {
	color: #a3e635 !important;
}

.status-indicator-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #a3e635;
	display: inline-block;
}

.status-indicator-dot.secure {
	background: #6b7280;
}

@media (max-width: 768px) {
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* ========================================
   FORCE DARK BACKGROUND - FOOTER ONLY
   ======================================== */

/* Only apply dark background to actual footer elements */
#colophon,
.site-footer-wrap,
.site-footer-row-container,
.site-footer-row-container-inner,
.custom-footer-wrapper,
.site-top-footer-wrap,
.site-middle-footer-wrap,
.site-bottom-footer-wrap {
	background-color: #0a0a0a !important;
}

/* ========================================
   HIDE FLOATING/THEME FOOTER ELEMENTS
   ======================================== */

/* Hide theme footer social widgets that appear outside custom footer */
.footer-social-wrap,
.footer-social,
.footer-social-inner,
.site-footer .footer-social,
#colophon .footer-social,
.footer-widget-area.footer-social,
.footer-widget-area-inner.footer-social-inner {
	display: none !important;
}
