/**
 * Knotiva site chrome — header, footer, WhatsApp chip.
 * Loaded on every public page. Homepage section styles stay in homepage-redesign.css.
 */

/* =========================================================================
   Navigation
   ========================================================================= */

#masthead.site-header,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
	background: var(--color-primary, #7b1d1d) !important;
	background-color: var(--color-primary, #7b1d1d) !important;
	border-bottom: 0 !important;
	transition: box-shadow 0.25s ease;
}

#masthead.knotiva-scrolled,
#masthead.knotiva-scrolled .ast-primary-header-bar {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}

#ast-desktop-header .site-branding,
#ast-mobile-header .site-branding {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

#ast-desktop-header .site-logo-img img,
#ast-desktop-header .custom-logo {
	display: block !important;
	height: 64px !important;
	width: auto !important;
	max-height: 64px !important;
	filter: brightness(0) invert(1);
}

#masthead .main-header-menu > li > .menu-link {
	padding: 0 !important;
	font-family: var(--font-sans, var(--k-font-ui, sans-serif)) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, 0.85) !important;
	transition: color 0.2s ease;
}

#masthead .main-header-menu > li > .menu-link::after {
	content: none !important;
}

#masthead .main-header-menu > li > .menu-link:hover,
#masthead .main-header-menu > li.current-menu-item > .menu-link {
	color: #fff !important;
}

#ast-desktop-header .main-header-menu {
	gap: 40px;
}

#ast-desktop-header .main-header-menu > li {
	margin: 0 !important;
}

#ast-desktop-header .ast-header-search,
#ast-desktop-header .ast-header-woo-cart,
#ast-desktop-header .ast-header-search .ast-icon,
#ast-desktop-header .ast-header-woo-cart .ast-icon,
#masthead .ast-header-woo-cart .cart-container,
#masthead .astra-search-icon {
	color: #fff !important;
}

#masthead .ast-header-search .ast-icon svg,
#masthead .ast-header-woo-cart .ast-icon svg,
#masthead .astra-icon svg,
#ast-desktop-header .ast-header-search svg,
#ast-desktop-header .ast-header-woo-cart svg {
	width: 20px !important;
	height: 20px !important;
	fill: #fff !important;
	color: #fff !important;
	stroke: #fff;
}

#ast-desktop-header .site-header-primary-section-right {
	gap: 22px;
}

#masthead .k-header-tools {
	display: none !important;
}

@media (min-width: 768px) and (max-width: 1279px) {
	#ast-desktop-header .main-header-menu {
		gap: 24px;
	}

	#ast-desktop-header .site-logo-img img,
	#ast-desktop-header .custom-logo {
		height: 56px !important;
		max-height: 56px !important;
	}

	#ast-desktop-header .ast-header-woo-cart,
	#ast-desktop-header .ast-header-search {
		min-height: 72px !important;
		line-height: 72px !important;
	}
}

@media (max-width: 767px) {
	#ast-mobile-header .ast-primary-header-bar,
	#ast-mobile-header .main-header-bar,
	body.ast-header-break-point #ast-mobile-header .ast-primary-header-bar {
		min-height: 64px !important;
		padding: 0 20px !important;
		background: var(--color-primary, #7b1d1d) !important;
	}

	#ast-mobile-header .ast-builder-grid-row,
	body.ast-header-break-point #ast-mobile-header .ast-builder-grid-row {
		display: grid !important;
		grid-template-columns: 40px 1fr 40px !important;
		align-items: center !important;
		justify-content: stretch !important;
		gap: 0 !important;
		min-height: 64px;
		width: 100% !important;
	}

	#ast-mobile-header .site-header-primary-section-left,
	body.ast-header-break-point #ast-mobile-header .site-header-primary-section-left {
		display: flex !important;
		justify-content: flex-start !important;
		width: 40px !important;
		flex: none !important;
	}

	#ast-mobile-header .site-header-primary-section-center,
	body.ast-header-break-point #ast-mobile-header .site-header-primary-section-center {
		display: flex !important;
		justify-content: center !important;
		flex: none !important;
		width: auto !important;
	}

	#ast-mobile-header .site-header-primary-section-right,
	body.ast-header-break-point #ast-mobile-header .site-header-primary-section-right {
		display: flex !important;
		justify-content: flex-end !important;
		margin-left: 0 !important;
		width: 40px !important;
		min-width: 0 !important;
		max-width: 40px !important;
		flex: none !important;
		overflow: visible;
	}

	#ast-mobile-header .site-logo-img img,
	#ast-mobile-header .custom-logo {
		display: block !important;
		height: 44px !important;
		width: auto !important;
		max-height: 44px !important;
		filter: brightness(0) invert(1);
	}

	#ast-mobile-header .menu-toggle,
	#ast-mobile-header button.menu-toggle {
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		color: #fff !important;
	}

	#ast-mobile-header .menu-toggle svg {
		width: 24px !important;
		height: 24px !important;
		fill: #fff !important;
	}

	#ast-mobile-header .ast-header-search,
	#ast-mobile-header .k-header-search-toggle,
	#ast-mobile-header .k-header-tools .k-header-search-toggle {
		display: none !important;
	}

	#ast-mobile-header .k-header-cart-link,
	#ast-mobile-header .ast-header-woo-cart {
		display: flex !important;
		align-items: center;
		color: #fff !important;
	}

	#ast-mobile-header .k-header-cart-link svg,
	#ast-mobile-header .ast-header-woo-cart svg {
		width: 22px !important;
		height: 22px !important;
		color: #fff !important;
		stroke: #fff !important;
		fill: none !important;
	}

	#ast-mobile-header .k-header-cart-link svg path,
	#ast-mobile-header .k-header-cart-link svg circle,
	#ast-mobile-header .ast-header-woo-cart svg path,
	#ast-mobile-header .ast-header-woo-cart svg circle {
		stroke: #fff !important;
		fill: none !important;
	}

	#ast-mobile-popup,
	#ast-mobile-popup .ast-mobile-popup-inner,
	#ast-mobile-popup-inner,
	#ast-mobile-popup .ast-mobile-popup-header,
	#ast-mobile-popup .ast-mobile-popup-content,
	#ast-mobile-popup.ast-mobile-popup-drawer .ast-mobile-popup-content,
	body.ast-popup-nav-open #ast-mobile-popup,
	body.ast-popup-nav-open .ast-mobile-popup-drawer,
	body.ast-popup-nav-open .ast-mobile-popup-inner,
	body.ast-popup-nav-open .ast-mobile-popup-content {
		background: var(--color-primary, #7b1d1d) !important;
		background-color: var(--color-primary, #7b1d1d) !important;
		color: #fff !important;
	}

	#ast-mobile-popup .main-header-menu,
	#ast-mobile-site-navigation .main-header-menu {
		background: var(--color-primary, #7b1d1d) !important;
	}

	#ast-mobile-popup .menu-item > .menu-link,
	#ast-mobile-site-navigation .menu-item > .menu-link {
		padding: 20px 24px !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
		font-family: var(--font-serif, serif) !important;
		font-size: 18px !important;
		font-weight: 400 !important;
		letter-spacing: 0.01em !important;
		text-align: left !important;
		text-transform: none !important;
		color: #fff !important;
	}

	#ast-mobile-popup .menu-toggle-close,
	#ast-mobile-popup #menu-toggle-close,
	#ast-mobile-popup .menu-toggle-close .ast-close-svg svg {
		color: #fff !important;
		fill: #fff !important;
	}
}

/* =========================================================================
   Footer
   ========================================================================= */

#colophon,
footer#colophon,
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap {
	background: var(--color-dark, #111111) !important;
	border: 0 !important;
	border-top: 0 !important;
}

.k-footer-logo {
	display: block;
	margin: 0 auto 48px;
	text-align: center;
}

.k-footer-logo img {
	display: block;
	height: 72px;
	width: auto;
	margin: 0 auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.site-primary-footer-wrap {
	padding: 64px var(--gutter, 40px) 48px !important;
}

#colophon .site-primary-footer-inner-wrap {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 48px !important;
	max-width: var(--k-container, 1240px);
	margin: 0 auto;
}

#colophon .widget-title {
	margin: 0 0 18px !important;
	font-family: var(--font-sans, var(--k-font-ui, sans-serif)) !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, 0.4) !important;
}

#colophon .menu,
#colophon .menu li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
}

#colophon .menu-link,
#colophon .menu li a {
	display: inline-block;
	padding: 0 !important;
	font-family: var(--font-sans, var(--k-font-ui, sans-serif)) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 2.2 !important;
	text-transform: none !important;
	text-decoration: none !important;
	color: rgba(255, 255, 255, 0.7) !important;
	transition: color 0.2s ease;
}

#colophon .menu-link:hover {
	color: #fff !important;
}

#colophon .site-footer-primary-section-4 {
	display: none !important;
}

.site-below-footer-wrap {
	padding: 24px var(--gutter, 40px) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-below-footer-wrap .ast-builder-grid-row,
.k-footer-bottom {
	position: relative;
	display: block !important;
	max-width: var(--k-container, 1240px);
	margin: 0 auto;
	text-align: center;
}

.ast-footer-copyright,
.ast-footer-copyright p {
	margin: 0 !important;
	font-family: var(--font-sans, var(--k-font-ui, sans-serif)) !important;
	font-size: 11px !important;
	text-align: center !important;
	color: rgba(255, 255, 255, 0.4) !important;
}

.k-footer-social {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 20px;
	padding-right: 64px;
}

.k-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	transition: color 0.2s ease;
}

.k-footer-social a:hover {
	color: #fff;
}

.k-footer-social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (min-width: 768px) and (max-width: 1279px) {
	#colophon .site-primary-footer-inner-wrap {
		gap: 32px !important;
	}

	.k-footer-logo img {
		height: 56px;
	}
}

@media (max-width: 767px) {
	.site-primary-footer-wrap {
		padding: 48px 24px 0 !important;
	}

	#colophon .site-primary-footer-inner-wrap {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0 !important;
	}

	#colophon .site-footer-primary-section-1,
	#colophon .site-footer-primary-section-2,
	#colophon .site-footer-primary-section-3 {
		width: 100% !important;
		padding-bottom: 32px !important;
		margin-bottom: 32px !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
	}

	.k-footer-logo {
		margin-bottom: 32px;
	}

	.k-footer-logo img {
		height: 48px;
	}

	.site-below-footer-wrap {
		padding: 0 24px 24px !important;
		border-top: 0 !important;
	}

	.site-below-footer-wrap .ast-builder-grid-row,
	.k-footer-bottom {
		flex-direction: column !important;
		gap: 20px;
	}

	.k-footer-social {
		position: static;
		transform: none;
		justify-content: center;
		gap: 24px;
		margin: 0 auto;
		padding-right: 0;
	}
}

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */

#ht-ctc-chat.ht-ctc-chat,
#ht-ctc-chat {
	position: fixed !important;
	right: 24px !important;
	bottom: 24px !important;
	left: auto !important;
	z-index: 999 !important;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: var(--color-primary, #7b1d1d) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
	transition: transform 0.2s ease;
	transform: none !important;
	filter: none !important;
}

#ht-ctc-chat:hover {
	transform: scale(1.06) !important;
}

#ht-ctc-chat .ht_ctc_style,
#ht-ctc-chat .ht_ctc_chat_style,
#ht-ctc-chat .ctc_s_3 {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	filter: none !important;
	transform: none !important;
}

#ht-ctc-chat svg {
	width: 28px !important;
	height: 28px !important;
	transform: none !important;
}

#ht-ctc-chat svg path,
#ht-ctc-chat svg circle,
#ht-ctc-chat svg g {
	fill: #fff !important;
}

#ht-ctc-chat .ht-ctc-cta,
#ht-ctc-chat .ctc_cta {
	display: none !important;
}

@media (max-width: 767px) {
	#ht-ctc-chat.ht-ctc-chat,
	#ht-ctc-chat {
		bottom: 80px !important;
		right: 20px !important;
	}
}
