/* ══════════════════════════════════════════════════════════
   STERLING CREST UNION — nav.css
   ══════════════════════════════════════════════════════════ */

.scu-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
}

.nav-inner {
  display: flex; align-items: center;
  max-width: 1300px; margin: 0 auto; padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.28s ease;
  gap: 0;
}

.scu-nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e5e0d8;
  box-shadow: 0 2px 20px rgba(26,46,74,0.08);
  padding: 0.7rem 2rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  flex-shrink: 0; margin-right: 2.5rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 38px; width: auto; display: block;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-primary {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #1a2e4a;
  letter-spacing: 0.01em; white-space: nowrap;
}
.logo-tagline {
  font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #1a8f82;
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex; align-items: center;
  gap: 0; list-style: none; margin: 0; padding: 0;
  flex: 1;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem; font-weight: 500;
  color: #6b7280;
  border-radius: 6px;
  transition: all 0.22s ease;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.nav-icon { font-size: 0.72rem; opacity: 0.7; }

.nav-link:hover { color: #1a2e4a; background: rgba(26,46,74,0.05); }
.nav-link.active { color: #1a8f82; font-weight: 600; }

.link-underline {
  position: absolute; bottom: 3px; left: 1rem; right: 1rem;
  height: 2px; background: #1a8f82;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
  border-radius: 1px;
}
.nav-link:hover .link-underline,
.nav-link.active .link-underline { transform: scaleX(1); }

/* Nav Actions — push to right and align vertically */
.nav-actions {
  display: flex; align-items: center; gap: 0.65rem;
  flex-shrink: 0; margin-left: auto;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.52rem 1.1rem;
  border: 1.5px solid #e5e0d8;
  border-radius: 7px; font-size: 0.84rem; font-weight: 500;
  color: #374151; white-space: nowrap;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.22s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-ghost:hover {
  border-color: #1a8f82; color: #1a8f82;
  background: rgba(26,143,130,0.04);
}

.btn-gold {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.52rem 1.2rem;
  background: #1a2e4a;
  border-radius: 7px; font-size: 0.84rem; font-weight: 600;
  color: #fff; white-space: nowrap;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.22s ease;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(26,46,74,0.2);
}
.btn-gold:hover {
  background: #1a8f82;
  box-shadow: 0 4px 16px rgba(26,143,130,0.3);
  transform: translateY(-1px);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: 0.75rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #1a2e4a; border-radius: 2px;
  transition: all 0.28s ease; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  display: none; overflow: hidden;
  max-height: 0; transition: max-height 0.4s ease;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #e5e0d8;
  backdrop-filter: blur(20px);
}
.mobile-drawer.open { max-height: 500px; }
.mobile-links { padding: 1rem 1.5rem 1.5rem; list-style: none; margin: 0; padding-left: 1.5rem; padding-right: 1.5rem; padding-bottom: 1.5rem; }
.mobile-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; font-size: 0.95rem; font-weight: 500;
  color: #6b7280; border-bottom: 1px solid #e5e0d8;
  transition: all 0.22s ease; text-decoration: none;
  font-family: 'IBM Plex Sans', sans-serif;
}
.mobile-link:hover, .mobile-link.active { color: #1a8f82; }
.mobile-divider { border-bottom: 1.5px solid #e5e0d8; margin: 0.5rem 0; }
.mobile-cta { color: #1a2e4a; font-weight: 700; border-bottom: none !important; }
.mobile-cta:hover { color: #1a8f82; }

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-drawer { display: block; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0.85rem 1.25rem; }
  .logo-primary { font-size: 0.85rem; }
}
