@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;600&family=Stack+Sans+Headline:wght@700;800&display=swap");

:root { --lb-header-height: 0px; }
html.lb-menu-open { overflow: hidden; }
body { padding-top: var(--lb-header-height); }

/* ============ HEADER ============ */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 3000;
  padding: 16px 30px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: 'Archivo', sans-serif;
}

/* ============ HAMBURGER (FORCED CONSISTENT ON MOBILE) ============ */
.hamburger {
  width: 30px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 4000;
  background: transparent;
  border: 0;
  padding: 0;

  /* Mobile reset */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger > span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000 !important;
  border-radius: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.hamburger.active > span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active > span:nth-child(2) { opacity: 0; }
.hamburger.active > span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* CENTER: LOGO */
.logo-container { text-align: center; }
.logo-container img { height: 34px; width: auto; display: inline-block; }

/* RIGHT CONTACT */
.header-contact { text-align: right; font-size: 14px; line-height: 1.3; }
.header-contact a { color: #3F4144; text-decoration: none; font-weight: 600; }

/* ============ MENU OVERLAY ============ */
.menu-overlay {
  position: fixed;
  top: 0; left: -100%;
  width: 100%;

  height: 100vh; /* fallback */
  background: #fff; color: #000;
  transition: left .4s ease;
  padding: 100px 30px 60px;
  z-index: 1500;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.menu-overlay.active { left: 0; }

/* Better mobile viewport units */
@supports (height: 100dvh){ .menu-overlay{ height: 100dvh; } }
@supports (height: 100svh){ .menu-overlay{ height: 100svh; } }

/* SEARCH */
.menu-search {
  margin-bottom: 20px;
  position: relative !important;
  z-index: 3100;
}

.menu-search input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  font-size: 18px;
  border-radius: 10px;
}

/* SEARCH DROPDOWN (DESKTOP DEFAULT) */
#resultsBox {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 3200;
  pointer-events: auto;
}

/* Make result anchors behave like the old divs */
#resultsBox a.result-item {
  display: block;
  text-decoration: none;
  color: #000;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.result-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}
.result-item:hover:not(.no-click) { background: #f7f7f7; }
.result-item .label { font-weight: 600; }
.result-item .meta { font-size: 13px; color: #777; }

/* ---- MOBILE: render results IN FLOW so they always appear ---- */
@media (max-width: 900px) {
  #resultsBox {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 10px;
  }
}

/* COLUMNS */
.menu-columns {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .menu-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .menu-columns { grid-template-columns: 1fr; } }

.menu-col h3 {
  font-family: 'Stack Sans Headline', sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 15px;
}
.menu-col a {
  display: block;
  padding: 5px 0;
  color: #000;
  font-size: 16px;
  text-decoration: none;
}
.menu-col a:hover { color: #666; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
