/* ============================================================
   HJS Dienstleistungen — Modern Navigation
   Replaces the legacy WP/Upsolution header.
   ============================================================ */

/* Hide the old WP header completely */
#page-header { display: none !important; }
/* The old WP body adds a top padding for fixed header; we restore it via .hjs-nav height */
body { padding-top: 0 !important; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

.hjs-nav,
.hjs-nav * { box-sizing: border-box; }

.hjs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(20, 40, 20, 0.07);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hjs-nav.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 24px rgba(20,40,20,.06);
}

.hjs-nav__bar {
  max-width: 1400px;
  margin: 0 auto !important;
  padding: .7rem clamp(1rem, 3vw, 1.8rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem;
  min-height: 76px;
}
.hjs-nav__brand { flex: 0 0 auto; }
.hjs-nav__menu { flex: 1 1 auto; justify-content: flex-end; }
.hjs-nav__actions { flex: 0 0 auto; }

/* Logo block — icon + wordmark side by side */
.hjs-nav__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
}
.hjs-nav__logo {
  width: 62px; height: 62px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.hjs-nav__brand:hover .hjs-nav__logo { transform: rotate(-6deg) scale(1.06); }
.hjs-nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.hjs-nav__wordmark-name {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: #1a3d1a;
  line-height: 1;
}
.hjs-nav__wordmark-sub {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #5c8a5c;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Menu list */
.hjs-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.8vw, 1.8rem);
  margin: 0; padding: 0;
  list-style: none;
}
.hjs-nav__menu li {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1 !important;
}
.hjs-nav__menu li::before,
.hjs-nav__menu li::marker { content: none !important; }
.hjs-nav__menu a {
  display: flex;
  align-items: center;
  color: #2a4a2a;
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  position: relative;
  padding: .5rem .75rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
/* kill any theme-injected underline */
.hjs-nav__menu a::after,
.hjs-nav__menu a::before { content: none !important; }

.hjs-nav__menu a:hover {
  color: #1a3d1a;
  background: rgba(108,179,63,.12);
}
.hjs-nav__menu a.is-active {
  color: #1a3d1a;
  background: rgba(108,179,63,.16);
  font-weight: 600;
}

/* Right-side actions */
.hjs-nav__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hjs-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6cb33f, #4d8b2e);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.005em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(76,140,46,.25);
  transition: transform .2s, box-shadow .25s;
}
.hjs-nav__phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76,140,46,.32);
  color: #fff;
}
.hjs-nav__phone svg { width: 16px; height: 16px; }

.hjs-nav__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(108,179,63,.10);
  color: #4d8b2e;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hjs-nav__mail:hover { background: #6cb33f; color: #fff; }
.hjs-nav__mail svg { width: 18px; height: 18px; }

/* Hamburger toggle — mobile only */
.hjs-nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10001;
}
.hjs-nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a3d1a;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.hjs-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hjs-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hjs-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Spacer so page content doesn't sit under the fixed nav */
.hjs-nav-spacer { height: 76px; }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 1500px) {
  .hjs-nav__phone-label { display: none; }
  .hjs-nav__phone { padding: .6rem .75rem; }
  .hjs-nav__menu { gap: 1rem; }
  .hjs-nav__menu a { font-size: 13.5px; }
  .hjs-nav__wordmark-sub { display: none; }
}
@media (max-width: 1280px) {
  .hjs-nav__menu { gap: .75rem; }
  .hjs-nav__menu a { font-size: 12.5px; }
}

@media (max-width: 1180px) {
  .hjs-nav__toggle { display: flex; }
  .hjs-nav__mail { display: none; }
  .hjs-nav__bar { gap: .6rem; }

  .hjs-nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(85vw, 380px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 1.6rem 2rem;
    gap: .25rem;
    transition: right .35s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
    box-shadow: -10px 0 36px rgba(20,40,20,.18);
    visibility: hidden;
  }
  .hjs-nav__menu.is-open { right: 0; visibility: visible; }
  .hjs-nav__menu a {
    padding: 1rem .2rem;
    border-bottom: 1px solid rgba(20,40,20,.06);
    font-size: 16px;
    font-weight: 600;
    color: #1a3d1a;
  }
  .hjs-nav__menu a::after { display: none; }

  .hjs-nav__phone .hjs-nav__phone-label { display: none; }
  .hjs-nav__phone { padding: .55rem .8rem; }
}

@media (max-width: 520px) {
  .hjs-nav__wordmark-name { font-size: 1.15rem; }
  .hjs-nav__bar { padding: .6rem 1rem; gap: .6rem; }
}

/* Backdrop overlay when drawer is open */
.hjs-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,40,20,.45);
  z-index: 9998;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
body.hjs-nav-open .hjs-nav-backdrop { display: block; }
body.hjs-nav-open { overflow: hidden; }
