/* ============================================================
   shared.css — Single source of truth for nav & footer
   Edit this file to update nav/footer across ALL pages.
   ============================================================ */

/* ── Scroll Progress ──────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--blue); z-index: 10000; pointer-events: none;
}

/* ── Custom Cursor ────────────────────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; border-radius: 50%;
}
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  z-index: 9999; will-change: transform;
}
#cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--blue);
  z-index: 9998; will-change: transform;
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo),
              background 0.3s, border-color 0.3s;
}
body.has-cursor        { cursor: none; }
body.has-cursor a,
body.has-cursor button { cursor: none; }
body.cursor-hover #cursor-ring {
  width: 64px; height: 64px; background: rgba(31,63,255,0.1);
}
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.3s, background 0.4s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
#navbar.dark-mode { background: rgba(10,10,10,0.95); }
#navbar.dark-mode .nav-wordmark,
#navbar.dark-mode .nav-tagline { color: var(--white); }
#navbar.dark-mode .hamburger span { background: var(--white); }
#navbar.dark-mode .nav-divider { background: rgba(255,255,255,0.2); }

.nav-left { display: flex; align-items: center; gap: 16px; line-height: 1; }
.nav-wordmark {
  font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem;
  color: var(--dark); letter-spacing: -1px; transition: color 0.4s;
  line-height: 1; display: flex; align-items: center;
}
.nav-divider {
  width: 1px; height: 24px; background: rgba(0,0,0,0.15);
  transition: background 0.4s; flex-shrink: 0;
}
.nav-tagline {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: rgba(0,0,0,0.5); transition: color 0.4s;
  line-height: 1; display: flex; align-items: center; padding-top: 3px;
}
.hamburger {
  width: 32px; height: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s, background 0.4s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ── Mobile Nav ───────────────────────────────────────────── */
#mobile-nav {
  position: fixed; top: 0; right: 0;
  width: 380px; max-width: 90vw; height: 100vh;
  background: var(--dark); z-index: 999;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-in-out);
  padding: 120px 48px 48px;
  display: flex; flex-direction: column; gap: 8px;
}
#mobile-nav.active { transform: translateX(0); }
#mobile-nav a {
  font-family: var(--font-heading); font-weight: 800; font-size: 2rem;
  color: var(--white); opacity: 0; transform: translateX(30px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out-expo), color 0.2s;
  display: block; padding: 12px 0;
}
#mobile-nav.active a { opacity: 1; transform: translateX(0); }
#mobile-nav a:hover { color: var(--blue); }

/* ── Mobile Nav Overlay ───────────────────────────────────── */
#overlay-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
#overlay-bg.active { opacity: 1; pointer-events: all; }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: var(--dark); padding: 80px 72px 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr;
  gap: 64px; padding-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-heading); font-weight: 900; font-size: 2.8rem;
  color: var(--white); letter-spacing: -2px; display: inline-block;
  margin-bottom: 16px;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}
.footer-logo:hover { letter-spacing: 8px; }
.footer-desc {
  font-size: 0.88rem; color: #DDDDDD; line-height: 1.65;
  max-width: 340px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 14px; height: 14px; color: #DDDDDD; }
.footer-social:hover svg { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: #DDDDDD;
  padding: 6px 0; transition: color 0.3s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0; display: flex; justify-content: space-between;
  font-size: 0.8rem; color: #DDDDDD;
}
.footer-bottom a { color: #DDDDDD; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--blue); }
.footer-legal { display: flex; gap: 24px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  footer { padding: 80px 44px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  #navbar { padding: 0 24px; }
  .nav-tagline { font-size: 0.72rem; }
  .nav-left { gap: 10px; }
  footer { padding: 64px 24px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
