/* ==========================================================================
   HEADER.CSS - METSELWERK.NL
   Frosted glass header, brick/charcoal kleuren
   ========================================================================== */

/* ---------- Header wrapper ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  max-width: var(--max-width, 1300px);
  margin: 0 auto;
  padding: var(--space-sm, 8px) var(--space-lg, 24px);
}

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

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

.header-logo img,
.header-logo svg {
  height: 44px;
  width: auto;
}

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

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

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

  .header-cta .btn {
    font-size: 0.875rem;
    padding: 10px 22px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(196, 87, 42, 0.2);
  }
}

/* ---------- 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-secondary, #1A1A1A);
  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, 1300px);
  margin: 0 auto;
  padding: 0 var(--space-md, 16px);
  height: 46px;
}

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

.header-nav a {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #222);
  text-decoration: none;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
  letter-spacing: 0.2px;
}

.header-nav a:hover {
  color: var(--color-primary, #C4572A);
  background-color: rgba(196, 87, 42, 0.06);
}

.header-nav a.active,
.header-nav a[aria-current="page"] {
  color: var(--color-primary, #C4572A);
}

.header-nav a.nav-contact {
  color: var(--color-text, #222);
}

.header-nav a.nav-contact:hover {
  color: var(--color-primary, #C4572A);
}

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

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

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--space-md, 16px);
  font-family: var(--font-heading, 'DM Serif Display', serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text, #222);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  background-color: rgba(196, 87, 42, 0.06);
  color: var(--color-primary, #C4572A);
}

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

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

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