/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/

#hero-2041 .cs-input::placeholder {
  color: #555; /* darker than current */
  opacity: 1; /* important for Firefox */
}

/* Screenreader-only utility */
#hero-2041 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile-first */
@media only screen and (min-width: 0rem) {
  #hero-2041 {
    --nav-h: 98px;
    margin-top: var(--nav-h);
    padding-top: clamp(6rem, 10vw, 8rem);
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  #hero-2041 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(3.75rem, 13vw, 11.25rem);
  }

  #hero-2041 .cs-content {
    text-align: center;
    width: 100%;
    max-width: 53.125rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  #hero-2041 .cs-title {
    font-size: clamp(2.1375rem, 6vw, 4rem);
    max-width: 20ch;
    color: var(--bodyTextColorWhite);
    margin: 0 0 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
  }

  #hero-2041 .cs-text {
    max-width: 38ch;
    color: var(--bodyTextColorWhite);
    margin: 0 0 4rem;
    font-size: clamp(0.8rem, 2.5vw, 1.25rem);
  }

  #hero-2041 .cs-form {
    width: 100%;
    margin: 0;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    /* Mobile layout: stacked */
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.3vw, 1.25rem);
    box-sizing: border-box;
    border: solid rgba(0, 0, 0, 0.201) 1px;
  }

  #hero-2041 .cs-input {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5em;
    padding: 0.95rem;
    background-color: #f7f7f7;
    color: #767676;
    border: 1px solid #9e9e9e;
    border-radius: 0.5rem;
    width: 100%;
    min-width: 0; /* important for grid/flex overflow in Firefox */
    box-sizing: border-box;
  }

  #hero-2041 .cs-submit {
    justify-self: center;
    width: auto;
  }

  #hero-2041 .cs-button-solid {
    font-size: 1rem;
    font-weight: 700;
    line-height: clamp(2.875rem, 5.5vw, 3.25rem);
    text-align: center;
    text-decoration: none;
    padding: 0 2rem;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    border: none;
    border-radius: 0.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
  }

  #hero-2041 .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: #1a1a1a;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }

  #hero-2041 .cs-button-solid:hover:before {
    width: 100%;
  }

  /* Honeypot */
  #hero-2041 .cs-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  #hero-2041 .cs-background {
    width: 100%;
    height: 66%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }

  #hero-2041 .cs-background:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #000;
    pointer-events: none;
    opacity: 0.48;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }

  #hero-2041 .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* Tablet / Desktop */
@media only screen and (min-width: 55rem) {
  #hero-2041 {
    --nav-h: 98px;
    margin-top: var(--nav-h);
    min-height: calc(100dvh - var(--nav-h));
    padding: 0 1rem;
    position: relative;
  }

  #hero-2041 .cs-container {
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
    flex-wrap: wrap;
  }

  #hero-2041 .cs-background {
    position: absolute;
    inset: 0;
    height: auto;
  }

  #hero-2041 .cs-text {
    margin: 0 0 1rem;
  }

  /* Desktop form: 3 inputs + button */
  #hero-2041 .cs-form {
    margin-top: 6rem;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
    column-gap: 1rem;
    row-gap: 1rem;
  }

  #hero-2041 .cs-submit {
    justify-self: end;
    align-self: stretch; /* makes button height match inputs */
  }

  #hero-2041 .cs-button-solid {
    height: 100%;
    line-height: 1; /* avoid weird Firefox height calc */
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(0.95rem * 2 + (0.875rem * 1.5));
  }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #hero-2041 .cs-form {
    background-color: var(--medium);
  }

  body.dark-mode #hero-2041 .cs-input {
    background-color: rgba(255, 255, 255, 0.871);
    color: #000;
  }

  body.dark-mode #hero-2041 .cs-input::placeholder {
    color: #000;
    opacity: 0.8;
  }

  body.dark-mode #hero-2041 .cs-background:before {
    opacity: 0.55;
  }
}

/* Large Desktop - Parallax Effect - 1600px */
@media only screen and (min-width: 100rem) {
  .occupation-bilverkstad #hero-2041 .cs-background {
    background: url("/images/landing/bilverkstad.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-bygg #hero-2041 .cs-background {
    background: url("/images/landing/bygg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-el #hero-2041 .cs-background {
    background: url("/images/landing/elektriker.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-frisor #hero-2041 .cs-background {
    background: url("/images/landing/frisor.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-hantverkare #hero-2041 .cs-background {
    background: url("/images/landing/hantverkare.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-idrott #hero-2041 .cs-background {
    background: url("/images/landing/idrott.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-jurist #hero-2041 .cs-background {
    background: url("/images/landing/jurist.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-redovisning #hero-2041 .cs-background {
    background: url("/images/landing/redovisning.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-stad #hero-2041 .cs-background {
    background: url("/images/landing/stadare.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-vvs #hero-2041 .cs-background {
    background: url("/images/landing/vvs.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .occupation-ehandel #hero-2041 .cs-background {
    background: url("/images/landing/ehandel.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .city-eskilstuna #hero-2041 .cs-background {
    background: url("/images/landing/eskilstuna.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .city-stockholm #hero-2041 .cs-background {
    background: url("/images/landing/stockholm.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .city-gavle #hero-2041 .cs-background {
    background: url("/images/landing/gavle.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .city-uppsala #hero-2041 .cs-background {
    background: url("/images/landing/uppsala.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .city-linkoping #hero-2041 .cs-background {
    background: url("/images/landing/linkoping.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  #hero-2041 .cs-background img {
    display: none;
  }
}

/*-- -------------------------- --> 
    <---    Side By Side    -->
<--- -------------------------- -*/

/* Base (Mobile-first) */
#sbs-867 {
  padding: var(--sectionPadding);
  background-color: #f7f7f7;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

/* ===========================
   Links (all non-button links)
   =========================== */
#sbs-867 a:not(.cs-button-solid) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 1px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}

/* FIXED: was `a ... a:hover` */
#sbs-867 a:not(.cs-button-solid):hover {
  color: #024b93;
  border-color: currentColor;
  opacity: 0.9;
}

/* External-link indicator (applies to all non-button links) */
#sbs-867 a:not(.cs-button-solid)::after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* Layout */
#sbs-867 .cs-container {
  width: 100%;
  max-width: 34.375rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 7vw, 4rem);
  padding-top: 4rem;
}

#sbs-867 .cs-content {
  text-align: left;
  width: 100%;
  max-width: 33.875rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#sbs-867 .cs-title {
  max-width: 17ch;
}

#sbs-867 .cs-text {
  margin-bottom: 1.5rem;
}

#sbs-867 .cs-text:last-of-type {
  margin-bottom: 2rem;
}

/* List */
#sbs-867 .cs-list {
  margin: 0 0 1.25rem 0;
  padding: 0 0 0 1.25rem;
  color: var(--bodyTextColor);
}

#sbs-867 .cs-list li {
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

#sbs-867 .cs-list li:last-child {
  margin-bottom: 0.5rem;
}

#sbs-867 .cs-list strong {
  color: var(--headerColor);
}

/* Button */
#sbs-867 .cs-button-solid {
  font-size: 1rem;
  line-height: clamp(2.875rem, 5.5vw, 3.5rem);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  align-self: center;
  margin: 0;
  color: #fff;
  min-width: 9.375rem;
  padding: 0 3rem;
  background-color: var(--primary);
  border-radius: 2rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  overflow: hidden;
}

#sbs-867 .cs-button-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: #000;
  z-index: -1;
  border-radius: 2rem;
  transition: width 0.3s;
}

#sbs-867 .cs-button-solid:hover::before {
  width: 100%;
}

/* Picture */
#sbs-867 .cs-picture {
  width: 100%;
  max-width: clamp(26.6875rem, 75vw, 38.8125rem);
  height: auto;
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: 7;
  margin-top: 30px;
}

#sbs-867 .cs-picture img {
  width: 100%;
  height: auto;
}

/* ===========================
   Mobile/desktop image swap
   =========================== */
#sbs-867 .desktop-img {
  display: none;
}

#sbs-867 .mobile-img {
  display: flex;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  #sbs-867 .mobile-img {
    display: none;
  }
  #sbs-867 .desktop-img {
    display: flex;
    margin-bottom: 0;
  }
}

/* Desktop layout (NOTE: 64rem = 1024px, not 768px) */
@media only screen and (min-width: 64rem) {
  #sbs-867 .cs-container {
    max-width: 90rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
  }

  #sbs-867 .cs-content {
    width: 45%;
    padding: 0;
    align-self: center;
  }

  #sbs-867 .cs-picture {
    width: 55%;
    max-width: none;
    margin: 0;
    align-self: center;
  }

  #sbs-867 .cs-picture img {
    display: block;
    object-fit: cover;
  }
  /* Consider removing this if you want centered CTA on desktop */
  #sbs-867 .cs-button-solid {
    align-self: flex-start;
  }
}

/* Large */
@media only screen and (min-width: 81.25rem) {
  #sbs-867 .cs-picture {
    position: static;
    transform: none;
  }
}

@media only screen and (min-width: 100rem) {
  #sbs-867 .cs-picture {
    max-width: none;
    width: 60rem;
    left: auto;
    bottom: 0;
  }
}

/* Dark Mode */
body.dark-mode #sbs-867 {
  background-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode #sbs-867 .cs-topper {
  color: var(--darkmodeTopper);
}

body.dark-mode #sbs-867 .cs-title,
body.dark-mode #sbs-867 .cs-text {
  color: var(--bodyTextColorWhite);
}

body.dark-mode #sbs-867 .cs-text {
  opacity: 0.8;
}

body.dark-mode #sbs-867 .cs-list {
  color: var(--bodyTextColorWhite);
  opacity: 0.9;
}

body.dark-mode #sbs-867 .cs-list strong {
  color: white;
}

body.dark-mode #sbs-867 .cs-list a {
  border-color: rgba(255, 255, 255, 0.25);
}
body.dark-mode #sbs-867 a:not(.cs-button-solid) {
  color: #6dc2fe;
  border-color: currentColor;
}

body.dark-mode #sbs-867 .cs-list a:hover {
  color: #ffd27a;
  border-color: currentColor;
}
