/* CodeArt offcanvas panel (hamburger in the header). Markup: Elementor template "Offcanvas CodeArt" #49493 (mobile menu widget + one HTML
   widget, class .kt-oc-widget). The panel shell (.tp-offcanvas-area > .tp-offcanvas-wrapper, logo + X) comes from the header widget.
   Colours: #FF5722 accent, #070707 panel (same as the header and the logo image background). Loaded on every front-end page. */

/* ---- overlay: the page behind the open panel is darkened and blurred (click closes the panel, main.js) ---- */
body .body-overlay {
	background: rgba(0, 0, 0, 0.5) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---- panel shell ---- */
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg {
	box-sizing: border-box;
	width: 420px;
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	padding: 36px;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	color: #fff;
	/* decoration: orange triangles in the bottom right corner (a background never takes clicks; it stays fixed while the panel scrolls) */
	background: #070707 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon points='200,200 200,0 0,200' fill='%23FF5722' fill-opacity='.08'/%3E%3Cpolygon points='200,200 200,70 70,200' fill='%23FF5722' fill-opacity='.3'/%3E%3Cpolygon points='200,200 200,135 135,200' fill='%23FF5722'/%3E%3C/svg%3E") no-repeat right bottom / 200px 200px;
	transition: transform 0.35s ease, visibility 0s linear 0.35s;
	visibility: hidden;
}
.tp-offcanvas-area.opened .tp-offcanvas-wrapper.offcanvas-black-bg {
	visibility: visible;
	transition: transform 0.35s ease, visibility 0s;
}
@media (max-width: 767px) {
	.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg {
		width: 100%;
	}
}
.tp-offcanvas-area .tp-offcanvas-top {
	flex: none;
	margin-bottom: 28px;
}
@media (max-width: 1199px) {
	.tp-offcanvas-area .tp-offcanvas-top {
		margin-bottom: 20px;
	}
}
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-close-btn {
	color: #fff;
}
.tp-offcanvas-area .tp-offcanvas-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.tp-offcanvas-area .tp-offcanvas-main > .elementor {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.tp-offcanvas-area .tp-offcanvas-main > .elementor > .e-con {
	flex: 1 1 auto;
	padding: 0;
}
.tp-offcanvas-area .kt-oc-widget {
	flex: 1 1 auto;
	display: flex;
}
.tp-offcanvas-area .kt-oc-widget > .elementor-widget-container {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ---- mobile menu (below 1200px the header has no menu: main.js copies it into .tp-offcanvas-menu) ---- */
.tp-offcanvas-area .tp-offcanvas-menu {
	margin-bottom: 28px;
}
.tp-offcanvas-area .tp-offcanvas-menu nav > ul {
	margin: 0;
	padding: 0;
}
.tp-offcanvas-area .tp-offcanvas-menu nav > ul > li + li {
	margin-top: 14px;
}
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-menu ul li > a {
	padding: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 500;
	color: #fff;
}
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-menu ul li > a:hover,
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-menu ul li.active > a {
	color: #FF5722;
}
.tp-offcanvas-area .tp-offcanvas-menu .tp-menu-close,
.tp-offcanvas-area .tp-offcanvas-menu .menu-item-has-children .tp-menu-close {
	top: 0;
	right: 0;
	height: 26px;
	line-height: 26px;
	color: rgba(255, 255, 255, 0.7);
}
.tp-offcanvas-area .tp-offcanvas-menu ul li .submenu {
	margin: 0;
	padding: 14px 0 0 16px;
}
.tp-offcanvas-area .tp-offcanvas-menu ul li .submenu li + li {
	margin-top: 12px;
}
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-menu ul li .submenu li > a {
	font-size: 17px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	background: transparent;
}
.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg .tp-offcanvas-menu ul li .submenu li > a:hover {
	color: #FF5722;
	background: transparent;
}

/* ---- panel content (HTML widget in template 49493) ---- */
.kt-oc {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	font-family: inherit;
	color: #fff;
}
.kt-oc .kt-oc-title {
	margin: 0 0 16px;
	font-family: inherit;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-transform: none;
	color: #fff;
}
.kt-oc .kt-oc-title span {
	color: #FF5722;
}
@media (max-width: 767px) {
	.kt-oc .kt-oc-title {
		font-size: 30px;
	}
}
.kt-oc .kt-oc-text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}
.kt-oc a.kt-oc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	border-radius: 999px;
	background: #FF5722;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.kt-oc a.kt-oc-btn:hover {
	background: #E8490F;
	color: #fff;
}
.kt-oc a.kt-oc-btn i {
	transition: transform 0.25s ease;
}
.kt-oc a.kt-oc-btn:hover i {
	transform: translateX(3px);
}
.kt-oc .kt-oc-line {
	flex: none;
	height: 1px;
	margin: 28px 0;
	background: rgba(255, 255, 255, 0.1);
}
.kt-oc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kt-oc li {
	margin: 0;
	padding: 0;
}

/* phone + email */
.kt-oc .kt-oc-contact li + li {
	margin-top: 16px;
}
.kt-oc .kt-oc-contact a {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fff;
	text-decoration: none;
}
.kt-oc .kt-oc-ico {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 87, 34, 0.12);
	color: #FF5722;
	font-size: 18px;
}
.kt-oc .kt-oc-txt {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-wrap: anywhere;
}
.kt-oc .kt-oc-txt small {
	font-size: 13px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.5);
}
.kt-oc .kt-oc-txt span {
	font-size: 17px;
	line-height: 1.3;
	color: #fff;
}
.kt-oc .kt-oc-arr {
	flex: none;
	width: 14px;
	height: 14px;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.2s ease;
}
.kt-oc .kt-oc-contact a:hover .kt-oc-arr {
	color: #FF5722;
}

/* services */
.kt-oc .kt-oc-services a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	color: #fff;
	text-decoration: none;
}
.kt-oc .kt-oc-svc-ico {
	flex: none;
	width: 24px;
	text-align: center;
	font-size: 20px;
	line-height: 1;
	color: #FF5722;
}
.kt-oc .kt-oc-services a > span {
	flex: 1 1 auto;
	font-size: 17px;
	line-height: 1.3;
	color: #fff;
	transition: color 0.2s ease;
}
.kt-oc .kt-oc-chev {
	flex: none;
	font-size: 18px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.5);
	transition: transform 0.2s ease;
}
.kt-oc .kt-oc-services a:hover > span {
	color: #FF5722;
}
.kt-oc .kt-oc-services a:hover .kt-oc-chev {
	transform: translateX(3px);
}

/* company line, pinned to the bottom when the panel is taller than the content */
.kt-oc .kt-oc-legal {
	margin: auto 0 0;
	padding-top: 32px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.4);
}

/* phones (<=767px) only: no "Zapocnimo saradnju" button in the panel; the intro (title + text) sits together with the contacts in the lower part of the panel.
   Free height goes ABOVE the title (margin-top:auto) instead of between text and contacts; the company line no longer takes the free space (margin-top:0).
   When the content is taller than the screen the auto margin is 0 and the panel scrolls as before (overflow-y:auto on .tp-offcanvas-wrapper). Desktop / tablet >=768px unchanged. */
@media (max-width: 767px) {
	.tp-offcanvas-area .kt-oc a.kt-oc-btn {
		display: none;
	}
	.tp-offcanvas-area .kt-oc .kt-oc-title {
		margin-top: auto;
	}
	.tp-offcanvas-area .kt-oc .kt-oc-text {
		margin-bottom: 0;
	}
	.tp-offcanvas-area .kt-oc a.kt-oc-btn + .kt-oc-line {
		margin: 16px 0;
	}
	.tp-offcanvas-area .kt-oc .kt-oc-legal {
		margin-top: 0;
	}
}

/* phones (<=767px) only, step 47: compact panel so the contacts are visible without scrolling on small screens (360x640, 390x700). Desktop / tablet >=768px unchanged.
   - panel top padding 20px, gap under the logo / X row 16px; logo width is NOT set here: it comes from the Customizer (Kirki, theme mod agntix_offcanvas_logo_width, printed inline with !important; phones = 115px); X: the svg is 46px, the drawn cross fills ~52% of it = ~24px visible, 46px hit area
   - title clamp(26px,7.5vw,30px) / 1.15 / 12px below; text 15px / 1.5 / 20px below, darker grey (.6); the line above the contacts has 20px (text margin) above and 16px below; second line 16px around
   - contacts: icon circle 40px, 14px between the blocks, label 12px, value 16px. The panel keeps overflow-y:auto: when everything does not fit it scrolls, nothing is cut. */
@media (max-width: 767px) {
	.tp-offcanvas-area .tp-offcanvas-wrapper.offcanvas-black-bg {
		padding-top: 20px;
	}
	.tp-offcanvas-area .tp-offcanvas-top {
		margin-bottom: 16px;
	}
	.tp-offcanvas-area .tp-offcanvas-close-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
	}
	.tp-offcanvas-area .tp-offcanvas-close-btn svg {
		width: 46px;
		height: 46px;
	}
	.kt-oc .kt-oc-title {
		font-size: clamp(26px, 7.5vw, 30px);
		line-height: 1.15;
		margin-bottom: 12px;
	}
	.tp-offcanvas-area .kt-oc .kt-oc-text {
		margin-bottom: 20px;
		font-size: 15px;
		line-height: 1.5;
		color: rgba(255, 255, 255, 0.6);
	}
	.tp-offcanvas-area .kt-oc a.kt-oc-btn + .kt-oc-line {
		margin: 0 0 16px;
	}
	.kt-oc .kt-oc-line {
		margin: 16px 0;
	}
	.kt-oc .kt-oc-contact li + li {
		margin-top: 14px;
	}
	.kt-oc .kt-oc-ico {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	.kt-oc .kt-oc-txt small {
		font-size: 12px;
	}
	.kt-oc .kt-oc-txt span {
		font-size: 16px;
	}
}
