/* assets/header.css — clean, no JS */

:root{
  --tm-sidebar-w: 320px;
  --tm-navy: #0e2b54;
  --tm-navy2:#123a73;
  --tm-ink: #0e2b54;
  --tm-muted: #274b7a;
  --tm-line: rgba(14,43,84,.12);
  --tm-soft: rgba(14,43,84,.05);
}

/* Skip link */
.tm-skip{
  position:absolute; left:-9999px; top:12px;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--tm-line);
  z-index:99999;
}
.tm-skip:focus{ left:12px; }

/* Checkbox toggle (hidden) */
.tm-toggle{
  position: fixed;
  left: -9999px;
  top: -9999px;
}

/* Desktop offset */
.tm-content{ min-height: 100vh; }
@media (min-width: 1100px){
  .tm-content{ margin-left: var(--tm-sidebar-w); }
}

/* Topbar (mobile only) */
.tm-topbar{
  position: sticky;
  top: 0;
  z-index: 70;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tm-line);
}
@media (min-width: 1100px){
  .tm-topbar{ display:none; }
}

/* Square icon button */
.tm-iconbtn{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border: 1px solid var(--tm-line);
  background:#fff;
  cursor:pointer;
  padding:0;
  line-height: 1;
}

/* Burger */
.tm-burger{
  width: 18px;
  height: 12px;
  position: relative;
  border-top: 2px solid var(--tm-ink);
  box-sizing: border-box;
}
.tm-burger::before,
.tm-burger::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--tm-ink);
}
.tm-burger::before{ top:3px; }
.tm-burger::after{ bottom:0; }

/* Close */
.tm-iconbtn--close{
  background: linear-gradient(180deg, var(--tm-navy), var(--tm-navy2));
  border-color: rgba(14,43,84,.22);
}
.tm-x{
  display:block;
  font-size: 26px;
  color: #fff;
  line-height: 1;
}

/* Brand: centered logo only */
.tm-brand{ display:flex; align-items:center; }
.tm-brand--center{
  flex: 1 1 auto;
  justify-content: center;
}

/* Logo sizing (DON'T force huge px on img) */
.tm-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}
.tm-logo img{
  display:block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Topbar logo (mobile) */
.tm-logo--top{
  width: 140px;   /* mărime logo sus pe telefon */
  height: 44px;
}

/* Sidebar logo */
.tm-logo--side{
  width: 200px;   /* mărime logo în sidebar */
  height: 200px;
}

/* Center head content */
.tm-side-head--center{
  align-items: center;
}

.tm-brand-title{
  font-weight: 700;
  font-size: 18px;
  color: var(--tm-ink);
  letter-spacing: .01em;
}
.tm-brand-sub{
  margin-top: 3px;
  font-size: 12px;
  color: var(--tm-muted);
  line-height: 1.3;
}

/* Sidebar */
.tm-sidebar{
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: var(--tm-sidebar-w);
  z-index: 90;
  background:#fff;
  border-right: 1px solid var(--tm-line);
  box-shadow: 10px 0 30px rgba(14,43,84,.06);
  padding: 28px 22px 18px;
  display:flex;
  flex-direction: column;
}

/* Desktop: always visible */
@media (min-width: 1100px){
  .tm-sidebar{ transform:none; }
  .tm-iconbtn--close{ display:none; }
}

/* Mobile drawer default closed */
@media (max-width: 1099px){
  .tm-sidebar{
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  /* When checkbox checked => open */
  .tm-toggle:checked ~ .tm-sidebar{
    transform: translateX(0);
  }
}

.tm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(14,43,84,.40);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.tm-toggle:checked ~ .tm-overlay{
  opacity: 1;
  pointer-events: auto;
}

.tm-side-head{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tm-line);
}


/* Nav centered vertically, footer stays bottom */
.tm-nav{
  margin-top: auto;
  margin-bottom: auto;
  display:flex;
  flex-direction: column;
  gap: 25px;
}

/* Links */
.tm-link{
  text-decoration:none;
  color: var(--tm-navy2);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  font-size: 15px;
  transition: opacity .12s ease, transform .12s ease;
}
.tm-link:hover{
  color: var(--tm-navy2);
  opacity: 1;
  transform: translateX(3px);
}
.tm-link.is-active{
  font-weight: 700;
  position: relative;
}
.tm-link.is-active::after{
  content:"";
  display:block;
  height: 2px;
  width: 46px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--tm-navy), var(--tm-navy2));
}

/* Divider + footer */
.tm-divider{
  height: 1px;
  background: var(--tm-line);
  margin: 14px 0 12px;
}
.tm-side-foot{
  margin-top: auto;
  display:grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--tm-line);
}
.tm-meta-k{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(14,43,84,.65);
}
.tm-meta-v{
  margin-top: 6px;
  display:block;
  color: var(--tm-ink);
  text-decoration:none;
  font-weight: 600;
}
.tm-meta-v:hover{ text-decoration: underline; }

/* Bottom band */
.tm-sidebar::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 8px;
  background: linear-gradient(90deg, var(--tm-navy), var(--tm-navy2));
}
