/* =========================================================
   Trindade Menu — estilos base
   Tudo que é cor/fonte/espaço aqui é apenas o ponto de
   partida; o Elementor sobrescreve pelos controles.
   ========================================================= */

.tm-wrapper {
	position: relative;
	--tm-speed: 400ms;
}

.tm-wrapper *,
.tm-wrapper *::before,
.tm-wrapper *::after {
	box-sizing: border-box;
}

/* ---------- Barra ---------- */
.tm-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	background-color: #3B2117;
	z-index: 999;
	width: 100%;
}

.tm-pos-sticky .tm-bar {
	position: sticky;
	top: 0;
}

.tm-pos-fixed .tm-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.tm-zone {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.tm-zone-start { flex: 1 1 0; justify-content: flex-start; }
.tm-zone-center { flex: 0 0 auto; justify-content: center; }
.tm-zone-end { flex: 1 1 0; justify-content: flex-end; }

.tm-layout-burger_left_brand_left .tm-zone-start { flex: 1 1 auto; }

/* Ícone à direita: a marca abre a barra e o botão vai para a ponta. */
.tm-layout-burger_right_brand_left .tm-zone-start { flex: 1 1 100%; }
.tm-layout-burger_right_brand_left .tm-zone-start .tm-brand { order: 1; }
.tm-layout-burger_right_brand_left .tm-zone-start .tm-toggle { order: 2; margin-inline-start: auto; }
.tm-layout-burger_right_brand_left .tm-zone-end { flex: 0 0 auto; }

/* ---------- Marca ---------- */
.tm-brand {
	display: inline-flex;
	align-items: center;
	color: #FFFFFF;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none;
	line-height: 1.2;
	transition: color .25s ease, opacity .25s ease;
	white-space: nowrap;
}

.tm-brand:hover,
.tm-brand:focus { text-decoration: none; }

.tm-brand img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ---------- Botões (hambúrguer / fechar) ---------- */
.tm-wrapper .tm-toggle,
.tm-wrapper .tm-close,
.tm-wrapper .tm-sub-toggle,
.tm-wrapper .tm-toggle:hover,
.tm-wrapper .tm-close:hover,
.tm-wrapper .tm-sub-toggle:hover,
.tm-wrapper .tm-toggle:focus,
.tm-wrapper .tm-close:focus,
.tm-wrapper .tm-sub-toggle:focus,
.tm-wrapper .tm-toggle:active,
.tm-wrapper .tm-close:active,
.tm-wrapper .tm-sub-toggle:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: transparent none;
	background-color: transparent;
	background-image: none;
	border: 0;
	box-shadow: none;
	text-shadow: none;
	padding: 0;
	margin: 0;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	cursor: pointer;
	line-height: 1;
	color: inherit;
	font-family: inherit;
	transition: color .25s ease, background-color .25s ease, transform .25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tm-wrapper .tm-toggle { color: #FFFFFF; font-size: 26px; }
.tm-wrapper .tm-close { color: #3B2117; font-size: 24px; }

.tm-toggle i,
.tm-close i,
.tm-sub-toggle i,
.tm-item-icon i { line-height: 1; }

.tm-toggle svg,
.tm-close svg,
.tm-sub-toggle svg,
.tm-item-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

/* SVGs enviados: herdam a cor do botão sem estragar ícones de contorno. */
.tm-wrapper .tm-toggle svg:not([fill="none"]),
.tm-wrapper .tm-toggle svg *:not([fill="none"]),
.tm-wrapper .tm-close svg:not([fill="none"]),
.tm-wrapper .tm-close svg *:not([fill="none"]),
.tm-wrapper .tm-sub-toggle svg:not([fill="none"]),
.tm-wrapper .tm-sub-toggle svg *:not([fill="none"]),
.tm-wrapper .tm-item-icon svg:not([fill="none"]),
.tm-wrapper .tm-item-icon svg *:not([fill="none"]) {
	fill: currentColor;
}

.tm-wrapper .tm-toggle svg [stroke]:not([stroke="none"]),
.tm-wrapper .tm-close svg [stroke]:not([stroke="none"]),
.tm-wrapper .tm-sub-toggle svg [stroke]:not([stroke="none"]),
.tm-wrapper .tm-item-icon svg [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

.tm-toggle-icon { display: inline-flex; }
.tm-toggle-label { font-size: .55em; letter-spacing: 1px; }

.tm-toggle:focus-visible,
.tm-close:focus-visible,
.tm-sub-toggle:focus-visible,
.tm-link:focus-visible,
.tm-brand:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---------- Painel ---------- */
.tm-panel {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	width: var(--tm-panel-width, 100%);
	max-width: 100%;
	height: 100%;
	background-color: #F3E9DF;
	padding: 28px 30px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--tm-speed) ease, transform var(--tm-speed) ease, visibility var(--tm-speed);
	text-align: start;
}

.tm-panel-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 100%;
}

/* Painel abaixo da barra */
.tm-mode-below_bar .tm-panel {
	position: absolute;
	top: 100%;
	inset-inline: 0;
	width: auto;
	height: auto;
	max-height: calc(100vh - 100%);
}
.tm-mode-below_bar .tm-panel-inner { min-height: 0; }

/* Mantém a barra visível por cima do painel */
.tm-keep-bar .tm-bar { z-index: 1001; }

/* Animações */
.tm-anim-fade .tm-panel { transform: none; }
.tm-anim-slide-left .tm-panel { transform: translateX(-100%); }
.tm-anim-slide-right .tm-panel {
	inset-inline-start: auto;
	inset-inline-end: 0;
	transform: translateX(100%);
}
.tm-anim-slide-top .tm-panel { transform: translateY(-100%); }

.tm-wrapper.tm-open .tm-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

/* ---------- Fechar ---------- */
.tm-close-wrap {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 34px;
	flex: 0 0 auto;
}

/* ---------- Lista ---------- */
.tm-nav { width: 100%; }

.tm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--tm-item-gap, 22px);
	width: 100%;
}

.tm-item {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 0 solid transparent;
}

.tm-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	width: 100%;
	transition: background-color .25s ease;
}

.tm-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #3B2117;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: color .25s ease;
	flex: 0 1 auto;
	min-width: 0;
}

.tm-subicon-edge .tm-link { flex: 1 1 auto; }

.tm-link:hover,
.tm-link:focus { text-decoration: none; }

.tm-item-icon { display: inline-flex; align-items: center; flex: 0 0 auto; }

.tm-wrapper .tm-sub-toggle {
	flex: 0 0 auto;
	font-size: 14px;
	color: #3B2117;
	padding: 6px;
}

.tm-wrapper.tm-subicon-edge .tm-sub-toggle { margin-inline-start: auto; }

.tm-rotate-sub .tm-item.tm-sub-open > .tm-row > .tm-sub-toggle {
	transform: rotate(180deg);
}

/* ---------- Submenu (acordeão) ---------- */
.tm-submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 6px;
	padding-inline-start: 16px;
	display: flex;
	flex-direction: column;
	gap: var(--tm-sub-gap, 12px);
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--tm-speed) ease, opacity var(--tm-speed) ease, padding var(--tm-speed) ease;
	opacity: 0;
}

/* Fechado: não pode ocupar altura nenhuma (nem o próprio padding). */
.tm-wrapper .tm-item:not(.tm-sub-open) > .tm-submenu {
	padding-top: 0;
	padding-bottom: 0;
	border-top-width: 0;
	border-bottom-width: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.tm-item.tm-sub-open > .tm-submenu {
	opacity: 1;
}

.tm-submenu .tm-link {
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #5A3B2A;
}

.tm-subitem {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	transition: background-color .25s ease;
}

/* ---------- Trava de rolagem ---------- */
body.tm-scroll-locked {
	overflow: hidden !important;
	touch-action: none;
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	.tm-panel,
	.tm-submenu,
	.tm-row,
	.tm-link,
	.tm-toggle,
	.tm-close,
	.tm-sub-toggle {
		transition-duration: 1ms !important;
	}
}

/* ---------- Editor do Elementor ---------- */
.elementor-editor-active .tm-panel,
.elementor-editor-preview .tm-panel {
	pointer-events: auto;
}
