/* Unified site navbar — loaded after custom.css */

#nav-mount {
	min-height: 88px;
}

.site-header .header-sticky {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: #ffffff !important;
	box-shadow: none !important;
	border-bottom: 0;
	transform: none !important;
	transition: box-shadow 0.25s ease;
}

.site-header .header-sticky.hide {
	transform: none !important;
	opacity: 1 !important;
}

.site-header .main-menu ul li.submenu:focus-within > ul {
	visibility: visible;
	opacity: 1;
	transform: scaleY(1);
	padding: 5px 0;
}

/* Brand logo sizing (force smaller; overrides custom.css defaults) */
.site-nav .navbar-brand img,
.site-header .navbar-brand img {
	height: 64px !important;
	width: auto !important;
	max-width: min(220px, 70vw);
	object-fit: contain;
}

@media (max-width: 480px) {
	.site-nav .navbar-brand img,
	.site-header .navbar-brand img {
		height: 38px !important;
	}
}

.site-header .site-navbar > .container {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
}

.site-nav-left {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	justify-self: start;
}

.site-nav-left-label {
	color: rgba(15, 23, 42, 0.82);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.site-nav-brand {
	justify-self: center;
	margin: 0 !important;
}

.site-nav-right {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.site-nav-phone {
	color: var(--primary-color, #001489);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(0, 20, 137, 0.28);
	background: rgba(0, 20, 137, 0.08);
	font-size: 16px;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-nav-phone:hover,
.site-nav-phone:focus-visible {
	color: var(--primary-color, #001489);
	background: rgba(0, 20, 137, 0.14);
	border-color: rgba(0, 20, 137, 0.45);
	transform: translateY(-1px);
}

.phone-choice-dropdown {
	position: fixed;
	width: min(304px, calc(100vw - 24px));
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
	padding: 14px;
	z-index: 1200;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
}

.phone-choice-dropdown.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.phone-choice-dropdown__header {
	margin-bottom: 8px;
}

.phone-choice-dropdown__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.phone-choice-dropdown__helper {
	margin: 3px 0 0;
	font-size: 12px;
	color: #64748b;
}

.phone-choice-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 10px;
	text-decoration: none;
	border-radius: 10px;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.phone-choice-row + .phone-choice-row {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 0 0 10px 10px;
}

.phone-choice-row__icon {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(0, 20, 137, 0.08);
	color: rgba(0, 20, 137, 0.72);
	font-size: 13px;
	flex-shrink: 0;
}

.phone-choice-row__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.phone-choice-row__label {
	font-size: 12px;
	color: #64748b;
	line-height: 1.1;
}

.phone-choice-row__number {
	font-size: 17px;
	line-height: 1.2;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.01em;
}

.phone-choice-row:hover,
.phone-choice-row:focus-visible {
	background: rgba(0, 20, 137, 0.06);
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px rgba(0, 20, 137, 0.15);
}

.phone-choice-row:focus-visible {
	outline: 2px solid rgba(0, 20, 137, 0.32);
	outline-offset: 1px;
}

.phone-choice-row--mobile:hover,
.phone-choice-row--mobile:focus-visible {
	background: rgba(0, 20, 137, 0.06);
	box-shadow: inset 0 0 0 1px rgba(0, 20, 137, 0.15);
}

.site-nav-desktop-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	height: 40px;
	padding: 0 18px !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	background: var(--primary-color, #001489);
	color: var(--white-color, #ffffff) !important;
	border: none;
	box-shadow: none;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.site-nav-desktop-cta::before {
	background-image: none !important;
	width: 0 !important;
	height: 0 !important;
}

.site-nav-desktop-cta:hover,
.site-nav-desktop-cta:focus-visible {
	background: var(--accent-color, #0f766e);
	color: var(--white-color, #ffffff) !important;
	box-shadow: none;
	transform: translateY(-1px);
}

.site-nav-mobile-fab {
	display: none !important;
}

.site-nav-mobile-fab::before {
	background-image: none !important;
	width: 0 !important;
	height: 0 !important;
}

/* Bez animiranog ::after iz .btn-default na plutajućem FAB-u */
.btn-default.site-nav-mobile-fab::after {
	display: none !important;
}

.site-header .main-menu ul li a{
	color: #1e2b5a !important;
}

#site-menu .nav-link.active {
	color: var(--accent-color, #0f766e) !important;
	font-weight: 600;
}

#site-menu .nav-link[aria-current="page"] {
	color: var(--accent-color, #0f766e) !important;
	font-weight: 600;
}

/* Dropdown (submenu) aktivna stavka mora imati kontrastnu boju
   da "active" ne prepiše tekst u boju pozadine. */
#site-menu .submenu-panel .nav-link.active,
#site-menu .submenu-panel .nav-link[aria-current="page"] {
	color: var(--white-color, #ffffff) !important;
	background-color: transparent !important;
	font-weight: 700;
}

.contact-now-phone {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.contact-now-phone:hover,
.contact-now-phone:focus-visible {
	color: var(--accent-color, #0f766e);
}

.site-nav-cta {
	flex-shrink: 0;
	align-self: center;
	margin: 0 12px;
	white-space: nowrap;
	padding: 12px 22px !important;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
}

/* Hide the generic btn-default "+" pseudo-icon on the header CTA.
   custom.css defines `.btn-default::before` with icon-plus.svg; due to
   the reduced header padding, the icon becomes visible inside the button. */
.site-nav-cta::before{
	background-image: none !important;
	width: 0 !important;
	height: 0 !important;
}

/* Submenu heading: top link + mobile toggle */
.site-header .main-menu ul li.submenu .submenu-heading {
	display: inline-flex;
	align-items: center;
	gap: 0;
}

@media (min-width: 992px) {
	.site-header .main-menu ul li.submenu .submenu-heading .nav-link::after {
		content: '\f107';
		font-family: 'FontAwesome';
		font-weight: 900;
		font-size: 14px;
		margin-left: 8px;
	}
}

.site-header .main-menu ul li.submenu .submenu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 8px;
	color: var(--primary-color);
}

.site-header .main-menu ul li.submenu .submenu-toggle::after {
	content: '\f107';
	font-family: 'FontAwesome';
	font-weight: 900;
	font-size: 14px;
	line-height: 1;
}

.site-header .main-menu ul li.submenu.is-open > .submenu-heading .submenu-toggle::after {
	transform: rotate(-180deg);
}

.site-header .main-menu ul li.submenu .submenu-toggle:focus-visible {
	outline: 2px solid var(--accent-color, #0f766e);
	outline-offset: 2px;
}

/* Mobile drawer toggle */
.site-nav-toggle {
	display: inline-flex;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(0, 20, 137, 0.08);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
	background: rgba(0, 20, 137, 0.14);
}

.site-nav-toggle:focus-visible {
	outline: 2px solid rgba(0, 20, 137, 0.45);
	outline-offset: 2px;
}

.site-nav-toggle-bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
	pointer-events: none;
}

.site-nav-toggle-bars span {
	display: block;
	height: 3px;
	background: var(--primary-color, #001489);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.25s ease;
	transform-origin: center;
}

.site-header.nav-open .site-nav-toggle-bars span:nth-child(1) {
	transform: translateY(8px) rotate(-45deg);
}

.site-header.nav-open .site-nav-toggle-bars span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.site-header.nav-open .site-nav-toggle-bars span:nth-child(3) {
	transform: translateY(-8px) rotate(45deg);
}

.site-nav-backdrop {
	display: none;
}

@media (max-width: 991px) {
	.site-header .site-navbar > .container {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 10px;
	}

	.site-nav-brand {
		order: 2;
		justify-self: center;
		margin: 0 !important;
	}

	.site-header .site-nav-brand img {
		height: 44px !important;
		width: auto !important;
	}

	.site-nav-right {
		order: 3;
		justify-self: end;
		margin: 0;
	}

	.site-nav-desktop-cta {
		display: none;
	}

	.site-nav-left {
		order: 1;
		justify-self: start;
		gap: 0;
		margin: 0;
	}

	.site-nav-left-label {
		display: none;
	}

	.site-nav-toggle {
		width: 40px;
		height: 40px;
	}

	.site-header.nav-open .site-navbar > .container {
		position: relative;
		z-index: 1003;
		background: transparent;
	}

	.site-header .main-menu ul li.submenu .submenu-heading .nav-link::after {
		display: none;
	}

	.site-header .main-menu ul li.submenu .submenu-toggle {
		display: inline-flex;
	}

	.site-header .main-menu ul li.submenu .submenu-heading {
		width: 100%;
		justify-content: space-between;
	}

	.site-header .main-menu ul li.submenu .submenu-heading .nav-link {
		flex: 1;
	}

	.site-nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		bottom: 0;
		top: 0;
		background: rgba(15, 23, 42, 0.45);
		z-index: 998;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		pointer-events: none;
	}

	.site-nav-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.site-header .site-nav-drawer {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		position: fixed;
		--site-safe-top: env(safe-area-inset-top, 0px);
		--site-safe-bottom: env(safe-area-inset-bottom, 0px);
		top: calc(10px + var(--site-safe-top));
		left: 0;
		width: min(78vw, 280px);
		max-width: 280px;
		height: calc(100dvh - 20px - var(--site-safe-top) - var(--site-safe-bottom));
		max-height: calc(100dvh - 20px - var(--site-safe-top) - var(--site-safe-bottom));
		margin: 0 !important;
		padding: 68px 14px 14px;
		background: #fff;
		box-shadow: 6px 0 24px rgba(15, 23, 42, 0.12);
		border-radius: 0 14px 14px 0;
		z-index: 999;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-100%);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.site-header .site-nav-drawer .site-drawer-brand {
		position: absolute;
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		display: inline-flex;
		align-items: center;
		text-decoration: none;
	}

	.site-header .site-nav-drawer .site-drawer-brand img {
		height: 44px !important;
		width: auto !important;
		max-width: min(200px, 70vw);
		object-fit: contain;
	}

	.site-header .site-nav-drawer .site-nav-close {
		position: absolute;
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		border: none;
		border-radius: 12px;
		background: rgba(15, 23, 42, 0.06);
		color: var(--primary-color, #0f172a);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		transition: background 0.2s ease;
	}

	.site-header .site-nav-drawer .site-nav-close::before {
		content: '\f00d';
		font-family: 'FontAwesome';
		font-weight: 900;
		font-size: 18px;
		line-height: 1;
	}

	.site-header .site-nav-drawer .site-nav-close:hover {
		background: rgba(15, 23, 42, 0.1);
	}

	.site-header .site-nav-drawer .site-nav-close:focus-visible {
		outline: 2px solid var(--accent-color, #0f766e);
		outline-offset: 2px;
	}

	.site-header.nav-open .site-nav-drawer {
		transform: translateX(0);
	}

	.site-header .site-nav-drawer .nav-menu-wrapper {
		flex: 0 0 auto;
		text-align: left;
		width: 100%;
	}

	.site-header .site-nav-drawer .nav-menu-wrapper > ul {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.site-header .site-nav-drawer .navbar-nav .nav-item {
		margin: 0;
		border-bottom: 1px solid rgba(148, 163, 184, 0.25);
	}

	.site-header .site-nav-drawer .navbar-nav .nav-link {
		padding: 10px 6px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu{
		text-align: center;
		font-family: var(--default-font), sans-serif;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item{
		border-bottom: 1px solid rgba(148, 163, 184, 0.22);
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-title{
		margin-top: 2px;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-title:first-child{
		margin-top: 0;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-title{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 40px;
		font-family: var(--default-font), sans-serif;
		font-size: clamp(0.88rem, 2.6vw, 1.05rem);
		font-weight: 700;
		letter-spacing: 0.01em;
		text-transform: uppercase;
		line-height: 1.1;
		padding: 6px 6px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-title-primary{
		font-size: clamp(0.95rem, 2.8vw, 1.12rem) !important;
		font-weight: 800 !important;
		letter-spacing: 0.012em !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-sub{
		font-family: var(--default-font), sans-serif;
		font-size: clamp(0.72rem, 2vw, 0.82rem);
		font-weight: 600;
		letter-spacing: 0.007em;
		text-transform: uppercase;
		line-height: 1.2;
		padding: 5px 6px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-sub:last-of-type{
		border-bottom-color: rgba(148, 163, 184, 0.3);
	}

	.site-header .main-menu ul ul {
		position: static;
		width: 100%;
		visibility: visible;
		opacity: 1;
		transform: none;
		display: none;
		background: rgba(15, 118, 110, 0.08);
		border-radius: 12px;
		margin: 8px 0 12px;
		padding: 8px 0 !important;
		box-shadow: none;
	}

	.site-header .main-menu ul li.submenu.is-open > ul {
		display: block;
	}

	.site-header .main-menu ul ul li a {
		color: var(--primary-color, #0f172a) !important;
		padding: 10px 16px !important;
	}

	.site-header .site-nav-drawer .site-nav-cta {
		margin: 8px 0 4px;
		text-align: center;
		justify-content: center;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-family: var(--default-font), sans-serif;
		font-size: clamp(0.8rem, 2.4vw, 0.95rem);
		font-weight: 700;
		text-transform: uppercase;
		line-height: 1.15;
		padding: 8px 10px !important;
		width: 100%;
	}

	.site-header .site-nav-drawer .contact-now-box {
		margin-top: auto;
		padding-top: 12px;
	}

	.responsive-menu {
		display: none !important;
	}

	.navbar-toggle {
		display: none !important;
	}
}

@media (max-width: 991px) {
	.site-nav-desktop-cta {
		display: none !important;
	}

	/* Modern floating CTA: clean, readable on light/dark backgrounds */
	.btn-default.site-nav-mobile-fab {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		position: fixed !important;
		right: 14px !important;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
		z-index: 1005;
		height: 46px;
		padding: 0 16px !important;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.01em;
		border-radius: 999px;
		text-decoration: none;
		overflow: visible !important;
		background: linear-gradient(135deg, #0a2db6 0%, #001489 100%) !important;
		color: var(--white-color, #ffffff) !important;
		border: 1px solid rgba(255, 255, 255, 0.26) !important;
		box-shadow:
			0 10px 24px rgba(2, 15, 88, 0.28),
			0 2px 8px rgba(1, 20, 137, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.22);
		transition:
			background 0.2s ease,
			box-shadow 0.2s ease,
			transform 0.2s ease;
	}

	.btn-default.site-nav-mobile-fab:hover,
	.btn-default.site-nav-mobile-fab:focus-visible {
		background: linear-gradient(135deg, #1238d1 0%, #0320a6 100%) !important;
		color: var(--white-color, #ffffff) !important;
		border-color: rgba(255, 255, 255, 0.35) !important;
		box-shadow:
			0 14px 30px rgba(2, 15, 88, 0.34),
			0 4px 12px rgba(1, 20, 137, 0.25),
			inset 0 1px 0 rgba(255, 255, 255, 0.28);
		transform: translateY(-2px);
	}

	.btn-default.site-nav-mobile-fab:focus-visible {
		outline: 2px solid rgba(255, 255, 255, 0.9);
		outline-offset: 2px;
	}

	.site-header.nav-open .site-nav-mobile-fab {
		opacity: 0;
		pointer-events: none;
	}
}

@media (min-width: 992px) {
	.site-nav-desktop-cta {
		display: inline-flex;
	}

	.site-nav-drawer {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		position: fixed;
		top: 0;
		left: 0;
		width: min(92vw, 400px);
		height: 100vh;
		max-height: 100vh;
		margin: 0 !important;
		padding: 98px 20px 16px;
		background: #fff;
		box-shadow: 8px 0 32px rgba(15, 23, 42, 0.15);
		z-index: 999;
		overflow-y: auto;
		overflow-x: hidden;
		transform: translateX(-100%);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.site-header.nav-open .site-nav-drawer {
		transform: translateX(0);
	}

	.site-nav-drawer .site-nav-close {
		position: absolute;
		top: 14px;
		right: 14px;
		width: 36px;
		height: 36px;
		border: none;
		border-radius: 12px;
		background: rgba(15, 23, 42, 0.06);
		color: var(--primary-color, #0f172a);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.site-nav-drawer .site-nav-close::before {
		content: '\f00d';
		font-family: 'FontAwesome';
		font-weight: 900;
		font-size: 18px;
		line-height: 1;
	}

	.site-header .site-nav-drawer .site-drawer-brand {
		position: absolute;
		top: 14px;
		left: 50%;
		transform: translateX(-50%);
		display: inline-flex;
		align-items: center;
		text-decoration: none;
	}

	.site-header .site-nav-drawer .site-drawer-brand img {
		height: 60px !important;
		width: auto !important;
		max-width: min(260px, 78vw);
		object-fit: contain;
	}

	.site-header .site-nav-drawer .nav-menu-wrapper > ul {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.site-header .site-nav-drawer .navbar-nav .nav-item {
		margin: 0;
		border-bottom: 1px solid rgba(148, 163, 184, 0.25);
	}

	.site-header .site-nav-drawer .navbar-nav .nav-link {
		display: block;
		width: 100%;
		padding: 14px 8px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu{
		text-align: center;
		font-family: var(--default-font), sans-serif;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item{
		border-bottom: 1px solid rgba(148, 163, 184, 0.22);
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-title{
		margin-top: 2px;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-title:first-child{
		margin-top: 0;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-title{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
		font-family: var(--default-font), sans-serif;
		font-size: clamp(1.1rem, 3vw, 1.25rem);
		font-weight: 700;
		letter-spacing: 0.01em;
		text-transform: uppercase;
		line-height: 1.1;
		padding: 8px 8px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-title-primary{
		font-size: clamp(1.2rem, 3.2vw, 1.35rem) !important;
		font-weight: 800 !important;
		letter-spacing: 0.012em !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-link-sub{
		font-family: var(--default-font), sans-serif;
		font-size: clamp(0.8rem, 2.2vw, 0.9rem);
		font-weight: 600;
		letter-spacing: 0.007em;
		text-transform: uppercase;
		line-height: 1.2;
		padding: 7px 8px !important;
	}

	.site-header .site-nav-drawer .site-drawer-menu .nav-item-sub:last-of-type{
		border-bottom-color: rgba(148, 163, 184, 0.3);
	}

	.site-header .site-nav-drawer .site-nav-cta {
		margin: 10px 0 4px;
		text-align: center;
		justify-content: center;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-family: var(--default-font), sans-serif;
		font-size: clamp(0.92rem, 2.7vw, 1.05rem);
		font-weight: 700;
		text-transform: uppercase;
		line-height: 1.15;
		padding: 10px 12px !important;
		width: 100%;
	}
}
