/* =========================================================
   EMARK SERVICES PAGE
   File: /assets/css/services-page.css
   ========================================================= */

:root {
  --sp-blue: #083E7F;
  --sp-blue-dark: #052F61;
  --sp-green: #00A86B;
  --sp-green-dark: #00895A;

  --sp-ink: #172238;
  --sp-text: #606B79;
  --sp-muted: #87919F;

  --sp-line: #E5EBF2;
  --sp-soft: #F7F9FC;
  --sp-white: #FFFFFF;

  --sp-max: 1220px;
}


/* =========================================================
   GENERAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.emark-services-page-hero,
.emark-services-nav,
.emark-service-detail,
.emark-services-cta {
  box-sizing: border-box;
}

.emark-services-page-hero *,
.emark-services-nav *,
.emark-service-detail *,
.emark-services-cta * {
  box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.emark-services-page-hero {
  position: relative;
  overflow: hidden;

  padding: 116px 0 92px;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(0, 168, 107, 0.09),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      #FFFFFF 0%,
      #F8FAFD 100%
    );

  border-bottom: 1px solid var(--sp-line);
}


.emark-services-page-hero::before {
  content: "";

  position: absolute;
  width: 390px;
  height: 390px;

  right: -155px;
  bottom: -230px;

  border: 1px solid rgba(8, 62, 127, 0.06);
  border-radius: 50%;

  pointer-events: none;
}


.emark-services-page-hero__container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(220px, 0.32fr);

  gap: 80px;
  align-items: end;
}


.emark-services-page-hero__content {
  max-width: 850px;
}


.emark-services-page-hero__eyebrow {
  margin: 0 0 17px;

  color: var(--sp-green-dark);

  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.emark-services-page-hero h1 {
  max-width: 14ch;

  margin: 0;

  color: var(--sp-ink);

  font-size: clamp(3rem, 5vw, 4.9rem);
  font-weight: 780;

  line-height: 0.99;
  letter-spacing: -0.048em;

  text-wrap: balance;
}


.emark-services-page-hero__lead {
  max-width: 670px;

  margin: 30px 0 0;

  color: var(--sp-text);

  font-size: 1.08rem;
  line-height: 1.78;
}


/* 07 service areas mark */

.emark-services-page-hero__mark {
  min-height: 170px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 24px;

  background:
    linear-gradient(
      145deg,
      var(--sp-blue-dark),
      var(--sp-blue)
    );

  border-radius: 20px;

  box-shadow:
    0 20px 45px rgba(8, 62, 127, 0.12);
}


.emark-services-page-hero__mark span {
  color: #FFFFFF;

  font-size: 3.1rem;
  font-weight: 780;

  line-height: 1;
  letter-spacing: -0.04em;
}


.emark-services-page-hero__mark small {
  margin-top: 8px;

  color: #9BE7CC;

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================================
   SERVICE NAVIGATOR
   ========================================================= */

.emark-services-nav {
  position: relative;
  z-index: 5;

  background: #FFFFFF;

  border-bottom: 1px solid var(--sp-line);
}


.emark-services-nav__container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;

  display: grid;
  grid-template-columns:
    repeat(7, minmax(0, 1fr));
}


.emark-services-nav a {
  min-width: 0;
  min-height: 116px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 18px 16px;

  color: var(--sp-ink);

  border-right: 1px solid var(--sp-line);

  font-size: 0.79rem;
  font-weight: 720;
  line-height: 1.35;

  text-decoration: none;

  transition:
    background 170ms ease,
    color 170ms ease;
}


.emark-services-nav a:first-child {
  border-left: 1px solid var(--sp-line);
}


.emark-services-nav a span {
  display: block;

  margin-bottom: 9px;

  color: var(--sp-green);

  font-size: 0.65rem;
  font-weight: 850;

  letter-spacing: 0.07em;
}


@media (hover: hover) and (pointer: fine) {

  .emark-services-nav a:hover {
    color: var(--sp-blue);

    background:
      rgba(8, 62, 127, 0.035);
  }

}


/* =========================================================
   SERVICE DETAIL SECTIONS
   ========================================================= */

.emark-service-detail {
  position: relative;

  padding: 96px 0;

  background: #FFFFFF;

  border-bottom: 1px solid var(--sp-line);

  scroll-margin-top: 105px;
}


.emark-service-detail--soft {
  background:
    linear-gradient(
      180deg,
      #F8FAFD 0%,
      #FBFCFE 100%
    );
}


.emark-service-detail__container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;

  display: grid;
  grid-template-columns: 170px minmax(0, 760px);

  gap: 65px;
  justify-content: center;
  align-items: start;
}


/* Large category number */

.emark-service-detail__number {
  position: sticky;
  top: 130px;

  color: rgba(8, 62, 127, 0.09);

  font-size: clamp(4.5rem, 8vw, 7.4rem);
  font-weight: 820;

  line-height: 0.85;
  letter-spacing: -0.07em;

  user-select: none;
}


.emark-service-detail__content {
  min-width: 0;
}


.emark-service-detail__eyebrow {
  margin: 0 0 13px;

  color: var(--sp-green-dark);

  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.emark-service-detail h2 {
  max-width: 760px;

  margin: 0 0 27px;

  color: var(--sp-ink);

  font-size: clamp(2rem, 3vw, 3.05rem);
  font-weight: 770;

  line-height: 1.06;
  letter-spacing: -0.038em;

  text-wrap: balance;
}


.emark-service-detail__content > p:not(.emark-service-detail__eyebrow) {
  max-width: 720px;

  margin: 0 0 17px;

  color: var(--sp-text);

  font-size: 1rem;
  line-height: 1.78;
}


/* =========================================================
   SERVICE AREAS / TAGS
   ========================================================= */

.emark-service-detail__areas {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin-top: 28px;
}


.emark-service-detail__areas span {
  display: inline-flex;
  align-items: center;

  min-height: 35px;

  padding: 7px 12px;

  color: #344054;

  background: #F7F9FC;

  border: 1px solid #E5EBF2;
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 720;
}


/* =========================================================
   DIGITAL FINANCE SECTION
   ========================================================= */

.emark-service-detail--digital {
  color: #FFFFFF;

  background:
    radial-gradient(
      circle at 89% 18%,
      rgba(0, 168, 107, 0.17),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #052F61 0%,
      #083E7F 100%
    );

  border-bottom: 0;
}


.emark-service-detail--digital
.emark-service-detail__number {
  color: rgba(255, 255, 255, 0.08);
}


.emark-service-detail--digital
.emark-service-detail__eyebrow {
  color: #91E5C6;
}


.emark-service-detail--digital h2 {
  color: #FFFFFF;
}


.emark-service-detail--digital
.emark-service-detail__content
> p:not(.emark-service-detail__eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}


.emark-service-detail--digital
.emark-service-detail__areas span {
  color: rgba(255, 255, 255, 0.90);

  background: rgba(255, 255, 255, 0.07);

  border-color:
    rgba(255, 255, 255, 0.12);
}


/* E-Invoicing CTA */

.emark-service-detail__einvoice {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-top: 30px;

  padding: 12px 16px;

  color: #053F2D;

  background: #9AEACB;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;

  font-size: 0.81rem;
  font-weight: 820;

  text-decoration: none;

  transition:
    transform 170ms ease,
    background 170ms ease;
}


.emark-service-detail__einvoice span {
  transition: transform 170ms ease;
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail__einvoice:hover {
    background: #A9EFD5;

    transform: translateY(-2px);
  }


  .emark-service-detail__einvoice:hover span {
    transform: translateX(3px);
  }

}


/* =========================================================
   FINAL CTA
   ========================================================= */

.emark-services-cta {
  padding: 76px 0;

  background: #F7F9FC;

  border-bottom: 1px solid var(--sp-line);
}


.emark-services-cta__container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 50px;

  padding: 38px 42px;

  background: #FFFFFF;

  border: 1px solid var(--sp-line);
  border-radius: 20px;

  box-shadow:
    0 14px 38px rgba(18, 43, 73, 0.045);
}


.emark-services-cta p {
  margin: 0 0 6px;

  color: var(--sp-green-dark);

  font-size: 0.7rem;
  font-weight: 850;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.emark-services-cta h2 {
  margin: 0;

  color: var(--sp-ink);

  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 770;

  line-height: 1.08;
  letter-spacing: -0.035em;
}


.emark-services-cta a {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  padding: 14px 19px;

  color: #FFFFFF;

  background: var(--sp-blue);

  border-radius: 9px;

  font-size: 0.83rem;
  font-weight: 800;

  text-decoration: none;

  transition:
    background 170ms ease,
    transform 170ms ease;
}


.emark-services-cta a span {
  color: #87E3C0;

  transition: transform 170ms ease;
}


@media (hover: hover) and (pointer: fine) {

  .emark-services-cta a:hover {
    background: #06376F;

    transform: translateY(-2px);
  }


  .emark-services-cta a:hover span {
    transform: translateX(3px);
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.emark-services-nav a:focus-visible,
.emark-service-detail__einvoice:focus-visible,
.emark-services-cta a:focus-visible {
  outline: 3px solid rgba(0, 168, 107, 0.30);
  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .emark-services-page-hero__container {
    grid-template-columns:
      minmax(0, 1fr)
      180px;

    gap: 45px;
  }


  .emark-services-nav__container {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }


  .emark-services-nav a {
    border-bottom: 1px solid var(--sp-line);
  }


  .emark-services-nav a:nth-child(5) {
    border-left: 1px solid var(--sp-line);
  }


  .emark-service-detail__container {
    grid-template-columns: 120px minmax(0, 1fr);

    gap: 42px;
  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 820px) {

  .emark-services-page-hero {
    padding: 88px 0 72px;
  }


  .emark-services-page-hero__container {
    grid-template-columns: 1fr;
  }


  .emark-services-page-hero__mark {
    width: 170px;
    min-height: 125px;

    padding: 19px;
  }


  .emark-services-nav__container {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .emark-services-nav a:nth-child(odd) {
    border-left: 1px solid var(--sp-line);
  }


  .emark-service-detail {
    padding: 76px 0;
  }


  .emark-service-detail__container {
    grid-template-columns: 1fr;

    gap: 22px;
  }


  .emark-service-detail__number {
    position: static;

    font-size: 3.7rem;
  }


  .emark-services-cta__container {
    flex-direction: column;
    align-items: flex-start;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .emark-services-page-hero {
    padding: 72px 0 62px;
  }


  .emark-services-page-hero__container,
  .emark-services-nav__container,
  .emark-service-detail__container,
  .emark-services-cta__container {
    width: min(calc(100% - 28px), var(--sp-max));
  }


  .emark-services-page-hero h1 {
    max-width: 100%;

    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }


  .emark-services-page-hero__lead {
    margin-top: 23px;

    font-size: 0.98rem;
  }


  .emark-services-nav__container {
    grid-template-columns: 1fr;
  }


  .emark-services-nav a,
  .emark-services-nav a:first-child,
  .emark-services-nav a:nth-child(5),
  .emark-services-nav a:nth-child(odd) {
    min-height: 72px;

    border-left: 1px solid var(--sp-line);
    border-right: 1px solid var(--sp-line);
  }


  .emark-service-detail {
    padding: 64px 0;

    scroll-margin-top: 90px;
  }


  .emark-service-detail h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }


  .emark-service-detail__content
  > p:not(.emark-service-detail__eyebrow) {
    font-size: 0.96rem;
  }


  .emark-services-cta {
    padding: 55px 0;
  }


  .emark-services-cta__container {
    padding: 27px 23px;

    gap: 28px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  .emark-services-nav a,
  .emark-service-detail__einvoice,
  .emark-service-detail__einvoice span,
  .emark-services-cta a,
  .emark-services-cta a span {
    transition-duration: 0.01ms !important;
  }

}

/* =========================================================
   SERVICES PAGE - APPROACH SECTION
   ========================================================= */

.emark-services-approach {
  padding: 82px 0;

  background: #F7F9FC;

  border-bottom: 1px solid var(--sp-line);
}


.emark-services-approach__container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;
}


.emark-services-approach__intro {
  max-width: 720px;

  margin-bottom: 38px;
}


.emark-services-approach__eyebrow {
  margin: 0 0 11px;

  color: var(--sp-green-dark);

  font-size: 0.7rem;
  font-weight: 850;

  line-height: 1.4;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.emark-services-approach h2 {
  max-width: 680px;

  margin: 0;

  color: var(--sp-ink);

  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 770;

  line-height: 1.06;
  letter-spacing: -0.038em;
}


.emark-services-approach__intro > p:not(.emark-services-approach__eyebrow) {
  max-width: 650px;

  margin: 20px 0 0;

  color: var(--sp-text);

  font-size: 1rem;
  line-height: 1.75;
}


.emark-services-approach__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 12px;
}


.emark-services-approach__steps article {
  min-height: 175px;

  padding: 22px;

  background: #FFFFFF;

  border: 1px solid var(--sp-line);
  border-radius: 15px;
}


.emark-services-approach__steps span {
  display: block;

  margin-bottom: 23px;

  color: var(--sp-green);

  font-size: 0.64rem;
  font-weight: 850;

  letter-spacing: 0.07em;
}


.emark-services-approach__steps h3 {
  margin: 0 0 8px;

  color: var(--sp-ink);

  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.25;
}


.emark-services-approach__steps p {
  margin: 0;

  color: var(--sp-text);

  font-size: 0.82rem;
  line-height: 1.6;
}


/* =========================================================
   SERVICE SCOPE
   ========================================================= */

.emark-service-detail__scope {
  max-width: 720px;

  margin-top: 31px;
  padding-top: 27px;

  border-top: 1px solid var(--sp-line);
}


.emark-service-detail__scope h3 {
  margin: 0 0 16px;

  color: var(--sp-ink);

  font-size: 0.92rem;
  font-weight: 780;

  line-height: 1.3;
}


.emark-service-detail__scope ul {
  margin: 0;
  padding: 0;

  list-style: none;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 9px 26px;
}


.emark-service-detail__scope li {
  position: relative;

  padding-left: 19px;

  color: var(--sp-text);

  font-size: 0.88rem;
  line-height: 1.55;
}


.emark-service-detail__scope li::before {
  content: "";

  width: 6px;
  height: 6px;

  position: absolute;
  left: 0;
  top: 0.62em;

  background: var(--sp-green);

  border-radius: 50%;
}


/* Digital section */

.emark-service-detail--digital
.emark-service-detail__scope {
  border-top-color: rgba(255,255,255,0.13);
}


.emark-service-detail--digital
.emark-service-detail__scope h3 {
  color: #FFFFFF;
}


.emark-service-detail--digital
.emark-service-detail__scope li {
  color: rgba(255,255,255,0.78);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .emark-services-approach__steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 600px) {

  .emark-services-approach {
    padding: 64px 0;
  }


  .emark-services-approach__container {
    width: min(calc(100% - 28px), var(--sp-max));
  }


  .emark-services-approach__steps {
    grid-template-columns: 1fr;
  }


  .emark-services-approach__steps article {
    min-height: 0;
  }


  .emark-service-detail__scope ul {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   SERVICES PAGE V3
   PREMIUM HERO DEPTH + ACTIVE SERVICE NAVIGATION
   ========================================================= */


/* =========================================================
   HERO - 3D SERVICE STACK
   ========================================================= */

.emark-services-hero-visual {
  width: 100%;
  max-width: 350px;
  min-height: 310px;

  position: relative;

  justify-self: end;

  perspective: 1100px;
}


/* Main 3D stage */

.emark-services-hero-visual__stage {
  width: 100%;
  height: 245px;

  position: relative;

  transform-style: preserve-3d;
}


/* Individual floating panels */

.emark-services-hero-panel {
  position: absolute;

  width: 245px;
  min-height: 120px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 20px;

  border-radius: 17px;

  box-shadow:
    0 20px 55px rgba(8, 62, 127, 0.12);

  backface-visibility: hidden;

  transition:
    transform 350ms ease,
    box-shadow 350ms ease;
}


.emark-services-hero-panel > span {
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  font-size: 0.65rem;
  font-weight: 850;
}


.emark-services-hero-panel > div {
  text-align: right;
}


.emark-services-hero-panel small {
  display: block;

  margin-bottom: 5px;

  font-size: 0.57rem;
  font-weight: 850;

  letter-spacing: 0.11em;
}


.emark-services-hero-panel strong {
  display: block;

  font-size: 0.94rem;
  font-weight: 780;

  line-height: 1.22;
}


/* ---------------------------------------------------------
   BACK PANEL
   --------------------------------------------------------- */

.emark-services-hero-panel--back {
  left: 4px;
  top: 20px;

  color: #172238;

  background:
    linear-gradient(
      145deg,
      #FFFFFF 0%,
      #F6F9FC 100%
    );

  border:
    1px solid rgba(8, 62, 127, 0.08);

  transform:
    rotateX(4deg)
    rotateZ(-5deg)
    translateZ(-45px);
}


.emark-services-hero-panel--back > span {
  color: #083E7F;

  background:
    rgba(8, 62, 127, 0.055);

  border:
    1px solid rgba(8, 62, 127, 0.07);
}


.emark-services-hero-panel--back small {
  color: #7A8593;
}


/* ---------------------------------------------------------
   MIDDLE PANEL
   --------------------------------------------------------- */

.emark-services-hero-panel--middle {
  right: 0;
  top: 74px;

  color: #FFFFFF;

  background:
    radial-gradient(
      circle at 88% 17%,
      rgba(0, 168, 107, 0.22),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      #052F61 0%,
      #083E7F 100%
    );

  border:
    1px solid rgba(255,255,255,0.09);

  transform:
    rotateX(2deg)
    rotateZ(3deg)
    translateZ(8px);

  animation:
    emark-service-panel-drift
    8s ease-in-out infinite;
}


.emark-services-hero-panel--middle > span {
  color: #FFFFFF;

  background:
    rgba(255,255,255,0.10);

  border:
    1px solid rgba(255,255,255,0.13);
}


.emark-services-hero-panel--middle small {
  color: #92E7C7;
}


/* ---------------------------------------------------------
   FRONT PANEL
   --------------------------------------------------------- */

.emark-services-hero-panel--front {
  left: 28px;
  top: 132px;

  color: #063E2E;

  background:
    linear-gradient(
      145deg,
      #DDF8EE 0%,
      #A9EFD5 100%
    );

  border:
    1px solid rgba(0,168,107,0.14);

  box-shadow:
    0 24px 58px rgba(8,62,127,0.17);

  transform:
    rotateX(-2deg)
    rotateZ(-2deg)
    translateZ(50px);
}


.emark-services-hero-panel--front > span {
  color: #007A50;

  background:
    rgba(255,255,255,0.48);

  border:
    1px solid rgba(0,168,107,0.11);
}


.emark-services-hero-panel--front small {
  color: #00865A;
}


/* Subtle hover depth */

@media (hover: hover) and (pointer: fine) {

  .emark-services-hero-visual:hover
  .emark-services-hero-panel--back {
    transform:
      rotateX(4deg)
      rotateZ(-7deg)
      translate3d(-7px, -4px, -50px);
  }


  .emark-services-hero-visual:hover
  .emark-services-hero-panel--middle {
    transform:
      rotateX(2deg)
      rotateZ(4deg)
      translate3d(7px, -5px, 10px);
  }


  .emark-services-hero-visual:hover
  .emark-services-hero-panel--front {
    transform:
      rotateX(-2deg)
      rotateZ(-3deg)
      translate3d(-4px, 6px, 58px);
  }

}


/* Slow controlled movement */

@keyframes emark-service-panel-drift {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }

}


/* ---------------------------------------------------------
   STATUS BELOW STACK
   --------------------------------------------------------- */

.emark-services-hero-visual__status {
  width: fit-content;

  display: flex;
  align-items: center;

  gap: 11px;

  margin:
    17px
    0
    0
    auto;

  padding:
    10px
    14px;

  background:
    rgba(255,255,255,0.90);

  border:
    1px solid rgba(8,62,127,0.08);

  border-radius: 12px;

  box-shadow:
    0 12px 30px rgba(18,43,73,0.07);

  backdrop-filter:
    blur(8px);
}


.emark-services-hero-visual__status-dot {
  width: 8px;
  height: 8px;

  flex: 0 0 auto;

  background: #00A86B;

  border-radius: 50%;

  box-shadow:
    0 0 0 5px rgba(0,168,107,0.08);
}


.emark-services-hero-visual__status strong {
  display: block;

  color: #172238;

  font-size: 0.69rem;
  font-weight: 820;

  line-height: 1.25;
}


.emark-services-hero-visual__status small {
  display: block;

  margin-top: 2px;

  color: #7A8593;

  font-size: 0.57rem;
  font-weight: 650;

  letter-spacing: 0.02em;
}


/* =========================================================
   STICKY / ACTIVE SERVICE NAVIGATION
   ========================================================= */

.emark-services-nav {
  position: sticky;

  top: 86px;

  z-index: 20;

  box-shadow:
    0 8px 24px rgba(18,43,73,0.035);
}


.emark-services-nav a {
  position: relative;
}


/* Active service */

.emark-services-nav a.is-active {
  color: #083E7F;

  background:
    linear-gradient(
      180deg,
      rgba(8,62,127,0.045) 0%,
      rgba(0,168,107,0.025) 100%
    );
}


.emark-services-nav a.is-active::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;
  bottom: 0;

  height: 3px;

  background: #00A86B;

  border-radius:
    999px
    999px
    0
    0;
}


.emark-services-nav a.is-active span {
  color: #00A86B;
}


/* Hover arrow-like movement through text shift */

@media (hover: hover) and (pointer: fine) {

  .emark-services-nav a {
    transition:
      color 180ms ease,
      background 180ms ease,
      transform 180ms ease;
  }


  .emark-services-nav a:hover {
    transform: translateY(-2px);
  }

}


/* =========================================================
   SERVICE SECTIONS - EXTRA DEPTH
   ========================================================= */

.emark-service-detail__content {
  position: relative;
}


.emark-service-detail__scope li {
  transition:
    color 170ms ease,
    transform 170ms ease;
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail__scope li:hover {
    color: #344054;

    transform: translateX(3px);
  }


  .emark-service-detail--digital
  .emark-service-detail__scope li:hover {
    color: #FFFFFF;
  }

}


/* Make large numbers feel layered */

.emark-service-detail__number {
  text-shadow:
    0 20px 45px rgba(8,62,127,0.04);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .emark-services-hero-visual {
    max-width: 300px;
  }


  .emark-services-hero-panel {
    width: 215px;
  }

}


@media (max-width: 820px) {

  .emark-services-hero-visual {
    justify-self: start;

    max-width: 330px;

    margin-top: 8px;
  }


  .emark-services-nav {
    position: relative;
    top: auto;
  }

}


@media (max-width: 600px) {

  .emark-services-hero-visual {
    min-height: 270px;

    transform: scale(0.92);
    transform-origin: left top;
  }


  .emark-services-hero-visual__stage {
    height: 220px;
  }


  .emark-services-hero-panel {
    width: 205px;

    min-height: 105px;

    padding: 17px;
  }


  .emark-services-hero-panel--middle {
    top: 62px;
  }


  .emark-services-hero-panel--front {
    top: 118px;
  }


  .emark-services-hero-visual__status {
    margin-left: 0;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .emark-services-hero-panel--middle {
    animation: none;
  }


  .emark-services-hero-panel {
    transition: none;
  }


  .emark-services-nav a,
  .emark-service-detail__scope li {
    transition: none;
  }

}

/* =========================================================
   SERVICE SCOPE - SUBTLE DEPTH
   ========================================================= */

.emark-service-detail__scope li {
  min-height: 48px;

  display: flex;
  align-items: center;

  padding:
    10px
    14px
    10px
    34px;

  background:
    rgba(247, 249, 252, 0.72);

  border:
    1px solid rgba(8, 62, 127, 0.055);

  border-radius: 10px;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}


.emark-service-detail__scope li::before {
  left: 15px;
  top: 50%;

  transform: translateY(-50%);
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail__scope li:hover {
    transform: translateY(-2px);

    background: #FFFFFF;

    border-color:
      rgba(8, 62, 127, 0.10);

    box-shadow:
      0 8px 20px
      rgba(18, 43, 73, 0.045);
  }

}


/* Digital section */

.emark-service-detail--digital
.emark-service-detail__scope li {
  background:
    rgba(255, 255, 255, 0.055);

  border-color:
    rgba(255, 255, 255, 0.10);
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail--digital
  .emark-service-detail__scope li:hover {
    background:
      rgba(255, 255, 255, 0.085);

    border-color:
      rgba(255, 255, 255, 0.16);
  }

}

/* =========================================================
   SERVICE NUMBER - STICKY POSITION FIX
   Keep below header + service navigator
   ========================================================= */

@media (min-width: 1101px) {

  .emark-service-detail__number {
    top: 225px;
  }

  .emark-service-detail {
    scroll-margin-top: 225px;
  }

}

@media (max-width: 1100px) {

  .emark-services-nav {
    position: relative;
    top: auto;
  }

  .emark-service-detail__number {
    position: static;
  }

}

/* =========================================================
   SERVICES PAGE
   BLUE / WHITE SECTION RHYTHM

   01 Blue
   02 White
   03 Blue
   04 White
   05 Blue
   06 White
   07 Digital Blue
   ========================================================= */


/* =========================================================
   STANDARD BLUE SECTIONS
   01 / 03 / 05
   ========================================================= */

.emark-service-detail--blue {
  color: #ffffff;

  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(0, 168, 107, 0.10),
      transparent 27%
    ),
    linear-gradient(
      145deg,
      #052F61 0%,
      #083E7F 100%
    );

  border-bottom-color:
    rgba(255, 255, 255, 0.08);
}


/* Large background number */

.emark-service-detail--blue
.emark-service-detail__number {
  color: rgba(255, 255, 255, 0.075);

  text-shadow:
    0 20px 45px rgba(0, 0, 0, 0.08);
}


/* Eyebrow */

.emark-service-detail--blue
.emark-service-detail__eyebrow {
  color: #8FE8C6;
}


/* Main heading */

.emark-service-detail--blue h2 {
  color: #ffffff;
}


/* Description */

.emark-service-detail--blue
.emark-service-detail__content
> p:not(.emark-service-detail__eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}


/* =========================================================
   WHAT THIS MAY INCLUDE
   ========================================================= */

.emark-service-detail--blue
.emark-service-detail__scope {
  border-top-color:
    rgba(255, 255, 255, 0.13);
}


.emark-service-detail--blue
.emark-service-detail__scope h3 {
  color: #ffffff;
}


.emark-service-detail--blue
.emark-service-detail__scope li {
  color: rgba(255, 255, 255, 0.80);

  background:
    rgba(255, 255, 255, 0.055);

  border-color:
    rgba(255, 255, 255, 0.10);
}


.emark-service-detail--blue
.emark-service-detail__scope li::before {
  background: #8FE8C6;
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail--blue
  .emark-service-detail__scope li:hover {
    color: #ffffff;

    background:
      rgba(255, 255, 255, 0.085);

    border-color:
      rgba(255, 255, 255, 0.16);

    box-shadow:
      0 10px 24px
      rgba(0, 0, 0, 0.08);
  }

}


/* =========================================================
   SERVICE TAGS
   ========================================================= */

.emark-service-detail--blue
.emark-service-detail__areas span {
  color: rgba(255, 255, 255, 0.90);

  background:
    rgba(255, 255, 255, 0.065);

  border-color:
    rgba(255, 255, 255, 0.12);
}


/* =========================================================
   WHITE SECTIONS
   02 / 04 / 06
   ========================================================= */

.emark-service-detail--soft {
  background: #ffffff;
}


/* Keep the large number subtle */

.emark-service-detail--soft
.emark-service-detail__number {
  color: rgba(8, 62, 127, 0.075);
}


/* Slightly separate white sections */

.emark-service-detail--soft {
  border-bottom:
    1px solid #E5EBF2;
}


/* =========================================================
   07 DIGITAL FINANCE
   DIFFERENT FROM STANDARD BLUE SECTIONS
   ========================================================= */

.emark-service-detail--digital {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(0, 168, 107, 0.20),
      transparent 29%
    ),
    radial-gradient(
      circle at 14% 85%,
      rgba(255, 255, 255, 0.045),
      transparent 27%
    ),
    linear-gradient(
      145deg,
      #04284F 0%,
      #083E7F 62%,
      #064C68 100%
    );
}


/* Very subtle digital grid */

.emark-service-detail--digital::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0.22;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );

  background-size: 54px 54px;

  mask-image:
    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.85),
      transparent 72%
    );
}


/* Keep content above the pattern */

.emark-service-detail--digital
.emark-service-detail__container {
  position: relative;
  z-index: 1;
}


/* Digital number */

.emark-service-detail--digital
.emark-service-detail__number {
  color:
    rgba(143, 232, 198, 0.10);
}


/* Digital scope dots */

.emark-service-detail--digital
.emark-service-detail__scope li::before {
  background: #8FE8C6;
}


/* E-Invoicing CTA slightly stronger */

.emark-service-detail--digital
.emark-service-detail__einvoice {
  color: #053F2D;

  background:
    linear-gradient(
      135deg,
      #B5F3DC 0%,
      #8FE8C6 100%
    );

  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, 0.10);
}


@media (hover: hover) and (pointer: fine) {

  .emark-service-detail--digital
  .emark-service-detail__einvoice:hover {
    background:
      linear-gradient(
        135deg,
        #C3F6E3 0%,
        #9DECCE 100%
      );

    transform:
      translateY(-2px);
  }

}