nav {
  position: fixed;
  top: 12px;
  right: auto;
  left: 50%;
  z-index: 100;
  display: flex;
  width: min(calc(100% - 32px), 1380px);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(8, 12, 16, 0.9), rgba(17, 22, 26, 0.86)),
    url("textures/silver-quartzite-slabs.jpg") center / cover;
  padding: 10px 12px 10px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 8px 0 rgba(28, 34, 38, 0.5),
    0 24px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(90%);
}

.secondary-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: #f3eee5;
  color: #05070d;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.secondary-skip-link:focus {
  transform: translateY(0);
}

.nav-logo {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #f3eee5;
  text-decoration: none;
}

.nav-logo-symbol {
  display: block;
  width: 40px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
}

.nav-logo-symbol img {
  display: block;
  width: 144px;
  max-width: none;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.nav-brand-name {
  color: #f3eee5;
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-links a {
  color: #f3eee5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.nav-cta {
  border: 1px solid rgba(243, 238, 229, 0.28);
  border-radius: 18px 25px 17px 23px / 16px 20px 18px 22px;
  background:
    linear-gradient(145deg, rgba(212, 44, 73, 0.9), rgba(118, 18, 38, 0.94)),
    url("textures/silver-slate-slabs.jpg") center / cover;
  color: white;
  padding: 0.72rem 0.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 5px 0 rgba(40, 46, 49, 0.68),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.nav-links a:focus-visible,
.nav-logo:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #2c68ff;
  outline-offset: 4px;
}

.dk-banner {
  margin-top: 104px;
}

.secondary-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3eee5;
  text-decoration: none;
}

.secondary-footer-brand img {
  width: 34px;
  height: 40px;
  object-fit: cover;
  object-position: left center;
}

.secondary-footer-brand span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  nav {
    top: 10px;
    min-height: 64px;
    padding: 8px 9px 8px 14px;
  }

  .nav-logo-symbol {
    width: 34px;
    height: 42px;
  }

  .nav-logo-symbol img {
    width: 126px;
    height: 42px;
  }

  .nav-brand-name {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(5, 7, 13, 0.98);
    padding: 10px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
    font-size: 0.78rem;
  }

  .nav-links a.nav-cta {
    margin-top: 8px;
    border-bottom: 0;
    text-align: center;
  }

  .dk-banner {
    margin-top: 90px;
  }
}

@media (max-width: 420px) {
  .nav-brand-name {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    transition: none;
  }
}
