.topnav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  box-shadow: 0 10px 24px rgba(20, 24, 10, 0.25);
  transition: background-color 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.topnav--solid {
  background: #283618;
}

.topnav--scrolled {
  background: #283618;
  box-shadow: 0 12px 28px rgba(18, 20, 10, 0.35);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
}

.topnav__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f6f0e7;
}

.topnav__logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.topnav__logo img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 999px;
}

.topnav__title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topnav__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.topnav__subtitle {
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 500;
}

.topnav__divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.28);
}

.topnav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav__menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f0e7;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.topnav__link {
  position: relative;
  text-decoration: none;
  color: #f6f0e7;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 160ms ease;
}

.topnav__link:hover {
  color: #ffd6a1;
}

.topnav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #d87b2d;
}

.topnav__right {
  display: flex;
  align-items: center;
}

@media (max-width: 1100px) {
  .topnav__menu {
    gap: 12px;
  }

  .topnav__link {
    font-size: 0.88rem;
  }
}

@media (max-width: 980px) {
  .topnav__subtitle {
    display: none;
  }
}

@media (max-width: 880px) {
  .topnav__inner {
    height: auto;
    padding: 14px 20px;
    align-items: flex-start;
  }

  .topnav__left {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .topnav__divider {
    display: none;
  }

  .topnav__menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .topnav__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .topnav__menu.is-open {
    display: flex;
  }

  .topnav__right {
    width: 100%;
    justify-content: flex-start;
  }
}

