/* =========================================================================
   Customer Traac - SHARED nav / mobile hamburger (single source of truth)
   Loaded globally in layout.antlers.html AFTER per-page CSS. Desktop nav
   styling stays in per-page CSS; this file adds the hamburger toggle and the
   full-width slide-down mobile menu (<=980px), plus a global x-overflow guard.
   ========================================================================= */
html, body { overflow-x: clip; }

/* ----- desktop nav (consolidated from per-page CSS) ----- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }


/* logo + book-a-demo button sizing (moved off inline styles in the partial) */
.nav-logo-img { height: 88px; display: block; width: auto; }
.nav-links a.btn { padding: 9px 18px; font-size: 13px; }

/* hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 11px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white, #ffffff);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
nav.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  nav { padding-left: 20px; padding-right: 20px; }
  .nav-logo-img { height: 60px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: var(--navy, #1c3a5f);
    padding: 6px 0 14px;
    box-shadow: 0 14px 26px rgba(0,0,0,0.28);
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height .32s ease, opacity .25s ease, transform .25s ease, visibility .25s;
  }
  nav.menu-open .nav-links {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 16px 28px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li a.btn {
    margin: 14px 24px 4px;
    padding: 14px 18px;
    font-size: 15px;
    text-align: center;
    border-bottom: 0;
  }
}
body.nav-locked { overflow: hidden; }


/* =========================================================================
   .btn-green - shared color modifier for all Book a Demo CTAs (Nate request).
   Color-only: pairs with .btn (and .btn-lg etc) which handle sizing.
   Loaded last so it overrides per-page .btn-accent / .btn-white on same element.
   ========================================================================= */
.btn-green {
  background: var(--accent, #2ec4a8);
  color: var(--white, #ffffff);
  border: 0;
  box-shadow: 0 6px 18px rgba(46,196,168,0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-green:hover {
  background: var(--accent-hover, #22a88e);
  color: var(--white, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(46,196,168,0.42)}
