/* ============================================
   APULEIUS — Service Page Styles
   service-page.css
   ============================================ */

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.breadcrumb__link {
  color: var(--c-text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.14px;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--c-primary);
}

.breadcrumb__dot {
  flex-shrink: 0;
}

.breadcrumb__current {
  color: var(--c-text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.14px;
  opacity: 0.7;
}

/* ============================================
   SERVICE HERO
   ============================================ */
.service-hero {
  padding-top: 92px; /* header height */
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  min-height: 771px;
}

.service-hero .hero__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px;
  pointer-events: none;
}

.service-hero .hero__lines .hero__line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #EAEAEA 70%, #F5F5F5 100%);
}

.service-hero__wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 31px;   /* brings breadcrumb below header */
  padding-bottom: var(--section-py);
  position: relative;
  z-index: 2;
}

/* Content row: text + visual */
.service-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 460px;
}

/* Left text block */
.service-hero__text {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 653px;
  flex-shrink: 0;
}

.service-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-hero__title {
  font-family: 'STIX Two Text', serif;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-h1);
  color: var(--c-heading);
  margin: 0;
}

.service-hero__title .text-accent {
  color: var(--c-primary);
}

.service-hero__desc {
  width: 517px;
  color: var(--c-text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
}

.service-hero__text .btn-primary {
  width: fit-content;

}

/* Right visual block */
.service-hero__visual {
  width: 788px;
  height: 460px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  overflow: hidden;
  position: relative;
}

/* Glow */
.service-hero__glow {
  position: absolute;
  width: 918px;
  height: 799px;
  left: 17px;
  top: 34px;
  background: var(--c-primary);
  border-radius: 791px;
  filter: blur(66.3px);
  opacity: 0.12;
  pointer-events: none;
}

/* Hex widget card */
.hex-widget {
  position: absolute;
  left: 122px;
  top: 35px;
  width: 544px;
  height: 391px;
  border-radius: 28px;
  border: 1px dashed #DCDCDC;
  background: var(--c-white);
  opacity: 0.97;
}

.hex-widget__title {
  position: absolute;
  left: 50%;
  top: 23px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--c-heading);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
}

.hex-widget__svg {
  position: absolute;
  left: 138px;
  top: 82px;
}

/* Hex labels */
.hex-label {
  position: absolute;
  color: #696D6E;
  text-align: center;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.14px;
  white-space: nowrap;
}

.hex-label--top    { left: 50%; top: 86px;  transform: translateX(-50%); }
.hex-label--tl     { left: 59px;  top: 122px; }
.hex-label--tr     { right: 44px; top: 122px; text-align: right; }
.hex-label--bl     { left: 0;     bottom: 63px; }
.hex-label--br     { right: 28px; bottom: 63px; text-align: right; }
.hex-label--bottom { left: 50%; bottom: 34px; transform: translateX(-50%); }

/* ============================================
   ABOUT SERVICE SECTION
   ============================================ */
.about-service {
  background: var(--c-white);
  position: relative;
  overflow: hidden;
}

.about-service .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

/* Watermark */
.about-service__watermark {
  position: absolute;
  left: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Header row */
.about-service__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.about-service__header h2 {
  font-family: 'STIX Two Text', serif;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  color: var(--c-heading);
  margin: 0;
  flex-shrink: 0;
}

.about-service__desc {
  width: 923px;
  flex-shrink: 0;
  color: var(--c-text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
}

/* ============================================
   SERVICE CARDS GRID
   ============================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Wide card: spans 2 columns */
.svc-card--wide {
  grid-column: span 2;
}

/* Narrow card: spans 1 column */
.svc-card--narrow {
  grid-column: span 1;
}

/* Card base */
.svc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--c-bg);
  overflow: hidden;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-card__title {
  font-family: 'STIX Two Text', serif;
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-h4);
  color: var(--c-heading);
  margin: 0;
}

.svc-card__desc {
  color: var(--c-text);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  margin: 0;
}

/* Card button — secondary style (white bg, blue border) */
.svc-card__btn {
  display: flex;
  align-self: stretch;
  height: 56px;
  padding: 18px 52px;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-primary);
  background: var(--c-white);
  color: var(--c-heading);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 140%;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.svc-card__btn:hover {
  background: var(--c-primary-bg-hover);
}

.svc-card__btn:active {
  background: var(--c-primary-bg-active);
}

/* ============================================
   MOBILE ADAPTIVE  ≤992px
   ============================================ */
@media (max-width: 992px) {

  /* --- Breadcrumb --- */
  .breadcrumb__current {
    font-size: 12px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* --- Service Hero --- */
  .service-hero {
    min-height: unset;
    padding-top: 62px; /* mobile header height */
  }

  .service-hero .hero__lines .hero__line:nth-child(n+7) {
    display: none;
  }

  .service-hero__wrapper {
    padding-top: 24px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .service-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    min-height: unset;
  }

  .service-hero__text {
    width: 100%;
    gap: 32px;
  }

  .service-hero__title {
    font-size: var(--fs-h1);
  }

  .service-hero__desc {
    width: 100%;
    font-size: 16px;
  }

  /* Hide complex visual on mobile, show simpler version */
  .service-hero__visual {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
  }

  .hex-widget {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 400px;
    height: calc(100% - 32px);
    max-height: 280px;
  }

  .hex-widget__svg {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    transform-origin: center;
  }

  .hex-label {
    display: none;
  }

  /* --- About Service --- */
  .about-service .container {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 32px;
  }

  .about-service__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about-service__desc {
    width: 100%;
    font-size: 16px;
  }

  /* Grid: 1 column on mobile */
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svc-card--wide,
  .svc-card--narrow {
    grid-column: span 1;
  }

  .svc-card {
    gap: 24px;
  }

  .svc-card__btn {
    padding: 16px 24px;
  }

  /* --- Scroll to top --- */
  .scroll-top {
    bottom: 24px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}
