/* styles/header.css */
@import 'variables.css';

.site-header {
  background: var(--main-color);
  color: var(--white);
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  /* prevent overflow on small screens */
}

@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
    max-width: 60%;
  }
}

.nav-links {
  display: none;
}

.nav-links li {
  display: inline-block;
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--white);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background: var(--main-color);
  /* bg-main class removed – background already set */
}

.mobile-menu.active {
  max-height: 500px;
  /* adjust if your menu grows */
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}