/* ===========================================================================
   GAPTECH side navigation
   Self-contained. Every class starts with gt- so nothing here collides with
   the rest of style.css, and nothing in style.css can interfere with it.
   =========================================================================== */

:root {
  --gt-navy:  #0D4F72;
  --gt-blue:  #1890D0;
  --gt-green: #8CC63F;
  --gt-red:   #C3121A;
  --gt-ink:   #27303D;
  --gt-muted: #7A8696;
  --gt-line:  #E4EBF2;
  --gt-width: 254px;
}

/* ---- the menu button, fixed at the top left of every page ---- */
.gt-menu-btn {
  position: fixed; top: 14px; left: 14px; z-index: 1010;
  width: 42px; height: 42px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--gt-navy);
  border: 1px solid var(--gt-line); border-radius: 11px;
  box-shadow: 0 2px 10px rgba(13,79,114,.10);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.gt-menu-btn:hover { background: #F4F9FD; border-color: #CBDCEA; }
.gt-menu-btn:focus-visible { outline: 2px solid var(--gt-green); outline-offset: 2px; }
.gt-menu-btn svg { width: 20px; height: 20px; display: block; }

/* the three bars become a cross while the panel is open */
.gt-menu-btn .gt-bar { transition: transform .22s ease, opacity .15s ease; transform-origin: center; }
body.gt-open .gt-menu-btn .gt-bar-1 { transform: translateY(6px) rotate(45deg); }
body.gt-open .gt-menu-btn .gt-bar-2 { opacity: 0; }
body.gt-open .gt-menu-btn .gt-bar-3 { transform: translateY(-6px) rotate(-45deg); }

/* ---- the panel ---- */
.gt-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1005;
  width: var(--gt-width);
  display: flex; flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--gt-line);
  box-shadow: 4px 0 24px rgba(13,79,114,.10);
  transform: translateX(-100%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
}
body.gt-open .gt-sidebar { transform: translateX(0); }

/* ---- dimmed page behind it ---- */
.gt-scrim {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,79,114,.38);
  opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
body.gt-open .gt-scrim { opacity: 1; visibility: visible; }
body.gt-open { overflow: hidden; }

/* ---- brand ---- */
.gt-brand {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--gt-line);
  background: linear-gradient(180deg, #FAFCFE 0%, #fff 100%);
}
.gt-brand img { display: block; width: 100%; max-width: 186px; height: auto; }

/* ---- section label ---- */
.gt-label {
  margin: 18px 20px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .9px;
  text-transform: uppercase; color: var(--gt-muted);
}

/* ---- the links ---- */
.gt-nav { flex: 1 1 auto; overflow-y: auto; padding: 0 12px 12px; }

.gt-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 9px;
  color: var(--gt-ink); text-decoration: none;
  font-size: 14px; line-height: 1.2;
  transition: background .14s ease, color .14s ease;
}
.gt-link svg {
  width: 19px; height: 19px; flex: 0 0 19px;
  color: var(--gt-muted); transition: color .14s ease;
}
.gt-link:hover { background: #F2F7FB; color: var(--gt-navy); }
.gt-link:hover svg { color: var(--gt-blue); }
.gt-link:focus-visible { outline: 2px solid var(--gt-green); outline-offset: -2px; }

.gt-link.is-active {
  background: #EAF4FB; color: var(--gt-navy); font-weight: 600;
}
.gt-link.is-active svg { color: var(--gt-navy); }
.gt-link.is-active::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 3px; height: 20px; margin-top: -10px;
  background: var(--gt-green); border-radius: 0 3px 3px 0;
}

/* ---- footer ---- */
.gt-foot { border-top: 1px solid var(--gt-line); padding: 10px 12px 14px; }
.gt-signout {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--gt-red); text-decoration: none; font-size: 14px;
  transition: background .14s ease;
}
.gt-signout svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--gt-red); }
.gt-signout:hover { background: #FDF1F1; }

.gt-whoami { padding: 2px 14px 10px; font-size: 12px; color: var(--gt-muted); }
.gt-whoami strong { display: block; color: var(--gt-ink); font-size: 13px; font-weight: 600; }

/* ---- narrow screens ---- */
@media (max-width: 420px) {
  .gt-sidebar { width: 86vw; }
}

/* ---- people who prefer less movement ---- */
@media (prefers-reduced-motion: reduce) {
  .gt-sidebar, .gt-scrim, .gt-link, .gt-menu-btn, .gt-menu-btn .gt-bar { transition: none; }
}

/* ---- never print the chrome ---- */
@media print {
  .gt-sidebar, .gt-scrim, .gt-menu-btn { display: none !important; }
}

