/* Minimal Header CSS - Only essentials */

/* Header container */
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Logo */
.header__logo {
  display: inline-block;
  max-width: 200px;
}

.header__logo img {
  max-width: 100%;
  height: auto;
}

/* Navigation - Desktop */
.header__navigation {
  display: flex;
  align-items: center;
}

.header__navigation .menu__wrapper {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__navigation .menu__item {
  position: relative;
  margin: 0 1rem;
}

.header__navigation .menu__link {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
}

/* Submenu */
.menu__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1000;
}

.menu__item:hover .menu__submenu,
.menu__item:focus-within .menu__submenu {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .header__navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 1001;
    overflow-y: auto;
  }
  
  .header__navigation.open {
    left: 0;
  }
  
  .header__navigation .menu__wrapper {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  
  .header__navigation .menu__item {
    margin: 0;
    width: 100%;
  }
  
  .menu__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f8f9fa;
    margin-top: 0.5rem;
    display: none;
  }
  
  .menu__item--open .menu__submenu {
    display: block;
  }
  
  /* Mobile toggle */
  .header__navigation--toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .header__navigation--toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    margin: 5px 0;
    transition: 0.3s;
  }
  
  /* Close button */
  .header__close--toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
  }
  
  .header__close--toggle.show {
    display: block;
  }
}

/* Desktop only styles */
@media (min-width: 768px) {
  .header__navigation--toggle,
  .header__close--toggle {
    display: none;
  }
}

/* Accessibility */
.header__skip {
  position: absolute;
  left: -9999px;
}

.header__skip:focus {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  text-decoration: none;
}