/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: grid;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* PC Nav */
.global-nav {
  display: block;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  font-weight: bold;
  font-size: 1rem;
}

/* Hamburger Button (Hidden on PC) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2000; /* Above nav */
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}
.hamburger-line:nth-child(2) {
  top: 19px;
}
.hamburger-line:nth-child(3) {
  top: 28px;
}

/* Hamburger Open State */
.hamburger.active .hamburger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile Media Query */
@media (width < 768px) {
  .hamburger {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background-color: var(--color-white);
    transition: right 0.3s ease-in-out;
    padding-top: 80px; /* Space for header */
    z-index: 1500;
    overflow-y: auto;
  }

  .global-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav-list a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    color: var(--color-primary);
  }
}
