/* --------------------------------------------------------------------------
   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;
  }
}

/* --------------------------------------------------------------------------
   Brand Audits closer look (C2) — quadrant map
   Two labelled axes around a 2×2 grid; the quadrant flagged as the goal is
   filled orange. On mobile the axes become one line of text and the four
   quadrants become slides.
   -------------------------------------------------------------------------- */

.qd {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.qd-axis-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wy-light-text-on-gray);
}

.qd-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.qd-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 28px;
  border-radius: 10px;
  background: var(--wy-alice-blue);
  color: var(--wy-oxford-blue);
  transition: transform var(--wy-dur-fast) var(--wy-ease-out),
    box-shadow var(--wy-dur-fast) var(--wy-ease-out);
}

.qd-cell[data-shade="mist"] {
  background: var(--wy-mist);
}

/* The goal quadrant. #B8411D rather than #D34E24: its tag line is 13px white
   (A2 and Part E). */
.qd-cell[data-goal="true"] {
  background: var(--wy-orange-text);
  color: var(--wy-white);
}

/* The quadrants wait for the axes to finish drawing, and they rise only as
   far as the gap below the grid: the shared 24px would carry the bottom row
   over the x-axis label and hold it there for the length of the reveal,
   which is exactly as long as someone is trying to read it. */
.qd-cell.wy-reveal {
  transition-delay: 500ms;
}

.qd-cell.wy-reveal:not([data-shown="true"]) {
  transform: translateY(12px);
}

/* Only the quadrants you are not aiming for lift; the goal stays put. */
@media (hover: hover) {
  .qd-cell:not([data-goal="true"]):hover {
    transform: translateY(-4px);
    box-shadow: var(--wy-shadow-hover);
  }
}

.qd-t {
  margin: 0;
  font-family: var(--wy-font-head);
  font-weight: 800;
  font-size: 22px;
}

.qd-tag {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.qd-b {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/* Above the grid in the stack, so a cell in flight passes behind the label
   rather than over it. */
.qd-axis-x {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--wy-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wy-light-text-on-gray);
}

/* The axis rules draw themselves as the module reveals. */
.qd-axis-y::after,
.qd-axis-x::after {
  content: "";
  display: block;
  background: var(--wy-carolina-blue);
  opacity: 0.5;
  transition: transform 500ms var(--wy-ease-out);
}

.qd-axis-y::after {
  width: 2px;
  height: 100%;
  margin-right: 8px;
  transform: scaleY(0);
  transform-origin: bottom center;
}

.qd-axis-x::after {
  width: 100%;
  height: 2px;
  margin-top: 8px;
  transform: scaleX(0);
  transform-origin: left center;
}

.qd[data-shown="true"] .qd-axis-y::after {
  transform: scaleY(1);
}

.qd[data-shown="true"] .qd-axis-x::after {
  transform: scaleX(1);
}

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

.qd-lines {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wy-alice-blue);
}

.qd-lines strong {
  color: var(--wy-white);
}

.qd-slide {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 10px;
  background: var(--wy-alice-blue);
  color: var(--wy-oxford-blue);
}

.qd-slide[data-shade="mist"] {
  background: var(--wy-mist);
}

.qd-slide[data-goal="true"] {
  background: var(--wy-orange-text);
  color: var(--wy-white);
}

.qd-slide .qd-t {
  font-size: 20px;
}

.qd-slide .qd-tag {
  font-size: 12px;
  opacity: 1;
}

.qd-slide .qd-b {
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .qd-axis-y::after,
  .qd-axis-x::after {
    transform: none;
    transition: none;
  }
}

