.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(105deg, var(--maroon-dark), var(--maroon));
  border-bottom: 3px solid var(--marigold);
  box-shadow: 0 6px 24px rgba(66, 17, 22, 0.2);
  backdrop-filter: blur(10px);
}

.nav-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.nav-brand-name {
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  white-space: nowrap;
}

.nav-brand-name b,
.nav-brand-name small {
  color: #ffe7a3;
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  font-weight: 700;
  line-height: 1;
}

.nav-brand-name small {
  letter-spacing: 0;
}

.nav-links {
  margin-left: auto;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.25vw, 18px);
}

.nav-links a {
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--marigold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { width: 100%; }

.nav-links a:hover {
  color: #fff;
  background: transparent;
}

.nav-links a[aria-current='page'] { color: #f6c967; }

.nav-links a:last-child {
  padding: 9px 16px;
  color: #fff;
  background: var(--action-primary-bg);
  border-radius: 4px;
  box-shadow: var(--action-primary-shadow);
}

.nav-links a:last-child::after { display: none; }

.nav-links a:last-child:hover,
.nav-links a:last-child[aria-current='page'] {
  color: #fff;
  background: var(--action-primary-hover-bg);
  box-shadow: 0 10px 20px rgba(185, 77, 22, 0.34);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: 0;
    padding: 8px 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(105deg, var(--maroon-dark), var(--maroon));
    border-top: 1px solid rgba(246, 201, 103, 0.34);
    box-shadow: 0 14px 40px rgba(66, 17, 22, 0.24);
  }
  .nav-links.open a {
    min-height: 48px;
    margin: 0;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid rgba(246, 201, 103, 0.2);
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open a:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .nav-inner { min-height: 76px; gap: 6px; padding: 6px 14px; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .brand img { width: 54px; height: 54px; }
  .nav-brand-name {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    overflow: visible;
  }
  .nav-brand-name b { font-size: clamp(0.9rem, 4vw, 1rem); }
  .nav-brand-name small { font-size: clamp(0.62rem, 2.8vw, 0.72rem); }
  .nav-links.open { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 360px) {
  .brand img { width: 48px; height: 48px; }
  .nav-brand-name b { font-size: 0.82rem; }
  .nav-brand-name small { font-size: 0.56rem; }
}
