/* ==========================================================================
   HEADER.CSS — WESPENNESTVERWIJDEREN.NL
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-secondary);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 var(--space-lg);
    max-width: none;
  }
}

/* ---------- Logo ---------- */
.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
}

@media (min-width: 768px) {
  .header-logo-icon {
    width: 48px;
    height: 48px;
  }
}

.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
}

.header-logo-text span {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .header-logo-text {
    font-size: 1.25rem;
  }
}

/* ---------- Header CTA (rechts) ---------- */
.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
    gap: var(--space-sm);
  }

  .header-cta .btn {
    font-size: 0.875rem;
    padding: 10px 20px;
    white-space: nowrap;
  }
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* ---------- Desktop navigatie ---------- */
.header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 46px;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.header-nav a:hover {
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.header-nav a.active,
.header-nav a[aria-current="page"] {
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Mobiel menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-md);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--space-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  background-color: var(--color-primary-light);
  color: var(--color-accent);
}

.mobile-menu .mobile-cta {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu .mobile-cta .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}
