/* Sage Terminal — navigáció ([anyweb_nav]). */

.anyweb-nav {
	--ink: #1B211D;
	--ink-hover: #313A34;
	--paper: #FAFAF7;
	--text: #4E5751;
	--leaf: #4F6B55;
	--color-border: rgba(27, 33, 29, 0.10);
	--font-body: "DM Sans", system-ui, sans-serif;
	--radius-button: 6px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
	background: var(--paper);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font-body);
	box-sizing: border-box;
}

.anyweb-nav__spacer {
	height: 74px;
}

.anyweb-nav *,
.anyweb-nav *::before,
.anyweb-nav *::after {
	box-sizing: border-box;
}

.anyweb-nav__inner {
	max-width: 1200px;
	margin: 0 auto;
	height: 74px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.anyweb-nav__bar {
	display: flex;
	align-items: center;
}

.anyweb-nav__actions {
	display: none;
}

.anyweb-nav__drawer-brand,
.anyweb-nav__close {
	display: none;
}

.anyweb-nav__drawer-bottom {
	display: flex;
	align-items: center;
}

.anyweb-nav__email {
	display: none;
}

.anyweb-nav__brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
}

.anyweb-nav__logo {
	height: 40px !important;
	width: auto;
	max-width: 160px;
	display: block;
}

.anyweb-nav__panel {
	display: flex;
	align-items: center;
	gap: 30px;
}

.anyweb-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.anyweb-nav__item {
	position: relative;
	margin: 0;
}

.anyweb-nav__link,
.anyweb-nav__sublink {
	font-size: 15px;
	line-height: 1;
	color: var(--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.anyweb-nav__link:hover,
.anyweb-nav__link:focus-visible,
.anyweb-nav__sublink:hover,
.anyweb-nav__sublink:focus-visible,
.anyweb-nav__item.is-current > .anyweb-nav__link {
	color: var(--ink);
	outline: none;
}

.anyweb-nav__sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin: 8px 0 0;
	padding: 12px 16px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	min-width: 180px;
	z-index: 21;
}

.anyweb-nav__item.has-children:hover > .anyweb-nav__sub,
.anyweb-nav__item.has-children:focus-within > .anyweb-nav__sub {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.anyweb-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--paper);
	background: var(--ink);
	border: 0;
	border-radius: var(--radius-button);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.anyweb-nav__cta:hover,
.anyweb-nav__cta:focus-visible {
	background: var(--ink-hover);
	color: var(--paper);
	outline: none;
}

.anyweb-nav__toggle,
.anyweb-nav__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-button);
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
}

.anyweb-nav__toggle:hover,
.anyweb-nav__toggle:focus-visible,
.anyweb-nav__close:hover,
.anyweb-nav__close:focus-visible {
	background: var(--ink-hover);
	outline: none;
}

.anyweb-nav .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.anyweb-nav__empty {
	margin: 16px auto;
	max-width: 620px;
	padding: 0 40px;
	font-size: 15.5px;
	color: var(--text);
	text-align: center;
}

@media (max-width: 900px) {
	.anyweb-nav__inner {
		display: block;
		height: 74px;
		padding: 0;
		max-width: none;
	}
    .anyweb-nav__bar {
        display: flex;
        align-items: center;
        width: 100%;
        height: 74px;
        padding: 0px 20px;
        justify-content: space-between;
    }
	.anyweb-nav__brand {
		grid-column: 2;
		justify-self: center;
	}
	.anyweb-nav__actions {
		grid-column: 3;
		justify-self: end;
		display: flex;
		align-items: center;
		gap:15px;
	}
    .anyweb-nav__cta--compact {
        padding: 0px;
        font-size: 15px;
        background-color: transparent;
        color: #1b211d;
        font-weight: 600;
        text-decoration: underline !important;
    }
	.anyweb-nav__toggle,
	.anyweb-nav__close {
		display: inline-flex;
	}
	.anyweb-nav__panel {
		position: fixed;
		inset: 0;
		z-index: 1100;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		padding: 24px 24px 28px;
		background: var(--paper);
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.2s ease, visibility 0.2s ease;
	}
	.anyweb-nav.is-open .anyweb-nav__panel {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}
	.anyweb-nav__close {
		position: absolute;
		top: 16px;
		right: 12px;
	}
	.anyweb-nav__drawer-brand {
		display: flex;
		justify-content: flex-start;
		margin: 12px 0 36px;
	}
	.anyweb-nav__drawer-brand .anyweb-nav__logo {
		height: 32px !important;
	}
	.anyweb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		flex: 1 1 auto;
	}
	.anyweb-nav__link {
        display: block;
        padding: 13px 0;
        font-size: 22px;
        font-weight: 600;
		letter-spacing: -0.025em;
		color: var(--ink);
		text-align: left;
	}
	.anyweb-nav__sub {
		position: static;
		display: none;
		margin: 0 0 8px;
		padding: 0;
		border: 0;
		border-radius: 0;
	}
	.anyweb-nav__item.has-children.is-open > .anyweb-nav__sub,
	.anyweb-nav__item.has-children:focus-within > .anyweb-nav__sub {
		display: flex;
	}
    .anyweb-nav__drawer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid #00000012;
    }
	.anyweb-nav__email {
        display: block;
        text-align: left;
        font-weight: 700;
        font-size: 18px;
		color: var(--leaf);
		text-decoration: none;
		transition: color 0.2s ease;
	}
	.anyweb-nav__email:hover,
	.anyweb-nav__email:focus-visible {
		color: var(--ink);
		outline: none;
	}
    .anyweb-nav__drawer-bottom .anyweb-nav__cta {
        width: auto;
        padding: 15px 28px;
        font-size: 16px;
        justify-content: flex-start;
        text-align: left;
    }
}

html.anyweb-nav-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.anyweb-nav__link,
	.anyweb-nav__cta,
	.anyweb-nav__panel {
		transition: none;
	}
}
