/*!***************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/styles/main.scss ***!
  \***************************************************************************************************************/
@import url(https://use.typekit.net/hbn6cff.css);
/*!*******************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/styles/main.scss (1) ***!
  \*******************************************************************************************************************/
/* reset styles */
* {
  color: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  color: #0E0E0E;
}

html {
  min-width: 100%;
  margin: 0 !important;
}

img.style-svg {
  display: none;
}

body {
  width: 100%;
  color: #FFFFFF;
  background-color: #FFFFFF;
  position: relative;
  margin: auto;
  overflow-x: clip;
}

ul {
  padding: 0;
  list-style-type: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  width: 100%;
  object-fit: cover;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 600;
}

h3 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 600;
}

h4 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
}
@media (max-width: 767px) {
  h4 {
    font-size: 1.5rem;
  }
}

h6 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 600;
}

p {
  text-wrap: pretty;
  max-width: 65ch;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 300;
}
@media (max-width: 767px) {
  p {
    font-size: 1rem;
  }
}

.p-sm {
  text-wrap: pretty;
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 300;
}
@media (max-width: 1024px) {
  .p-sm {
    font-size: 0.7rem;
  }
}

main {
  display: grid;
  width: 100%;
  margin: 0 auto;
  grid-auto-flow: row dense;
  --space-lr: 4rem;
  --column-gap: 0rem;
  --row-gap: 2rem;
  --col-count: 12;
  --wrapper-width: 1920px;
  column-gap: var(--column-gap);
  row-gap: var(--row-gap);
  grid-template-columns: 1fr repeat(var(--col-count), calc((min(100% - var(--space-lr) * 2, var(--wrapper-width)) - var(--col-count) * var(--column-gap)) / var(--col-count))) 1fr;
}
@media (max-width: 1024px) {
  main {
    --space-lr: 2rem;
    --column-gap: 0rem;
    --row-gap: 2rem;
    --col-count: 6;
  }
}
@media (max-width: 767px) {
  main {
    --space-lr: 1rem;
    --column-gap: 0rem;
    --row-gap: 1rem;
    --col-count: 2;
  }
}

.full-width, .ref-footer, .referenser, .service, .about, .hero {
  grid-column: 2/14;
}
@media (max-width: 1024px) {
  .full-width, .ref-footer, .referenser, .service, .about, .hero {
    grid-column: 2/8;
  }
}
@media (max-width: 767px) {
  .full-width, .ref-footer, .referenser, .service, .about, .hero {
    grid-column: 2/4;
  }
}

.padding-width, .ref-foot, .referens, .service, .about, .hero {
  padding: 0 var(--space-lr);
}

.red-span {
  color: #B50013;
}

.red-underline {
  text-decoration: underline;
  -webkit-text-decoration: underline;
  text-decoration-color: #B50013;
  -webkit-text-decoration-color: #B50013;
}

img.style-svg {
  display: none;
}

.space-between, header .header-bar {
  display: flex;
  justify-content: space-between;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  width: 100vw;
  background-color: #FFFFFF;
  top: 0;
  left: 0;
  z-index: 9999;
}
header .header-bar {
  align-items: center;
  padding: 2rem 4rem;
  margin: 0 auto;
  z-index: 999999;
}
header .header-bar img {
  margin-bottom: -4px;
}
header .header-bar p {
  line-height: 1;
}
@media (max-width: 1024px) {
  header .header-bar {
    padding: 1rem 2rem;
  }
}
@media (max-width: 767px) {
  header .header-bar {
    padding: 0.5rem 1rem;
  }
}
header .header-bar .contact-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background-color: #B50013;
  border-radius: 10px;
  overflow: hidden;
  padding: 0.8rem 1.5rem 0.6rem;
}
header .header-bar .contact-btn .contact-close {
  position: absolute;
}
header .header-bar .contact-btn p {
  color: #FFFFFF;
}
header .header-bar .contact-btn:hover {
  background-color: #97000f;
}
@media (max-width: 767px) {
  header .header-bar .contact-btn {
    padding: 0.75rem 1.5rem 0.75rem;
  }
  header .header-bar .contact-btn:hover {
    background-color: #B50013;
  }
}
header img {
  width: 150px;
  object-fit: contain;
}
@media (max-width: 767px) {
  header img {
    width: 80px;
  }
}
header .main-navigation {
  width: 100%;
  height: 100svh;
  position: fixed;
  z-index: -3;
  top: 0;
  left: 0;
  display: none;
  justify-content: end;
  align-items: center;
}
header .content-area {
  width: 100%;
  max-width: 800px;
  height: 60%;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  color: #0E0E0E;
  justify-content: space-evenly;
}
@media (max-width: 1024px) {
  header .content-area {
    max-width: 100%;
    padding: 0 2rem;
  }
}
@media (max-width: 767px) {
  header .content-area {
    padding: 0 2rem;
  }
}
header .content-area h1 {
  color: #0E0E0E;
}
header .content-area hr {
  border-style: solid;
  border: 2px solid #B50013;
}
header .content-area a:hover {
  color: #B50013;
}
header .content-area span {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
header .background {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -2;
  backdrop-filter: blur(10px);
  background: linear-gradient(to right, transparent 0%, white 100%);
  -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 1024px) {
  header .background {
    background: linear-gradient(to left, transparent 0%, white 100%);
  }
}

footer {
  display: flex;
  flex-direction: row;
  gap: 64px;
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
  margin-bottom: -10px;
}
footer p {
  font-size: 14px;
}
@media (max-width: 767px) {
  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 10px;
  }
}
footer .footer-content-1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
@media (max-width: 1024px) {
  footer .footer-content-1 p {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  footer .footer-content-1 {
    align-items: center;
  }
  footer .footer-content-1 p {
    font-size: 10px;
  }
}
footer .footer-content-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}
@media (max-width: 1024px) {
  footer .footer-content-2 p {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  footer .footer-content-2 {
    justify-content: center;
    align-items: center;
    margin-left: 0;
    margin-top: 10px;
  }
  footer .footer-content-2 p {
    font-size: 10px;
  }
}

.bg-img {
  position: fixed;
  top: 0;
  left: 0;
  height: 100lvh;
  width: 100%;
  z-index: -1;
  object-position: top center;
}

h2, p {
  color: #0E0E0E;
}

.hero {
  display: flex;
  align-items: end;
  min-height: 80vh;
  z-index: -1;
}
.hero h1 {
  color: #FFFFFF;
}

.section-chapter {
  display: flex;
  width: fit-content;
  align-items: center;
}
.section-chapter svg {
  width: 8px;
}
.section-chapter svg line {
  stroke: #B50013;
  stroke-width: 8px;
}
.section-chapter .chapter-title {
  height: fit-content;
  mask-image: linear-gradient(to left, black 50%, transparent 50%);
  mask-size: 200% 100%;
  mask-position: 100% 0;
  padding: 12px 24px;
}

.white-card, .ref-foot, .referens, .service, .about {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  padding-top: 5%;
  padding-bottom: 5%;
}

.about {
  justify-content: space-between;
  display: flex;
  margin-top: 5%;
  gap: 64px;
}
@media (max-width: 767px) {
  .about {
    display: block;
    margin-top: 20%;
  }
}
@media (max-width: 1024px) {
  .about {
    display: block;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  justify-content: center;
  align-items: flex-start;
  width: 50%;
}
@media (max-width: 1024px) {
  .about-content {
    width: 100%;
    gap: 32px;
  }
}

.info-right-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: auto;
  width: 50%;
}
@media (max-width: 1024px) {
  .info-right-wrapper {
    width: 100%;
    margin-top: 32px;
  }
}

.crane-wrapper {
  position: relative;
  max-width: 451px;
  max-height: 559px;
  width: 100%;
  height: auto;
  margin: auto;
}
@media (max-width: 1024px) {
  .crane-wrapper {
    width: 80%;
    height: 80%;
    margin-top: 32px;
  }
}

.crane-wrapper rect {
  stroke: none;
}

.crane-wrapper svg:not(.crane-diagram) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crane-diagram {
  z-index: 2;
}
.crane-diagram g {
  opacity: 0.95;
}

.crane-grid {
  z-index: 1;
}
.crane-grid line {
  stroke: #0E0E0E;
  opacity: 0.2;
  stroke-width: 0.5px;
}

.crane-numbers {
  z-index: 3;
  opacity: 0.2;
  fill: #0E0E0E;
}

.crane-numbers path {
  fill: #0E0E0E;
}

.crane-crane {
  z-index: 4;
}
.crane-crane g {
  opacity: 1;
}

.crane-popover {
  z-index: 5;
  opacity: 1;
}

.crane-popover circle, .crane-popover line {
  stroke: #727272;
}

.crane-popover path {
  fill: #727272;
}

.svg-line {
  stroke: #B50013;
  stroke-width: 16px;
}

.service {
  display: flex;
  height: auto;
  flex-direction: column;
  margin-bottom: 2%;
  justify-content: space-between;
}
.service .service-body {
  display: flex;
  gap: 64px;
  margin-top: auto;
}
@media (max-width: 767px) {
  .service .service-body {
    flex-direction: column;
    gap: 32px;
  }
}
@media (max-width: 1024px) {
  .service .service-body {
    flex-direction: column;
    gap: 32px;
  }
}
.service .service-content {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 64px;
}
@media (max-width: 1024px) {
  .service .service-content {
    gap: 32px;
  }
}
.service .service-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service .service-box p {
  margin-top: 12px;
}
.service .service-box-wrapper {
  flex: 1;
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (max-width: 1024px) {
  .service .service-box-wrapper {
    margin-bottom: 15%;
  }
}

.ref-btn-1 {
  display: flex;
  justify-content: center;
  width: 40%;
  background-color: #B50013;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 12px;
}
.ref-btn-1:hover {
  background-color: #97000f;
}
@media (max-width: 767px) {
  .ref-btn-1 {
    display: none;
  }
}

.ref-btn-2 {
  display: none;
}
@media (max-width: 767px) {
  .ref-btn-2 {
    display: flex;
    justify-content: center;
    background-color: #B50013;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
  }
}

.info-svg-line {
  stroke: #B50013;
  stroke-width: 3px;
}

body:has(.ref) {
  background-image: url("https://ferms.tribius.se/wp-content/uploads/2024/09/Ferms-hero-HD.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

h2, p {
  color: #0E0E0E;
}

.hero {
  display: flex;
  align-items: end;
  height: 80vh;
  z-index: -1;
}
.hero h1, .hero p {
  color: #FFFFFF;
}

.white-card, .ref-foot, .referens, .about, .service {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
}

.referenser {
  display: grid;
}

.referens {
  justify-content: space-between;
  display: flex;
  min-height: 80vh;
  gap: 64px;
  margin-bottom: 2%;
}
@media (max-width: 767px) {
  .referens {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 1024px) {
  .referens {
    display: flex;
    flex-direction: column;
  }
}

.ref-footer {
  display: grid;
}

.ref-foot {
  height: auto;
  margin-bottom: 4%;
}

.referens-content-l {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-start;
  width: 50%;
}
.referens-content-l span {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.referens-content-l p {
  max-width: 60ch;
}
@media (max-width: 767px) {
  .referens-content-l {
    width: 100%;
    gap: 32px;
  }
}
@media (max-width: 1024px) {
  .referens-content-l {
    width: 100%;
    gap: 32px;
  }
}

.referens-content-r {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 50%;
  height: 100%;
}
@media (max-width: 1024px) {
  .referens-content-r {
    width: 100%;
  }
}
.referens-content-r img {
  object-fit: cover;
  height: 100%;
  border-radius: 1rem;
}
.referens-content-r .large-image {
  grid-area: 1/1/3/2;
}
.referens-content-r .small-image:nth-child(1) {
  grid-area: 1/2/2/3;
}
.referens-content-r .small-image:nth-child(2) {
  grid-area: 2/2/3/3;
}

@media (max-width: 1200px) {
  #btn-hide {
    display: none;
  }
}

.btn-container {
  display: flex;
  gap: 1rem;
  z-index: 2;
}
.btn-container .circular-button {
  position: relative;
  width: 70px;
  height: 70px;
}
.btn-container .progress-svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(180deg); /* Start at center-left (9 o'clock) */
}
.btn-container .progress-svg .progress-circle {
  stroke: #B50013;
}
.btn-container .center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  transform: translate(-50%, -50%);
}
.btn-container .center-icon path {
  fill: #0E0E0E;
}

.chapter-title-ref {
  display: flex;
  align-items: center;
  height: fit-content;
}
.chapter-title-ref .title-container {
  display: flex;
  flex-direction: column;
  margin-left: 25px;
}
.chapter-title-ref h1, .chapter-title-ref h2 {
  margin: 0;
}
.chapter-title-ref p {
  margin-top: 10px;
  color: #FFFFFF;
  max-width: 55ch;
}
