.tnm-menu-wrap{
  --tnm-navy:#080b26;
  --tnm-blue:#3d5cff;
  --tnm-blue-light:#6f8bff;
  --tnm-orange:#ff5a1f;
  --tnm-muted:#8b93c9;
  --tnm-border:rgba(255,255,255,0.08);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  max-width:1100px;
  margin:0 auto;
  position:relative;
  z-index:999;
}

/* ---------- background overlay (shown while menu is open) ---------- */
.tnm-overlay{
  position:fixed;
  inset:0;
  background:rgba(3,5,20,0.6);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s ease, visibility .35s ease;
  z-index:1; /* stays below topbar/panel, which sit above it in the same stacking context */
}
.tnm-menu-wrap.active-tab .tnm-overlay{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* lock page scroll while the menu is open (toggled on <body> by script.js) */
body.tnm-menu-open{
  overflow:hidden;
}

/* ---------- top bar ---------- */
.tnm-topbar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--tnm-navy);
  border-radius:18px;
  padding:14px 22px;
  box-shadow:0 10px 40px rgba(0,0,10,0.45);
  flex-wrap:wrap;
  gap:10px;
}

.tnm-menu-btn{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.06);
  border:none;
  border-radius:10px;
  padding:9px 14px;
  color:#fff;
  font-size:15px;
  cursor:pointer;
  transition:background .25s ease;
}
.tnm-menu-btn:hover{ background:rgba(255,255,255,0.12); }

.tnm-icon{ position:relative; width:18px; height:14px; display:inline-block; flex:0 0 auto; }
.tnm-bar{
  position:absolute; left:0; width:18px; height:2px; background:#fff; border-radius:2px;
  transition:transform .3s ease, opacity .3s ease, top .3s ease;
}
.tnm-bar:nth-child(1){ top:0; }
.tnm-bar:nth-child(2){ top:6px; }
.tnm-bar:nth-child(3){ top:12px; }

.tnm-menu-btn.is-open .tnm-bar:nth-child(1){ top:6px; transform:rotate(45deg); }
.tnm-menu-btn.is-open .tnm-bar:nth-child(2){ opacity:0; transform:scaleX(0); }
.tnm-menu-btn.is-open .tnm-bar:nth-child(3){ top:6px; transform:rotate(-45deg); }

.tnm-logo{ display:inline-flex; align-items:center; text-decoration:none; }
.tnm-logo-img{ max-height:32px; width:auto; display:block; }
.tnm-logo-fallback{
  font-size:24px;
  font-weight:800;
  color:var(--tnm-blue-light);
  letter-spacing:-0.5px;
}

.tnm-actions{ display:flex; align-items:center; gap:16px; }
.tnm-book-call{ color:#e8eaf7; text-decoration:none; font-size:15px; }
.tnm-book-call:hover{ color:#fff; }

.tnm-arrow-btn{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  background:var(--tnm-orange);
  border-radius:10px;
  color:#fff;
  transition:transform .25s ease;
  flex:0 0 auto;
}
.tnm-arrow-btn:hover{ transform:translate(2px,-2px); }

/* ---------- expandable panel ---------- */
.tnm-panel{
  position:relative;
  z-index:2;
  background:var(--tnm-navy);
  border-radius:18px;
  margin-top:10px;
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .45s ease, opacity .35s ease, margin-top .45s ease;
}
.tnm-panel.is-open{
  max-height:3000px;
  opacity:1;
}

.tnm-panel-inner{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  padding:36px 30px;
  align-items:start;
}

/* left nav */
.tnm-nav-col{ display:flex; flex-direction:column; }

.tnm-nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--tnm-border);
}

.tnm-nav-link{
  color:#c7cbe8;
  text-decoration:none;
  font-size:30px;
  font-weight:500;
  padding:10px 0;
  transition:color .2s ease;
  cursor:pointer;
}
.tnm-nav-link:hover, .tnm-nav-link.tnm-active{ color:var(--tnm-blue-light); }

.tnm-nav-view-all{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--tnm-blue-light);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  transform:translateX(-6px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.tnm-nav-view-all::after{
  content:'→';
  display:inline-block;
  transition:transform .2s ease;
}
.tnm-nav-view-all:hover::after{ transform:translateX(3px); }

.tnm-nav-row.tnm-active .tnm-nav-view-all{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
}

.tnm-copyright{ margin-top:24px; padding-top:18px; font-size:12px; color:var(--tnm-muted); }

/* right content area — swaps per view */
.tnm-content-area{ position:relative; min-height:200px; }
.tnm-view{
  display:none;
  animation:emFadeIn .3s ease;
}
.tnm-view.tnm-view-active{ display:block; }
@keyframes emFadeIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}

/* services: three template slots side by side */
.tnm-services-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:18px;
}

.tnm-tpl-slot{ min-width:0; }
.tnm-tpl-placeholder{
  border:1px dashed var(--tnm-border);
  border-radius:12px;
  padding:24px 16px;
  color:var(--tnm-muted);
  font-size:13px;
  text-align:center;
}

/* ---------- responsive ---------- */

@media (max-width: 1340px){
	.tnm-panel{
		overflow: auto;
	}
	.tnm-panel.is-open {
		max-height: 100vh;
	
	}
}

@media (max-width: 1200px){
	.tnm-panel.is-open {
		max-height: 410px;
	
	}
}

@media (max-width: 1099px){
	.tnm-panel.is-open {
		max-height: 440px;
	
	}
}

@media (max-width: 900px){
  .tnm-panel-inner{ grid-template-columns:1fr; }
  .tnm-nav-link{ font-size:24px; }
  .tnm-services-grid{ grid-template-columns:1fr; }
}
