:root {
  --header-offset: 96px;
  --viewport-height: 100vh;
}

@media (max-width: 767px) {
  :root {
    --header-offset: 88px;
  }
}

#mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle,
#mobile-menu-toggle * {
  pointer-events: auto;
}

#theme-switch-mobile {
  min-height: 2.25rem;
}

#theme-switch-mobile span {
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

#mobile-menu .nav-item {
  font-size: clamp(0.875rem, 3.8vw, 0.95rem);
}

section {
  scroll-margin-top: var(--header-offset);
}

.hero-img-quality {
  image-rendering: auto;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.goldenglow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-modern {
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: #d4af37 !important;
  opacity: 1;
}

.nav-link-modern::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #d4af37 0%, transparent 100%);
  box-shadow: 0 0 10px #d4af37;
  transition: width 0.3s ease;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
  width: 80%;
}

.nav-link-glow:hover,
.nav-link-glow.active {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  color: #d4af37 !important;
}

.nav-link-glow:focus-visible {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  color: #d4af37 !important;
  outline: none;
}

#scroll-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#mobile-menu {
  max-height: calc(var(--viewport-height, 100vh) - var(--header-offset));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.footer-inner {
  text-align: initial;
}

.footer-copy {
  font-size: 11px;
  line-height: 1.6;
}

.footer-nav {
  font-size: 11px;
}

footer {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  background-clip: padding-box;
}

.footer-links {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .footer-inner {
    text-align: center;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }
}
