/* --------------------------------------------------------------------------
   Service page tokens — Part A of the build spec.
   Every service-page component imports this, so the colours, type and motion
   values live in one place rather than being retyped thirty times. Each
   component's root element carries the .wy class alongside its own.

   These are plain custom properties, so a Webflow variable set on an ancestor
   can still override one: a custom property set outside the component
   inherits through the shadow boundary.
   -------------------------------------------------------------------------- */

.wy {
  /* A1 · The content band. Every component fills the width it is given and
     centres its own content inside this cap. */
  --wy-max: 1440px;

  /* A2 · Colour tokens */
  --wy-oxford-blue: #07274b;
  --wy-syracuse-orange: #d34e24;
  --wy-orange-text: #b8411d;
  --wy-polynesian-blue: #0e4c92;
  --wy-celestial-blue: #469dc8;
  --wy-carolina-blue: #84bcda;
  --wy-payne-gray: #4c5870;
  --wy-cool-gray: #929db5;
  --wy-alice-blue: #e0edf5;
  --wy-ice-blue: #f0f6fa;
  --wy-ice-white: #fcfcfc;
  --wy-white: #ffffff;
  --wy-eerie-black: #1e2019;
  --wy-light-text-on-gray: #bfddee;
  --wy-slate-panel: #3d475b;
  --wy-slate-panel-2: #2f394b;
  --wy-navy-panel: #0e2f57;
  --wy-navy-panel-2: #0b3360;
  --wy-line-on-navy: #2a5a8c;
  --wy-mist: #c7d0de;
  --wy-slate-dot: #8d97a8;
  --wy-peach-tint: #fbe7df;
  --wy-sky-tint: #b3d4e8;

  /* A3 · Typography */
  --wy-font-head: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wy-font-body: Aptos, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* A6 · Motion */
  --wy-dur-fast: 150ms;
  --wy-dur-base: 250ms;
  --wy-dur-reveal: 600ms;
  --wy-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wy-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --wy-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* A4 · Shadows and focus */
  --wy-shadow-hover: 0 12px 28px rgba(7, 39, 75, 0.14);
  --wy-focus: var(--wy-carolina-blue);

  box-sizing: border-box;
  font-family: var(--wy-font-body);
  /* Webflow mounts each component in a <code-island style="display: contents">,
     so this element becomes a direct child of whatever section it was dropped
     into. In a flex or grid parent a block would shrink to its content and sit
     against the left edge; a definite width keeps it full width in all three
     layout modes. */
  width: 100%;
}

/* A1 · The centred 1440px band. A root that paints a full-bleed background
   stays 100% wide and puts this on its inner wrapper instead; a root that is
   itself the content box carries it directly. No side padding here, so it
   never doubles up with the padding of a Webflow container it sits inside. */
.wy-band {
  width: 100%;
  max-width: var(--wy-max);
  margin-inline: auto;
}

.wy *,
.wy *::before,
.wy *::after {
  box-sizing: border-box;
}

/* A4 · one focus ring everywhere. On dark panels a component sets
   --wy-focus: #fff on the element that owns the dark background. */
.wy :focus-visible {
  outline: 3px solid var(--wy-focus);
  outline-offset: 2px;
}

/* A6 · scroll reveal. The element starts shifted and transparent and is
   released by the shared observer (reveal.ts) adding data-shown. Transform
   and opacity only, so it stays on the compositor. */
.wy-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--wy-dur-reveal) var(--wy-ease-out),
    transform var(--wy-dur-reveal) var(--wy-ease-out);
}

.wy-reveal[data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* A6 · reduced motion: no translate, scale or drawing; elements sit at their
   end state. Colour and opacity changes may stay, at 150ms or less. */
@media (prefers-reduced-motion: reduce) {
  .wy-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   'A closer look' shell (spec C0)
   The gray band every closer-look module sits in: eyebrow, H2 and intro, an
   optional pre-box of checklist lines, the module itself, optional note chips
   and an optional italic footer line.

   The section paints its own full-bleed background and carries all of the
   spacing; .cl-inner carries the shared .wy-band, which centres the content
   and caps it at 1440px. Keeping the two apart means the 4vw side gutter is
   measured from the edge of the page at every width, instead of from the
   edge of a band that has already stopped growing.
   -------------------------------------------------------------------------- */

.cl {
  display: block;
  padding: 96px 4vw;
  background: var(--wy-payne-gray);
  color: var(--wy-ice-white);
  /* Focus rings go white on this background (A4). */
  --wy-focus: var(--wy-white);
}

.cl-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cl-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.cl-eyebrow {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wy-light-text-on-gray);
}

.cl-h2 {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 39.06px;
  line-height: 1.2;
}

.cl-intro {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
}

/* ---------- Optional pre-box ---------- */

.cl-pre {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 10px;
  background: var(--wy-ice-white);
  color: var(--wy-oxford-blue);
}

.cl-pre-title {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 20px;
}

.cl-pre-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
}

.cl-tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--wy-syracuse-orange);
  border-radius: 4px;
}

.cl-pre-note {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: var(--wy-payne-gray);
}

/* ---------- Optional note chips ---------- */

.cl-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--wy-carolina-blue);
  border-radius: 10px;
}

.cl-notes-title {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--wy-white);
}

.cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-chip {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.4;
}

/* No width cap: the line sits under a module that spans the whole band, and
   a cap two thirds of the way across broke it at a spot that read as an
   accident rather than a measure. */
.cl-footer {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  color: var(--wy-alice-blue);
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .cl {
    padding: 56px 4vw;
  }

  .cl-inner {
    gap: 24px;
  }

  .cl-head {
    gap: 10px;
  }

  .cl-eyebrow {
    font-size: 12px;
  }

  .cl-h2 {
    font-size: 28px;
  }

  .cl-intro {
    font-size: 17px;
  }

  .cl-pre {
    gap: 12px;
    padding: 22px;
  }

  .cl-pre-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .cl-pre-item {
    font-size: 16px;
  }

  /* On mobile the note is a footnote under a rule, not an aside. */
  .cl-pre-note {
    padding-top: 12px;
    border-top: 1px solid var(--wy-alice-blue);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    color: var(--wy-orange-text);
  }

  .cl-notes {
    gap: 10px;
    padding: 18px;
  }

  .cl-notes-title {
    font-size: 16px;
  }

  .cl-chips {
    gap: 8px;
  }

  .cl-chip {
    padding: 7px 12px;
    border-radius: 16px;
    font-size: 14px;
  }

  .cl-footer {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Service slider (spec B3)
   Mobile behaviour only: at 767px and below the slides become a swipeable
   track that bleeds into the right page gutter so the next card peeks. Above
   that the same slides lay out as the desktop grid.

   Note the deliberate difference from the Slider Carousel component: this one
   wraps, so both arrows stay enabled at the ends.
   -------------------------------------------------------------------------- */

:host {
  display: block;
}

.sl {
  --sl-w: 86%;
  --sl-gap: 12px;
  --sl-i: 0;

  --sl-control: var(--wy-oxford-blue);
  --sl-control-hover: var(--wy-alice-blue);
  --sl-dot-on: var(--wy-syracuse-orange);
  --sl-dot-off: var(--wy-mist);
  --sl-count: var(--wy-payne-gray);

  position: relative;
  width: 100%;
}

/* Light controls sit on the gray closer-look section and the navy results
   band; Dark controls on white and pale blue. */
.sl[data-theme="light"] {
  --sl-control: var(--wy-white);
  --sl-control-hover: rgba(255, 255, 255, 0.12);
  --sl-dot-on: var(--wy-white);
  --sl-dot-off: var(--wy-slate-dot);
  --sl-count: var(--wy-alice-blue);
  --wy-focus: var(--wy-white);
}

.sl-viewport {
  overflow: hidden;
  /* The only place content touches the screen edge: it reaches into the
     20px page gutter so the next card shows. */
  margin-right: -20px;
}

.sl-track {
  display: flex;
  gap: var(--sl-gap);
  align-items: stretch;
  transform: translateX(calc(var(--sl-i) * -1 * (var(--sl-w) + var(--sl-gap))));
  transition: transform 0.35s ease;
}

/* While a finger is dragging the track follows it, with no transition. */
.sl[data-dragging="true"] .sl-track {
  transition: none;
}

.sl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.sl-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--sl-control);
  border-radius: 50%;
  background: transparent;
  color: var(--sl-control);
  cursor: pointer;
  transition: background-color var(--wy-dur-fast) var(--wy-ease-out),
    transform 100ms var(--wy-ease-out);
}

@media (hover: hover) {
  .sl-arrow:hover {
    background: var(--sl-control-hover);
  }
}

.sl-arrow:active {
  transform: scale(0.94);
}

.sl-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sl-dots {
  display: flex;
  gap: 6px;
}

.sl-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--sl-dot-off);
  transition: width 200ms var(--wy-ease-out), background-color 200ms var(--wy-ease-out);
}

.sl-dot[data-on="true"] {
  width: 20px;
  background: var(--sl-dot-on);
}

.sl-count {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sl-count);
}

/* One slide: nothing to page through. */
.sl[data-single="true"] .sl-controls {
  display: none;
}

.sl[data-single="true"] .sl-viewport {
  margin-right: 0;
}

/* Above mobile the track is the desktop grid and the controls go away. The
   per-slide widths are inline styles, applied and cleared in JS, because
   Webflow delivers every slide inside one wrapper that ::slotted cannot
   see past. */
.sl[data-mode="grid"] .sl-viewport {
  overflow: visible;
  margin-right: 0;
}

.sl[data-mode="grid"] .sl-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sl-min, 280px), 1fr));
  gap: var(--sl-grid-gap, 20px);
  transform: none;
  transition: none;
}

.sl[data-mode="grid"] .sl-controls {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sl-track,
  .sl-dot,
  .sl-arrow {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Versus columns (spec C1, C24)
   Two columns — the common way on the left, the wYrks way on the right —
   with an optional label on each row. On mobile each row becomes one slide
   with the two sides stacked.
   -------------------------------------------------------------------------- */

.vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.vs-head {
  padding: 22px 28px;
  border-radius: 10px 10px 0 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vs-head[data-side="a"] {
  background: var(--wy-slate-panel);
  color: var(--wy-mist);
}

/* The wYrks column's header is 15px uppercase white, so it takes the darker
   orange (A2 and Part E). */
.vs-head[data-side="b"] {
  background: var(--wy-orange-text);
  color: var(--wy-white);
}

.vs-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 28px;
}

.vs-cell[data-side="a"] {
  background: var(--wy-slate-panel);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vs-cell[data-side="b"] {
  background: var(--wy-ice-white);
  border-top: 1px solid var(--wy-alice-blue);
}

.vs-cell[data-last="true"][data-side="a"] {
  border-radius: 0 0 0 10px;
}

.vs-cell[data-last="true"][data-side="b"] {
  border-radius: 0 0 10px 0;
}

.vs-label {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vs-cell[data-side="a"] .vs-label {
  color: var(--wy-light-text-on-gray);
}

.vs-cell[data-side="b"] .vs-label {
  color: var(--wy-orange-text);
}

.vs-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.vs-cell[data-side="a"] .vs-text {
  color: var(--wy-alice-blue);
}

.vs-cell[data-side="b"] .vs-text {
  font-weight: 600;
  color: var(--wy-oxford-blue);
}

/* Cells arrive from their own side of the table. */
.vs-cell[data-side="a"] {
  --vs-from: -16px;
}

.vs-cell[data-side="b"] {
  --vs-from: 16px;
}

.vs-cell.wy-reveal {
  transform: translateX(var(--vs-from));
}

.vs-cell.wy-reveal[data-shown="true"] {
  transform: none;
}

/* ---------- Mobile: one row per slide ---------- */

.vs-slide {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}

.vs-slide-label {
  margin: 0;
  padding: 10px 16px;
  background: var(--wy-oxford-blue);
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wy-light-text-on-gray);
}

.vs-slide-part {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

.vs-slide-part[data-side="a"] {
  background: var(--wy-slate-panel);
}

.vs-slide-part[data-side="b"] {
  background: var(--wy-ice-white);
  border-left: 5px solid var(--wy-syracuse-orange);
}

.vs-slide-head {
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vs-slide-part[data-side="a"] .vs-slide-head {
  color: var(--wy-mist);
}

.vs-slide-part[data-side="b"] .vs-slide-head {
  color: var(--wy-orange-text);
}

.vs-slide-text {
  font-size: 16px;
  line-height: 1.45;
}

.vs-slide-part[data-side="a"] .vs-slide-text {
  color: var(--wy-alice-blue);
}

.vs-slide-part[data-side="b"] .vs-slide-text {
  font-weight: 600;
  color: var(--wy-oxford-blue);
}

@media (prefers-reduced-motion: reduce) {
  .vs-cell.wy-reveal {
    transform: none;
  }
}

