/* :root {
  --nav-h: 56px;
} */

.hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #0f172a;
  min-height: auto;
}

.hero-media {
  position: relative;
  display: block;
  width: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  object-fit: contain;
}

/* Much lighter overlay, just enough to support the nav */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 18, 0.22) 0%,
      rgba(8, 10, 18, 0.08) 28%,
      rgba(8, 10, 18, 0.04) 100%
    );
}

header {
  background: #020f34;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

header nav {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;

  background: linear-gradient(
    180deg,
    rgba(5, 14, 45, 0.96) 0%,
    rgba(3, 11, 36, 0.96) 100%
  );
  border: 1px solid rgba(184, 169, 120, 0.16);
  border-bottom: 2px solid rgba(169, 133, 70, 0.45);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

header nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1;
}

header nav a:hover,
header nav a:focus {
  color: #f3e7c8;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

header nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav .site-icon,
header nav .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 540px) {
  :root {
    --nav-h: 84px;
  }

  .hero {
    min-height: 180px;
  }

  header nav {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
}

.nav-home-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0.85;
}

/* Keep nav-right clean and evenly spaced */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none; /* Firefox */

  padding-left: 1.2rem;
  margin-left: 0.8rem;

  border-left: 1px solid rgba(184, 169, 120, 0.5);
}

@media (max-width: 700px) {
  .nav-right {
    mask-image: linear-gradient(
      to right,
      transparent,
      black 16px,
      black calc(100% - 16px),
      transparent
    );
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
}

.nav-right::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-right a {
  flex: 0 0 auto;
}

/* Hover = subtle, not shouty */
.nav-right a:hover,
.nav-home:hover {
  color: #f3e7c8;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav-right a,
.nav-home {
  padding-bottom: 0.2rem;
}

header nav a:hover,
header nav a:focus {
  color: #f3e7c8;
  text-decoration: none;
}
/* Standard nav items */
.nav-right a.active {
  color: #f3e7c8 !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid rgba(243, 231, 200, 0.85);
}

/* Home: apply underline ONLY to the text */
.nav-home.active {
  color: #f3e7c8 !important;
  text-decoration: none !important;
  border-bottom: none;
}

.nav-home.active span {
  border-bottom: 1.5px solid rgba(243, 231, 200, 0.85);
  padding-bottom: 0.2rem;
}

.nav-sep {
  opacity: 0.4;
}