/* ==========================================================================
   HEADER.CSS — OranjeLift.nl
   Tweedelige header: donker bovenstuk + witte navigatiebalk
   ========================================================================== */

/* ---------- Header wrapper ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

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

/* ---------- Bovenste balk: oranje ---------- */
.header-top {
  background: linear-gradient(135deg, #ff8000 0%, #cc6600 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  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;
    min-height: 80px;
  }
}

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

.header-logo img {
  height: 48px;
  width: auto;
}

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

/* ---------- Header CTA (rechts, op donker) ---------- */
.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;
  }

  .header-cta .btn-primary {
    background: #fff;
    color: #cc6600;
    border-color: #fff;
    font-weight: 700;
  }

  .header-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
  }

  .header-cta .btn-wa {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
  }

  .header-cta .btn-wa:hover {
    background: #1da851;
    border-color: #1da851;
  }
}

/* ---------- Hamburger (op donker) ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fff;
  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;
  }
}

/* ---------- Navigatiebalk: wit onder donker ---------- */
.header-subnav {
  display: none;
  background-color: #fff;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

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

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

.header-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
  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: var(--color-primary-bg);
}

.header-nav a.active {
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
}

/* Icoontjes kleur */
.header-nav a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.header-nav a:hover svg {
  opacity: 1;
}

/* ---------- Dropdown menu ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  opacity: 1;
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
  padding: var(--space-sm) 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  font-size: 0.8125rem !important;
  font-weight: 600;
  color: var(--color-text) !important;
  border-radius: 0 !important;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background-color: var(--color-primary-bg) !important;
  color: var(--color-primary) !important;
}

.dropdown-menu a svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  opacity: 0.7;
  flex-shrink: 0;
}

.dropdown-menu a:hover svg {
  opacity: 1;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xs) 0;
}

/* Mobile menu: dropdown sub-items */
.mobile-submenu {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.mobile-submenu a {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: var(--color-text-muted) !important;
  padding: 10px var(--space-md) !important;
}

.mobile-submenu a:hover {
  color: var(--color-primary) !important;
}

.mobile-menu-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-md) var(--space-md) var(--space-xs);
  pointer-events: none;
}

/* Spoed link: opvallende kleur */
.header-nav a.nav-spoed {
  color: #ff8000;
  font-weight: 700;
}

.header-nav a.nav-spoed svg {
  opacity: 1;
}

/* Contact link: opvallende kleur */
.header-nav a.nav-contact {
  color: var(--color-primary);
}

.header-nav a.nav-contact svg {
  opacity: 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-bg);
  color: var(--color-primary);
}

.mobile-menu a svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.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;
  }
}

/* ---------- Breadcrumb navigatie ---------- */
.breadcrumb-nav {
  max-width: 75rem;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.breadcrumb-list li::after {
  content: "/";
  margin-left: 4px;
  color: #767676;
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--color-secondary);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--color-text-light);
}
