/* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: var(--nav-h);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    transform: translateZ(0);
  }

  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: var(--accent);
  }

  .nav-logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .nav-sections {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-sections::-webkit-scrollbar { display: none; }
  .nav-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
  }

  .nav-btn::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 16px; right: 16px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }

  .nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
  .nav-btn.active { color: var(--accent); }
  .nav-btn.active::after { transform: scaleX(1); }

  /* ── MOBILE / HAMBURGER NAV ── */
  .nav-toggle {
    display: none;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
  }

  .nav-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
  }

  .nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 150;
  }
  .nav-mobile-inner {
    position: absolute;
    top: 0;
    right: 16px;
    width: min(320px, 90vw);
    max-height: calc(100vh - var(--nav-h, 72px) - 16px);
    background: rgba(15,15,15,0.98);
    padding: 24px;
    border-radius: 0 0 0 16px;
    box-shadow: -6px 8px 28px rgba(0,0,0,0.35);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-mobile-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    float: right;
    cursor: pointer;
  }
  .nav-mobile-inner::-webkit-scrollbar { display: none; }
  .nav-mobile-sections { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
  .nav-mobile .nav-btn { text-align: left; padding: 12px 16px; font-size: 16px; }

  /* Show hamburger at narrow widths */
  @media (max-width: 975px) {
    nav { padding: 0 16px; }
    .nav-sections { display: none; }
    .nav-toggle { display: block; }
    .nav-logo img { width: 120px; }
    .nav-dropdown-wrapper { display: none; }
  }

  /* Small content area spacing — allow full-width sections while keeping inner padding */
  .site-content { padding-top: calc(var(--nav-h, 72px) + 20px); max-width: none; width: 100%; margin: 0; padding-left: 0; padding-right: 0; }
  .content-area { min-height: 60vh; }
  .site-footer { text-align: center; padding: 28px 0; color: var(--muted); }

/* ── WEB APPS ORANGE BUTTON & DROPDOWN ── */
.nav-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #C7632C;
  color: #fff !important;
  border-radius: 6px;
  padding: 7px 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.nav-btn-orange:hover {
  background: #d96e35;
  color: #fff !important;
  transform: translateY(-1px);
}
.nav-btn-orange.active,
.nav-btn-orange.dropdown-open {
  background: #d96e35;
  color: #fff !important;
}
.nav-btn-orange::after { display: none; }

.nav-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-btn-chevron {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-btn-orange.dropdown-open .nav-btn-chevron {
  transform: rotate(180deg);
}

/* Dropdown container */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(18,18,18,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  display: none;
  z-index: 300;
  animation: dropdownFadeIn 0.15s ease;
}
.nav-dropdown.open { display: block; }

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(199,99,44,0.1);
  color: #C7632C;
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
}
.nav-dropdown-item:hover .nav-dropdown-icon { opacity: 1; }

/* Mobile web apps section */
.nav-mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 0;
}
.nav-mobile-web-apps-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C7632C;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px 4px;
}
.nav-mobile-web-apps-label svg {
  width: 14px;
  height: 14px;
}
.nav-mobile-app-link {
  display: block;
  text-align: left;
  padding: 10px 16px 10px 38px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-app-link:hover {
  background: rgba(199,99,44,0.1);
  color: #C7632C;
}