/* ---------------------------------------------------------------------------------------------

	Theme Name: WorkDigital Foundation Child
	Version: 0.1
	Description: Child theme for WorkDigital Foundation theme
	Author: WorkDigital
	Author URI: https://workdigital.dk
    Template: wd-foundation

/* --------------------------------------------------------------------------------------------- */

:root {
  --btn-color: var(--primary-color);
  --btn-color-hover: var(--primary-color-hover);
  --btn-text-color: var(--text-color-reverse);
  --btn-text-color-hover: var(--text-color-reverse-hover);

  --theme-border-radius: var(--sp-border-radius);

  --header-overlay-color: rgba(255, 255, 255, 0.86);

  --space: 26px;
  --small-space: 16px;
  --btn-padding: 11px 20px;
}

:root:has(body.dark-mode) {
  --header-overlay-color: rgba(0, 0, 0, 0.86);

  .sp-hero .wp-block-cover__background {
    background: linear-gradient(
      90deg,
      var(--background-color, var(--dark)) 0%,
      var(--background-color, var(--dark)) 10%,
      color-mix(in srgb, var(--background-color, var(--dark)) 75%, transparent)
        50%,
      transparent 82%
    );
  }
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: underline;
}

/* Icon */
.wd-icon {
  transform: translateY(1px);
}
.eyebrow .wd-icon {
  transform: translateY(12px);
  display: inline-flex;
}
.mega-menu-phone-link .wd-icon {
  transform: translateY(5px);
  display: inline-flex;
}
.sp-trust-strip .wd-usp__icon,
.sp-feature-strip .wd-usp__icon,
.sp-services .wd-card .wd-icon {
  color: var(--accent-color);
}
.sp-feature-strip .wd-usp__icon svg,
.sp-trust-strip .wd-usp__icon svg,
.sp-services .wd-card svg {
  width: 40px;
  height: 40px;
}

/* Ckeckmark bullet points */
:is(.sp-split, .sp-credentials, .sp-contact) .wd-icon {
  transform: translateY(5px);
  display: inline-flex;
  margin: 0 10px 0 5px;
}

.has-inline-color {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
}

/* WD-Cards */
:is(.sp-services, .sp-credentials, .sp-references, .sp-specifications)
  .wd-card {
  box-shadow: none;
  position: relative;

  &.wd-card .wd-card-title {
    font-weight: bold;
    font-size: var(--small-headline-font-size);
    color: var(--primary-color);
  }
  &.wd-card .wd-card-button {
    flex-direction: row;
    justify-content: flex-start;
  }
  &.wd-card .wd-card-button .wd-button {
    padding: 0;
    background: transparent;
    color: var(--accent-color);
    line-height: 1.4;

    &:hover {
      text-decoration: underline;
      background: transparent;
    }
  }
}
:is(.sp-services, .sp-references) .wd-card {
  &.wd-card .wd-card-content-wrapper {
    padding: 14px var(--space) var(--space);
  }

  &.wd-card:hover {
    transition: all var(--standard-transition);
    bottom: 3px;
  }
}
:is(.sp-credentials, .sp-specifications) .wd-card {
  &.wd-card .wd-card-content-wrapper {
    padding: var(--space) var(--space) 14px var(--space);
  }
}

/* Static */
/* Header */
/* Knap */
.tilbud-btn {
  margin-left: 26px;
  background-color: var(--primary-color);
  border-radius: 26px;
  transition: all var(--standard-transition);
  max-height: 54px;
  box-shadow: none;
}

.tilbud-btn:hover {
  background-color: var(--primary-color-hover);
}

.tilbud-btn a {
  color: var(--text-color-reverse);
  display: flex;
  gap: 10px;
  padding: var(--btn-padding);
  text-decoration: none;
}

/* Header topper */
@media screen and (min-width: 1190px) and (hover: hover) {
  .header-topper-items {
    justify-content: flex-start;
    padding-left: var(--space);
  }

  .header-topper-items .header-topper-item:nth-child(2) {
    margin-right: auto;
  }
}

@media screen and (max-width: 1190px) {
  .header-topper {
    display: none;
  }
}

.wd-header {
  --header-bg-color: var(--background-color);
  --header-text-color: var(--text-color);
  --header-active-color: var(--primary-color);

  .main-header {
    border-bottom: 1px solid var(--background-color);
    backdrop-filter: saturate(1.4) blur(14px);
    background: var(--header-overlay-color);
  }
}
.main-header-inner {
  max-width: var(--standard-width);
  margin: auto;
}
.main-header-logo-link img {
  max-height: 65px;
  height: 65px;
  padding: 2px 0;
}

/*Footer*/
footer.site-footer {
  --footer-background-color: var(--surface-color);
  --footer-text-color: var(--text-color);
}
footer.site-footer .footer-inner {
  padding: 60px 0;
  --wdf-width: var(--wide-width);
  width: 1600px;
}

.footer-foot {
  display: flex;
  justify-content: space-between;
  --wdf-width: var(--wide-width);
  width: 1600px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--primary-color);
  max-width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-foot .footer-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  gap: calc(var(--small-gap) / 2);
  flex-wrap: wrap;
}

.footer-foot .footer-menu li {
  margin: 0;
}

.footer-foot .footer-menu li a {
  text-decoration: none;
  font-size: var(--body-font-size);
  color: var(--text-color);
}

.footer-foot p {
  font-size: var(--body-font-size);
  color: var(--text-color);
}

.footer-headline-wrapper {
  height: auto;
}

@media screen and (max-width: 1000px) {
  .footer-foot {
    justify-content: center;
    gap: 10px;
  }
}

/* Megamenu */
nav.main-header-nav {
  width: 100%;
  margin: auto;
}

.main-header-menu > .menu-item > a {
  display: flex;
  align-items: center;
}

.menu-item--mega {
  display: flex;
  align-items: center;
}

.main-header-menu .menu-item--mega > a::after {
  display: none !important;
}

.mega-menu-toggle {
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* left: 50%; */
  /* transform: translateX(-50%); */
  width: min(640px, 90vw);
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--separator);
  border-radius: var(--theme-border-radius);
  z-index: 10;
  padding: var(--small-space);
}

.menu-item--mega.is-mega-open > .mega-menu,
.menu-item--mega:not(.is-mega-ready):hover > .mega-menu,
.menu-item--mega:not(.is-mega-ready):focus-within > .mega-menu {
  display: block;
}

.mega-menu-inner {
  display: grid;
  gap: var(--space);

  &:has(.mega-menu-card) {
    grid-template-columns: 3fr 2fr;
  }
}

.mega-menu .mega-menu-link-item span {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: var(--small-space);
}

.mega-menu .mega-menu-link-item ul:first-of-type span {
  font-weight: normal;
  color: var(--text-color);
}

.mega-menu-label {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: var(--small-space);
}

.megamenu .mega-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;

  & .mega-menu-links {
    grid-template-columns: 1fr;
    margin-top: 7px;
  }
}

.mega-menu-link-item {
  margin: 0;
  padding: 0;
}

.megamenu .mega-menu-link-item > a,
.megamenu .mega-menu-link-item > a:hover {
  font-weight: normal;
  text-decoration: none;
  color: var(--text-color);
}

.megamenu .mega-menu-link-item > a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

body.sometimes-burger .main-header .mega-menu .mega-menu-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.mega-menu-links-wrap
  > .mega-menu-links
  > .mega-menu-link-item
  + .mega-menu-link-item {
  border-left: 1px solid var(--separator);
  padding-left: var(--small-space);
}

.mega-menu-inner:has(.mega-menu-card) .mega-menu-links {
  grid-template-columns: 1fr;
}

.megamenu .mega-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--small-space);
  margin-top: var(--space);
  padding-top: var(--small-space);
  border-top: 1px solid var(--separator);

  & .mega-menu-phone-link {
    color: var(--accent-color);
  }
}

.mega-menu-inner > .mega-menu-links-wrap:only-child {
  grid-column: 1 / 2;
}

.megamenu > .menu-item > a:hover {
  color: var(--primary-color);
}

.megamenu > .menu-item > a:hover ::after {
  color: var(--primary-color);
}

.mobilmenu {
  display: none !important;
}

.main-header-menu .menu-item > a {
  color: var(--text-color);
}

.main-header-menu .menu-item > a.expand-sub-menu {
  justify-content: center;
}

.mobilmenu .menu-item {
  border-bottom: 1px solid var(--separator);
}

.mobilmenu .sp-tilbud-knap {
  margin: 10px 0px 10px;
}

.mobilmenu .sp-tilbud-knap a {
  display: flex;
  height: 56px;
  padding: 0 0 0 16px;
  border-radius: 28px;
  gap: 12px;
  background-color: var(--primary-color);
  color: var(--light);
  align-items: center;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  font-weight: bold;
}

.mobilmenu li a {
  font-weight: bold;
}

body.sometimes-burger .main-header-menu > .menu-item > a:before {
  top: 60px;
  background-color: var(--primary-color);
  border-radius: 6px;
}

.main-header-menu:not(:has(a:focus, a:active)) .menu-item.current_page_item a {
  background-color: transparent;
  color: var(--primary-color) !important;
}

.menu-item > a:active {
  background-color: transparent;
}

.main-header-menu .menu-item > a:focus {
  background-color: transparent;
}

.current-page-parent > a {
  border-radius: 0 !important;
}

.current_page_item > a {
  color: var(--primary-color) !important;
  border-radius: 0 !important;
}

.current-page-parent > a {
  color: var(--primary-color) !important;
  border-radius: 0 !important;
}

.current-menu-item > a {
  color: var(--primary-color) !important;
  border-radius: 0 !important;
}

@media screen and (max-width: 1189px) {
  .megamenu {
    display: none;
  }

  .mobilmenu {
    display: block !important;
  }

  .main-header--menu-open .main-header-nav {
    bottom: unset;
  }
}

/*Responsive*/
@media screen and (max-width: 1383px) {
  .tilbud-btn {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  .entry-content
    > :is(.wdf-width, .wp-block-cover)
    > *:not(.wp-block-cover__background, .wp-block-cover__image-background) {
    /*max-width: 100% !important;*/
  }
  .wp-block-spacer[style*="height:100px"],
  .wp-block-spacer[style*="height: 100px"] {
    height: 40px !important;
  }
}

@media screen and (min-width: 1191px) {
  body:has(.header-topper.header-topper--only-desktop) {
    padding-top: calc(var(--header-height) + var(--space)) !important;
  }
}

@media screen and (max-width: 1190px) {
  body:has(.header-topper.header-topper--only-desktop) {
    padding-top: calc(var(--header-height)) !important;
  }
}

@media screen and (max-width: 450px) {
  .review-display-slide {
    padding: var(--space) !important;
  }
}

@media screen and (max-width: 400px) {
  .wp-block-buttons {
    flex-direction: column;
  }

  .wp-block-buttons .wp-block-button {
    width: 100%;
  }

  .wp-block-buttons .wp-block-button:last-child {
    margin-top: 10px;
  }
}

/* SP KOLETEKNIK PRODUCT CSS START */
/* Cards: Produkt side -specifikationer  */
.sp-specifications .wd-card-title {
  font-size: var(--small-text-font-size) !important;
  color: var(--text-color-hover) !important;
  font-weight: normal !important;
}
.sp-specifications .wd-card-content p {
  font-weight: bold;
  font-size: var(--body-font-size);
}
/* SP KOLETEKNIK PRODUCT CSS END */

/* SP KOLETEKNIK BLOKKE START */
/* Hero: Topsektion */
.sp-hero .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(
    96deg,
    var(--background-color, var(--light)) 0%,
    var(--background-color, var(--light)) 10%,
    color-mix(in srgb, var(--background-color, var(--light)) 75%, transparent)
      50%,
    transparent 82%
  );
}

/* UPS: Firma grundlag */
.sp-feature-strip {
  background: var(--background-color) !important;
  padding-block: 44px !important;
}
.sp-feature-strip .wd-usp-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sp-feature-strip .wd-usp {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  grid-template-areas: "icon title arrow" "icon text arrow";
  column-gap: 16px;
  align-items: center;
  text-align: left;
  padding: var(--space);
  background: var(--surface-color);
  border-radius: var(--theme-border-radius);
  min-height: 112px;
}
.sp-feature-strip .wd-usp-extra-div {
  grid-area: arrow;
  color: var(--primary-color);
  font-size: var(--small-headline-font-size, 24px);
}
.sp-feature-strip .wd-usp__icon {
  grid-area: icon;
  justify-content: center;
}
.sp-feature-strip .wd-usp__title {
  grid-area: title;
  margin: 0;
  font-size: var(--body-font-size);
  color: var(--primary-color);
}
.sp-feature-strip .wd-usp__text {
  grid-area: text;
  margin: 0;
  font-size: var(--small-text-font-size);
  font-style: normal;
  color: var(--text-color-hover);
}

/* UPS: Trust elementer */
.sp-trust-strip .wd-usp-container {
  display: flex;
  gap: 28px;
}
.sp-trust-strip .wd-usp__title {
  color: var(--primary-color);
  font-size: var(--body-font-size);
}
.sp-trust-strip .wd-usp__text {
  font-size: var(--small-text-font-size);
  font-style: normal;
  color: var(--text-color-hover);
}

/* Cards: Kerneområder - Erhverv */
.sp-services .wd-card .wd-card-tag,
.sp-services .wd-card .wd-icon {
  font-size: 34px;
  padding: var(--space) var(--space) 0;
  justify-content: flex-start;
}
.tag-color-white {
  color: var(--light);
}
.tag-color-primary {
  color: var(--accent-2-color);
}
.tag-color-secondary {
  color: var(--secondary-color);
}
.tag-color-accent {
  color: var(--accent-color);
}

/* Cards: Person-specifikaationer */
.sp-credentials {
  .wd-card-content {
    line-height: var(--medium-headline-line-height);
  }
}

/* Cards: Referencer */
.sp-references .wd-card {
  cursor: pointer;
}

.sp-split-color-background,
.sp-color-background,
.wd-contact-form .wd-contact-form-inner {
  border-radius: var(--theme-border-radius);
}

/* Contact-form: Kontakt formular */
.sp-contact .check-label-text {
  display: flex;
  padding: 19px 0 0;
  gap: 10px;
}

.sp-contact .checkbox-wrapper .wd-field-input {
  transform: translateY(-3px);
}

@media (max-width: 1200px) {
  .sp-feature-strip .wd-usp-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .sp-trust-strip .wd-usp-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .sp-trust-strip .wd-usp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sp-contact .wp-block-columns {
    gap: 30px;
  }
  .sp-contact .wd-contact-form,
  .sp-contact form {
    padding: var(--space);
  }
  
  /* Split-section w. background color*/
  .sp-split-color-background {
    padding-top: 16px;
  }

  :is(.sp-split, .sp-split-color-background)
    .wp-block-column:has(> .wp-block-image) {
    order: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-hero *,
  .sp-feature-strip *,
  .sp-services {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* SP KOLETEKNIK BLOKKE END */


/* FAQ styling */

@media screen and (max-width: 500px) {

  .faq-question-content {
    text-wrap: pretty;
    padding-right: 5px;
  }
}

/*Darkmode cookieyes fix*/
body:has(.cky-btn-revisit-wrapper.cky-revisit-bottom-left) .theme-toggle-button {
    left: unset;
    right: 16px;
}