/* ==========================================================================
   Component — Icons (v0.4.8)
   --------------------------------------------------------------------------
   Original line icons (24px grid, 1.75 stroke, same weight as the link
   arrows) added with CSS only, so no page markup changes and no extra
   requests beyond one small SVG each. They are decorative: drawn on
   pseudo-elements, hidden from assistive technology by definition, and
   coloured with the current accent (teal on light, light teal on dark).
   Logical properties only (RTL-safe). Files: /assets/icons/*.svg.

   Where they appear (purposeful, not everywhere):
   1. Service index (home + Services page)   one icon per service
   2. Process (every "how we work" row)      discover, plan, make, launch, improve
   3. Contact details                        email, message
   4. Role split (AI + people panels)        sparkles / eye
   ========================================================================== */

/* Shared icon box. --icon is set per use. */
.service-index__main::before,
.process__title::before,
.contact-details__label::before,
.role-split__title::before {
  content: "";
  display: block;
  flex: none;
  background-color: var(--color-accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* 1. Service index: icon above the service name */
.service-index__main::before {
  inline-size: 2rem;
  block-size: 2rem;
  margin-block-end: var(--space-1);
}

.service-index__item:nth-child(1) .service-index__main::before { --icon: url("../../icons/target.svg"); }
.service-index__item:nth-child(2) .service-index__main::before { --icon: url("../../icons/pen.svg"); }
.service-index__item:nth-child(3) .service-index__main::before { --icon: url("../../icons/search.svg"); }
.service-index__item:nth-child(4) .service-index__main::before { --icon: url("../../icons/browser.svg"); }
.service-index__item:nth-child(5) .service-index__main::before { --icon: url("../../icons/sparkles.svg"); }
.service-index__item:nth-child(6) .service-index__main::before { --icon: url("../../icons/play.svg"); }

/* 2. Process: small icon before each stage title */
.process__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.process__title::before {
  inline-size: 1.25em;
  block-size: 1.25em;
}

.process__step:nth-child(1) .process__title::before { --icon: url("../../icons/search.svg"); }
.process__step:nth-child(2) .process__title::before { --icon: url("../../icons/compass.svg"); }
.process__step:nth-child(3) .process__title::before { --icon: url("../../icons/pen.svg"); }
.process__step:nth-child(4) .process__title::before { --icon: url("../../icons/send.svg"); }
.process__step:nth-child(5) .process__title::before { --icon: url("../../icons/refresh.svg"); }

/* 3. Contact details */
.contact-details__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-details__label::before {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.contact-details__item:nth-child(1) .contact-details__label::before { --icon: url("../../icons/mail.svg"); }
.contact-details__item:nth-child(2) .contact-details__label::before { --icon: url("../../icons/chat.svg"); }

/* 4. AI + people panels */
.role-split__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.role-split__title::before {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

.role-split__panel:nth-child(1) .role-split__title::before { --icon: url("../../icons/sparkles.svg"); }
.role-split__panel:nth-child(2) .role-split__title::before { --icon: url("../../icons/eye.svg"); }
