/* ── Shared site navigation ── */
/* Loaded by admin.html and client.html; home.html and reports.html get these via site.css */

.nav-cta {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: #e68a00; }
.nav-mobile-bar { display: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid #ff9900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1rem 2rem;
}
.nav-inner {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 28px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-link {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #333; }
.nav-link--active { color: #ff9900 !important; }
.nav-link--cta {
  color: #ff9900;
  border: 1.5px solid #ff9900;
  padding: 0.38rem 0.9rem;
  border-radius: 6px;
}
.nav-link--cta:hover { background: #ff9900; color: #fff; }
.nav-link--cta.nav-link--active { background: #ff9900; color: #fff; }
.nav-signout {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-signout:hover { color: #333; }

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 140px;
  z-index: 200;
  padding: 0.35rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-dropdown-item:hover { color: #ff9900; }

/* ── Footer nav (injected by nav.js into every page footer) ── */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}
.footer-nav-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-nav-link:hover       { color: #ff9900; }
.footer-nav-link--active     { color: #ff9900; }
.footer-nav-signout {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.15s;
}
.footer-nav-signout:hover { color: #ff9900; }

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav { padding: 0.75rem 1rem; position: relative; }
  .nav-inner { width: 100%; }
  .nav-hamburger { display: flex; }
  .nav-cta--desktop { display: none; }
  .nav-mobile-bar {
    display: block;
    padding: 0 1rem 0.75rem;
  }
  .nav-cta-bar {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    background: #ff9900;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
  }
  .nav-cta-bar:hover { background: #e68a00; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  /* Dropdown becomes inline in mobile drawer */
  .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0 0.75rem;
    min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open:hover .nav-dropdown-menu { display: block; }
}
