/* Local-only responsive refinement for the functional contact section. */
.lm-functional-contact {
  padding-top: 88px;
  padding-bottom: 76px;
}

.lm-contact-heading {
  gap: 56px;
  margin-bottom: 38px;
}

.lm-contact-card {
  min-height: 260px;
  padding: 30px 30px 26px;
}

.lm-contact-number {
  margin-bottom: 30px;
}

/* Architectural contact cards: reuse the outlined number language from the
   Laboratories / Hospitals / Education panels and the line-art character of
   the service cards. The pattern is CSS-only, keeping image assets untouched. */
.lm-contact-card {
  isolation: isolate;
  background-color: #f7f8f6;
  background-image:
    linear-gradient(135deg, transparent 0 49.82%, rgba(36, 48, 46, .055) 49.9%, rgba(36, 48, 46, .055) 50.1%, transparent 50.18%),
    linear-gradient(90deg, rgba(36, 48, 46, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 48, 46, .035) 1px, transparent 1px);
  background-position: center;
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

.lm-contact-card h3,
.lm-contact-card p {
  position: relative;
  z-index: 2;
}

.lm-contact-card .lm-contact-link {
  z-index: 2;
}

.lm-contact-number {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  margin: 0;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(36, 48, 46, .17);
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif !important;
  font-size: clamp(96px, 8.4vw, 142px) !important;
  font-weight: 300 !important;
  line-height: .82 !important;
  letter-spacing: -.07em !important;
  pointer-events: none;
  user-select: none;
}

.lm-contact-card:hover {
  background-color: #eef1ed;
  background-image:
    linear-gradient(135deg, transparent 0 49.82%, rgba(36, 48, 46, .06) 49.9%, rgba(36, 48, 46, .06) 50.1%, transparent 50.18%),
    linear-gradient(90deg, rgba(36, 48, 46, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 48, 46, .04) 1px, transparent 1px);
}

.lm-contact-card:hover .lm-contact-number {
  -webkit-text-stroke-color: rgba(249, 120, 40, .34);
}

.lm-contact-card h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 1.65vw, 27px);
}

.lm-contact-link {
  left: 30px;
  bottom: 18px;
}

@media (max-width: 1024px) and (min-width: 761px) {
  .lm-functional-contact {
    padding: 68px 4vw 60px;
  }

  .lm-contact-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .lm-contact-heading h2 {
    font-size: clamp(34px, 4.4vw, 46px);
  }

  .lm-contact-heading p {
    font-size: 15px;
    line-height: 1.55;
  }

  .lm-contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lm-contact-card {
    min-height: 270px;
    padding: 26px 22px 24px;
    border-right: 0;
    border-bottom: 0;
  }

  .lm-contact-card:last-child {
    border-right: 1px solid var(--lm-line);
  }

  .lm-contact-number {
    top: 20px;
    right: 20px;
    margin: 0;
    font-size: clamp(82px, 11vw, 116px) !important;
  }

  .lm-contact-card h3 {
    margin-bottom: 12px;
    font-size: clamp(20px, 2.55vw, 24px);
  }

  .lm-contact-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .lm-contact-link {
    left: 22px;
    bottom: 15px;
  }
}

@media (max-width: 760px) {
  .lm-functional-contact {
    padding: 56px 20px 48px;
  }

  .lm-contact-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .lm-contact-heading h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .lm-contact-heading p {
    font-size: 15px;
    line-height: 1.55;
  }

  .lm-contact-cards {
    grid-template-columns: 1fr;
  }

  .lm-contact-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "number title"
      ". copy"
      ". action";
    column-gap: 14px;
    min-height: 0;
    padding: 22px 20px 18px;
    border-right: 1px solid var(--lm-line);
    border-bottom: 1px solid var(--lm-line);
  }

  .lm-contact-card:last-child {
    border-bottom: 0;
  }

  .lm-contact-number {
    grid-area: number;
    position: static;
    align-self: start;
    margin: 3px 0 0;
    color: var(--lm-orange) !important;
    -webkit-text-fill-color: var(--lm-orange);
    -webkit-text-stroke: 0;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: .14em !important;
  }

  .lm-contact-card h3 {
    grid-area: title;
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
  }

  .lm-contact-card p {
    grid-area: copy;
    max-width: none;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .lm-contact-link {
    position: static;
    grid-area: action;
    justify-self: start;
    min-height: 44px;
    padding: 9px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-contact-card {
    transition: none;
  }
}
/* lm-content-specific-contact-motifs */
.lm-contact-card:nth-child(1) {
  --lm-contact-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%2324302e' stroke-width='1.5' opacity='.11'%3E%3Crect x='42' y='48' width='152' height='76' rx='7'/%3E%3Cpath d='M70 124L42 149L51 124'/%3E%3Crect x='118' y='105' width='154' height='72' rx='7'/%3E%3Cpath d='M241 177L268 200L260 177'/%3E%3Cpath d='M70 79H164M70 96H143M145 136H239M145 153H218'/%3E%3Ccircle cx='67' cy='79' r='3' fill='%2324302e'/%3E%3Ccircle cx='142' cy='136' r='3' fill='%2324302e'/%3E%3C/g%3E%3C/svg%3E");
}
.lm-contact-card:nth-child(2) {
  --lm-contact-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%2324302e' stroke-width='1.5' opacity='.11'%3E%3Cpath d='M160 37L255 90L160 143L65 90Z'/%3E%3Cpath d='M65 90V175L160 228L255 175V90M160 143V228M112 116L207 63M208 116L113 63'/%3E%3Cpath d='M43 43H277M43 37V49M277 37V49M38 66V199M32 66H44M32 199H44'/%3E%3Ccircle cx='160' cy='143' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.lm-contact-card:nth-child(3) {
  --lm-contact-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%2324302e' stroke-width='1.5' opacity='.11'%3E%3Ccircle cx='194' cy='101' r='59'/%3E%3Ccircle cx='194' cy='101' r='25'/%3E%3Cpath d='M194 25V51M194 151V177M118 101H144M244 101H270M140 47L158 65M230 137L248 155M248 47L230 65M158 137L140 155'/%3E%3Cpath d='M63 194L155 102M53 204L76 200L58 182Z'/%3E%3Cpath d='M140 88L168 116'/%3E%3C/g%3E%3C/svg%3E");
}
.lm-contact-card,
.lm-contact-card:hover {
  background-color: #f7f8f6;
  background-image:
    var(--lm-contact-motif),
    linear-gradient(90deg, rgba(36,48,46,.032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36,48,46,.032) 1px, transparent 1px) !important;
  background-repeat: no-repeat, repeat, repeat !important;
  background-position: right 24px center, center, center !important;
  background-size: 53% auto, 64px 64px, 64px 64px !important;
}
.lm-contact-card:hover {
  background-color: #eef1ed;
}
/* lm-original-blueprint-contact-background */
.lm-functional-contact {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.84)),
    url("/__labmodul_original_blueprint.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* lm-hide-contact-card-numbers */
.lm-contact-number {
  display: none !important;
}
