/* ── Shared nav + footer styles ── injected on every page via shared.css ── */

/* NAV */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%; max-width: 100vw;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: border-color 0.25s, background 0.25s;
}
.nav-mobile-cta-li { display: none; }
.nav-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-actions a { text-decoration: none; }
nav.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.99);
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-logo-mark {
  display: inline-flex; align-items: center;
  width: 28px; height: 28px;
}
.nav-logo-mark svg { width: 100%; height: 100%; display: block; }
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  height: 38px;
  width: 38px;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  color: var(--ink);
  box-sizing: border-box;
  align-items: center; justify-content: center;
  transition: opacity 0.18s;
}
.nav-hamburger:hover { opacity: 0.6; }
.nav-hamburger:focus { outline: none; }
.nav-hamburger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.nav-hamburger svg { width: 20px; height: 20px; display: block; }
.nav-hamburger .hb-icon-close { display: none; }
nav.nav-mobile-open .nav-hamburger .hb-icon-open { display: none; }
nav.nav-mobile-open .nav-hamburger .hb-icon-close { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; letter-spacing: -0.005em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-link-active {
  color: var(--ink);
  position: relative;
}
.nav-links a.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}
/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-caret {
  width: 9px; height: 9px;
  transition: transform 0.2s;
  opacity: 0.7;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px -12px rgba(26,26,26,0.18), 0 4px 12px -4px rgba(26,26,26,0.08);
  list-style: none;
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s;
  letter-spacing: -0.005em;
}
.nav-dropdown-menu a:hover { background: var(--paper); }
.nav-dropdown-menu a.nav-link-active { background: var(--paper); }
.nav-dropdown-menu a.nav-link-active::after { display: none; }
.nav-dropdown-menu a small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.nav-dropdown-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.nav-dropdown-dot.standards { background: var(--design); }
.nav-dropdown-dot.delivery  { background: var(--build); }
.nav-dropdown-dot.operations { background: var(--operate); }
.nav-dropdown-dot.portfolio { background: var(--yellow-deep); }

.nav-login {
  font-size: 14px; font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: -0.005em;
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  box-sizing: border-box;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-login:hover {
  background: var(--ink);
  color: var(--paper) !important;
  transform: translateY(-1px);
}

.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--ink) !important;
  height: 38px; padding: 0 18px;
  background: var(--yellow); border-radius: 6px;
  box-sizing: border-box;
  display: inline-flex; align-items: center;
  transition: transform 0.15s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(250, 201, 20, 0.4);
}

/* FOOTER */
footer {
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  background: var(--paper);
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.footer-logo-mark {
  display: inline-flex; align-items: center;
  width: 22px; height: 22px;
}
.footer-logo-mark svg { width: 100%; height: 100%; display: block; }
.footer-copy { font-size: 13px; color: var(--ink-faint); }
.footer-about { display: none; }

/* RESPONSIVE — nav + footer */
@media (max-width: 960px) {
  nav { padding: 14px 20px; }
  .nav-hamburger { display: inline-flex; align-items: center; padding: 8px; }
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav-actions .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  }
  nav.nav-mobile-open .nav-links {
    max-height: 700px;
    padding: 8px 20px 16px;
    border-bottom-color: var(--border-soft);
  }
  .nav-links > li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-mobile-cta-li {
    display: list-item;
    list-style: none;
    padding-top: 18px !important;
    border-bottom: none !important;
  }
  .nav-mobile-cta-li .nav-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
  }
  .nav-dropdown-caret { display: none; }
  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 0 8px;
    min-width: 0;
    margin-top: 0;
  }
  .nav-dropdown-menu > li { padding: 0; border: none; }
  .nav-dropdown-menu a { padding: 8px 0; font-size: 14px; }
  .nav-dropdown-menu::before { display: none; }
  footer { flex-direction: column; gap: 16px; padding: 32px 24px; text-align: center; }
}
