/* IdentiTek Hackathon 2026 — mobile sidebar (same layout as identitek.al) */

.msb { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.msb.is-open { visibility: visible; pointer-events: auto; }

.msb__overlay { position: absolute; inset: 0; background: rgba(5, 12, 35, .55); opacity: 0; transition: opacity .25s ease; }
.msb.is-open .msb__overlay { opacity: 1; }

.msb__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(330px, 86vw);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 26px calc(26px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, #102a5c 0%, #0d2350 45%, #133b7a 100%);
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
}
.msb.is-open .msb__panel { transform: translateX(0); }

.msb__close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: #288ce6; display: grid; place-items: center;
}
.msb__close svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }

.msb__logo { display: flex; justify-content: center; margin: 4px 0 40px; }
.msb__logo img { height: 78px; width: auto; display: block; }

.msb__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.msb__menu > li > a,
.msb__toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 10px 0; background: none; border: 0; cursor: pointer;
  color: #fff; font: inherit; font-size: 15px; text-align: left; text-decoration: none;
}
.msb__menu > li > a:hover, .msb__toggle:hover { color: #9cc7ff; }
.msb__chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.msb__has-sub.is-open .msb__chev { transform: rotate(180deg); }

.msb__sub { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; display: none; border-left: 1px solid rgba(255, 255, 255, .18); }
.msb__has-sub.is-open .msb__sub { display: block; }
.msb__sub a { display: block; padding: 8px 0 8px 4px; color: rgba(255, 255, 255, .82); font-size: 14px; text-decoration: none; }
.msb__sub a:hover { color: #fff; }

.msb__buttons { display: grid; gap: 18px; margin: 22px 0 26px; }
.msb__btn {
  display: block; text-align: center; padding: 16px 12px; border-radius: 4px;
  background: #3b8ef0; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background .15s;
}
.msb__btn:hover { background: #288ce6; }

.msb__lang { color: #fff; text-decoration: none; font-size: 15px; padding: 6px 0; align-self: flex-start; }

.msb__info {
  list-style: none; margin: auto 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid; gap: 14px; font-size: 14px;
}
.msb__info li { display: flex; align-items: center; gap: 12px; }
.msb__info svg { width: 18px; height: 18px; flex: none; }
.msb__info svg .fill { fill: #3b8ef0; }
.msb__info a, .msb__info span { color: #fff; text-decoration: none; word-break: break-word; }

.msb a:focus-visible, .msb button:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 3px; }

/* stop the page behind from scrolling while the sidebar is open */
body.msb-lock { overflow: hidden; }

/* Phone / tablet top bar: logo, Apliko Tani and the ☰ button only.
   Kept here so it works whatever is in landing.css. */
.menu .burger { display: none; background: none; border: 0; padding: 8px; margin-left: 4px; cursor: pointer; flex: none; }
.menu .burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 1180px) {
  .menu { flex-wrap: nowrap !important; gap: 12px !important; padding: 10px 12px 10px 16px !important; }
  .menu .menu__list,
  .menu.is-open .menu__list,
  .menu .sub { display: none !important; }
  .menu .burger { display: block !important; }
  .menu .cta { margin-left: auto !important; }
}
@media (max-width: 480px) {
  .menu .cta { padding: 10px 14px !important; font-size: 13px !important; }
  .menu .logo img { height: 38px !important; }
}
/* the sidebar is for small screens only */
@media (min-width: 1181px) {
  .msb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .msb__panel, .msb__overlay, .msb__chev { transition: none; }
}
