:root {
  --color-primary: #000000;
  --color-accent: #FD7903;
  --color-bg: #000000;
  --color-muted: #9ca3af;
  --text: #ffffff;
  --muted-contrast: rgba(255, 255, 255, 0.1);
  --max-width: 1200px;
  --gap: 1.25rem;
  --header-height: 120px;
  --transition-speed: 180ms;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000000;
  border-bottom: none;
  box-shadow: none;
  transition: all var(--transition-speed) ease;
}

.site-header::before {
  display: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0 1rem;
  position: relative;
}

.logo {
  transition: transform var(--transition-speed) ease;
  padding: 0.5rem;
  background: transparent;
  border-radius: 8px;
  position: relative;
  z-index: 10;
  margin: 0;
  box-shadow: none;
  border: none;
}

.logo:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.logo img {
  display: block;
  height: 120px;
  width: auto;
  transition: filter var(--transition-speed) ease;
}

.logo:hover img {
  filter: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Desktop nav */
.main-nav {
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a,
.nav-links button {
  background: none;
  border: 0;
  color: #ffffff;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.nav-links a:focus,
.nav-links button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nav-links .active,
.nav-links li a.active,
.site-header .nav-links .active,
.nav-links li a[href="cariere.html"].active,
.nav-links li a[href="../pages/cariere.html"].active,
.site-header .nav-links li a[href="cariere.html"].active,
.site-header .nav-links li a[href="../pages/cariere.html"].active {
  background: #FD7903 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: calc(var(--header-height) + 8px);
  left: 0;
  display: none;
  min-width: 200px;
  background: var(--color-bg);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0;
}
.has-dropdown .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
}
.has-dropdown .dropdown a:hover {
  background: rgba(11, 95, 115, 0.04);
}
.has-dropdown.open .dropdown {
  display: block;
}

.contact-quick {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.contact-quick a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.contact-quick a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-quick a:hover::before {
  left: 100%;
}

.contact-quick a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.contact-quick .phone {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-quick .phone:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-accent);
}

.contact-quick .mail {
  color: var(--color-muted);
  font-weight: 500;
}

.contact-quick .mail:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

/* Icon styles for contact links */
.contact-quick a i {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.contact-quick a:hover i {
  opacity: 1;
}

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transform: scale(1.05);
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Off-canvas drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 90%;
  height: 100vh;
  background: #000000;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
  transition: right 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 70;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--muted-contrast);
}
.nav-drawer.open {
  right: 0;
}
.nav-drawer .close-drawer {
  align-self: flex-end;
  background: none;
  border: 0;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 6px;
  color: #ffffff;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.nav-drawer .close-drawer:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transform: scale(1.1);
}
.drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-links a,
.drawer-dropdown-toggle {
  padding: 0.75rem 0.5rem;
  text-align: left;
  background: none;
  border: 0;
  font-weight: 600;
  color: #ffffff;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  width: 100%;
}

.drawer-links a:hover,
.drawer-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transform: translateX(4px);
}

.drawer-links a.active,
.drawer-dropdown-toggle.active,
.drawer-links a[href="cariere.html"].active,
.drawer-links a[href="../pages/cariere.html"].active {
  background: #FD7903 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border-radius: 5px;
}
.drawer-submenu {
  padding-left: 0.75rem;
  list-style: none;
  margin: 0.25rem 0 0 0;
}


/* overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 65;
  transition: opacity 0.18s ease;
  opacity: 0;
  pointer-events: none;
}
.nav-overlay[hidden] {
  opacity: 0;
}
.nav-drawer.open + .nav-overlay,
.nav-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Hide contact info on all screen sizes */
.contact-quick {
  display: none;
}

.mobile-contact {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
    height: 80px;
    position: relative;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0.3rem;
    background: transparent;
    border-radius: 8px;
    margin: 0;
    z-index: 10;
    border: none;
  }
  
  .logo img {
    height: 80px;
    width: auto;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
    font-size: 1.5rem;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    color: var(--text-on-dark);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 5px;
  }
  
  .nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed) ease;
    z-index: 1000;
    padding: 80px 0 0 0;
    overflow-y: auto;
  }
  
  .nav-drawer.active {
    right: 0;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .drawer-links a,
  .drawer-dropdown-toggle {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text-on-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
  }
  
  .drawer-links a:hover,
  .drawer-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transform: translateX(4px);
  }
  
  .drawer-links a.active,
  .drawer-dropdown-toggle.active,
  .drawer-links a[href="cariere.html"].active,
  .drawer-links a[href="../pages/cariere.html"].active {
    background: #FD7903 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 5px;
  }
  
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 0.75rem;
    height: 70px;
    position: relative;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0.2rem;
    background: transparent;
    border-radius: 6px;
    margin: 0;
    z-index: 10;
    border: none;
  }
  
  .logo img {
    height: 70px;
    width: auto;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
    font-size: 1.3rem;
    padding: 0.4rem;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    color: var(--text-on-dark);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 5px;
  }
  
  .nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed) ease;
    z-index: 1000;
    padding: 70px 0 0 0;
    overflow-y: auto;
  }
  
  .nav-drawer.active {
    right: 0;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .drawer-links a,
  .drawer-dropdown-toggle {
    display: block;
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--text-on-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
  }
  
  .drawer-links a:hover,
  .drawer-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transform: translateX(4px);
  }
  
  .drawer-links a.active,
  .drawer-dropdown-toggle.active,
  .drawer-links a[href="cariere.html"].active,
  .drawer-links a[href="../pages/cariere.html"].active {
    background: #FD7903 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 5px;
  }
  
}

/* Small tweaks */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  background: var(--color-primary);
  color: white;
  border: 0;
  padding: 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 95, 115, 0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
