/* ============================================================
   NAVBAR - RK-Strechy
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 20px 0;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
  background: rgba(26, 26, 26, 0);
}

#navbar.scrolled {
  padding: 10px 0;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 92, 47, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- LOGO ---- */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 52px;
  width: auto;
  transition: height 0.4s ease;
}

#navbar.scrolled .nav-logo img {
  height: 40px;
}

/* ---- CENTER NAV LINKS ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--copper); }

/* ---- DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown > .nav-link .dropdown-caret {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition);
}

.nav-dropdown:hover > .nav-link .dropdown-caret,
.nav-dropdown.open > .nav-link .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  background: var(--dark-2);
  border-top: 2px solid var(--copper);
  padding: 16px 0 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--light-dim);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.dropdown-menu a:hover {
  color: var(--copper);
  background: rgba(184, 92, 47, 0.08);
  padding-left: 28px;
}

.dropdown-menu a svg {
  width: 14px;
  height: 14px;
  stroke: var(--copper);
  fill: none;
  flex-shrink: 0;
}

/* ---- RIGHT CTA ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-phone {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.nav-phone:hover { color: var(--copper); }

.nav-phone svg {
  width: 16px;
  height: 16px;
  stroke: var(--copper);
  fill: none;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.75rem;
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hidden on desktop */
.mobile-nav { display: none; }

/* ---- MOBILE NAV ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 90vw);
    height: 100vh;
    background: var(--dark-2);
    padding: 90px 32px 40px;
    gap: 0;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 8999;
    border-left: 2px solid var(--copper);
  }

  .mobile-nav.open { right: 0; }

  .mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--light);
    border-bottom: 1px solid var(--dark-3);
    transition: color var(--transition), padding-left var(--transition);
  }

  .mobile-nav-link:hover { color: var(--copper); }

  .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--dark-3);
    padding: 16px 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--light);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
  }

  .mobile-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--copper);
    fill: none;
    transition: transform var(--transition);
  }

  .mobile-dropdown-toggle.open svg { transform: rotate(180deg); }

  .mobile-submenu {
    display: none;
    padding-left: 16px;
  }

  .mobile-submenu.open { display: block; }

  .mobile-submenu a {
    display: block;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--light-dim);
    border-bottom: 1px solid rgba(45,45,45,0.5);
    transition: color var(--transition);
  }

  .mobile-submenu a:hover { color: var(--copper); }

  .mobile-nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: var(--light);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--dark-3);
  }

  .mobile-nav-phone svg {
    stroke: var(--copper);
    fill: none;
    width: 16px;
    height: 16px;
  }

  .mobile-nav-cta {
    margin-top: 24px;
    text-align: center;
  }
}

/* Overlay behind mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 8998;
}

.nav-overlay.active { display: block; }

/* Active page link indicator */
.nav-link.active-page,
.mobile-nav-link.active-page {
  color: var(--copper);
}

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: none; /* hidden - implementation kept for future use */
  align-items: center;
  gap: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light-dim);
  padding: 4px 7px;
  transition: color var(--transition);
  line-height: 1;
  position: relative;
}

.lang-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  width: 1px;
  background: var(--dark-3);
}

.lang-btn:hover {
  color: var(--light);
}

.lang-btn.active {
  color: var(--copper);
}

/* Mobile lang switcher */
.mobile-lang-switcher {
  display: none; /* hidden - implementation kept for future use */
  align-items: center;
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-3);
}

.mobile-lang-switcher .lang-btn {
  font-size: 0.8rem;
  padding: 6px 10px;
  color: var(--light-dim);
}

.mobile-lang-switcher .lang-btn.active {
  color: var(--copper);
}

/* Hide desktop lang-switcher on mobile (it exists in mobile-nav) */
@media (max-width: 900px) {
  .nav-right .lang-switcher {
    display: none;
  }
}
