/* ===========================================================================
   AB Groundwork — page components
   These styles are shared by the static preview markup and by the native
   Elementor containers, which carry the same class names.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   0. Elementor normalisation
   Elementor containers are reduced to transparent layout boxes so the classes
   below own all spacing, colour and flow. Nothing here needs Elementor Pro.
   --------------------------------------------------------------------------- */

.ab-site .elementor-widget { margin: 0; min-width: 0; }
.ab-site .elementor-widget-container { height: 100%; }

.ab-site .elementor-heading-title {
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.ab-site h1.elementor-heading-title { font-size: var(--ab-t-h1); letter-spacing: -0.042em; line-height: 1.06; color: var(--ab-green); font-weight: 600; }
.ab-site h2.elementor-heading-title { font-size: var(--ab-t-h2); letter-spacing: -0.038em; line-height: 1.12; color: var(--ab-green); font-weight: 600; }
.ab-site h3.elementor-heading-title { font-size: var(--ab-t-h3); letter-spacing: -0.022em; line-height: 1.22; color: var(--ab-green); font-weight: 600; }
.ab-site h4.elementor-heading-title { font-size: var(--ab-t-h4); letter-spacing: -0.015em; line-height: 1.3; color: var(--ab-green); font-weight: 600; }

.ab-site :is([data-surface="dark"], .ab-on-dark) .elementor-heading-title { color: var(--ab-white); }

.ab-site .elementor-widget-text-editor {
  font-family: var(--ab-sans);
  font-weight: inherit;
  color: inherit;
}

/*
 * Elementor's own container variables, neutralised. These are set at normal
 * specificity because no component class below ever touches them.
 */
.ab-site .e-con {
  --container-widget-width: 100%;
  --container-widget-flex-grow: 0;
  --gap: 0px;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --margin-top: 0px;
  --margin-bottom: 0px;
  --margin-left: 0px;
  --margin-right: 0px;
}

/*
 * The layout reset is wrapped in :where() so it contributes no specificity of
 * its own. Elementor's `.e-con { display: flex }` is beaten because this
 * stylesheet is enqueued after Elementor's (see functions.php), and every
 * component class further down this file beats it on source order alone —
 * without needing an .ab-site prefix or !important on a hundred rules.
 */
.ab-site :where(.e-con) {
  display: block;
  padding: 0;
  margin: 0;
  gap: 0;
  min-width: 0;
  width: auto;
  flex: none;
}

.ab-site .e-con.e-con-full { width: 100%; }
.ab-site :where(.e-con-inner) { max-width: none; padding: 0; display: contents; }

/*
 * Layout classes restated for the Elementor container context.
 *
 * style.css defines .wrap, .section and .section-tight for ordinary theme
 * markup. Those rules are single-class selectors, and the :where(.e-con)
 * reset above is also 0-1-0 but lives in THIS file, which WordPress loads
 * after style.css — so on an Elementor container the reset wins and the
 * spacing silently disappears. The HTML fallback has no .e-con at all, so
 * the discrepancy is invisible in the static preview: .section-tight simply
 * stopped applying, and consecutive sections butted together with zero gap.
 *
 * Each class therefore needs a container-context twin here. The VALUES live
 * once, as tokens in style.css, so the two cannot drift.
 * check-build.ps1 fails the build if a class gains a style.css layout rule
 * without a twin below.
 */
.ab-site .e-con.wrap {
  width: 100%;
  max-width: calc(var(--ab-max) + var(--ab-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--ab-gutter);
}

.ab-site .e-con.section       { padding-block: var(--ab-section); }
.ab-site .e-con.section-tight { padding-block: var(--ab-section-tight); }

/* ---------------------------------------------------------------------------
   1. HERO
   A single fixed headline over a slow image rotation. The rotation is
   decoration: every word a buyer needs is in the static copy beside it.
   --------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(84vh, 760px);
  margin: 0 var(--ab-s-3);
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 3rem);
  border-radius: var(--ab-radius-lg);
  overflow: hidden;
  background: var(--ab-ink);
  color: var(--ab-on-dark);
}

.hero .ab-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
  padding: 0;
}

.hero .ab-slide[hidden] { display: none !important; }

.hero .carousel-photo,
.hero .carousel-photo .elementor-widget-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Elementor wraps the image in a widget; the static fallback does not. */
.hero .carousel-photo img,
.hero img.carousel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
  filter: saturate(0.92) brightness(1.12) contrast(1.02);
}

/*
 * Two scrims, deliberately light. The first is a horizontal wash in brand
 * green that only has to carry the text column; by 46% it is already half
 * transparent and the photograph reads as a photograph. The second lifts the
 * bottom edge so the kicker and the controls stay legible.
 *
 * Checked against the darkest reading pair on the panel: white heading on the
 * wash reads ~9.5:1, the description ~7.5:1, and the trust labels ~4.9:1.
 * Do not raise the photograph's brightness further without re-checking those.
 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(14, 51, 39, 0.90) 0%,
      rgba(14, 51, 39, 0.74) 30%,
      rgba(14, 51, 39, 0.34) 62%,
      rgba(14, 51, 39, 0.06) 100%),
    linear-gradient(0deg,
      rgba(10, 37, 28, 0.56) 0%,
      rgba(10, 37, 28, 0.08) 26%,
      rgba(10, 37, 28, 0) 40%),
    radial-gradient(120% 90% at 78% 40%, transparent 42%, rgba(10, 37, 28, 0.30) 100%);
}

.hero-inner {
  width: 100%;
  max-width: calc(var(--ab-max) + var(--ab-gutter) * 2);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 0.5rem + 3vw, 3.25rem);
}

/* Width is set in px, not ch: a ch unit here resolves against the container's
   own 16px font size and would silently throttle the display-size headline. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ab-s-5);
  max-width: min(780px, 100%);
}

.hero-copy .eyebrow { color: var(--ab-amber); margin: 0; }
.hero-copy .eyebrow::before { background: var(--ab-amber); }

.hero h1,
.ab-site .hero h1.elementor-heading-title {
  font-size: var(--ab-t-display);
  line-height: 1.02;
  letter-spacing: -0.048em;
  color: var(--ab-white);
  text-wrap: balance;
}

.orange-text { color: var(--ab-amber); }

.hero-description {
  max-width: 48ch;
  font-size: var(--ab-t-lead);
  line-height: 1.6;
  color: var(--ab-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ab-s-3);
  margin-top: var(--ab-s-2);
}

/* Inline credibility line directly under the hero actions — the trust signal
   sits within view of the primary call to action. */
/* Brighter than the dim token used on flat dark panels: this text sits over a
   photograph, where the background luminance is not fixed. */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-top: var(--ab-s-5);
  padding-top: var(--ab-s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  width: 100%;
  font-size: var(--ab-t-micro);
  color: var(--ab-on-dark);
}

.hero-trust b {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ab-white);
}

.hero-trust > *,
.hero-trust > .elementor-widget { flex: 0 1 auto; margin: 0; }

.hero-credential {
  margin-top: var(--ab-s-5);
  color: var(--ab-amber);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-s-4);
  width: 100%;
  max-width: calc(var(--ab-max) + var(--ab-gutter) * 2);
  margin: var(--ab-s-7) auto 0;
  padding-inline: clamp(1.5rem, 0.5rem + 3vw, 3.25rem);
}

.carousel-kicker {
  font-size: var(--ab-t-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ab-on-dark);
  margin: 0;
}

/*
 * The caption sits over the lightest part of the frame, so it carries its own
 * scrim rather than relying on a text shadow it cannot guarantee.
 */
.slide-caption {
  position: absolute;
  right: clamp(1.5rem, 0.5rem + 3vw, 3.25rem);
  top: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  max-width: 24ch;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  background: rgba(10, 37, 28, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: right;
  font-size: var(--ab-t-micro);
  line-height: 1.55;
  color: var(--ab-white);
}

@supports not (backdrop-filter: blur(1px)) {
  .slide-caption { background: rgba(10, 37, 28, 0.74); }
}

/* Carousel controls — shared by the hero and the testimonial rotator. */
.carousel-controls,
.testimonial-controls {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.carousel-ready .carousel-controls,
.carousel-ready .testimonial-controls { display: flex; }

.carousel-controls button,
.testimonial-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--ab-radius-pill);
  background: rgba(10, 37, 28, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ab-white);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background var(--ab-dur) var(--ab-ease),
              color var(--ab-dur) var(--ab-ease),
              border-color var(--ab-dur) var(--ab-ease),
              transform var(--ab-dur) var(--ab-ease);
}

.carousel-controls button:active,
.testimonial-controls button:active { transform: scale(0.94); }

.carousel-controls [data-play],
.testimonial-controls [data-play] {
  min-width: 82px;
  padding-inline: 1rem;
  font-size: var(--ab-t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.carousel-controls button:hover,
.testimonial-controls button:hover {
  background: var(--ab-white);
  color: var(--ab-green);
  border-color: var(--ab-white);
}

.slide-count {
  min-width: 4.2rem;
  text-align: center;
  font-family: var(--ab-mono);
  font-size: var(--ab-t-micro);
  letter-spacing: 0.1em;
  color: var(--ab-white);
}

/* ---------------------------------------------------------------------------
   2. DELIVERY RECORD — the verified-data band
   This is the section that competitors do not have: real operating volume
   from AB's project management system, aggregated so no client is identifiable.
   --------------------------------------------------------------------------- */

.record-band { background: var(--ab-green); color: var(--ab-on-dark); }

.record-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
  padding-block: var(--ab-section);
}

.record-intro .eyebrow { color: var(--ab-amber); }
.record-intro .eyebrow::before { background: var(--ab-amber); }
.record-intro h2 { color: var(--ab-white); margin-bottom: var(--ab-s-5); }
.record-intro p { color: var(--ab-on-dark); max-width: 42ch; }

.record-source {
  margin-top: var(--ab-s-5);
  padding: var(--ab-s-4) var(--ab-s-5);
  border-left: 2px solid var(--ab-amber);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 10px 10px 0;
  font-size: var(--ab-t-micro);
  line-height: 1.7;
  color: var(--ab-on-dark-dim);
}

/* Figure counters */
.record-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  margin-bottom: var(--ab-s-7);
  background: var(--ab-line-dark);
  border: 1px solid var(--ab-line-dark);
  border-radius: var(--ab-radius);
  overflow: hidden;
}

.record-figure {
  padding: var(--ab-s-5);
  background: var(--ab-green);
}

.record-figure b {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ab-white);
  font-variant-numeric: tabular-nums;
}

.record-figure span {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--ab-t-micro);
  line-height: 1.55;
  color: var(--ab-on-dark-dim);
}

/* Bar chart. Pure CSS grid — no chart library, no layout shift, and the
   underlying table stays in the DOM for screen readers and for no-CSS. */
.record-chart { margin-top: var(--ab-s-2); }

.record-chart-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ab-s-3);
  margin-bottom: var(--ab-s-5);
  padding-bottom: var(--ab-s-3);
  border-bottom: 1px solid var(--ab-line-dark);
  font-size: var(--ab-t-small);
  color: var(--ab-white);
  font-weight: 600;
}

.record-chart-title small {
  font-weight: 400;
  font-size: var(--ab-t-micro);
  color: var(--ab-on-dark-dim);
}

/*
 * A two-row grid per bar — a flexible plot row and an auto label row — so the
 * column's percentage height resolves against a definite area. A flex column
 * would let the labels shrink the bars and destroy the proportions.
 */
.record-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(0.4rem, 0.1rem + 1vw, 1rem);
  height: 230px;
  padding: 1.5rem 0 0;
  margin: 0;
  list-style: none;
}

.record-bar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-align: center;
}

.record-bar .col {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 74px;
  height: var(--h, 0%);
}

/* The painted bar is a pseudo-element so the growth animation never scales
   the value label sitting on top of it. */
.record-bar .col::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--ab-signal), #1f5d43);
  transform-origin: bottom;
  animation: ab-grow 0.7s var(--ab-ease) both;
  animation-delay: var(--d, 0ms);
}

/* Without JavaScript the bars simply draw. The script sets "pending" to hold
   them until the section scrolls into view, then "shown" to release them. */
.record-bars[data-reveal="pending"] .col::before { animation-play-state: paused; }
.record-bars[data-reveal="shown"] .col::before { animation-play-state: running; }

.record-bar .value {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 0.4rem;
  font-family: var(--ab-mono);
  font-size: var(--ab-t-micro);
  font-variant-numeric: tabular-nums;
  color: var(--ab-white);
}

/* The most recent complete year is the one buyers came to check. */
.record-bar[data-current="true"] .col::before {
  background: linear-gradient(180deg, var(--ab-orange), var(--ab-ember));
}

.record-bar[data-current="true"] .value { color: var(--ab-amber); font-weight: 700; }

/* The year still being counted. Drawn as an open bar so it reads as
   in-progress rather than as a finished total standing next to finished ones. */
.record-bar[data-partial="true"] .col::before {
  background: transparent;
  border: 2px dashed var(--ab-signal);
}

.record-bar[data-partial="true"] .value { color: var(--ab-on-dark-dim); }

.record-figure[data-partial="true"] b { color: var(--ab-amber); }

.record-partial-note {
  font-weight: 400;
  font-size: var(--ab-t-micro);
  color: var(--ab-on-dark-dim);
}

.record-bar .year {
  font-size: var(--ab-t-micro);
  letter-spacing: 0.04em;
  color: var(--ab-on-dark-dim);
}

@keyframes ab-grow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .record-bar .col::before { animation: none; }
}

.record-table { margin-top: var(--ab-s-6); }

.record-table summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-size: var(--ab-t-small);
  font-weight: 600;
  color: var(--ab-amber);
  list-style: none;
}

.record-table summary::-webkit-details-marker { display: none; }
.record-table summary::before { content: "＋ "; font-weight: 400; }
.record-table[open] summary::before { content: "－ "; }

.record-table table {
  width: 100%;
  margin-top: var(--ab-s-3);
  border-collapse: collapse;
  font-size: var(--ab-t-small);
  font-variant-numeric: tabular-nums;
}

.record-table th,
.record-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--ab-line-dark);
}

.record-table th { color: var(--ab-white); font-weight: 600; }
.record-table td { color: var(--ab-on-dark); }
.record-table td:last-child,
.record-table th:last-child { text-align: right; }

/* ---------------------------------------------------------------------------
   3. SECTION HEADINGS
   --------------------------------------------------------------------------- */

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  row-gap: var(--ab-s-4);
  align-items: end;
  margin-bottom: var(--ab-s-7);
}

.section-heading > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-description { max-width: 46ch; justify-self: end; line-height: 1.7; }

/* ---------------------------------------------------------------------------
   4. CAPABILITY STRIP
   --------------------------------------------------------------------------- */

.capability-strip {
  border-block: 1px solid var(--ab-line);
  background: var(--ab-mist);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  align-items: center;
  gap: var(--ab-s-4) var(--ab-s-5);
  padding-block: var(--ab-s-5);
  color: var(--ab-green);
  font-size: var(--ab-t-small);
}

.strip-label {
  font-size: var(--ab-t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ab-signal);
}

.strip-inner > .elementor-widget:not(:first-child),
.strip-inner > p:not(:first-child) {
  padding-left: var(--ab-s-5);
  border-left: 1px solid var(--ab-line);
}

/* ---------------------------------------------------------------------------
   5. SERVICES
   --------------------------------------------------------------------------- */

/*
 * Six services, laid out three and three.
 *
 * This was `repeat(auto-fit, minmax(280px, 1fr))`, which packs as many
 * columns as will fit — four at desktop width, leaving a ragged 4 + 2. The
 * column count is stated explicitly instead, so the six cards always break
 * into even rows: three and three on desktop, two and two and two on a
 * tablet, one per row on a phone.
 *
 * minmax(0, 1fr) rather than a bare 1fr: a grid track's automatic minimum is
 * its content, so a long unbroken word would otherwise push a column wider
 * than its share and overflow the row.
 */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-s-4);
}

@media (min-width: 620px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ab-s-3);
  padding: var(--ab-s-6);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-white);
  transition: border-color var(--ab-dur) var(--ab-ease),
              box-shadow var(--ab-dur) var(--ab-ease),
              transform var(--ab-dur) var(--ab-ease);
}

.service-card:hover,
.service-card:focus-within {
  border-color: var(--ab-signal);
  box-shadow: var(--ab-shadow-md);
  transform: translateY(-3px);
}

/*
 * Icons are drawn from CSS masks rather than inline SVG inside the page
 * content. That keeps the markup editable in Elementor without an icon
 * library, adds no external request, and inherits the brand colour.
 * Pick one by adding an icon-* class to the card.
 */
.service-card::before {
  content: "";
  /*
   * Elementor owns `.e-con::before` — it is the container's background-overlay
   * pseudo-element and carries `position: absolute; inset: 0`. Every service
   * card is an .e-con, so an icon rule that does not state its own position
   * inherits Elementor's and pins itself to the card's top-left corner,
   * outside the 32px padding and straddling the border.
   *
   * Same trap as the flex-direction and section-padding defects: relying on a
   * CSS initial value that Elementor explicitly sets. State it.
   */
  position: static;
  inset: auto;
  width: 44px;
  height: 44px;
  margin-bottom: var(--ab-s-2);
  border-radius: 11px;
  background-color: var(--ab-mist);
  background-image: var(--icon, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  transition: background-color var(--ab-dur) var(--ab-ease);
}

.service-card:hover::before { background-color: var(--ab-mist-deep); }

.service-card.icon-survey  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.1 7-11a7 7 0 1 0-14 0c0 4.9 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.service-card.icon-design  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17 10 3l7 14'/%3E%3Cpath d='M3 17h18'/%3E%3Cpath d='M14 21h7v-7'/%3E%3C/svg%3E"); }
.service-card.icon-permit  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='m8.5 14.5 2 2 4-4.5'/%3E%3C/svg%3E"); }
.service-card.icon-traffic { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 20h18L12 3Z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.service-card.icon-record  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 16.5h5'/%3E%3C/svg%3E"); }
/* Inside plant: an equipment rack seen head on. */
.service-card.icon-rack    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1.5'/%3E%3Cpath d='M7 7h10'/%3E%3Cpath d='M7 11h10'/%3E%3Cpath d='M7 15h10'/%3E%3Cpath d='M15 18.5h2'/%3E%3C/svg%3E"); }

.service-card h3 { margin: 0; }

/* Whole-card link target without nesting interactive elements. */
.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service-card h3 a { color: var(--ab-green); }
.service-card:hover h3 a { color: var(--ab-ember); }

.service-card p { font-size: var(--ab-t-small); line-height: 1.7; margin: 0; }

.service-card .service-more {
  margin-top: auto;
  padding-top: var(--ab-s-4);
  font-size: var(--ab-t-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ab-ember);
}

/* Numbered list variant used on the Services index page. */
.services-list { border-bottom: 1px solid var(--ab-line); }

.service-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--ab-s-4) var(--ab-s-6);
  align-items: start;
  padding-block: var(--ab-s-5);
  border-top: 1px solid var(--ab-line);
  transition: background var(--ab-dur) var(--ab-ease);
}

.service-row:hover { background: var(--ab-mist); }

.service-number {
  font-family: var(--ab-mono);
  font-size: var(--ab-t-micro);
  line-height: 2.6;
  color: var(--ab-signal);
}

.service-row h3 a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ab-s-4);
  color: var(--ab-green);
}

.service-row h3 a:hover { color: var(--ab-ember); }
.service-row h3 a span { flex: none; color: var(--ab-ember); font-weight: 400; }
.service-summary { font-size: var(--ab-t-small); line-height: 1.75; }

/* ---------------------------------------------------------------------------
   6. APPROACH / PROCESS
   --------------------------------------------------------------------------- */

.approach-section { background: var(--ab-green); color: var(--ab-on-dark); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  padding-block: var(--ab-section);
}

.approach-copy { display: flex; flex-direction: column; gap: var(--ab-s-5); align-items: flex-start; }
.approach-copy .eyebrow { color: var(--ab-amber); margin: 0; }
.approach-copy .eyebrow::before { background: var(--ab-amber); }
.approach-copy h2 { color: var(--ab-white); }
.approach-copy p { max-width: 46ch; }

.approach-point {
  position: relative;
  padding: var(--ab-s-5) 0 var(--ab-s-5) 3rem;
  border-bottom: 1px solid var(--ab-line-dark);
}

.approach-point:first-child { padding-top: 0; }
.approach-point:last-child { border-bottom: 0; padding-bottom: 0; }

.approach-point h3 { color: var(--ab-white); margin-bottom: var(--ab-s-3); }
.approach-point p { font-size: var(--ab-t-small); margin: 0; }

.point-number {
  position: absolute;
  left: 0;
  top: var(--ab-s-5);
  font-family: var(--ab-mono);
  font-size: var(--ab-t-micro);
  color: var(--ab-amber);
}

.approach-point:first-child .point-number { top: 0; }

/* Horizontal process rail */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: var(--ab-s-6);
}

.process-step {
  position: relative;
  padding-top: var(--ab-s-5);
  border-top: 2px solid var(--ab-line);
  transition: border-color var(--ab-dur) var(--ab-ease);
}

.process-step:hover { border-top-color: var(--ab-orange); }

.step-number {
  display: block;
  margin-bottom: var(--ab-s-4);
  font-family: var(--ab-mono);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ab-ember);
}

.process-step h3 { margin-bottom: var(--ab-s-3); }
.process-step p { font-size: var(--ab-t-small); margin: 0; }

/* ---------------------------------------------------------------------------
   7. CLIENTS
   --------------------------------------------------------------------------- */

.clients-band {
  width: 100%;
  background: var(--ab-mist);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.clients-section { padding-block: 0; }

.client-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ab-s-5) var(--ab-s-7);
  align-items: end;
  margin-bottom: var(--ab-s-6);
}

.client-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.client-intro h2 { font-size: var(--ab-t-h3); }
.client-intro p { font-size: var(--ab-t-small); max-width: 52ch; justify-self: end; margin: 0; }
.client-intro { margin-bottom: var(--ab-s-5); }

/*
 * Logo marquee — a continuous right-to-left run.
 *
 * Without JavaScript the track simply wraps into a centred row of cards and
 * nothing moves, so every logo is visible and nothing is clipped. The script
 * duplicates the track, switches it to a single nowrap line and starts the
 * animation, which is why the moving state is gated on [data-marquee="ready"].
 *
 * WCAG 2.2.2 requires a way to stop motion that runs longer than five seconds,
 * so the band ships with a real Pause control as well as pause-on-hover and
 * pause-on-focus.
 */
.client-marquee {
  position: relative;
  width: 100%;
  padding-block: var(--ab-s-4);
  overflow: hidden;
  /* Soften the entry and exit edges so logos fade rather than clip. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.client-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--ab-s-4);
  width: auto;
  padding-inline: var(--ab-gutter);
}

/*
 * The single-row layout, split from the animation on purpose.
 *
 * A card's width only collapses to its natural size once the track stops
 * wrapping: while the track is still `flex-wrap: wrap; width: auto`, each
 * card is a full-width Elementor container. site.js must therefore measure
 * in THIS layout, not the default one — it sets data-marquee="measuring"
 * first, reads one set's width, then switches to "ready" to start the run.
 *
 * Measuring in the wrong state is not a small error: a card reports ~1785px
 * instead of 248px, the shift comes out roughly seven times too long, and
 * the band sits empty for most of the loop while the track travels through
 * nothing.
 */
.client-marquee[data-marquee="measuring"] .client-track,
.client-marquee[data-marquee="ready"] .client-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding-inline: 0;
}

.client-marquee[data-marquee="ready"] .client-track {
  will-change: transform;
  animation: ab-marquee var(--marquee-duration, 48s) linear infinite;
}

.client-marquee[data-playing="false"] .client-track,
.client-marquee:hover .client-track,
.client-marquee:focus-within .client-track { animation-play-state: paused; }

/*
 * The shift is an exact pixel distance, not -50%. The track holds N copies
 * separated by N*2-1 gaps, so half the track is half a gap short of one whole
 * copy — enough to make the seam visibly jump on every loop.
 */
@keyframes ab-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee[data-marquee="ready"] .client-track { animation: none; }
}

.client-logo-card {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(200px, 20vw, 280px);
  min-height: 150px;
  padding: var(--ab-s-5) var(--ab-s-6);
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: var(--ab-white);
  transition: border-color var(--ab-dur) var(--ab-ease),
              box-shadow var(--ab-dur) var(--ab-ease),
              transform var(--ab-dur) var(--ab-ease);
}

.client-logo-card:hover {
  border-color: var(--ab-signal);
  box-shadow: var(--ab-shadow-md);
  transform: translateY(-3px);
}

.client-logo { width: 100%; margin: 0 !important; }

.client-logo img {
  height: 86px;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  object-fit: contain;
}

.clients-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: var(--ab-s-4) var(--ab-s-6);
  margin-top: var(--ab-s-5);
}

/* flex-basis is a height once the row turns into a column, so the measure is
   set with min-width instead and the basis left as auto. */
.client-note {
  flex: 1 1 auto;
  min-width: min(34ch, 100%);
  max-width: 68ch;
  margin: 0;
  font-size: var(--ab-t-micro);
  line-height: 1.7;
  color: var(--ab-sage);
}

/* Marquee control. Light surface, so it does not borrow the dark button style. */
.marquee-controls { display: none; flex: none; }
.client-marquee-ready .marquee-controls { display: block; }

.marquee-controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius-pill);
  background: var(--ab-white);
  color: var(--ab-green);
  font-size: var(--ab-t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--ab-dur) var(--ab-ease),
              background var(--ab-dur) var(--ab-ease);
}

.marquee-controls button:hover { border-color: var(--ab-signal); background: var(--ab-mist); }

.marquee-controls button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--ab-ember);
}

.marquee-controls button[aria-pressed="true"]::before {
  border-radius: 50%;
  background: var(--ab-signal);
}

/* ---------------------------------------------------------------------------
   8. PROJECT CARDS
   --------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--ab-s-5);
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-white);
  overflow: hidden;
  transition: box-shadow var(--ab-dur) var(--ab-ease), transform var(--ab-dur) var(--ab-ease);
}

.project-card:hover { box-shadow: var(--ab-shadow-md); transform: translateY(-3px); }
.project-photo img { width: 100%; height: 210px; object-fit: cover; }

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-s-3);
  padding: var(--ab-s-6);
  flex: 1;
}

.project-card-body h3 { margin: 0; }
.project-card-body p { margin: 0; font-size: var(--ab-t-small); }

.scope-label {
  margin-top: auto;
  padding-top: var(--ab-s-4);
  border-top: 1px solid var(--ab-line);
  font-size: var(--ab-t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-signal);
}

/* Capability cards (Projects page) */
.project-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--ab-s-5) var(--ab-s-7);
}

.capability-card { padding-top: var(--ab-s-5); border-top: 2px solid var(--ab-line); }
.capability-card h3 { margin-bottom: var(--ab-s-3); }
.capability-card p { font-size: var(--ab-t-small); margin: 0; }

/* Service-mix meter used on the Projects page */
.mix-list { display: grid; gap: var(--ab-s-4); margin: 0; padding: 0; list-style: none; }

.mix-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem var(--ab-s-4);
  align-items: baseline;
}

.mix-item .label { font-size: var(--ab-t-small); font-weight: 600; color: var(--ab-green); }
.mix-item .count { font-family: var(--ab-mono); font-size: var(--ab-t-micro); color: var(--ab-sage); font-variant-numeric: tabular-nums; }

.mix-item .track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: var(--ab-mist-deep);
  overflow: hidden;
}

.mix-item .fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ab-signal), var(--ab-green));
}

.mix-item:nth-child(-n + 2) .fill { background: linear-gradient(90deg, var(--ab-orange), var(--ab-ember)); }

/* ---------------------------------------------------------------------------
   9. TESTIMONIALS
   --------------------------------------------------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: var(--ab-section);
}

.testimonial-intro p:not(.eyebrow) { max-width: 36ch; margin-block: var(--ab-s-5); font-size: var(--ab-t-small); }

.demo-badge {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid #e3c8a6;
  border-radius: var(--ab-radius-pill);
  background: #f8ecdd;
  color: #71400f;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-rotator {
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-green);
  color: var(--ab-on-dark);
  overflow: hidden;
  min-width: 0;
}

.testimonial-track { display: grid; align-items: start; }
.testimonial-slide { grid-area: 1 / 1; min-width: 0; }
.testimonial-slide[hidden] { display: none !important; }
.testimonial-rotator:not(.carousel-ready) .testimonial-slide { grid-area: auto; margin-bottom: var(--ab-s-6); }

.testimonial-topic {
  margin: 0 0 var(--ab-s-5);
  font-size: var(--ab-t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ab-on-dark-dim);
}

.quote-mark {
  display: block;
  margin: 0 0 var(--ab-s-4);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--ab-amber);
}

.testimonial-slide h3 { color: var(--ab-white); margin-bottom: var(--ab-s-4); }
.testimonial-slide blockquote { margin: 0; font-size: var(--ab-t-lead); line-height: 1.6; color: var(--ab-on-dark); }
.testimonial-slide blockquote p { margin: 0; }

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: var(--ab-s-4);
  margin-top: var(--ab-s-6);
  padding-top: var(--ab-s-5);
  border-top: 1px solid var(--ab-line-dark);
}

.testimonial-attribution strong { display: block; font-size: var(--ab-t-small); color: var(--ab-white); }
.testimonial-attribution span:not(.sample-avatar) { display: block; margin-top: 0.2rem; font-size: var(--ab-t-micro); color: var(--ab-on-dark-dim); }

.sample-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ab-orange);
  color: var(--ab-on-orange);
  font-size: var(--ab-t-micro);
  font-weight: 700;
}

.testimonial-controls {
  justify-content: flex-end;
  margin-top: var(--ab-s-5);
  padding-top: var(--ab-s-5);
  border-top: 1px solid var(--ab-line-dark);
}

/* ---------------------------------------------------------------------------
   10. FAQ
   --------------------------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--ab-s-5) var(--ab-s-8); }

.qa-item { padding-top: var(--ab-s-5); border-top: 1px solid var(--ab-line); }
.qa-item h3 { margin-bottom: var(--ab-s-3); }
.qa-item p { font-size: var(--ab-t-small); margin: 0; }

/* ---------------------------------------------------------------------------
   11. PAGE INTRO / DETAIL / CONTACT
   --------------------------------------------------------------------------- */

.page-intro { padding-block: clamp(2.75rem, 2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-intro h1 { max-width: 18ch; }
.intro-copy { margin-top: var(--ab-s-5); max-width: 62ch; font-size: var(--ab-t-lead); line-height: 1.65; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--ab-s-5);
  font-size: var(--ab-t-micro);
  color: var(--ab-sage);
}

.breadcrumbs a { color: var(--ab-signal); }
.breadcrumbs a:hover { box-shadow: inset 0 -1px currentColor; }
/* Decorative separator, so AA text contrast does not strictly apply — but
   --ab-line is a hairline tone (1.35:1) and was all but invisible as a glyph.
   This clears the 3:1 non-text threshold instead. */
.breadcrumbs span[aria-hidden] { color: #769080; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  padding-block: var(--ab-s-4) var(--ab-section);
  align-items: start;
}

/*
 * Sub-headings inside a body column, not section titles.
 *
 * These sit in a ~600px column beside the sticky panel, where the full h2
 * scale (up to 52px) shouts over the panel and wraps awkwardly. They step
 * down to --ab-t-subhead.
 *
 * Both selectors are needed and the Elementor one must carry the weight:
 * .ab-site h2.elementor-heading-title is 0-2-1, so a bare `.detail-main h2`
 * (0-1-1) would lose to it and the size would silently not apply on the live
 * site while looking right in the fallback preview.
 */
.detail-main h2,
.ab-site .detail-main h2.elementor-heading-title { font-size: var(--ab-t-subhead); }

.detail-main h2 { margin: var(--ab-s-7) 0 var(--ab-s-4); }
.detail-main h2:first-child { margin-top: 0; }
.detail-main > p { margin-bottom: var(--ab-s-4); }

.deliverable {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--ab-line);
  font-size: var(--ab-t-small);
}

.deliverable::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ab-orange);
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--ab-header-h) + 1.5rem);
  padding: var(--ab-s-6);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-mist);
}

.detail-sidebar h2 { font-size: var(--ab-t-h3); margin: 0 0 var(--ab-s-4); }
.detail-sidebar > p { font-size: var(--ab-t-small); }
.detail-sidebar .eyebrow:not(:first-child) { margin-top: var(--ab-s-5); padding-top: var(--ab-s-5); border-top: 1px solid var(--ab-line); }
.detail-sidebar .ab-button, .detail-sidebar .elementor-widget-button { margin-top: var(--ab-s-5); }

.guidance { max-width: 72ch; margin-inline: auto; padding-block: var(--ab-s-7) var(--ab-section); }
.guidance h2 { margin-bottom: var(--ab-s-5); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  padding-block: var(--ab-s-5) var(--ab-section);
}

.about-intro { display: flex; flex-direction: column; gap: var(--ab-s-5); align-items: flex-start; }
.values-list > .qa-item { margin-bottom: var(--ab-s-5); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: var(--ab-s-4) var(--ab-section);
  align-items: start;
}

.contact-details > .eyebrow { margin-top: var(--ab-s-6); margin-bottom: 0.4rem; }
.contact-details > .eyebrow:first-child { margin-top: 0; }

.contact-value {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--ab-green);
  font-weight: 600;
}

.contact-value a:hover { color: var(--ab-ember); }
.email-value { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); overflow-wrap: anywhere; }
.small-copy { margin-top: var(--ab-s-5); max-width: 42ch; font-size: var(--ab-t-small); }

.inquiry-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-mist);
}

.inquiry-panel h2 { font-size: var(--ab-t-h3); margin-bottom: var(--ab-s-3); }

.contact-band { background: var(--ab-mist); }

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-s-6);
  padding-block: var(--ab-section);
}

.contact-heading { flex: 1 1 380px; }
.contact-heading h2 { margin-bottom: var(--ab-s-4); }
.contact-heading p { max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--ab-s-3); }

.image-disclosure { font-size: var(--ab-t-micro); color: var(--ab-sage); margin-block: var(--ab-s-4); }

/* ---------------------------------------------------------------------------
   11b. COVERAGE MAP
   Real state geometry, projected once at build time. The base is a single
   silhouette with the three worked states cut out of it and drawn on top.
   --------------------------------------------------------------------------- */

.coverage-section { background: var(--ab-mist); }

.coverage-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  padding-block: var(--ab-section);
}

.coverage-copy h2 { margin-bottom: var(--ab-s-4); }
.coverage-copy > p { max-width: 46ch; }

.coverage-list {
  display: grid;
  gap: var(--ab-s-3);
  margin: var(--ab-s-6) 0 0;
  padding: 0;
  list-style: none;
}

.coverage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  background: var(--ab-white);
}

.coverage-swatch {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.3rem;
  border-radius: 4px;
  background: var(--ab-signal);
}

.coverage-item[data-role="home"] .coverage-swatch { background: var(--ab-orange); }

.coverage-text strong {
  display: block;
  font-size: var(--ab-t-small);
  font-weight: 600;
  color: var(--ab-green);
}

.coverage-text span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--ab-t-micro);
  line-height: 1.6;
  color: var(--ab-sage);
}

.coverage-note {
  margin-top: var(--ab-s-5);
  font-size: var(--ab-t-micro);
  line-height: 1.7;
  color: var(--ab-sage);
}

.coverage-map { margin: 0; }
.coverage-map svg { width: 100%; height: auto; overflow: visible; }

.coverage-base { fill: var(--ab-mist-deep); stroke: var(--ab-mist); stroke-width: 1.5; }

.coverage-state {
  fill: var(--ab-signal);
  stroke: var(--ab-mist);
  stroke-width: 1.5;
  transition: fill var(--ab-dur) var(--ab-ease);
}

.coverage-state[data-role="home"] { fill: var(--ab-orange); }

.coverage-pin-halo { fill: var(--ab-green); opacity: 0.14; }
.coverage-pin-dot { fill: var(--ab-green); stroke: var(--ab-white); stroke-width: 2.5; }

/* Labels are painted stroke-first so the halo sits behind the glyphs and the
   text stays readable wherever it crosses a filled state or the silhouette. */
.coverage-state-label,
.coverage-pin-label {
  font-family: var(--ab-sans);
  paint-order: stroke;
  stroke: var(--ab-mist);
  stroke-linejoin: round;
}

.coverage-state-label {
  fill: var(--ab-green);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
  stroke-width: 6;
}

.coverage-state-label[data-role="home"] { fill: var(--ab-ember); }

.coverage-pin-label {
  fill: var(--ab-sage);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  stroke-width: 5;
}

.coverage-map figcaption {
  margin-top: var(--ab-s-4);
  font-size: var(--ab-t-micro);
  line-height: 1.7;
  color: var(--ab-sage);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   11c. CREDENTIALS
   --------------------------------------------------------------------------- */

.credential-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--ab-s-5);
}

.credential-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-white);
  border-top: 3px solid var(--ab-orange);
}

.credential-kicker {
  margin: 0 0 var(--ab-s-3);
  font-size: var(--ab-t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ab-ember);
}

.credential-card h3 { margin: 0 0 0.35rem; }
.credential-issuer { margin: 0 0 var(--ab-s-5); font-size: var(--ab-t-small); }

.credential-facts { display: grid; gap: var(--ab-s-3); margin: 0; }
.credential-facts > div { display: grid; gap: 0.15rem; padding-top: var(--ab-s-3); border-top: 1px solid var(--ab-line); }

.credential-facts dt {
  font-size: var(--ab-t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ab-sage);
}

.credential-facts dd { margin: 0; font-size: var(--ab-t-small); color: var(--ab-green); font-weight: 500; }
.credential-number { font-family: var(--ab-mono); letter-spacing: 0.04em; }

.credential-naics {
  margin: var(--ab-s-5) 0 0;
  padding-top: var(--ab-s-4);
  border-top: 1px solid var(--ab-line);
  font-size: var(--ab-t-micro);
  line-height: 1.7;
}

.credential-naics strong {
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ab-sage);
}

.credential-naics span { font-family: var(--ab-mono); color: var(--ab-green); }

.credential-link { margin: var(--ab-s-5) 0 0; }

.credential-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--ab-t-small);
  font-weight: 600;
  color: var(--ab-ember);
  box-shadow: inset 0 -1px currentColor;
}

.credential-link a:hover { box-shadow: inset 0 -2px currentColor; }

/* The certificate itself, shown rather than linked to. */
.credential-image {
  margin: 0;
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-white);
}

.credential-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* The one-line marker used in the hero and the footer. Deliberately set at
   body size and bold rather than as fine print — the certification is a
   qualifying credential for a lot of procurement, not a footnote. */
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--ab-t-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.credential-badge-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  position: relative;
}

.credential-badge-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 9px;
  height: 4.5px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}

.site-footer .credential-badge {
  color: var(--ab-white);
  margin-top: var(--ab-s-5);
  font-size: var(--ab-t-small);
}

@media (max-width: 760px) {
  .credential-badge { font-size: var(--ab-t-small); }
  .credential-badge-mark { width: 19px; height: 19px; }
}

/* ---------------------------------------------------------------------------
   12. ELEMENTOR FIT
   Elementor wraps every widget in two extra divs. These rules make the widget
   wrapper behave like the bare element the layouts above expect.
   --------------------------------------------------------------------------- */

/* Text-editor widgets carry the utility class on the wrapper, and wpautop
   puts the text in a paragraph inside it. */
.ab-site .eyebrow p,
.ab-site .hero-trust p,
.ab-site .strip-inner p,
.ab-site .carousel-kicker p,
.ab-site .slide-caption p,
.ab-site .scope-label p,
.ab-site .service-more p,
.ab-site .point-number p,
.ab-site .step-number p,
.ab-site .client-note p,
.ab-site .record-source p { margin: 0; }

/* Widgets that are direct children of a flex or grid component must not be
   stretched by Elementor's own width variables. */
.ab-site .hero-actions > .elementor-widget,
.ab-site .contact-actions > .elementor-widget,
.ab-site .hero-trust > .elementor-widget,
.ab-site .hero-foot > .elementor-widget,
.ab-site .client-intro > .elementor-widget,
.ab-site .testimonial-controls > .elementor-widget { width: auto; }

/* Keep the two-column heading block working when its parts are widgets. */
.ab-site .section-heading > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.ab-site .client-intro > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }

/* Elementor's shortcode wrapper must not introduce a box of its own around a
   full-width section such as the delivery record. */
.ab-site .elementor-widget-shortcode,
.ab-site .elementor-shortcode { display: block; width: 100%; }

.ab-site .record-host,
.ab-site .testimonial-host { display: block; width: 100%; }

/* The button widget renders an anchor inside a wrapper; the wrapper must not
   collapse the button's own alignment. */
.ab-site .elementor-widget-button .elementor-button-wrapper { display: flex; }
.ab-site .hero-actions .elementor-widget-button .elementor-button-wrapper,
.ab-site .contact-actions .elementor-widget-button .elementor-button-wrapper { width: 100%; }
.ab-site .hero-actions .elementor-button,
.ab-site .contact-actions .elementor-button { width: 100%; }

@media (min-width: 761px) {
  .ab-site .hero-actions .elementor-widget-button .elementor-button-wrapper,
  .ab-site .contact-actions .elementor-widget-button .elementor-button-wrapper,
  .ab-site .hero-actions .elementor-button,
  .ab-site .contact-actions .elementor-button { width: auto; }
}

/* Images inside the hero carousel and project cards fill their widget. */
.ab-site .carousel-photo .elementor-widget-container,
.ab-site .project-photo .elementor-widget-container,
.ab-site .client-logo .elementor-widget-container { height: 100%; }

/* ---------------------------------------------------------------------------
   13. RESPONSIVE
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-copy > p { max-width: 60ch; }
  .record-inner { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .section-description { justify-self: start; max-width: 60ch; }
  .client-intro { grid-template-columns: 1fr; }
  .client-intro p { justify-self: start; }
}

/*
 * Below ~900px the copy column spans the whole frame, so a horizontal wash
 * has no empty side to fade into. The scrim becomes vertical instead: the
 * photograph stays clear across the top third, then deepens behind the text.
 * Still lighter overall than a flat panel, and every pair stays above 4.5:1.
 */
@media (max-width: 900px) {
  .hero::after {
    background: linear-gradient(180deg,
      rgba(10, 37, 28, 0.26) 0%,
      rgba(10, 37, 28, 0.58) 14%,
      rgba(10, 37, 28, 0.74) 42%,
      rgba(10, 37, 28, 0.86) 72%,
      rgba(10, 37, 28, 0.90) 100%);
  }

  /*
   * The eyebrow sits highest in the copy block, where the scrim is lightest
   * and the sky behind it is brightest. Amber cannot hold 4.5:1 there, so on
   * narrow screens the label goes white and the accent stays in its rule mark.
   */
  .hero-copy .eyebrow { color: var(--ab-white); }
}

@media (max-width: 760px) {
  .hero { margin-inline: var(--ab-s-2); min-height: 0; padding-bottom: var(--ab-s-6); }
  .hero-copy { gap: var(--ab-s-4); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .ab-button,
  .hero-actions .elementor-widget-button,
  .hero-actions .elementor-button { width: 100%; }
  .hero-trust { gap: 0.75rem 1.25rem; }
  .hero-trust b { font-size: 1.25rem; }
  .slide-caption { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: var(--ab-s-4); margin-top: var(--ab-s-6); }

  .record-bars { height: 190px; gap: 0.35rem; }
  .record-bar .year { font-size: 0.6rem; }
  .record-bar .value { font-size: 0.6rem; }

  .service-row { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem var(--ab-s-4); }
  .service-summary { grid-column: 2; }
  .service-number { line-height: 2.2; }

  .strip-inner > .elementor-widget:not(:first-child),
  .strip-inner > p:not(:first-child) { padding-left: 0; border-left: 0; }

  .approach-point { padding-left: 2.4rem; }

  /* Map labels are drawn in SVG user units, so they need bumping up as the
     map shrinks or they become unreadable. */
  .coverage-state-label { font-size: 34px; stroke-width: 8; }
  .coverage-pin-label { font-size: 25px; stroke-width: 7; }
  .coverage-pin-halo { r: 20; }

  .client-logo-card { width: clamp(160px, 52vw, 210px); min-height: 118px; padding: var(--ab-s-4); }
  .client-logo img { height: 62px; max-width: 160px; }
  .clients-foot { flex-direction: column; gap: var(--ab-s-4); }
  /* Put the control directly under the thing it controls. */
  .marquee-controls { order: -1; }
}

