/* Add this as it's own dark.css file and linked on all pages */
/*-- -------------------------- -->
<---      Core Dark Styles      -->
<--- -------------------------- -*/

/* CSS variable overrides — also defined in critical.css for first-paint */
@media only screen and (min-width: 0rem) {
  body.dark-mode {
    --primary: #60A5FA;
    --primaryLight: #93C5FD;
    --secondary: #FFA726;
    --secondaryLight: #FFB74D;
  }
}

/* Mobile */
@media only screen and (min-width: 0rem) {
  :root {
    --dark: #082032;
    --medium: #2c394b;
    --accent: #334756;
    --bodyTextColorWhite: #fafbfc;
  }
  /* body background-color is in critical.css */
  body.dark-mode p,
  body.dark-mode li,
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3,
  body.dark-mode h4,
  body.dark-mode h5,
  body.dark-mode h6,
  body.dark-mode td,
  body.dark-mode th,
  body.dark-mode .cs-title,
  body.dark-mode .cs-text,
  body.dark-mode .cs-li {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .cs-topper {
    color: var(--primary);
  }
  body.dark-mode #tjänster .cs-link {
    color: var(--primary);
  }


  
  body.dark-mode .light {
    display: none;
  }
  body.dark-mode .dark {
    display: block !important;
  }
  .dark {
    /* class used to hide elements that only need to be seen when dark mode is enabled */
    display: none;
  }
}
/*-- -------------------------- -->
<---      Dark Mode Toggle      -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
  body.dark-mode #dark-mode-toggle .cs-sun {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  body.dark-mode #dark-mode-toggle .cs-moon {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  #dark-mode-toggle {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 3.75rem;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: none;
    overflow: hidden;
    padding: 0;
  }
  #dark-mode-toggle img,
  #dark-mode-toggle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5625rem;
    height: 1.5625rem;
    pointer-events: none;
  }
  #dark-mode-toggle .cs-moon {
    z-index: 2;
    transition: transform 0.3s,
                opacity 0.3s,
                fill 0.3s;
    fill: #000;
  }
  #dark-mode-toggle .cs-sun {
    z-index: 1;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: transform 0.3s,
                opacity 0.3s;
  }
}
/* Desktop */
@media only screen and (min-width: 64rem) {
  #dark-mode-toggle {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-left: 1.875rem;
    margin-bottom: 0rem;
  }
  #dark-mode-toggle .moon {
    /* change to whatever you need */
    /* fill: #f5f3f3; */
  }
}
                                
/* Desktop navigation dark mode styles are in critical.css */
        
/* Dark Mode */
@media only screen and (min-width: 0rem) {

body.dark-mode #cs-footer-1292 .cs-logo-light {
    display: block !important; /* stay in flow to hold height — override global display:none */
    opacity: 0;
    pointer-events: none;
}
body.dark-mode #cs-footer-1292 .cs-logo-dark {
    opacity: 1;
    pointer-events: auto;
}

  body.dark-mode #cs-footer-1292 {
    
    background-color: rgba(0, 0, 0, 0.2);
    
  }

  body.dark-mode #cs-footer-1292 .cs-text,
  body.dark-mode #cs-footer-1292 .cs-link,
  body.dark-mode #cs-footer-1292 .cs-nav-link,
  body.dark-mode #cs-footer-1292 .cs-header,
  body.dark-mode #cs-footer-1292 .cs-copyright,
  body.dark-mode #cs-footer-1292 .cs-copyright-link {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-footer-1292 .cs-nav-link:hover,
  body.dark-mode #cs-footer-1292 .cs-copyright-link:hover {
    color: var(--primary);
  }
  body.dark-mode #cs-footer-1292 .cs-link .cs-link-icon {
    filter: grayscale(1) brightness(1000%);
  }

}
      
/* Hero dark mode styles are in critical.css */

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #cta-51 .cs-button-solid,
  body.dark-mode #cta-51 .cs-button-10 {
    color: #000;
  }
  body.dark-mode #cta-51 .cs-button-solid:hover,
  body.dark-mode #cta-51 .cs-button-10:hover {
    color: #f5f3f3;
  }
  body.dark-mode #cta-51 .cs-button-10 .cs-icon path {
    fill: #000;
  }
  body.dark-mode #cta-51 .cs-button-10:hover .cs-icon path {
    fill: #fff;
  }
  body.dark-mode #cta-51 .cs-content {
    background: rgba(8, 32, 50, 0.8);
  }
  body.dark-mode #cta-51 .cs-title,
  body.dark-mode #cta-51 .cs-text {
    color: #f5f3f3;
  }
}

/* Mobile navigation dark mode styles are in critical.css */

/* Desktop dropdown dark mode styles are in critical.css */

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #tjänster {
        background-color: var(--dark);
    }
    body.dark-mode #tjänster .cs-arrow {
        /* Converts any color → --primary: #60A5FA */
        filter: brightness(0) saturate(100%) invert(67%) sepia(71%) saturate(1008%) hue-rotate(188deg) brightness(101%) contrast(98%);
    }
    body.dark-mode #tjänster .cs-title,
    body.dark-mode #tjänster .cs-text,
    body.dark-mode #tjänster .cs-item-text {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #tjänster .cs-text,
    body.dark-mode #tjänster .cs-item-text {
        opacity: 0.8;
    }
    body.dark-mode #tjänster .cs-h3 {
        background-color: rgba(0, 0, 0, 0.9);
    }
    body.dark-mode #tjänster .cs-item {
        background-color: rgba(0, 0, 0, 0.4);
    }
    body.dark-mode #tjänster .cs-item:hover .cs-h3 {
        color: #000;
    }
    body.dark-mode #tjänster .cs-item:hover .cs-icon {
        filter: brightness(0);
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #gallery-379 {
    background-color: rgba(0, 0, 0, 0.2); /* <-- ADDED to override the new light gray */
  }
  body.dark-mode #gallery-379 .cs-topper {
    color: var(--primaryLight);
  }
  body.dark-mode #gallery-379 .cs-title,
  body.dark-mode #gallery-379 .cs-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #gallery-379 .cs-text {
    opacity: .8;
  }
}
                                

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #why-choose-289 .cs-topper {
        color: var(--primary);
    }
    body.dark-mode #why-choose-289 .cs-title,
    body.dark-mode #why-choose-289 .cs-text,
    body.dark-mode #why-choose-289 .cs-h3,
    body.dark-mode #why-choose-289 .cs-item-text {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #why-choose-289 .cs-item {
        background-color: var(--accent);
    }
    body.dark-mode #why-choose-289 .cs-item:hover {
        background-color: var(--primary);
    }
    body.dark-mode #why-choose-289 .cs-item:hover .cs-h3,
    body.dark-mode #why-choose-289 .cs-item:hover .cs-item-text {
        color: #000;
    }
    body.dark-mode #why-choose-289 .cs-icon {
        /* makes it so bright it turns white */
        filter: brightness(1000%);
    }
    body.dark-mode #why-choose-289 .cs-item:hover .cs-icon {
        filter: brightness(0);
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #kontaktaoss {
        background-color: var(--dark);
    }
    body.dark-mode #kontaktaoss .cs-title,
    body.dark-mode #kontaktaoss .cs-text,
    body.dark-mode #kontaktaoss .cs-header,
    body.dark-mode #kontaktaoss .cs-link {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #kontaktaoss .cs-link {
        opacity: 0.8;
    }
    body.dark-mode #kontaktaoss .cs-form {
        background-color: var(--medium);
    }
    body.dark-mode #kontaktaoss .cs-label {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #kontaktaoss .cs-input {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #kontaktaoss .cs-input::placeholder {
        color: #fff;
        opacity: 0.5;
    }
    body.dark-mode #kontaktaoss .cs-button-solid {
        color: #000;
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #faq-1261 {
        background-color: rgba(0, 0, 0, 0.2);
    }
    body.dark-mode #faq-1261 .cs-faq-item {
        background-color: var(--medium);
    }

    body.dark-mode #faq-1261 .cs-faq-item {

        background-color: var(--accent);
    }

    body.dark-mode #faq-1261 .cs-faq-item.active .cs-item-p {

        color: var(--bodyTextColorWhite);

    }

    body.dark-mode #faq-1261 .cs-button {
        
        color: var(--bodyTextColorWhite);
        
        }

    body.dark-mode #faq-1261 .cs-button:before {
        background-color: var(--bodyTextColorWhite);
    }
    body.dark-mode #faq-1261 .cs-button:after {
        background-color: var(--bodyTextColorWhite);
    }
}