/* Shared navigation + footer styles for kaliber.asia static site.
   Extracted from index.html so subpages (resources/, tools, etc.)
   can reuse the same chrome without duplicating CSS. */

:root {
  --gold: #FFC85E;
  --pink: #FF84B0;
  --blue: #73DDFF;
  --text: #1c1c1a;
  --muted: #6b6760;
  --surface: #faf8f3;
  --border: #ebe7dc;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.93);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img { height: 28px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--text);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.2);
}

.nav-svc-dd { position: relative; }
.nav-svc-trigger {
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-svc-dd:hover .nav-svc-trigger { color: var(--text); }
.nav-svc-menu {
  position: absolute;
  top: 100%;
  left: -0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.10);
  display: none;
  z-index: 60;
}
.nav-svc-dd:hover .nav-svc-menu { display: block; }
.nav-svc-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.nav-svc-menu a:hover { background: var(--surface); }

.hamburger {
  display: none;
  width: 28px; height: 28px;
  background: none; border: none;
  cursor: pointer; padding: 0;
  flex-direction: column; justify-content: space-between;
  align-self: center;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 49;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.1);
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-sep { height: 1px; background: var(--border); margin: 0.5rem 0; }
.mobile-menu-cta {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  text-align: center;
  border-radius: 10px;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem !important;
  border-bottom: none !important;
}

@media (max-width: 880px) {
  .nav { padding: 0.85rem 1rem; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { height: 24px; }
}
