/**
 * Armeria 3S 1.4.3 — mobile off-canvas menu (<dialog class="a3s-oc a3s-drawer">).
 * Charcoal panel + orange accents, theme font tokens, 56 px rows, accordion sub menus (offcanvas.js).
 * Loaded after header.css (the base .a3s-drawer rules live there: fixed, full height, left side, backdrop).
 * The panel keeps its own colours with every header style and with the header colour from the slider.
 * Menu text colours from Customizer > Header arrive as --a3s-oc-fg / --a3s-oc-fg-on (inc/customizer.php).
 * Motion: transform / opacity only (accordion = height), 250 ms ease-out; reduced motion = quick fade.
 */

.a3s-oc.a3s-drawer {
	--a3s-oc-bg: #231f20;
	--a3s-oc-bg-deep: #1a1718;
	--a3s-oc-sub: #1d1a1b;
	--a3s-oc-line: rgba(255, 255, 255, 0.12);
	--a3s-oc-hover: rgba(255, 255, 255, 0.06);
	--a3s-oc-muted: #b9b3b0;
	--a3s-oc-accent: #e95e1b; /* fixed brand orange: the panel is always charcoal, whatever the Elementor kit primary is */
	--a3s-oc-accent-text: #f07a3f; /* orange lettering on charcoal: 5.6:1 */
	--a3s-oc-ease: cubic-bezier(0.23, 1, 0.32, 1);
	width: min(360px, 90vw);
	background: var(--a3s-oc-bg);
	color: #fff;
	color-scheme: dark;
	font-family: var(--a3s-font-body);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateX(-24px);
	transition:
		transform 0.2s var(--a3s-oc-ease),
		opacity 0.2s var(--a3s-oc-ease),
		overlay 0.2s allow-discrete,
		display 0.2s allow-discrete;
}

.a3s-oc.a3s-drawer[open] {
	opacity: 1;
	transform: none;
	transition-duration: 0.25s;
}

@starting-style {
	.a3s-oc.a3s-drawer[open] {
		opacity: 0;
		transform: translateX(-24px);
	}
}

.a3s-oc.a3s-drawer::backdrop {
	background: rgba(26, 23, 24, 0);
}

.a3s-oc.a3s-drawer[open]::backdrop {
	background: rgba(26, 23, 24, 0.62);
}

@starting-style {
	.a3s-oc.a3s-drawer[open]::backdrop {
		background: rgba(26, 23, 24, 0);
	}
}

.a3s-oc :where(a, button) {
	-webkit-tap-highlight-color: transparent;
}

.a3s-oc a:focus-visible,
.a3s-oc button:focus-visible,
.a3s-oc input:focus-visible {
	outline: 2px solid var(--a3s-oc-accent);
	outline-offset: -2px;
}

/* ---------- Head: logo + close ---------- */
.a3s-oc__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 76px;
	padding: 12px 8px 12px 20px;
	border-bottom: 1px solid var(--a3s-oc-line);
}

.a3s-oc__logo {
	flex: none;
	min-width: 0;
	line-height: 0;
}

.a3s-oc__logo .a3s-logo {
	display: block;
}

.a3s-oc__logo .a3s-logo__img {
	display: block;
	width: auto;
	max-width: 160px;
	height: 44px;
	object-fit: contain;
}

.a3s-oc__close {
	min-width: 48px;
	min-height: 48px;
	border-radius: var(--a3s-radius-lg, 4px);
	color: #fff;
	transition: background-color 0.15s ease, transform 0.16s var(--a3s-oc-ease);
}

.a3s-oc__close svg {
	width: 26px;
	height: 26px;
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__close:hover {
		background: var(--a3s-oc-hover);
	}
}

.a3s-oc__close:active {
	transform: scale(0.94);
}

/* ---------- Search (dark field; the live results card stays light and floats over the menu) ---------- */
.a3s-oc__search {
	position: relative;
	z-index: 3;
	flex: none;
	padding: 16px 20px 8px;
}

.a3s-oc .a3s-search__input {
	height: 48px;
	border-color: var(--a3s-oc-line);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.a3s-oc .a3s-search__input::placeholder {
	color: var(--a3s-oc-muted);
}

.a3s-oc .a3s-search__input:focus {
	border-color: var(--a3s-oc-accent);
	box-shadow: 0 0 0 3px rgba(233, 94, 27, 0.35);
}

.a3s-oc .a3s-search__submit {
	width: 48px;
	color: #fff;
}

.a3s-oc .a3s-search__results {
	color: var(--a3s-color-text, #231f20);
	color-scheme: light;
}

/* ---------- Body ---------- */
.a3s-oc__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.a3s-oc__nav {
	flex: none;
	padding: 8px 0 16px;
}

.a3s-oc__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-oc__nav a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Top-level rows ---------- */
.a3s-oc__nav .a3s-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	border-bottom: 1px solid var(--a3s-oc-line);
	opacity: 1;
	transform: none;
	transition:
		opacity 0.25s var(--a3s-oc-ease) calc(60ms + var(--i, 0) * 30ms),
		transform 0.25s var(--a3s-oc-ease) calc(60ms + var(--i, 0) * 30ms);
}

.a3s-oc__nav .a3s-menu > li:nth-child(2) { --i: 1; }
.a3s-oc__nav .a3s-menu > li:nth-child(3) { --i: 2; }
.a3s-oc__nav .a3s-menu > li:nth-child(4) { --i: 3; }
.a3s-oc__nav .a3s-menu > li:nth-child(5) { --i: 4; }
.a3s-oc__nav .a3s-menu > li:nth-child(6) { --i: 5; }
.a3s-oc__nav .a3s-menu > li:nth-child(7) { --i: 6; }
.a3s-oc__nav .a3s-menu > li:nth-child(n+8) { --i: 7; }

@starting-style {
	.a3s-oc[open] .a3s-oc__nav .a3s-menu > li {
		opacity: 0;
		transform: translateY(8px);
	}
}

.a3s-oc__nav .a3s-menu > li:first-child {
	border-top: 1px solid var(--a3s-oc-line);
}

.a3s-oc__nav .a3s-menu > li > a {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	min-width: 0;
	min-height: 56px;
	padding: 8px 20px;
	color: var(--a3s-oc-fg, #fff);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
	/* The underline like on the desktop bar; transparent until the item is the current page. */
	text-decoration: underline 2px transparent;
	text-underline-offset: 9px;
	transition: background-color 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease;
}

/* Left bar of the current page. */
.a3s-oc__nav .a3s-menu > li > a::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0;
	width: 3px;
	background: var(--a3s-oc-accent);
	transform: scaleY(0);
	transition: transform 0.2s var(--a3s-oc-ease);
}

.a3s-oc__nav .a3s-menu > li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current_page_ancestor, .current-menu-parent) > a,
.a3s-oc__nav .a3s-menu > li > a[aria-current="page"] {
	background: var(--a3s-oc-hover);
	color: var(--a3s-oc-fg-on, #fff);
	text-decoration-color: var(--a3s-oc-accent);
}

.a3s-oc__nav .a3s-menu > li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current_page_ancestor, .current-menu-parent) > a::before,
.a3s-oc__nav .a3s-menu > li > a[aria-current="page"]::before {
	transform: scaleY(1);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__nav .a3s-menu > li > a:hover {
		background: var(--a3s-oc-hover);
		color: var(--a3s-oc-fg-on, #fff);
	}
}

.a3s-oc__nav .a3s-menu > li > a:active {
	background: rgba(255, 255, 255, 0.1);
}

/* ---------- Accordion toggle ---------- */
.a3s-oc__nav .a3s-nav__toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	min-height: 56px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--a3s-oc-line);
	background: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.a3s-oc__nav .a3s-nav__toggle svg {
	width: 20px;
	height: 20px;
	transition: transform 0.25s var(--a3s-oc-ease);
}

.a3s-oc__nav .a3s-nav__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.a3s-oc__nav .a3s-nav__toggle[aria-expanded="true"] {
	color: var(--a3s-oc-accent-text);
}

.a3s-oc__nav .a3s-nav__toggle:active {
	background: rgba(255, 255, 255, 0.1);
}

/* Without JS the sub menus are listed under their parent and the toggles are hidden. */
.a3s-oc__nav:not(.is-ready) .a3s-nav__toggle {
	display: none;
}

.a3s-oc__nav .a3s-sub {
	flex: 1 0 100%;
	background: var(--a3s-oc-sub);
}

.a3s-oc__nav.is-ready .a3s-sub {
	height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: height 0.25s var(--a3s-oc-ease), visibility 0s linear 0.25s;
}

.a3s-oc__nav.is-ready li.is-open > .a3s-sub {
	visibility: visible;
	transition-delay: 0s;
}

/* ---------- Sub menu content ---------- */
.a3s-oc__nav .a3s-sub a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 6px 20px 6px 32px;
	color: #e8e4e1;
	font-size: 0.9375rem;
	line-height: 1.35;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.a3s-oc__nav .a3s-sub a:active {
	background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__nav .a3s-sub a:hover {
		background: var(--a3s-oc-hover);
		color: #fff;
	}
}

.a3s-oc__nav .a3s-sub :is(.current-menu-item, .current_page_item, .current-cat) > a,
.a3s-oc__nav .a3s-sub a[aria-current="page"] {
	box-shadow: inset 3px 0 0 var(--a3s-oc-accent);
	color: var(--a3s-oc-accent-text);
	font-weight: 600;
}

.a3s-oc__nav .a3s-dropdown {
	padding: 4px 0 8px;
}

.a3s-oc__nav .a3s-mega__inner {
	padding: 4px 0 8px;
}

/* Mega groups: heading + links. Featured column on top. */
.a3s-oc__nav .a3s-mega__groups > li > a,
.a3s-oc__nav .a3s-mega__featured > li > a {
	min-height: 44px;
	padding-top: 12px;
	padding-bottom: 4px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.a3s-oc__nav .a3s-mega__groups > li > a {
	color: var(--a3s-oc-accent-text);
}

.a3s-oc__nav .a3s-sub-links a {
	min-height: 44px;
}

.a3s-oc__nav .a3s-sub-links--d2 a {
	padding-left: 44px;
}

.a3s-oc__nav .a3s-mega__featured {
	margin-bottom: 4px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--a3s-oc-line);
}

/* ---------- Optional "Categories" group (Customizer switch, off by default) ---------- */
.a3s-oc__groups {
	margin-top: 8px;
}

.a3s-oc__group {
	border-top: 1px solid var(--a3s-oc-line);
	border-bottom: 1px solid var(--a3s-oc-line);
}

.a3s-oc__nav .a3s-oc__grouptoggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0 20px;
	border: 0;
	background: none;
	color: var(--a3s-oc-muted);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
}

.a3s-oc__nav .a3s-oc__grouptoggle[aria-expanded="true"] {
	color: var(--a3s-oc-accent-text);
}

.a3s-oc__nav .a3s-oc__grouptoggle svg {
	width: 20px;
	height: 20px;
	transition: transform 0.25s var(--a3s-oc-ease);
}

.a3s-oc__nav .a3s-oc__grouptoggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.a3s-oc__nav .a3s-oc__cats {
	padding: 0;
}

.a3s-oc__nav .a3s-oc__catlist {
	padding: 4px 0 8px;
}

.a3s-oc__nav .a3s-oc__catlist .children a {
	padding-left: 44px;
	color: var(--a3s-oc-muted);
}

/* ---------- CTA ---------- */
.a3s-oc__cta {
	flex: none;
	padding: 4px 20px 16px;
}

.a3s-oc__cta .a3s-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 1px solid var(--a3s-oc-accent);
	border-radius: var(--a3s-radius-lg, 4px);
	background: var(--a3s-oc-accent);
	color: #231f20;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.16s var(--a3s-oc-ease);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__cta .a3s-btn:hover {
		border-color: #fff;
		background: #fff;
		color: #231f20;
	}
}

.a3s-oc__cta .a3s-btn:active {
	transform: scale(0.97);
}

/* ---------- Foot: quick links, contacts, social ---------- */
.a3s-oc__foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: auto;
	padding: 20px;
	border-top: 1px solid var(--a3s-oc-line);
	background: var(--a3s-oc-bg-deep);
}

.a3s-oc__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
}

.a3s-oc__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}

.a3s-oc__link svg {
	flex: none;
	color: var(--a3s-oc-accent-text);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__link:hover {
		color: var(--a3s-oc-accent-text);
	}
}

/* The bar shows these icons itself from 480 px up. */
.a3s-oc__link--narrow {
	display: none;
}

@media (max-width: 479.98px) {
	.a3s-oc__link--narrow {
		display: inline-flex;
	}
}

.a3s-oc .a3s-lang a {
	color: #fff;
}

.a3s-oc__contacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-oc__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 68px;
	padding: 10px 8px;
	border: 1px solid var(--a3s-oc-line);
	border-radius: var(--a3s-radius-lg, 4px);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.16s var(--a3s-oc-ease);
}

.a3s-oc__tile svg {
	color: var(--a3s-oc-accent-text);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc__tile:hover {
		border-color: var(--a3s-oc-accent);
		background: rgba(233, 94, 27, 0.12);
	}
}

.a3s-oc__tile:active {
	transform: scale(0.97);
}

.a3s-oc .a3s-social.a3s-oc__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-oc .a3s-oc__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--a3s-oc-line);
	border-radius: 50%;
	background: none;
	color: #fff;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.16s var(--a3s-oc-ease);
}

@media (hover: hover) and (pointer: fine) {
	.a3s-oc .a3s-oc__social a:hover {
		border-color: var(--a3s-oc-accent);
		background: none;
		color: var(--a3s-oc-accent-text);
	}
}

.a3s-oc .a3s-oc__social a:active {
	transform: scale(0.95);
}

/* ---------- Reduced motion: no movement, quick fades ---------- */
@media (prefers-reduced-motion: reduce) {
	.a3s-oc.a3s-drawer,
	.a3s-oc.a3s-drawer[open] {
		transform: none;
		transition-duration: 0.15s;
	}

	@starting-style {
		.a3s-oc.a3s-drawer[open] {
			transform: none;
		}

		.a3s-oc[open] .a3s-oc__nav .a3s-menu > li {
			transform: none;
		}
	}

	.a3s-oc__nav .a3s-menu > li {
		transition-delay: 0s;
		transition-duration: 0.15s;
	}

	.a3s-oc__nav.is-ready .a3s-sub,
	.a3s-oc__nav .a3s-nav__toggle svg,
	.a3s-oc__nav .a3s-oc__grouptoggle svg,
	.a3s-oc__nav .a3s-menu > li > a::before,
	.a3s-oc__close,
	.a3s-oc__tile,
	.a3s-oc .a3s-oc__social a {
		transition-duration: 0s;
	}
}
