/* ============================================
   Beerkens Computers – Site header (bc-header)
   ============================================ */

.bc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid rgba(30, 45, 77, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bc-header.is-scrolled {
  border-bottom-color: rgba(30, 45, 77, 0.06);
  box-shadow: 0 10px 36px rgba(30, 45, 77, 0.08);
}

.bc-header.is-scrolled .bc-header-strip {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-width: 0;
  overflow: hidden;
}

.bc-header.is-scrolled .bc-header-bar-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.bc-header-strip {
  background: #eef1f6;
  border-bottom: 1px solid rgba(30, 45, 77, 0.07);
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.28s ease, min-height 0.35s ease;
  max-height: 3rem;
  opacity: 1;
}

.bc-header-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 2.1rem;
  font-size: 0.74rem;
}

.bc-header-rating {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-primary);
}

.bc-header-rating span {
  color: var(--color-accent-dark);
}

.bc-header-loc,
.bc-header-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-header-loc {
  justify-content: center;
}

.bc-header-quick {
  justify-content: flex-end;
}

.bc-header-loc a,
.bc-header-quick a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-gray-600);
  font-weight: 500;
  transition: color var(--transition);
}

.bc-header-loc a:hover,
.bc-header-quick a:hover {
  color: var(--color-primary);
}

.bc-header-loc svg,
.bc-header-quick svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.bc-header-bar {
  background: var(--color-white);
}

.bc-header-bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 0.85rem 0;
  transition: padding 0.3s ease;
}

.bc-header-logo {
  flex-shrink: 0;
  line-height: 0;
}

.bc-header-logo img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.bc-header-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.bc-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-header-menu > li {
  display: flex;
}

.bc-header-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-gray-700);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.bc-header-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.bc-header-menu > li > a:hover {
  color: var(--color-primary);
}

.bc-header-menu > li > a:hover::after,
.bc-header-menu > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.bc-header-menu > li > a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-text-short {
  display: none;
}

@media (max-width: 1320px) {
  .nav-text-full {
    display: none;
  }

  .nav-text-short {
    display: inline;
  }
}

.bc-header-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  transition: transform var(--transition), opacity var(--transition);
}

.bc-header-mega-item.is-open .bc-header-chevron,
.bc-header-mega-item:hover .bc-header-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

.bc-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bc-header-search {
  display: flex;
  align-items: center;
  width: 9.5rem;
  border: 1px solid rgba(30, 45, 77, 0.12);
  border-radius: 10px;
  background: #f8f9fb;
  overflow: hidden;
  transition: width var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.bc-header-search:focus-within {
  width: 12rem;
  background: var(--color-white);
  border-color: rgba(30, 45, 77, 0.2);
  box-shadow: 0 0 0 3px rgba(30, 45, 77, 0.06);
}

.bc-header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.5rem 0.45rem 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-dark);
  outline: none;
}

.bc-header-search input::placeholder {
  color: var(--color-gray-500);
}

.bc-header-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-right: 0.15rem;
  border: none;
  background: transparent;
  color: var(--color-gray-500);
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.bc-header-search button:hover {
  color: var(--color-primary);
  background: rgba(30, 45, 77, 0.06);
}

.bc-header-search button svg {
  width: 17px;
  height: 17px;
}

.bc-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background var(--transition);
}

.bc-header-phone:hover {
  background: rgba(30, 45, 77, 0.05);
}

.bc-header-phone svg {
  color: var(--color-accent-dark);
}

.bc-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-accent);
  border: 1px solid rgba(217, 119, 6, 0.2);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.bc-header-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

.bc-header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(30, 45, 77, 0.14);
  border-radius: 10px;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.bc-header-burger:hover {
  border-color: rgba(30, 45, 77, 0.24);
  background: #f8f9fb;
}

.bc-header-burger.open {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.bc-header-burger.open .nav-toggle-label,
.bc-header-burger.open .nav-toggle-svg {
  color: var(--color-white);
}

.nav-toggle-box {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-toggle-svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle-svg--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.85);
}

.bc-header-burger.open .nav-toggle-svg--open {
  opacity: 0;
  transform: rotate(90deg) scale(0.85);
}

.bc-header-burger.open .nav-toggle-svg--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.nav-toggle-label {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

body.nav-open {
  overflow: hidden;
}

.bc-header-mega-item {
  position: static;
}

.bc-header-mega-trigger {
  display: inline-flex !important;
  align-items: center;
}

.bc-header-mega {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 120;
  width: min(var(--max-width), calc(100vw - 2rem));
  padding-top: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

@media (hover: hover) and (min-width: 969px) {
  .bc-header-mega::before {
    content: "";
    position: absolute;
    top: -0.85rem;
    left: -2rem;
    right: -2rem;
    height: 1rem;
  }
}

.bc-header-mega-item.is-open .bc-header-mega,
.bc-header-mega-item:hover .bc-header-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.bc-header-mega-panel {
  background: var(--color-white);
  border: 1px solid rgba(30, 45, 77, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 45, 77, 0.12);
  overflow: hidden;
}

.bc-header-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, 1.1fr);
}

.bc-header-mega-col {
  padding: 1.35rem 1.5rem 1.25rem;
  border-right: 1px solid var(--color-gray-200);
}

.bc-header-mega-title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-primary);
}

.bc-header-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bc-header-mega-list a {
  display: block;
  padding: 0.42rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-gray-700) !important;
  transition: color var(--transition), background var(--transition);
}

.bc-header-mega-list a:hover {
  color: var(--color-primary) !important;
  background: rgba(30, 45, 77, 0.04);
}

.bc-header-mega-more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-dark) !important;
}

.bc-header-mega-more:hover {
  color: var(--color-primary) !important;
}

.bc-header-mega-promo {
  padding: 1.35rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
}

.bc-header-mega-promo-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-primary);
}

.bc-header-mega-promo p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--color-gray-500);
}

.bc-header-mega-cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.52rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary-dark) !important;
  background: var(--color-accent);
  border: 1px solid rgba(217, 119, 6, 0.2);
  transition: background var(--transition), transform var(--transition);
}

.bc-header-mega-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

.bc-header-mega-visual {
  margin-top: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.bc-header-mega-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bc-header-mega-foot {
  padding: 0.7rem 1.5rem;
  text-align: center;
  background: #f8f9fb;
  border-top: 1px solid var(--color-gray-200);
}

.bc-header-mega-foot p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-gray-600);
}

.bc-header-mega-foot a {
  font-weight: 700;
  color: var(--color-primary) !important;
}

@media (max-width: 1200px) {
  .bc-header-quick-mail {
    display: none;
  }

  .bc-header-loc li:nth-child(3) {
    display: none;
  }

  .bc-header-search {
    width: 8rem;
  }

  .bc-header-search:focus-within {
    width: 10rem;
  }

  .bc-header-phone {
    display: none;
  }

  .bc-header-menu > li > a {
    padding: 0.4rem 0.42rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1100px) and (min-width: 969px) {
  .bc-header-mega-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bc-header-mega-promo {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-gray-200);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .bc-header-mega-visual {
    flex: 1 1 100%;
    max-width: 260px;
  }
}

@media (max-width: 968px) {
  .bc-header-strip {
    display: none;
  }

  .bc-header.is-scrolled .bc-header-bar-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .bc-header-bar-inner {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    padding: 0.7rem 0;
    position: relative;
  }

  .bc-header-logo img {
    height: 40px;
  }

  .bc-header-nav {
    order: 3;
    grid-column: 1 / -1;
    display: block;
    min-width: 0;
  }

  .bc-header-search,
  .bc-header-cta,
  .bc-header-phone {
    display: none;
  }

  .bc-header-burger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(30, 45, 77, 0.12);
    border-radius: 8px;
    background: var(--color-white);
  }

  .bc-header-burger:hover {
    background: #f8f9fb;
    border-color: rgba(30, 45, 77, 0.2);
  }

  .nav-toggle-label {
    display: inline;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
  }

  .bc-header-burger.open .nav-toggle-label {
    color: var(--color-white);
  }

  .bc-header-strip,
  .bc-header-bar {
    position: relative;
    z-index: 101;
  }

  .bc-header-logo,
  .bc-header-tools {
    position: relative;
    z-index: 102;
  }

  .bc-header::before {
    content: "";
    position: fixed;
    top: var(--site-header-offset, 3.5rem);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(17, 24, 39, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
    z-index: 98;
    pointer-events: none;
  }

  .bc-header:has(.site-nav.open)::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Volledige breedte, los van .container */
  .bc-header-nav.site-nav {
    position: fixed;
    top: var(--site-header-offset, 3.5rem);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    background: var(--color-white);
    border-top: none;
    transition: max-height 0.3s ease;
  }

  .bc-header:has(.site-nav.open) .bc-header-bar {
    border-bottom: 1px solid var(--color-gray-200);
  }

  .bc-header-nav.site-nav.open {
    max-height: calc(100dvh - var(--site-header-offset, 3.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Eén kolom – geen flex-wrap */
  .bc-header-menu,
  .bc-header-menu.nav-links {
    display: block;
    margin: 0;
    padding: 0.5rem 0 1rem;
    list-style: none;
  }

  .bc-header-menu > li,
  .bc-header-menu > li.bc-header-mega-item {
    display: block;
    width: 100%;
    float: none;
  }

  .bc-header-menu > li > a,
  .bc-header-mega-trigger {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    white-space: normal;
    border-radius: 0;
    background: none;
    border: none;
  }

  .bc-header-menu > li > a::after {
    display: none;
  }

  .bc-header-menu > li > a[aria-current="page"] {
    font-weight: 700;
    background: none;
    box-shadow: none;
  }

  .nav-text-full {
    display: inline !important;
  }

  .nav-text-short {
    display: none !important;
  }

  .bc-header-chevron {
    display: none;
  }

  /* Mega-menu: onder Diensten, geen kolommen */
  .bc-header-mega,
  .bc-header-mega.nav-mega {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: block;
  }

  .bc-header-mega-panel,
  .bc-header-mega-grid,
  .bc-header-mega-grid.nav-mega-body,
  .bc-header-mega-col,
  .bc-header-mega-col.nav-mega-col {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    grid-template-columns: none;
  }

  .bc-header-mega-title,
  .bc-header-mega-more,
  .bc-header-mega-promo,
  .bc-header-mega-foot,
  .bc-header-mega-visual {
    display: none !important;
  }

  .bc-header-mega-list,
  .bc-header-mega-list.nav-mega-list {
    display: block;
    margin: 0;
    padding: 0 0 0.25rem;
    list-style: none;
  }

  .bc-header-mega-list li {
    display: block;
    width: 100%;
  }

  .bc-header-mega-list a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1.25rem 0.6rem 2rem;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-gray-700) !important;
    text-align: left;
    white-space: normal;
    background: none;
    border: none;
    border-radius: 0;
  }

  .bc-header-mega-item:hover .bc-header-mega,
  .bc-header-mega-item.is-open .bc-header-mega {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .bc-header-quick-mail {
    display: none;
  }
}

@media (min-width: 969px) {
  .bc-header-phone {
    display: none;
  }
}
