/*========================================
=              Huvudsida                 =
========================================*/

/*========================================
=               Banner                   =
========================================*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #ekonomi #banner-2287 {
    padding: var(--sectionPadding);
    padding-top: clamp(11.875rem, 25vw, 17.5rem);
    padding-bottom: 8rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #ekonomi #banner-2287 .cs-container {
    text-align: center;
    width: 100%;
    max-width: 45rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  #ekonomi #banner-2287 .cs-int-title {
    font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
    font-weight: 600;
    line-height: 1.2em;
    text-align: inherit;
    margin: 0 0 1rem;
    color: var(--white);
    position: relative;
  }
  #ekonomi #banner-2287 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #ekonomi #banner-2287 .cs-background:before {
    content: "";
    width: 100%;
    height: 100%;
    background: var(--dark);
    opacity: 0.72;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 1;
  }
  #ekonomi #banner-2287 .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
  }
}

/*========================================
=                Inledning               =
========================================*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #ekonomi #sbs-2348 {
    padding: var(--sectionPadding);
    padding-bottom: clamp(6.25rem, 8vw, 12.5rem);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #ekonomi #sbs-2348 .cs-container {
    width: 100%;
    max-width: 112.5rem;
    margin: auto;
    padding: clamp(1rem, 5vw, 5rem);
    box-sizing: border-box;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  #ekonomi #sbs-2348 .cs-content {
    text-align: left;
    width: 100%;
    max-width: 47.875rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
  }
  #ekonomi #bsbs-2348 .cs-text {
    text-align: inherit;
    margin-bottom: clamp(3.75rem, 7vw, 7.5rem);
    max-width: 43.75rem;
    color: var(--white);
  }
  #ekonomi #sbs-2348 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #ekonomi #sbs-2348 .cs-picture {
    width: 100%;
    height: 95vw;
    max-height: 28.125rem;
    display: block;
    order: -1;
    position: relative;
    z-index: 1;
  }
  #ekonomi #sbs-2348 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
  }
  #ekonomi #sbs-2348 .cs-button-solid {
    min-width: 12rem;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #ekonomi #sbs-2348 .cs-container {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }
  #ekonomi #sbs-2348 .cs-content {
    padding: clamp(1rem, 6vw, 1rem) 0;
  }
  #ekonomi #sbs-2348 .cs-picture {
    width: 43vw;
    height: auto;
    margin-top: 1rem;
    max-height: 100%;
    max-width: 50.625rem;
    flex: none;
  }
}

/*========================================
=                Tjänster                =
========================================*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #ekonomi #sbs-2348 .cs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 112.5rem;
    margin: 2rem auto 0 auto;
    padding: 0 clamp(1rem, 5vw, 5rem);
    box-sizing: border-box;
  }
  #ekonomi #sbs-2348 .cs-service {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
  }
  #ekonomi #sbs-2348 .cs-service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  #ekonomi #sbs-2348 .cs-service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
  }
  #ekonomi #sbs-2348 .cs-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin: 0;
  }
  #ekonomi #sbs-2348 .cs-service-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray, #555);
    margin: 0;
  }
  #ekonomi #sbs-2348 .em {
    color: var(--gray, #555);
    text-decoration: none;
  }
  #ekonomi #sbs-2348 .em:hover {
    color: var(--secondary);
  }
  #ekonomi #sbs-2348 .cs-service .cs-button-more {
    margin: 0;
    justify-self: start;
    align-self: end;
  }
}

/* Tablet -768px */
@media only screen and (min-width: 48rem) {
  #ekonomi #sbs-2348 .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*========================================
=              Undersidor                =
========================================*/

/*========================================
=               Banner                   =
========================================*/

#banner {
  padding: var(--sectionPadding);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1f1f1f 0%, #282828 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 15rem;
}
#banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/images/ekonomi-undersidor.webp") no-repeat
    center/cover;
  opacity: 0.15;
  z-index: 0;
}
#banner .container {
  max-width: 80rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 48rem) {
  #banner {
    min-height: 25rem;
  }
}

/*========================================
=        Undersides-navigering           =
========================================*/

#subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem;
}
#subnav .subnav-wrapper {
  width: 100%;
  overflow: hidden;
}
#subnav .subnav-track {
  display: flex;
  transition: transform 0.3s ease;
}
#subnav .subnav-track.no-animate {
  transition: none !important;
}
#subnav .nav-arrow:disabled {
  cursor: default;
  opacity: 0.3 !important;
}
#subnav .subnav-link {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  color: #333;
  opacity: 0.85;
  transition: 0.2s ease;
  text-align: center;
}
#subnav .subnav-link:hover {
  opacity: 1;
}
#subnav .subnav-link.active {
  color: var(--secondary);
  opacity: 1;
  font-weight: 600;
  position: relative;
}
#subnav .subnav-link.active::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--secondary);
  left: 0;
  bottom: -2px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
#subnav .nav-arrow {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s ease;
}
#subnav .nav-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #333;
  stroke-width: 3;
  fill: none;
}

@media (min-width: 40.625rem) {
  #subnav .subnav-wrapper {
    overflow: visible;
  }
  #subnav .subnav-track {
    transform: none !important;
    justify-content: center;
  }
  #subnav .nav-arrow {
    display: none !important;
  }
}

@media (max-width: 40.625rem) {
  #subnav .nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #subnav .subnav-track {
    justify-content: flex-start !important;
  }
  #subnav .subnav-link {
    flex: 0 0 50%;
    white-space: normal;
    padding: 0.75rem 0.3rem 0.75rem 0;
  }
  #subnav .subnav-link.active::after {
    content: none;
  }
  #subnav .subnav-wrapper {
    width: 100%;
    max-width: none;
  }
}

/*========================================
=                Intro                   =
========================================*/

#intro {
  padding: var(--sectionPadding);
  background: #f2f7fc;
}
#intro .container {
  max-width: 75rem;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
#intro .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#intro .text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  min-width: 100%;
}
#intro .text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}
#intro .image img {
  width: 100%;
  border-radius: 0 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  object-fit: cover;
}

@media (min-width: 48rem) and (max-width: 56rem) {
  #intro .text {
    padding: 0 2.5rem;
  }
  #intro .image {
    display: flex;
    align-items: flex-start;
  }
  #intro .image img {
    height: auto;
    max-height: 300px;
    width: 100%;
    display: block;
    object-fit: cover;
  }
}

@media (min-width: 56.25rem) {
  #intro .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
  }
  #intro {
    padding: clamp(3rem, 5vw, 5rem);
  }
}

/*========================================
=               Features                 =
========================================*/

#features {
  padding: clamp(2rem, 4vw, 3rem);
  background: #ffffff;
}
#features .container {
  max-width: 75rem;
  margin: auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
#features .feature {
  text-align: center;
  padding: 1rem;
}
#features .icon {
  width: 48px;
  opacity: 0.75;
  margin-bottom: 1rem;
}
#features h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 36rem) {
  #features .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*========================================
=               Innehåll                 =
========================================*/

#content {
  padding: var(--sectionPadding);
  background: #f2f7fc;
}
#content .container {
  max-width: 75rem;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
#content .image {
  width: 100%;
  border-radius: 2rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  height: 100%;
  object-fit: cover;
}
#content .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#content h2 {
  font-size: 2rem;
  margin: 1rem 0;
  line-height: 1.3;
  min-width: 100%;
}
#content ul {
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media (min-width: 48rem) and (max-width: 56rem) {
  #content .text {
    width: 80%;
    padding: 0 2.5rem;
  }
  #content .image {
    height: auto;
    max-height: 320px;
    width: 100%;
    display: block;
    object-fit: cover;
  }
}

@media (min-width: 56.25rem) {
  #content .container {
    grid-template-columns: 1.1fr 1.3fr;
    gap: 4rem;
  }
  #content {
    padding: clamp(3rem, 5vw, 5rem);
  }
}

/*========================================
=                  CTA                   =
========================================*/

#cta {
  padding: 4rem 1rem;
  background: #282828;
  color: var(--white);
  text-align: center;
}
#cta .container {
  max-width: 50rem;
  margin: auto;
}
#cta h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
#cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}
