/* Léyo nav bar + left drawer (shared via includes/nav.php) */
:root {
  --leyo-nav-height: 64px;
  --leyo-drawer-width: min(85vw, 320px);
  --leyo-drawer-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --leyo-drawer-width: 280px;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(109, 111, 104, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  padding: 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  min-height: var(--leyo-nav-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.hamburger {
  display: flex;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  border-radius: 2px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--pale, #f3c484);
  transition: transform 0.25s var(--leyo-drawer-ease), opacity 0.2s;
}

.nav.is-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Backdrop: dim only the area beside the drawer */
.leyo-nav-backdrop {
  position: fixed;
  top: var(--leyo-nav-height);
  left: var(--leyo-drawer-width);
  right: 0;
  bottom: 0;
  z-index: 898;
  background: rgba(46, 46, 38, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--leyo-drawer-ease), visibility 0.25s;
}

.leyo-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer panel */
.leyo-nav-drawer {
  position: fixed;
  top: var(--leyo-nav-height);
  left: 0;
  width: var(--leyo-drawer-width);
  height: calc(100vh - var(--leyo-nav-height));
  height: calc(100dvh - var(--leyo-nav-height));
  z-index: 900;
  background: var(--olive, #85877f);
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s var(--leyo-drawer-ease);
  overflow: hidden;
  visibility: hidden;
}

.leyo-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.nav-links > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-links > li:last-child {
  border-bottom: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid, #d4c8a8);
  text-decoration: none;
  padding: 11px 20px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pale, #f3c484);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.nav-links a.nav-active {
  color: var(--pale, #f3c484);
  border-left: 3px solid var(--orange, #ed9433);
  padding-left: 17px;
}

.nav-drawer-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer-footer .nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  background: var(--orange, #ed9433);
  color: var(--dark, #2e2e26);
  border: none;
  transition: background 0.2s;
}

.nav-drawer-footer .nav-cta:hover,
.nav-drawer-footer .nav-cta:focus-visible {
  background: var(--yellow, #dfbe00);
  color: var(--dark, #2e2e26);
}

.nav-drawer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-drawer-meta .nav-mobile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pale, #f3c484);
  text-decoration: none;
  border: 1px solid rgba(243, 196, 132, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.nav-drawer-meta .nav-mobile:hover,
.nav-drawer-meta .nav-mobile:focus-visible {
  border-color: var(--pale, #f3c484);
}

.nav-drawer-meta .nav-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--mid, #d4c8a8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s, border-color 0.2s;
}

.nav-drawer-meta .nav-gear:hover,
.nav-drawer-meta .nav-gear:focus-visible {
  color: var(--pale, #f3c484);
  border-color: rgba(243, 196, 132, 0.4);
}

body.leyo-nav-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 12px 20px;
  }

  .nav-links a {
    padding: 10px 18px;
    font-size: 0.7rem;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 14px 32px;
  }
}
