@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #095db0;
  --primaryLight: #0b66c2;
  --secondary: #0b66c2;
  --secondaryLight: #ffba43;
  --headerColor: #1a1a1a;
  --bodyTextColor: #4e4b66;
  --bodyTextColorWhite: #fafbfc;
  --darkmodeTopper: #4fa2f5;
  --medium: #2c394b;
  /* 13px - 16px */
  --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
  /* 31px - 49px */
  --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
  --bodyFontSize: 1rem;
  /* 60px - 100px top and bottom */
  --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

*,
*:before,
*:after {
  /* prevents padding from affecting height and width */
  box-sizing: border-box;
}
.cs-topper {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  text-align: inherit;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}

/* ORIGINAL HEADER STYLING */
.cs-title {
  font-size: var(--headerFontSize);
  font-weight: 900;
  line-height: 1.2em;
  text-align: inherit;
  max-width: 43.75rem;
  margin: 0 0 1rem 0;
  color: var(--headerColor);
  position: relative;
}

.cs-text {
  font-size: var(--bodyFontSize);
  line-height: 1.5em;
  text-align: inherit;
  width: 100%;
  max-width: 40.625rem;
  margin: 0;
  color: var(--bodyTextColor);
}

/*-- -------------------------- -->
<---      Dark Mode Toggle      -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  body.dark-mode #theme-toggle .cs-sun {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  body.dark-mode #theme-toggle .cs-moon {
    opacity: 0;
    transform: translate(-50%, -150%);
    fill: #fff;
  }
  #theme-toggle {
    width: 3rem;
    height: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    display: block;
    position: absolute;
    top: 0.625rem;
    right: 4.375rem;
    z-index: 1000;
    overflow: hidden;
  }
  #theme-toggle img,
  #theme-toggle svg {
    width: 1.9rem;
    height: 1.9rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  #theme-toggle .cs-moon {
    z-index: 2;
    transition:
      transform 0.3s,
      opacity 0.3s;
  }
  #theme-toggle .cs-sun {
    opacity: 0;
    z-index: 1;
    transform: translate(-50%, 100%);
    transition:
      transform 0.3s,
      opacity 0.3s;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #theme-toggle {
    margin: 0;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }
  #theme-toggle:hover {
    cursor: pointer;
  }
}

/* =========================================
   Header / Navigation
   ========================================= */

/* ---- Theme tokens just for the nav ---- */
:root {
  --nav-bg-light: rgba(255, 255, 255, 0.98);
  --nav-bg-dark: rgba(11, 18, 32, 0.92);
  --nav-shadow-light: 0 6px 20px rgba(0, 0, 0, 0.08);
  --nav-shadow-dark: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* -----------------------------------------
   1) Top bar (always fixed)
   ----------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 12px 16px;

  /* Solid by default on all pages
     (we’ll toggle .nav--transparent on the hero via JS) */
  background: var(--nav-bg-light);
  box-shadow: var(--nav-shadow-light);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
body.dark-mode .nav {
  background: var(--nav-bg-dark);
  box-shadow: var(--nav-shadow-dark);
}
/* Transparent variant only when explicitly added */
.nav.nav--transparent {
  background: transparent;
  box-shadow: none;
}
body.dark-mode .nav.nav--transparent {
  background: transparent;
  box-shadow: none;
}

.nav__bar {
  max-width: 1280px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  display: block;
  height: auto;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Theme toggle (sun/moon swap) */
.nav__theme {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer;
}
.icon-sun {
  display: block;
}
.icon-moon {
  display: none;
}
body.dark-mode .icon-sun {
  display: none;
}
body.dark-mode .icon-moon {
  display: block;
}

/* -----------------------------------------
   2) Burger button (and “X” animation)
   ----------------------------------------- */
.nav__burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2002;
}
.nav__burger-lines {
  position: relative;
  width: 30px;
  height: 3px;
  background: #000;
}
.nav__burger-lines::before,
.nav__burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 3px;
  background: #000;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav__burger-lines::before {
  top: -9px;
}
.nav__burger-lines::after {
  top: 9px;
}

/* Turn burger into an “X” when expanded */
#nav-burger[aria-expanded="true"] .nav__burger-lines {
  background: transparent;
}
#nav-burger[aria-expanded="true"] .nav__burger-lines::before {
  transform: translateY(7px) rotate(45deg);
}
#nav-burger[aria-expanded="true"] .nav__burger-lines::after {
  transform: translateY(-11px) rotate(-45deg);
}
/* Ensure dark text in light mode while expanded */
body:not(.dark-mode)
  #nav-burger[aria-expanded="true"]
  .nav__burger-lines::before,
body:not(.dark-mode)
  #nav-burger[aria-expanded="true"]
  .nav__burger-lines::after {
  background: #000;
}

/* -----------------------------------------
   3) Backdrop + Drawer (mobile default)
   ----------------------------------------- */
#nav-backdrop[hidden],
#nav-drawer[hidden] {
  display: none !important;
}

.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* If the drawer/backdrop is visible, force solid nav for contrast */
.nav:has(#nav-drawer[data-open="true"]),
.nav:has(#nav-backdrop:not([hidden])) {
  background: var(--nav-bg-light);
  box-shadow: var(--nav-shadow-light);
}
body.dark-mode .nav:has(#nav-drawer[data-open="true"]),
body.dark-mode .nav:has(#nav-backdrop:not([hidden])) {
  background: var(--nav-bg-dark);
  box-shadow: var(--nav-shadow-dark);
}

.nav__drawer {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100vw;
  z-index: 999;
  color: #fff;
  padding: 24px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.nav__drawer[data-open="true"] {
  transform: translateX(0);
  background: linear-gradient(159deg, #242e47 0%, #04040a 62%, #0b1220 100%);
}

/* Close (×) button inside drawer */
.nav__close {
  position: absolute;
  top: 20px;
  right: 15px;
  width: 42px;
  height: 40px;
  display: none;
  place-items: center;
  cursor: pointer;
  font-size: 37px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 0.01px solid rgba(255, 255, 255, 0.052);
  border-radius: 999px;
  backdrop-filter: blur(2px);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.nav__close:hover {
  background: rgba(255, 255, 255, 0.133);
}
.nav__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Drawer content */
#nav-drawer > .nav__label {
  display: none !important;
}
.nav__label {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 20px 0 0;
}

.nav__menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav__menu a {
  display: block;
  padding: 12px 0;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font:
    500 1.125rem/1.25 "Bricolage Grotesque",
    sans-serif;
}
.nav__menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__info {
  display: grid;
  gap: 10px;
  color: #e8e8e8;
}
.nav__info a {
  color: #fff;
  text-decoration: none;
}
.nav__info a:hover {
  text-decoration: underline;
}

/* Socials */
#nav-drawer .cs-social {
  display: flex;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
#nav-drawer .cs-social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.15s;
}
#nav-drawer .cs-social-link:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}
#nav-drawer .cs-social-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
#nav-drawer .cs-social-icon.x-icon {
  filter: invert(1) brightness(1.4) contrast(1);
}
#nav-drawer .cs-social-link:hover .cs-social-icon {
  opacity: 1;
}

/* Primary CTA at the bottom of the drawer */
.nav__drawer .nav__cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 24px; /* pushes it off content; “auto” comes from flex */
  font:
    700 1rem/3.5rem "Bricolage Grotesque",
    sans-serif;
  padding: 0 3rem;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s;
}
.nav__drawer .nav__cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0%;
  background: #024b93;
  border-radius: 2rem;
  z-index: -1;
  transition: width 0.3s;
}
/* Hover only on devices that actually hover */
@media (hover: hover) and (pointer: fine) {
  #nav-drawer .nav__cta:hover::before {
    width: 100%;
  }
}
/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
  #nav-drawer .nav__cta::before {
    transition: none;
  }
  #nav-drawer .nav__cta:active {
    transform: scale(0.98);
  }
}

/* -----------------------------------------
   4) Responsive layouts
   ----------------------------------------- */

/* Tablet / Desktop */
@media (min-width: 48rem) {
  .nav__logo img {
    width: clamp(16rem, 10rem + 8.5vw, 22rem);
  }

  /* Backdrop strength on larger screens */
  #nav-backdrop:not([hidden]) {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
  }

  /* Default drawer (off-canvas) geometry at ≥768px */
  .nav__drawer {
    top: 0;
    right: 0;
    left: auto;
    height: 100dvh;
    width: clamp(280px, 85vw, 420px);
    padding: 24px 20px 28px;
    border-radius: 0;
    transform: translateX(100%);
    background: #0b1220;
    z-index: 2001;
  }

  /* When open on desktop: morph into centered panel */
  .nav__drawer[data-open="true"] {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(840px, calc(100vw - 96px));
    max-height: min(60vh, 450px);
    transform: translate(-50%, -50%);
    border-radius: 16px;
    padding: 36px 40px;

    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 40px;
    row-gap: 28px;
    grid-auto-flow: row;
    align-content: center;
    align-items: start;

    background: linear-gradient(159deg, #242e47 0%, #04040a 62%, #0b1220 100%);
    color: #fff;
  }

  .nav__drawer[data-open="true"] .nav__close {
    top: 16px;
    right: 16px;
    display: grid;
  }

  /* Label + menu left column */
  #nav-drawer > .nav__label {
    display: block !important;
  }
  .nav__drawer[data-open="true"] > .nav__label {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 10px 40px;
  }

  .nav__drawer[data-open="true"] > .nav__menu {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 0 0 0 40px;
    gap: 16px;
  }
  .nav__drawer[data-open="true"] > .nav__menu a {
    padding: 0;
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }
  .nav__drawer[data-open="true"] > .nav__menu a:hover {
    background: transparent;
    opacity: 0.85;
    text-decoration: underline;
  }

  /* Info (right column) */
  .nav__drawer[data-open="true"] .nav__info {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    align-content: start;
    gap: 10px;
    margin: 0;
  }
  .nav__drawer[data-open="true"] .nav__info .nav__label {
    margin: 0 0 6px 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.7;
  }
  .nav__drawer[data-open="true"] .nav__info a {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 400;
  }
  .nav__drawer[data-open="true"] .nav__info a:hover {
    text-decoration: underline;
  }
  .nav__drawer[data-open="true"] .nav__info a [href^="tel"] {
    font-weight: 600;
  }
  .nav__drawer[data-open="true"] .nav__info a + .nav__label,
  .nav__drawer[data-open="true"] .nav__info ul + .nav__label {
    margin-top: 14px;
  }

  /* Social sizes on desktop */
  #nav-drawer .cs-social {
    gap: 8px;
    margin-top: 8px;
  }
  #nav-drawer .cs-social-link {
    width: 34px;
    height: 34px;
  }
  #nav-drawer .cs-social-icon {
    width: 16px;
    height: 16px;
  }

  /* CTA placement in right column */
  .nav__drawer[data-open="true"] .nav__cta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    display: inline-block;
    width: auto;
    margin-top: auto;
    height: 50px;
    line-height: 50px;
    padding: 0 22px;
  }

  /* Larger burger bars */
  .nav__actions {
    gap: 1.5rem;
  }
  .nav__burger-lines,
  .nav__burger-lines::before,
  .nav__burger-lines::after {
    width: 34px;
    height: 3px;
  }
  .nav__burger-lines::before {
    top: -10px;
  }
  .nav__burger-lines::after {
    top: 9px;
  }
}

/* Short screens (e.g. iPhone SE height) */
@media (max-height: 770px) {
  .nav__menu a {
    padding: 10px 0;
  } /* was 12px */
  .nav__info {
    gap: 6px;
  } /* was 10px */
  .nav__drawer {
    padding-bottom: 16px;
  } /* was 28px */
}

/* -----------------------------------------
   5) Light/Dark refinements in the drawer
   ----------------------------------------- */
body:not(.dark-mode) .nav__drawer[data-open="true"] {
  background: linear-gradient(159deg, #fff 0%, #fff 31%, #e0f1ff 100%);
  color: #200f0b;
}
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__menu a {
  color: #0b1220;
}
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__menu a:hover {
  background: transparent;
  opacity: 0.8;
}
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__info {
  color: rgba(11, 18, 32, 0.75);
}
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__info a {
  color: #0b1220;
}

/* Socials in light theme (subtle borders) */
body:not(.dark-mode) #nav-drawer .cs-social-link {
  border-color: rgba(11, 18, 32, 0.2);
}
body:not(.dark-mode) #nav-drawer .cs-social-link:hover {
  background: rgba(11, 18, 32, 0.06);
  border-color: rgba(11, 18, 32, 0.45);
}
body:not(.dark-mode) #nav-drawer .cs-social-icon {
  filter: none;
  opacity: 0.9;
}

/* Close button (light) */
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__close {
  color: #484848;
  background: transparent;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
body:not(.dark-mode) .nav__drawer[data-open="true"] .nav__close:hover {
  color: #000;
  background: rgba(11, 18, 32, 0.06);
}

/* Backdrop strengths by theme */
body:not(.dark-mode) #nav-backdrop:not([hidden]) {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.dark-mode #nav-backdrop:not([hidden]) {
  background: rgba(255, 255, 255, 0.5); /* soft light glow */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Logo and burger color in dark mode */
body.dark-mode .nav__logo img {
  filter: grayscale(1) brightness(1000%);
}
body.dark-mode .nav__burger-lines,
body.dark-mode .nav__burger-lines::before,
body.dark-mode .nav__burger-lines::after {
  background: #fff;
}

/* Simplify social icons in the dark drawer (no outlines) */
body.dark-mode #nav-drawer .cs-social-link {
  border: none;
  background: transparent;
}
body.dark-mode #nav-drawer .cs-social-icon {
  opacity: 1;
}
body.dark-mode #nav-drawer .cs-social-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

/* ============================= */
/*          RECENSIONER          */
/* ============================= */

/* Tog bort Media Query för min-width 0 rem. Behövs inte för generell styling */
#reviews-864 {
  /* padding: var(--sectionPadding); */
  padding: 0.8rem 0 !important;
  position: relative;
  z-index: 1;
}
#reviews-864:before {
  content: "";
  width: 100%;
  height: 100%;
  /* background: var(--primary);
  opacity: 0.03; */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
#reviews-864 .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 6vw, 4rem);
}
#reviews-864 .cs-content {
  text-align: center;
  width: 100%;
  max-width: 56.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#reviews-864 .cs-title {
  max-width: 30ch;
}
#reviews-864 .cs-text {
  max-width: 60%;
  color: var(--bodyTextColor);
}
#reviews-864 .cs-card-group {
  display: flex;
  gap: 1rem;
  /* overflow: hidden; */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;

  /* göm scrollbar överallt */
  scrollbar-width: none;

  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
}
#reviews-864 .cs-card-group::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome/Safari/Edge */
}
#reviews-864 .cs-item {
  /* Flexbox med skugga och transition */
  background-color: #fff;
  border-radius: 0 1.5rem 0 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  transition: opacity 0.5s ease;
  /* Tog bort tidigare begränsningar för grid */
  min-width: unset;
  max-width: unset;
  margin: 0;
}
#reviews-864 .cs-flex-group {
  width: 100%;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #fbcebd;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
}
#reviews-864 .cs-profile {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
#reviews-864 .cs-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#reviews-864 .cs-name {
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  line-height: 1.5em;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--headerColor);
  display: block;
}
#reviews-864 .cs-job {
  font-size: 0.875rem;
  line-height: 1.2em;
  font-weight: 400;
  margin: 0;
  color: var(--bodyTextColor);
  display: block;
}
#reviews-864 .cs-review {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.5em;
  margin: 0 0 1.25rem 0;
  max-width: 100%;
  color: var(--bodyTextColor);
}
#reviews-864 .cs-stars {
  width: 6.75rem;
  height: auto;
  margin-bottom: 0.5rem;
  margin-top: auto;
  display: block;
}
#reviews-864 .cs-desc {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.5em;
  color: var(--bodyTextColor);
  text-decoration: underline;
}
/* Punkter för att bläddra på mobil/tablet */
#reviews-864 .cs-pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
#reviews-864 .cs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s ease;
}
#reviews-864 .cs-dot.active {
  background-color: var(--primary);
}
#reviews-864 .cs-quote1,
#reviews-864 .cs-quote2 {
  display: none;
  width: 12.125rem;
  height: auto;
  display: block;
  position: absolute;
  z-index: -1;
}
#reviews-864 .cs-quote1 {
  top: 0;
  left: 0;
}
#reviews-864 .cs-quote2 {
  bottom: 0;
  right: 0;
}

/* Responsivitet */
/* Mobil */
@media only screen and (max-width: 767px) {
  #reviews-864 .cs-text {
    max-width: 95%;
  }
  #reviews-864 .cs-card-group {
    width: calc(100%);
  }
  #reviews-864 .cs-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1099px) {
  /* #reviews-864 .cs-card-group {
    width: calc((50% * 2) + 1rem);
    max-width: 60rem; */
  #reviews-864 .cs-card-group {
    width: 100%; /* was calc((50% * 2) + 1rem) */
    max-width: 100%; /* keep it boxed to the viewport */
    box-sizing: border-box; /* (safe) ensures padding doesn’t add width */
  }
  #reviews-864 .cs-item {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
  }
}

/* Desktop */
@media only screen and (min-width: 1100px) {
  #reviews-864 .cs-container {
    max-width: none;
    width: 100%;
    margin: 0;
    transform: none;
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
  }
  /* #reviews-864 .cs-card-group {
    width: calc((33% * 3) + 2rem);
    max-width: 80rem;
    touch-action: pan-y;
  } */
  #reviews-864 .cs-card-group {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
  }
  #reviews-864 .cs-item {
    /* flex: 0 0 33%; */
    flex: 0 0 clamp(340px, 28vw, 420px);
    max-width: none;
    /* margin: 0; */
  }
  #reviews-864 .cs-pagination-dots {
    cursor: pointer;
  }
}

/* Dark Mode */
body.dark-mode #reviews-864 .cs-topper {
  color: var(--primaryLight);
}
body.dark-mode #reviews-864 .cs-title,
body.dark-mode #reviews-864 .cs-text,
body.dark-mode #reviews-864 .cs-review,
body.dark-mode #reviews-864 .cs-name,
body.dark-mode #reviews-864 .cs-job,
body.dark-mode #reviews-864 .cs-desc {
  color: var(--bodyTextColorWhite);
}
body.dark-mode #reviews-864 .cs-text,
body.dark-mode #reviews-864 .cs-desc {
  opacity: 0.8;
}
body.dark-mode #reviews-864 .cs-item {
  background-color: rgba(0, 0, 0, 0.2);
}
body.dark-mode #reviews-864 .cs-flex-group {
  border-color: var(--accent);
}
body.dark-mode #reviews-864 .cs-quote1,
body.dark-mode #reviews-864 .cs-quote2 {
  opacity: 0.2;
}
body.dark-mode #reviews-864 .cs-topper {
  color: var(--darkmodeTopper);
}

/* Hiding kontakt link in menu on desktop 1024 */
@media (min-width: 1024px) {
  .desktop-hide {
    display: none !important;
  }
}

/* ------------------------------------------------------------- */
/* BARA MOBIL: bara länken är klickbar, korten är “döda”         */
/* ------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  /* Döda all pek‐interaktion på kort‐containern */
  /* #reviews-864 .cs-card-group {
    pointer-events: none;
    touch-action: none;
  } */
  /* Återaktivera pek för just länken .cs-desc */
  /* #reviews-864 .cs-card-group .cs-item .cs-desc {
    pointer-events: auto;
  } */
  #reviews-864 .cs-card-group {
    /* cursor: grab;  */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }
  #reviews-864 .cs-card-group.dragging {
    cursor: grabbing;
  }
}

/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #contact-1392 {
    padding: var(--sectionPadding);
    padding-bottom: 0;
    background-color: #f7f7f7;
    position: relative;
    z-index: 10;
  }
  #contact-1392 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 36.5rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    column-gap: auto;
    /* 48px - 64px */
    gap: clamp(2rem, 3vw, 3rem);
    position: relative;
  }
  #contact-1392 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #contact-1392 .cs-title {
    max-width: 23ch;
  }
  #contact-1392 .cs-text {
    margin-bottom: 1rem;
    max-width: 35ch;
  }
  #contact-1392 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #contact-1392 .cs-ul {
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
  }
  #contact-1392 .cs-li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
  }
  #contact-1392 .cs-li:hover .cs-icon-wrapper {
    transform: scale(1.1);
  }
  #contact-1392 .cs-header {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 0.75rem;
    color: var(--headerColor);
    display: block;
  }
  #contact-1392 .cs-link {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    color: #525252;
    display: block;
    position: relative;
  }
  #contact-1392 .cs-link:hover {
    text-decoration: underline;
  }
  #contact-1392 .cs-icon-wrapper {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #bababa;
    display: flex;
    justify-content: center;
    align-items: center;
    /* prevents flexbox from squishing it */
    flex: none;
    transition: transform 0.3s;
  }
  #contact-1392 .cs-icon {
    width: 1.5rem;
    height: auto;
    display: block;
  }
  #contact-1392 .cs-form {
    width: 100%;
    max-width: 39.375rem;
    /* -30px to -100px */
    margin-bottom: calc(clamp(1.875rem, 7vw, 6.25rem) * -1);
    /* 24px - 48px top and bottom */
    /* 16px - 48px left and right */
    padding: clamp(1.5rem, 5.18vw, 3rem) clamp(1rem, 4vw, 3rem);
    /* prevents flexbox from affecting height and width */
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  #contact-1392 .cs-h3 {
    /* 20px - 39px */
    font-size: clamp(1.25rem, 3vw, 2.4375rem);
    line-height: 1.2em;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--headerColor);
  }
  #contact-1392 .cs-label {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #contact-1392 .cs-input {
    font-size: 1rem;
    width: 100%;
    height: 3.5rem;
    padding: 0;
    padding-left: 1.5rem;
    color: var(--headerColor);
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    border: none;
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
  }
  #contact-1392 .cs-input::placeholder {
    color: #7d799c;
    opacity: 0.6;
  }
  #contact-1392 .cs-textarea {
    min-height: 7.5rem;
    padding-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
  }
  #contact-1392 .cs-button-solid {
    font-size: 1rem;
    line-height: 3.5rem;
    text-decoration: none;
    font-weight: 700;
    overflow: hidden;
    margin: 0;
    color: #fff;
    padding: 0 3rem;
    border-radius: 1.875rem;
    background-color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
  }
  #contact-1392 .cs-button-solid:before {
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #contact-1392 .cs-button-solid:hover {
    color: var(--primary);
  }
  #contact-1392 .cs-button-solid:hover:before {
    width: 100%;
  }
  #contact-1392 .cs-submit {
    width: 100%;
    min-width: 12.5rem;
    border: none;
  }
  #contact-1392 .cs-submit:hover {
    color: #fff;
    cursor: pointer;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #contact-1392 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: space-between;
  }
  #contact-1392 .cs-content {
    width: 47%;
    /* prevents flexbox from squishing it */
    flex: none;
  }
  #contact-1392 .cs-submit {
    width: auto;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #contact-1392 .cs-form {
    width: 46%;
    max-width: 36.125rem;
  }
  #contact-1392 .cs-submit {
    width: auto;
  }
}
/* Large Desktop - 1500px */
@media only screen and (min-width: 93.75rem) {
  #contact-1392 .cs-graphic {
    display: block;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #contact-1392 {
    background-color: rgba(0, 0, 0, 0.2);
  }
  body.dark-mode #contact-1392 .cs-title,
  body.dark-mode #contact-1392 .cs-text,
  body.dark-mode #contact-1392 .cs-header,
  body.dark-mode #contact-1392 .cs-link,
  body.dark-mode #contact-1392 .cs-label,
  body.dark-mode #contact-1392 .cs-h3 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #contact-1392 .cs-contact-text,
  body.dark-mode #contact-1392 .cs-link {
    opacity: 0.8;
  }
  body.dark-mode #contact-1392 .cs-icon-wrapper {
    border-color: #fff;
  }
  body.dark-mode #contact-1392 .cs-icon {
    /* makes it white */
    filter: grayscale(1) brightness(1000%);
  }
  body.dark-mode #contact-1392 .cs-form {
    background-color: var(--medium);
  }
  body.dark-mode #contact-1392 .cs-input {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  body.dark-mode #contact-1392 .cs-input::placeholder {
    color: #fff;
    opacity: 0.8;
  }
  body.dark-mode #contact-1392 .cs-graphic {
    opacity: 0.4;
  }
  body.dark-mode #contact-1392 .cs-topper {
    color: var(--darkmodeTopper);
  }
}

/*-- -------------------------- -->
<---          Footer            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #footer-1392 {
    padding: var(--sectionPadding);
    /* 80px - 100px */
    padding-top: clamp(5rem, 7vw, 6.25rem);
    background-color: #095db0;
    position: relative;
    z-index: 1;
    padding-bottom: 2.5rem;
  }
  #footer-1392 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #footer-1392 .cs-top {
    width: 100%;
    margin-bottom: 2.5rem;
    /* 24px - 64px */
    padding-bottom: clamp(1.5rem, 5vw, 4rem);
    border-bottom: 1px solid #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 24px - 40px */
    gap: clamp(1.25rem, 4vw, 2.5rem);
  }
  #footer-1392 .cs-ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 0.5rem;
    /* 24px - 36px */
    column-gap: clamp(1.5rem, 4vw, 2.25rem);
  }
  #footer-1392 .cs-li {
    list-style: none;
  }
  #footer-1392 .cs-link {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
    text-decoration: none;
    margin: 0;
    color: var(--bodyTextColorWhite);
    display: block;
    transition: color 0.3s;
  }
  #footer-1392 .cs-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.6);
  }
  #footer-1392 .cs-logo {
    width: 100%;
    max-width: 13.0625rem;
    height: auto;
    display: block;
  }
  #footer-1392 .cs-logo-img {
    width: 100%;
    height: auto;
    display: block;
  }
  #footer-1392 .cs-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  #footer-1392 .cs-social {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  #footer-1392 .cs-social-li {
    list-style: none;
  }
  #footer-1392 .cs-social-link {
    width: 2rem;
    height: 2rem;
    background-color: var(--bodyTextColorWhite);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
  }
  #footer-1392 .cs-social-link:hover {
    background-color: rgb(209, 209, 209);
  }
  #footer-1392 .cs-social-link:hover .cs-social-icon {
    filter: grayscale(1) brightness(1000%);
    opacity: 1;
  }
  #footer-1392 .cs-social-icon {
    width: 1.1rem;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
  }
  #footer-1392 .x-icon {
    width: 0.95rem;
  }
  #footer-1392 .cs-copyright {
    font-size: 1rem;
    color: var(--bodyTextColorWhite);
    line-height: 2.5em;
    margin: 0;
    display: block;
  }
  #footer-1392 .cs-copyright-link,
  #footer-1392 .cs-separater {
    font-size: clamp(0.9rem, 1vw, 1rem);
    text-decoration: none;
    color: var(--bodyTextColorWhite);
    transition: color 0.3s;
  }
  #footer-1392 .cs-copyright-link:hover,
  #footer-1392 .cs-separater:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.6);
  }
  #footer-1392 .cs-separater {
    margin: 0 1rem;
    display: inline-block;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #footer-1392 .cs-top {
    align-items: flex-start;
  }
  #footer-1392 .cs-bottom {
    flex-direction: row;
    justify-content: center;
  }
  #footer-1392 .cs-flex {
    margin: 0 auto;
  }
  #footer-1392 .cs-social {
    /* sends it to the right in the 3rd position */
    order: 3;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #footer-1392 {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

/* ==============================
   Footer dropdowns (Mobile-first)
   - Row under footer menu
   - Centered on mobile
   - Drop-down (absolute) so it doesn't push footer
   - 2-column grid
   - Smooth open/close
   ============================== */

@media only screen and (min-width: 0rem) {
  /* Ensure the dropdown can stack above footer content */
  #footer-1392 .cs-top {
    position: relative;
    z-index: 1;
  }

  /* Row placed under your existing .cs-ul */
  #footer-1392 .cs-footer-dd-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
  }

  #footer-1392 .cs-footer-dd {
    position: relative; /* anchor for absolute menu */
  }

  /* Clickable label (summary) */
  #footer-1392 .cs-footer-dd__summary {
    list-style: none;
    cursor: pointer;
    color: var(--bodyTextColorWhite);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
  }

  #footer-1392 .cs-footer-dd__summary:hover {
    color: rgb(225, 225, 225);
  }

  /* Remove default marker */
  #footer-1392 summary::-webkit-details-marker {
    display: none;
  }

  /* Chevron marker */
  #footer-1392 .cs-footer-dd__summary::after {
    content: "▾";
    font-size: 0.9em;
    opacity: 0.9;
    transform: translateY(-1px);
  }

  #footer-1392 details[open] .cs-footer-dd__summary::after {
    content: "▴";
  }

  /* Dropdown menu (absolute => doesn't push footer) */
  #footer-1392 .cs-footer-dd__menu {
    position: absolute;
    top: calc(100% + 0.75rem); /* spacing from the label */
    left: 50%;
    z-index: 9999;

    margin: 0;
    padding: 0.75rem;

    background: #0a4f93;
    border: 1px solid rgba(250, 251, 252, 0.25);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    width: max-content;
    max-width: 90vw;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1.15rem;

    /* Smooth open/close */
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  #footer-1392 details[open] .cs-footer-dd__menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  #footer-1392 .cs-footer-dd__menu li {
    list-style: none;
    margin: 0;
  }

  /* Dropdown items */
  #footer-1392 .cs-footer-dd__menu .cs-link {
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1.25;
  }
}

/* Tablet+ */
@media only screen and (min-width: 48rem) {
  /* Keep logo on its own row */
  #footer-1392 .cs-top {
    align-items: flex-start;
  }

  /* Second row: menu left, dropdowns right */
  #footer-1392 .cs-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  #footer-1392 .cs-ul {
    justify-content: flex-start;
  }

  #footer-1392 .cs-footer-dd-row {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Right-aligned dropdown */
  #footer-1392 .cs-footer-dd__menu {
    top: calc(100% + 0.75rem);
    left: auto;
    right: 0;

    /* Smooth open/close for right-aligned menu */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  #footer-1392 details[open] .cs-footer-dd__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* New form styling code */
.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;
}
