/* =========================================================
   Implemented page — Adon "service-details" hero + shared
   footer, plus a GSAP MotionPath "delivery journey" that
   plots a curved path through 10 milestone waypoints.
   Reuses template tokens from style.css (+ #FFD80C accent).
   ========================================================= */

/* Hero photo frame (matches the Innovated hero treatment). */
.hero-area-service-details .section-thumb {
  overflow: hidden;
  border-radius: 16px;
}
.hero-area-service-details .section-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Journey section ----------------------------------- */
.imp-head {
  max-width: 920px;
  margin-bottom: 40px;
}
.imp-head .section-subtitle {
  color: var(--primary); /* not yellow: this eyebrow sits on a white bg (legibility) */
  display: inline-block;
  margin-bottom: 22px;
}

.imp-track {
  position: relative;
}

/* The ball that hops from one milestone card to the next (positioned by GSAP).
   It arcs through the empty centre gutter, so it never overlaps card content. */
.imp-ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFD80C;
  border: 4px solid var(--white);
  box-shadow: 0 12px 28px rgba(255, 216, 12, 0.6);
  pointer-events: none;
  z-index: 3;
}

/* nodes stack down the page, alternating sides */
.imp-nodes {
  position: relative;
  z-index: 1;
}
.imp-node {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
}
.imp-node.is-left  { justify-content: flex-start; }
.imp-node.is-right { justify-content: flex-end; }

.imp-card {
  position: relative;
  overflow: hidden;              /* clip the oversized ghost index number */
  width: 42%;
  padding: 32px 34px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
/* card content sits above the ghost number */
.imp-icon, .imp-title, .imp-text, .imp-result, .imp-tag { position: relative; z-index: 1; }
.imp-card:hover {
  border-color: #FFD80C;
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -30px rgba(17, 17, 17, 0.45);
}

/* Black / white / yellow: boxes alternate tone. Yellow accents only on the
   dark cards. On light cards accents are black (ponytail: never yellow-on-white). */
.imp-card.is-dark  { background: #111111; color: #ffffff; border-color: rgba(255, 255, 255, 0.14); }
.imp-card.is-light { background: #ffffff; color: #111111; border-color: rgba(17, 17, 17, 0.30); }

.imp-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--primary);            /* light card: black icon */
}
.imp-card.is-dark .imp-icon { color: #FFD80C; }   /* dark card: yellow icon */
.imp-icon svg { width: 100%; height: 100%; }

/* Big ghost index number, bleeding off the top-right corner, behind the content. */
.imp-num {
  position: absolute;
  top: -34px;
  right: 12px;
  z-index: 0;
  font-family: var(--font_bdogrotesk);
  font-size: clamp(120px, 13vw, 190px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--primary);            /* light card: dark ghost */
  opacity: 0.08;
  pointer-events: none;
}
.imp-card.is-dark .imp-num { color: #FFD80C; opacity: 0.12; } /* dark card: faint yellow ghost */
.imp-title {
  font-family: var(--font_bdogrotesk);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: inherit;
  margin: 10px 0 0;
}
.imp-text {
  font-size: 18px;
  line-height: 1.62;
  margin: 16px 0 0;
  color: #4a4a4a; /* legible grey on the white cards */
}
.imp-card.is-dark .imp-text { color: #f2f2f2; } /* bright on the black cards (no translucency) */
.imp-result {
  display: block;
  margin-top: 18px;
  font-family: var(--font_bdogrotesk);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--primary);            /* light card: black */
}
.imp-card.is-dark .imp-result { color: #FFD80C; }  /* dark card: yellow pops */
.imp-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: inherit;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 100px;
  opacity: 0.85;
}

/* ----- Mobile / tablet: drop the path, simple stacked list ----- */
@media (max-width: 991px) {
  .imp-ball { display: none; }
  .imp-node { min-height: 0; display: block; margin-bottom: 22px; }
  .imp-card { width: 100%; }
}

/* Delivery-journey lead line (weaves the earlier career in prose, not cards) */
.imp-lead {
  font-family: var(--font_opensans);
  font-size: clamp(16px, 1rem + 0.2vw, 19px);
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.7);
  max-width: 640px;
  margin: 18px 0 0;
}
