/* ============================================
   CORPERHQ NAVIGATION & FOOTER
   ============================================ */

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; color: white; fill: white; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--ink); letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--green); }

/* Links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-dropdown { display: flex; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color var(--t-base); position: relative; padding: 4px 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--green); border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 6px;
  min-width: 240px; box-shadow: 0 12px 40px -12px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transition: all var(--t-base);
  display: flex; flex-direction: column; gap: 0;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}
.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--border);
  z-index: -1;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-mid);
  transition: all var(--t-fast);
}
.nav-dropdown-item:hover { background: var(--green-xlight); color: var(--green); }
.nav-dropdown-item svg { color: var(--ink-faint); flex-shrink: 0; }
.nav-dropdown-item:hover svg { color: var(--green); }

/* User state badge in nav */
.nav-user-state {
  display: flex; align-items: center;
  padding: 6px 10px;
  background: var(--green-xlight);
  border: 1px solid var(--green-light);
  border-radius: var(--r-md);
}
.nav-user-state-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* CTA group */
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: all var(--t-base);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 199; padding: 24px 5%;
  transform: translateX(100%); transition: transform var(--t-slow);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.nav-drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: var(--r-lg); font-size: 16px; font-weight: 500;
  color: var(--ink-mid); transition: all var(--t-fast);
}
.nav-drawer-link:hover { background: var(--green-xlight); color: var(--green); }
.nav-drawer-cta { display: flex; flex-direction: column; gap: 10px; }
.nav-drawer-cta .btn { justify-content: center; }

/* Notification indicator */
.nav-notif {
  position: relative; width: 36px; height: 36px;
  border-radius: var(--r-md); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all var(--t-base); cursor: pointer;
}
.nav-notif:hover { background: var(--green-light); color: var(--green); }
.nav-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; background: #E83535;
  border-radius: 50%; border: 2px solid white;
}

/* User avatar nav */
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: white;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-base);
}
.nav-avatar:hover { box-shadow: 0 0 0 3px var(--green-light); }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark-bg);
  padding: 72px 5% 40px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.7); line-height: 1.7;
  margin-top: 14px; max-width: 280px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-link {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--dark-surface); border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-muted); transition: all var(--t-base);
}
.footer-social-link:hover { color: white; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); }
.footer-col-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: white; margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px; font-weight: 300; color: var(--dark-muted);
  transition: color var(--t-base); display: inline-flex; align-items: center; gap: 6px;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--dark-hint); font-weight: 300; }
.footer-flags { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dark-hint); }
.footer-flags svg { color: var(--dark-green); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- NOTIFICATION DROPDOWN ---- */
.notif-menu { min-width:340px; padding:0; max-height:420px; overflow-y:auto; }
.notif-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--ink); }
.notif-mark-read { font-size:12px; font-weight:600; color:var(--green); }
.notif-item { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); transition:background var(--t-fast); }
.notif-item:last-of-type { border-bottom:none; }
.notif-item:hover { background:var(--green-xlight); }
.notif-text { flex:1; font-size:13px; color:var(--ink-mid); line-height:1.5; }
.notif-time { font-size:11px; color:var(--ink-faint); flex-shrink:0; white-space:nowrap; }
.notif-footer { padding:10px 16px; text-align:center; }
.notif-footer a { font-size:13px; font-weight:600; color:var(--green); }
.nav-dropdown-menu.notif-menu { left:auto; right:0; transform:translateY(8px); }
.nav-dropdown-menu.notif-menu::before { left: auto; right: 20px; }
.nav-dropdown-menu.notif-menu::after { left: auto; right: 18px; }
.nav-dropdown-menu.notif-menu.open { opacity:1; pointer-events:auto; transform:translateY(0); }

/* ---- MOBILE RESPONSIVE EXTRAS ---- */
@media(max-width:480px){
  .notif-menu{ position:fixed; top:var(--nav-h); left:0; right:0; min-width:0; border-radius:0; max-height:60vh; }
}
