/**
 * Digital Kreativ dynamic header (2026).
 * Content, ordering, labels, URLs, nesting and CTA are defined in Appearance > Menus.
 * Scoped to the shortcode; no Elementor widget CSS or inline <style> required.
 */
.dk2026-header-shortcode,
.dk2026-header-shortcode > .elementor-widget-container,
.dk2026-header-shortcode .elementor-shortcode { width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; }

.dk2026-header,
.dk2026-header *,
.dk2026-header *::before,
.dk2026-header *::after { box-sizing: border-box; }

.dk2026-header {
  --dkh-bg: #000a10;
  --dkh-cyan: #3edfd0;
  --dkh-hover: #28c4bb;
  --dkh-light: #f6fafa;
  --dkh-line: rgba(62,223,208,.26);
  position: relative;
  z-index: 50;
  isolation: isolate;
  width: 100%;
  margin: 0;
  background: var(--dkh-bg);
  color: var(--dkh-light);
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.4;
}
.dk2026-header .dk2026-main {
  background: linear-gradient(110deg,#000b12,#04151c 72%,#031016);
  border-bottom: 1px solid var(--dkh-line);
}
.dk2026-header .dk2026-main-inner {
  max-width: 1280px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px,3vw,46px);
}
.dk2026-header .dk2026-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 220px;
  width: 220px;
  min-height: 54px;
  max-width: 100%;
  color: #f6fafa !important;
  line-height: 1;
  text-decoration: none !important;
}
.dk2026-header .dk2026-logo-image {
  display: block !important;
  width: 220px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border: 0 !important;
  box-shadow: none !important;
}
.dk2026-header .dk2026-brand-text {
  font: 800 18px/1.2 'Poppins',Arial,sans-serif !important;
}
.dk2026-header .dk2026-nav { display: flex; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.dk2026-header .dk2026-nav-list {
  display: flex !important;
  flex-flow: row nowrap;
  gap: clamp(16px,2.2vw,30px);
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  height: 82px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.dk2026-header .dk2026-nav-list > li {
  display: flex;
  position: relative;
  align-items: center;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.dk2026-header .dk2026-nav-list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  color: #eff6f6 !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
  font: 600 14.5px/1.4 'Poppins',Arial,sans-serif !important;
  white-space: nowrap;
  transition: color .2s ease;
}
.dk2026-header .dk2026-nav-list > li > a:hover,
.dk2026-header .dk2026-nav-list > li > a:focus-visible,
.dk2026-header .dk2026-nav-list > li.current-menu-item > a:not([href*="#"]),
.dk2026-header .dk2026-nav-list > li.current-menu-ancestor > a:not([href*="#"]),
.dk2026-header .dk2026-nav-list > li.current_page_item > a:not([href*="#"]) { color: var(--dkh-cyan) !important; }
.dk2026-header .dk2026-nav-list > li.current-menu-item:not(.dkh-menu-cta) > a:not([href*="#"])::after,
.dk2026-header .dk2026-nav-list > li.current_page_item:not(.dkh-menu-cta) > a:not([href*="#"])::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 9px;
  background: var(--dkh-cyan);
  content: '';
}
.dk2026-header .dk2026-nav-list > li.dkh-menu-cta { margin-left: clamp(14px,2.8vw,38px) !important; }
.dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a {
  gap: 12px;
  min-height: 46px;
  padding: 12px 21px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--dkh-cyan) !important;
  color: #032423 !important;
  box-shadow: 0 8px 30px rgba(62,223,208,.12);
  font: 700 14px/1.3 'Poppins',Arial,sans-serif !important;
  transition: transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a::after {
  content: '→';
  position: static;
  display: inline;
  width: auto;
  height: auto;
  background: none;
  font-size: 19px;
  line-height: 1;
}
.dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a:hover {
  color: #032423 !important;
  background: var(--dkh-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(62,223,208,.22);
}
.dk2026-header .dk2026-nav-list > li.menu-item-has-children > a { padding-right: 23px !important; }
.dk2026-header .dkh-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--dkh-light);
  padding: 0;
  cursor: pointer;
}
.dk2026-header .dkh-submenu-toggle::after {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: '';
}
.dk2026-header .dk2026-nav-list > li.menu-item-has-children > .dkh-submenu-toggle {
  position: absolute;
  right: 0;
}
.dk2026-header .dk2026-nav-list .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  display: none;
  min-width: 215px;
  margin: 0 !important;
  padding: 8px !important;
  list-style: none !important;
  background: #071d1a;
  border: 1px solid rgba(62,223,208,.32);
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
  z-index: 100;
}
.dk2026-header .dk2026-nav-list .sub-menu li { position: relative; list-style: none !important; margin: 0 !important; }
.dk2026-header .dk2026-nav-list .sub-menu a {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  color: #edf9f8 !important;
  font: 600 13px/1.4 'Poppins',Arial,sans-serif !important;
  text-decoration: none !important;
  border-radius: 7px;
}
.dk2026-header .dk2026-nav-list .sub-menu a:hover,
.dk2026-header .dk2026-nav-list .sub-menu a:focus-visible { background: #11433e; color: var(--dkh-cyan) !important; }
.dk2026-header .dk2026-nav-list .sub-menu .sub-menu { left: 100%; top: -8px; }
.dk2026-header .dk2026-nav-list li:hover > .sub-menu,
.dk2026-header .dk2026-nav-list li:focus-within > .sub-menu,
.dk2026-header .dk2026-nav-list li.dkh-expanded > .sub-menu { display: block; }
.dk2026-header .dk2026-mobile { display: none; }
.dk2026-header a:focus-visible,
.dk2026-header button:focus-visible,
.dk2026-header summary:focus-visible { outline: 2px solid var(--dkh-cyan) !important; outline-offset: 4px !important; }

@media (max-width: 1100px) {
  .dk2026-header .dk2026-main-inner { min-height: 76px; padding: 0 28px; gap: 19px; }
  .dk2026-header .dk2026-brand { flex-basis: 198px; width: 198px; }
  .dk2026-header .dk2026-logo-image { width: 198px !important; }
  .dk2026-header .dk2026-nav-list { gap: 17px; height: 76px; }
  .dk2026-header .dk2026-nav-list > li > a { font-size: 12.8px !important; }
  .dk2026-header .dk2026-nav-list > li.dkh-menu-cta { margin-left: 12px !important; }
  .dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a { font-size: 12.5px !important; padding: 10px 16px !important; min-height: 44px; gap: 9px; }
}
@media (max-width: 920px) {
  .dk2026-header .dk2026-main-inner { min-height: 74px; gap: 15px; }
  .dk2026-header .dk2026-nav { display: none !important; }
  .dk2026-header .dk2026-mobile { display: block; position: relative; margin-left: auto; }
  .dk2026-header .dk2026-mobile summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(62,223,208,.42);
    border-radius: 10px;
    background: rgba(62,223,208,.055);
    color: #f6fafa;
    cursor: pointer;
    list-style: none;
    font: 600 13px/1.2 'Poppins',Arial,sans-serif !important;
    user-select: none;
  }
  .dk2026-header .dk2026-mobile summary::-webkit-details-marker { display: none; }
  .dk2026-header .dk2026-mobile summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .dk2026-header .dk2026-close { display: none; }
  .dk2026-header .dk2026-mobile[open] .dk2026-burger { display: none; }
  .dk2026-header .dk2026-mobile[open] .dk2026-close { display: block; }
  .dk2026-header .dk2026-mobile[open] summary { background: #123b3c; color: var(--dkh-cyan); }
  .dk2026-header .dk2026-menu-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    z-index: 100;
    width: min(325px,calc(100vw - 35px));
    max-height: min(72vh,650px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #071d1a;
    border: 1px solid rgba(62,223,208,.3);
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(0,0,0,.45);
    padding: 10px;
  }
  .dk2026-header .dk2026-mobile-list,
  .dk2026-header .dk2026-mobile-list .sub-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .dk2026-header .dk2026-mobile-list li { list-style: none !important; margin: 0 !important; padding: 0 !important; position: relative; }
  .dk2026-header .dk2026-mobile-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 47px;
    padding: 12px 13px !important;
    color: #edf9f8 !important;
    background: transparent !important;
    border-radius: 7px;
    font: 600 14px/1.35 'Poppins',Arial,sans-serif !important;
    text-decoration: none !important;
  }
  .dk2026-header .dk2026-mobile-list a:hover,
  .dk2026-header .dk2026-mobile-list a:focus-visible,
  .dk2026-header .dk2026-mobile-list li.current-menu-item > a:not([href*="#"]) { background: #11433e !important; color: var(--dkh-cyan) !important; }
  .dk2026-header .dk2026-mobile-list li.dkh-menu-cta { border-top: 1px solid rgba(62,223,208,.2); margin-top: 6px !important; }
  .dk2026-header .dk2026-mobile-list li.dkh-menu-cta > a { color: var(--dkh-cyan) !important; }
  .dk2026-header .dk2026-mobile-list li.dkh-menu-cta > a::after { content: '↗'; font-size: 17px; }
  .dk2026-header .dk2026-mobile-list .sub-menu { display: none !important; padding-left: 14px !important; }
  .dk2026-header .dk2026-mobile-list li.dkh-expanded > .sub-menu { display: flex !important; }
  .dk2026-header .dk2026-mobile-list .dkh-submenu-toggle { position: absolute; right: 12px; top: 4px; z-index: 1; height: 39px; }
  .dk2026-header .dk2026-mobile-list li.menu-item-has-children > a { padding-right: 52px !important; }
}
@media (max-width: 600px) {
  .dk2026-header .dk2026-main-inner { min-height: 70px; padding: 0 18px; gap: 12px; }
  .dk2026-header .dk2026-brand { flex-basis: 190px; width: 190px; }
  .dk2026-header .dk2026-logo-image { width: 190px !important; }
  .dk2026-header .dk2026-mobile summary { min-width: 44px; min-height: 44px; padding: 9px; }
  .dk2026-header .dk2026-mobile summary span { display: none; }
}
@media (max-width: 340px) {
  .dk2026-header .dk2026-main-inner { padding: 0 14px; }
  .dk2026-header .dk2026-brand { flex-basis: 170px; width: 170px; }
  .dk2026-header .dk2026-logo-image { width: 170px !important; }
}
/**
 * Homepage header: direct measurements from Figma PSD import (1500px canvas).
 * Only page #78 and desktop widths are affected. Other pages and the existing
 * accessible tablet/mobile menu keep their approved layout.
 *
 * PSD slots (x/y/width/height at 1500px):
 *   logo 74/61/237/38, nav starts x460 with ~61px gaps,
 *   contact x1256/56/169/48, navigation baseline y71, header height 128.
 */
@media (min-width: 1101px) {
  /*
   * True hero-overlaid navigation: the Elementor HFE template previously
   * occupied a separate dark row, so alpha alone could not show the photo.
   * Take only the homepage desktop navigation out of document flow and
   * keep its Elementor/Astra ancestors fully clear.
   */
  body.page-id-78 #masthead,
  body.page-id-78 .hfe-site-header,
  body.page-id-78 .elementor-location-header {
    position: relative;
    z-index: 90;
    background: transparent !important;
    background-image: none !important;
  }

  body.page-id-78 .dk2026-elementor-root {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
  }

  body.page-id-78 .dk2026-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 95;
    width: 100%;
    background: transparent !important;
    font-size: 16.6667px;
  }

  body.page-id-78 .dk2026-header .dk2026-main {
    /* Dark enough for legible white links, visibly revealing hero imagery. */
    background: linear-gradient(
      180deg,
      rgba(1, 13, 19, .72) 0%,
      rgba(1, 13, 19, .54) 46%,
      rgba(1, 13, 19, .27) 78%,
      rgba(1, 13, 19, .10) 100%
    );
    border-bottom: 0;
  }

  /*
   * Hero now starts behind the overlay. Move ONLY its copy down so the
   * top navigation never collides with headings and preserve overall depth.
   */
  body.page-id-78 .dk-home-hero {
    min-height: 878px;
  }
  body.page-id-78 .dk-home-hero .dk-hero-main {
    padding-top: 203px;
  }

  body.page-id-78 .dk2026-header .dk2026-main-inner {
    width: 100%;
    max-width: 1500px;
    position: relative;
    min-height: 108px;
    padding: 12px clamp(40px, 4.9333vw, 74px) 0;
    justify-content: space-between;
    gap: 0;
  }

  body.page-id-78 .dk2026-header .dk2026-brand {
    flex: 0 0 clamp(185px, 15.8vw, 237px);
    width: clamp(185px, 15.8vw, 237px);
    min-height: 38px;
  }

  body.page-id-78 .dk2026-header .dk2026-logo-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Center the four page links on the full header canvas, not in the
     remaining space after the logo. The CTA is anchored independently. */
  body.page-id-78 .dk2026-header .dk2026-nav {
    position: absolute;
    inset: 12px 0 0;
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    pointer-events: none;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list {
    position: relative;
    width: 100%;
    height: 96px;
    gap: clamp(38px, 4.0667vw, 61px);
    justify-content: center;
    pointer-events: none;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li {
    pointer-events: auto;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li > a {
    font: 400 clamp(12.8px, 1.1111vw, 16.6667px)/1 'Poppins', Arial, sans-serif !important;
    color: #ffffff !important;
    min-height: 44px;
    letter-spacing: 0;
  }

  /* The PSD keeps the selected page white and shows a centered 25 x 3px rule. */
  body.page-id-78 .dk2026-header .dk2026-nav-list > li.current-menu-item > a:not([href*="#"]),
  body.page-id-78 .dk2026-header .dk2026-nav-list > li.current_page_item > a:not([href*="#"]) {
    color: #ffffff !important;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li.current-menu-item:not(.dkh-menu-cta) > a:not([href*="#"])::after,
  body.page-id-78 .dk2026-header .dk2026-nav-list > li.current_page_item:not(.dkh-menu-cta) > a:not([href*="#"])::after {
    left: 50%;
    right: auto;
    top: calc(50% + 25px);
    bottom: auto;
    width: 25px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0;
  }

  /* The menu content stays WordPress-managed; only the label's visible case matches the PSD. */
  body.page-id-78 .dk2026-header .dk2026-nav-list > li.menu-item-53 > a {
    text-transform: capitalize;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li.dkh-menu-cta {
    position: absolute;
    right: clamp(40px, 4.9333vw, 74px);
    margin-left: 0 !important;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a {
    width: clamp(145px, 11.2667vw, 169px);
    height: 48px;
    min-height: 48px;
    justify-content: space-between;
    gap: 0;
    padding: 0 clamp(16px, 1.6667vw, 25px) !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #3edfd0 !important;
    color: #000000 !important;
    box-shadow: none;
    font: 400 clamp(12.8px, 1.1111vw, 16.6667px)/1 'Poppins', Arial, sans-serif !important;
  }

  body.page-id-78 .dk2026-header .dk2026-nav-list > li.dkh-menu-cta > a::after {
    content: '';
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    font-size: 0;
    line-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dk2026-header * { transition: none !important; animation: none !important; }
}

/* Digital Kreativ / Tjenester: 2-column mega menu with published service
   pages only. Items and URLs are managed in the WordPress primary menu. */
@media (min-width: 921px) {
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu {
    position: absolute !important;
    top: calc(100% - 5px) !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: min(670px, calc(100vw - 40px)) !important;
    max-width: none !important;
    min-width: min(530px, calc(100vw - 40px)) !important;
    padding: 27px 29px 29px !important;
    margin: 0 !important;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px !important;
    align-items: start;
    background: #061d1b !important;
    border: 1px solid rgba(62,223,208,.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.65), 0 2px 16px rgba(62,223,208,.08) !important;
    z-index: 130 !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent:hover > .sub-menu,
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent:focus-within > .sub-menu,
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent.dkh-expanded > .sub-menu {
    display: grid !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li {
    position: relative !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > a {
    display: block !important;
    min-height: auto !important;
    padding: 0 0 9px !important;
    margin: 0 0 10px !important;
    border-bottom: 1px solid rgba(62,223,208,.4);
    background: transparent !important;
    border-radius: 0 !important;
    color: #3edfd0 !important;
    font: 700 15px/1.45 'Poppins',Arial,sans-serif !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .dkh-submenu-toggle {
    display: none !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 3px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu li {
    min-width: 0;
    width: 100%;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu a {
    display: block !important;
    font: 500 13.5px/1.45 'Poppins',Arial,sans-serif !important;
    min-height: 34px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    padding: 8px 9px !important;
    color: #eff9f8 !important;
    border-radius: 7px;
  }
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu a:hover,
  .dk2026-header .dk2026-nav-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu a:focus-visible {
    color: #3edfd0 !important;
    background: rgba(62,223,208,.12) !important;
  }
}
/* Phones and tablets use the existing accessible nested accordion toggles.
   Keep every service link comfortably tappable and inside the menu panel. */
@media (max-width: 920px) {
  .dk2026-header .dk2026-mobile-list > li.dkh-mega-parent > .sub-menu {
    padding: 3px 0 5px 12px !important;
    border-left: 1px solid rgba(62,223,208,.35);
    margin-left: 13px !important;
    width: calc(100% - 13px) !important;
  }
  .dk2026-header .dk2026-mobile-list > li.dkh-mega-parent > .sub-menu > li > a {
    color: #3edfd0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
  }
  .dk2026-header .dk2026-mobile-list > li.dkh-mega-parent > .sub-menu > li > .sub-menu {
    padding-left: 12px !important;
    border-left: 1px solid rgba(62,223,208,.22);
  }
  .dk2026-header .dk2026-mobile-list > li.dkh-mega-parent .sub-menu a {
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
}

/* Astra's walker adds a second arrow inside <a>; the custom header already
   inserts keyboard-accessible dkh-submenu-toggle buttons. Hide only the
   redundant Astra arrow in the services mega menu (desktop and mobile). */
.dk2026-header :is(.dk2026-nav-list,.dk2026-mobile-list) li.dkh-mega-parent > a .dropdown-menu-toggle,
.dk2026-header :is(.dk2026-nav-list,.dk2026-mobile-list) li.dkh-mega-group > a .dropdown-menu-toggle {
  display: none !important;
}

/* Homepage ONLY: hide the header logo/brand on phones. Keep the mobile
   navigation control visible and preserve the logo on tablets, desktop,
   and every other page. The Elementor mobile breakpoint is 767px. */
@media (max-width: 767px) {
  body.page-id-78 .dk2026-header .dk2026-main-inner > .dk2026-brand {
    display: none !important;
  }
}
