/* ==========================================================
   Tekcom Mobile Menu Widget
   ========================================================== */

:root {
    --tmm-bar-h: 64px;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.tmm-wrapper {
    /* normal flow container; bar + overlay are positioned independently */
}

/* ── Trigger Bar (always visible) ────────────────────────── */
.tmm-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tmm-bar-h);
    z-index: 100000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.tmm-bar__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.tmm-logo {
    display: flex;
    align-items: center;
}

.tmm-logo__img {
    height: 36px;
    width: auto;
    display: block;
}

/* ── Search & Toggle buttons ─────────────────────────────── */
.tmm-search-btn,
.tmm-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #193250;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.tmm-search-btn:hover,
.tmm-toggle:hover {
    background: rgba(25, 50, 80, 0.07);
}

/* ── Hamburger / X icon toggle ───────────────────────────── */
.tmm-icon-close {
    display: none;
}

.tmm-toggle[aria-expanded="true"] .tmm-icon-open {
    display: none;
}

.tmm-toggle[aria-expanded="true"] .tmm-icon-close {
    display: block;
}

/* ── Overlay ──────────────────────────────────────────────── */
.tmm-overlay {
    position: fixed;
    top: var(--tmm-bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.tmm-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* ── Elementor editor preview ─────────────────────────────── */
.tmm-wrapper--editor .tmm-bar {
    position: relative;
    height: var(--tmm-bar-h);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.tmm-overlay--editor {
    position: relative;
    top: 0;
    visibility: visible;
    pointer-events: auto;
    height: 640px;
    border: 1px dashed #c9a84c;
}

.tmm-overlay--editor .tmm-panel {
    position: absolute;
}

/* ── Panels container ─────────────────────────────────────── */
.tmm-panel {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tmm-panel.is-active {
    transform: translateX(0);
}

/* Main panel starts off-screen left when sub is active */
.tmm-panel--main {
    transform: translateX(-100%);
}

.tmm-panel--main.is-active {
    transform: translateX(0);
}

.tmm-panel--main.is-pushed {
    transform: translateX(-30%);
}

/* ── Search area ──────────────────────────────────────────── */
.tmm-search-area {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #fff;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tmm-search-area[hidden] {
    display: none;
}

/* ── Main nav ─────────────────────────────────────────────── */
.tmm-nav {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.tmm-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmm-nav__item {
    border-bottom: 1px solid #e8eef5;
}

.tmm-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #193250 !important;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1;
    transition: color 0.2s;
}

.tmm-nav__link:hover {
    color: #c9a84c;
}

.tmm-nav__link svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.tmm-nav__link:hover svg {
    transform: translateX(3px);
}

/* ── Secondary links ──────────────────────────────────────── */
.tmm-secondary {
    padding: 20px 20px 4px;
    border-top: 1px solid #e8eef5;
    flex-shrink: 0;
}

.tmm-secondary__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 0.9375rem;
    color: #193250;
    text-decoration: none;
    border-bottom: 1px solid #e8eef5;
    transition: color 0.2s;
}

.tmm-secondary__link:last-child {
    border-bottom: none;
}

.tmm-secondary__link:hover {
    color: #c9a84c;
}

.tmm-secondary__link svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.tmm-secondary__link:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Language switcher ────────────────────────────────────── */
.tmm-lang {
    padding: 16px 20px 24px;
    flex-shrink: 0;
}

.tmm-lang__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tmm-lang__current {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #193250;
}

.tmm-lang__flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.tmm-lang__switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #193250;
    text-decoration: none;
    transition: color 0.2s;
}

.tmm-lang__switch:hover {
    color: #c9a84c;
}

/* ── Submenu panel header ─────────────────────────────────── */
.tmm-panel__header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eef5;
    flex-shrink: 0;
}

.tmm-panel__header span {
    font-size: 1rem;
    font-weight: 400;
    color: #193250;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tmm-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #193250;
    transition: color 0.2s;
}

.tmm-back:hover {
    color: #c9a84c;
}

/* ── Submenu panel body ───────────────────────────────────── */
.tmm-panel__body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0 20px 32px;
}

/* ── Sub groups ───────────────────────────────────────────── */
.tmm-sub-group {
    padding-top: 24px;
}

.tmm-sub-group+.tmm-sub-group {
    margin-top: 8px;
}

.tmm-sub-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: #193250;
    margin: 0 0 6px;
}

.tmm-sub-group__desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.55;
}

.tmm-sub-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmm-sub-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    height: 80px;
    border-radius: 4px;
    background: #1e293b;
}

.tmm-sub-item__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    transition: opacity 0.3s, transform 0.35s;
}

.tmm-sub-item:hover .tmm-sub-item__img {
    opacity: 0.8;
    transform: scale(1.04);
}

.tmm-sub-item__label {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 0 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ── Sub CTA ──────────────────────────────────────────────── */
.tmm-sub-cta-wrap {
    padding-top: 28px;
    text-align: center;
}

.tmm-sub-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #254B78;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.tmm-sub-cta span {
    font-size: 25px;
    font-weight: 700;
    color: #254B78;
}

.tmm-sub-cta:hover {
    gap: 12px;
    color: #c9a84c;
}