/* ================================
   SERVICE PAGE — FINAL CSS (USING :root TOKENS)
================================ */
/* body.service-forms {
  main #content.content-selector {
    width: 50%;
    .row {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
  main #area-3.content-selector {
    width: 50%;
    .row {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }

} */

.service-forms h2::after {
    content: "";
    display: block;
    width: var(--size-title-line-width, 80px);
    height: var(--size-title-line-height, 4px);
    background-color: var(--clr-accent);
    margin: var(--space-title-line-top, 25px) auto 25px;
}

.service-forms .button {
    margin: 25px 0px;
}

.button {
    margin: 20px 0px;
}

.button .textcontent>div {
    justify-content: center;
    display: flex;
}

.button a {
    background-color: var(--clr-accent);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--br-button);
    line-height: 1.4;
    height: auto;
    display: flex;
    width: fit-content;
}

/* Reduce bottom padding */
body.service:not(.service-forms) #content {
  padding-bottom: 30px;
}

/* ===== TOP CONTENT ===== */
body.service .group-our-services-types .line-title-center h3 {
  text-align: center;
  margin: 0 0 14px;
  font-size: var(--fs-28);
  font-weight: var(--fw-bold);
  color: var(--fc-primary);
}

body.service .group-our-services-types .our-servise-type-desc * {
  text-align: center;
  color: var(--clr-comments-text);
  font-size: var(--fs-400);
  line-height: var(--lh-1-6);
}

/* ===== AREA 2 ===== */
body.service:not(.service-forms) #area-2 {
  padding: 0;
  background: var(--clr-primary-white);
}

/* Grid wrapper — NO SIDE PADDING */
body.service #area-2 .wrapper-col-link-service-cat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 0;
}

@media (max-width: 1048px) {
  body.service #area-2 .wrapper-col-link-service-cat {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 1475px) {
body.service .collection_list.col-link-service-cat .collection_container {
    min-height: 540px !important;
}
}


@media (max-width: 1192px) {
body.service .collection_list.col-link-service-cat .collection_container {
    min-height: 610px !important;
}
}

@media (max-width: 532px) {
body.service .collection_container:hover .col-link-service-cat-title {
    top: 11% !important;
}
body.service .collection_container:hover .col-link-service-cat-title-2 {
    top: calc(13% + 52px) !important;
}

body.service .col-link-service-cat-desc {
    top: 28% !important;
}

body.service .col-link-service-cat-desc {
    width: calc(100% - 30px) !important;
}

body.service .service-cta {
    width: min(495px, calc(100% - 30px)) !important;
}

}


@media (max-width: 366px) {
    body.service .collection_list.col-link-service-cat .collection_container {
        min-height: 689px !important;
    }
}


/* ===== CARD BASE ===== */
body.service .collection_list.col-link-service-cat {
  width: 100%;
  padding: 0;
  margin: 0;
}

body.service .collection_list.col-link-service-cat .collection_container {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  padding: 0;
  background: var(--clr-primary-dark);
  box-shadow: var(--shadow);
}

/* Image */
body.service .col-link-service-cat-bild {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  margin: 0;
}

body.service .col-link-service-cat-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}
body.service #area-2 .map_container {
  position: relative;
  z-index: 5;
}

#area-2 .wrapper-col-link-service-cat .collection_container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--overlay-mid);
    transition: background 0.35s ease;
}


/* ===== TITLES ===== */
body.service .col-link-service-cat-title,
body.service .col-link-service-cat-title-2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 80px);
  text-align: center;
  color: var(--fc-white);
  transition: top 0.45s ease;
}

/* Main title */
body.service .col-link-service-cat-title {
  top: 44%;
  font-size: var(--fs-news-title);
  font-weight: var(--fw-bold);
}

body.service .col-link-service-cat-title::after {
  content: "";
  display: block;
  width: var(--size-title-line-width);
  height: var(--size-title-line-height);
  background: var(--clr-accent);
  border-radius: 999px;
  margin: 12px auto 0;
}

/* Subtitle */
body.service .col-link-service-cat-title-2 {
  top: calc(44% + 52px);
  font-size: var(--fs-600);
  font-weight: var(--fw-bold);
}

/* ===== DESCRIPTION (HIDDEN DEFAULT) ===== */
body.service .col-link-service-cat-desc {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%) translateY(16px);
  z-index: 3;
  width: calc(100% - 120px);
  text-align: center;
  color: var(--fc-white);
  font-size: var(--fs-600);
  line-height: var(--lh-1-5);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

/* ===== SERVICE CTA (FULL CLICKABLE, NO OVERLAP) ===== */
body.service .service-cta {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  z-index: 4;

  width: min(495px, calc(100% - 120px));
  background: var(--clr-primary-white);
  border-radius: var(--br-keyfact);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

/* Title (first line) */
body.service .service-cta__title {
  position: relative;
  z-index: 2;

  display: inline-block;
  color: var(--clr-accent);
  font-size: var(--fs-600);
  font-weight: var(--fw-bold);
  line-height: var(--lh-1-2);
  text-decoration: none;
}

/* Make the whole CTA clickable */
body.service .service-cta__title::before {
  content: "";
  position: absolute;
  inset: -14px -18px; /* equals .service-cta padding */
  z-index: -1;
}

/* Tag (always under title) */
body.service .service-cta__tag {
  position: relative;
  z-index: 2;

  font-size: var(--fs-400);
  line-height: var(--lh-1-2);
  color: var(--clr-accent);
  pointer-events: none;
}

/* ===== HOVER STATE ===== */
body.service .collection_container:hover .col-link-service-cat-title {
  top: 18%;
}

body.service .collection_container:hover .col-link-service-cat-title-2 {
  top: calc(18% + 52px);
}

body.service .collection_container:hover .col-link-service-cat-desc {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.service .collection_container:hover .service-cta {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.service .collection_container:hover::before {
  background: var(--overlay-dark);
}

body.service .collection_container:hover img {
  transform: scale(1.06);
}

/* Hide area-9 on service page */
body.service #area-9 {
  display: none !important;
}



@media (max-width: 1199.98px) {
  .button.left,
  .button.right {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .button {
    margin: 10px 0 !important;
  }
}