/**
 * Digital Kreativ — mobile PSD header + hero geometry (390px source).
 * Review draft only; scoped to homepage page #78 at <=767px.
 * The desktop header, image, typography and sizing are untouched.
 * PSD visual landmarks: logo x22/y27; hero badge x115/y334;
 * headline y395; CTAs y589; advantages icons y661.
 */
@media (max-width: 767px) {
  /* Header is over the photo in the supplied mobile artwork. Match the
     existing desktop overlaid-header method without changing desktop rules. */
  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;
    margin: 0 !important;
    padding: 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;
  }
  body.page-id-78 .dk2026-header .dk2026-main {
    border-bottom: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(0, 10, 16, .76) 0%,
      rgba(0, 10, 16, .45) 58%,
      rgba(0, 10, 16, 0) 100%
    ) !important;
  }
  body.page-id-78 .dk2026-header .dk2026-main-inner {
    width: 100%;
    min-height: 76px;
    padding: 0 20px !important;
    align-items: center;
  }
  body.page-id-78 .dk2026-header .dk2026-brand,
  body.page-id-78 .dk2026-header .dk2026-logo-image {
    flex-basis: min(49vw, 190px);
    width: min(49vw, 190px) !important;
    max-width: 190px !important;
  }
  body.page-id-78 .dk2026-header .dk2026-mobile summary {
    border: 0 !important;
    background: transparent !important;
  }
  body.page-id-78 .dk2026-header .dk2026-mobile[open] summary {
    border: 1px solid rgba(62,223,208,.42) !important;
    background: rgba(0,20,24,.88) !important;
  }

  /* Keep the full 909x941 mobile source image. The previous 108vw top
     padding pushed the badge ~90px below its PSD position. */
  body.page-id-78 .dk-home-hero {
    background-color: #000a0d;
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Main-image-mv.png") !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-main {
    padding: clamp(272px, 85.64vw, 368px) var(--dk-mobile-gutter, 17px) 45px !important;
    margin-inline: auto;
  }
  body.page-id-78 .dk-home-hero .dk-hero-copy {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    text-align: center;
    align-items: center;
    gap: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-kicker {
    margin: 0 auto 18px !important;
    width: auto !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-kicker .elementor-heading-title {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    min-height: 37px;
    padding: 7px 15px !important;
    border-radius: 99px;
    background: rgba(1, 18, 22, .55) !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-line-one,
  body.page-id-78 .dk-home-hero .dk-hero-line-two {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
  }
  body.page-id-78 .dk-home-hero .dk-hero-desc {
    width: 100% !important;
    max-width: 340px !important;
    margin: 22px auto 0 !important;
    text-align: center !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-desc p {
    margin: 0 !important;
    text-align: center !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-desc [data-dkm-hero-line] {
    display: inline !important;
    white-space: normal !important;
  }

  /* Reference 390px mobile buttons: x36–183, x202–354, y589–625. */
  body.page-id-78 .dk-home-hero .dk-hero-buttons {
    display: flex !important;
    width: 100% !important;
    max-width: 356px !important;
    margin: 37px auto 0 !important;
    gap: 19px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-buttons .elementor-widget-button {
    min-width: 0 !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-btn-primary {
    width: min(147px, calc((100% - 19px)/2)) !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-btn-outline {
    width: min(152px, calc((100% - 19px)/2)) !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-buttons .elementor-button {
    display: flex !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 7px 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    border-radius: 99px !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-buttons .elementor-button::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 6px !important;
    width: 6px !important;
    height: 10px !important;
    margin: 0 !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 6px 10px;
    font-size: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-btn-primary .elementor-button::after {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-Hero-CTA-Chevron-Dark.svg");
  }
  body.page-id-78 .dk-home-hero .dk-hero-btn-outline .elementor-button::after {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-Hero-CTA-Chevron-White.svg");
  }

  /* Four actual PSD-exported icons (Media Library IDs 334–337).
     Match the centered 286px two-column advantages grid and separators. */
  body.page-id-78 .dk-home-hero .dk-hero-features {
    display: grid !important;
    width: min(286px, 100%) !important;
    max-width: 286px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
    row-gap: 30px !important;
    margin: 35px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 113px !important;
    padding: 0 8px 0 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(even) {
    padding-left: 43px !important;
    padding-right: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(n+3) {
    min-height: 104px !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(odd)::before {
    top: 0;
    right: 0;
    bottom: auto;
    height: 77px;
    width: 1px;
    background: rgba(255,255,255,.32);
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(-n+2)::after {
    bottom: 0;
    left: 0;
    right: 34%;
    height: 1px;
    background: rgba(255,255,255,.38);
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(2)::after {
    left: 30%;
    right: 0;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-wrapper {
    text-align: left !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-icon {
    display: block !important;
    width: 33px !important;
    height: 33px !important;
    margin: 0 0 10px !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(1) .elementor-icon-box-icon {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-hero-advantage-%E2%80%94-Synlighet.png");
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(2) .elementor-icon-box-icon {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-hero-advantage-%E2%80%94-Skreddersydde.png");
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(3) .elementor-icon-box-icon {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-hero-advantage-%E2%80%94-Kreativitet.png");
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature:nth-child(4) .elementor-icon-box-icon {
    background-image: url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/Digital-Kreativ-Figma-hero-advantage-%E2%80%94-Samarbeid.png");
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-icon .elementor-icon {
    visibility: hidden !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-content {
    min-width: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-title {
    margin: 0 !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-title :is(span, a),
  body.page-id-78 .dk-home-hero .dk-hero-feature .elementor-icon-box-description {
    display: block !important;
    text-align: left !important;
  }
}
@media (max-width: 359px) {
  body.page-id-78 .dk2026-header .dk2026-main-inner {
    padding-inline: 14px !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-buttons {
    gap: 10px !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-buttons .elementor-button {
    padding-inline: 10px !important;
  }
  body.page-id-78 .dk-home-hero .dk-hero-btn-primary,
  body.page-id-78 .dk-home-hero .dk-hero-btn-outline {
    width: calc((100% - 10px) / 2) !important;
  }
}
