/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid #ff4d00;
  box-sizing: border-box;
}

nav .logo a {
  color: #ff4d00;
  text-decoration: none;
}

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

/* HAMBURGER BUTTON */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ff4d00;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DROPDOWN MENU */
nav ul {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 71px; /* 70px navbar + 1px border = flush */
  right: 0;
  width: 260px;
  background: #000;
  border: 1px solid #ff4d00;
  border-top: none;
  z-index: 999;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

nav ul.open {
  display: flex;
}

nav ul li {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: block;
  padding: 16px 24px;
  color: #ff4d00;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 77, 0, 0.15);
  transition: background 0.2s;
  box-sizing: border-box;
}

nav ul li:last-child a {
  border-bottom: none;
}

nav ul li a:hover {
  background: rgba(255, 77, 0, 0.1);
  color: #ff6a2a;
}

nav ul li a.active {
  color: #ff4d00;
  background: rgba(255, 77, 0, 0.08);
  border-left: 3px solid #ff4d00;
}

nav ul li a[href="/gallery.php"] {
  color: #ff4757;
}

/* MOBILE */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 60px;
  }

  nav .logo img {
    height: 36px;
  }

  nav ul {
    top: 61px; /* 60px navbar + 1px border = flush */
    width: 100%;
  }
}