@charset "utf-8";
/* ==========================================================================
   BECT Ltd — Service Page Template Stylesheet
   Phase 2A · 26 July 2026
   Design system:

   THIS FILE EXTENDS bect-redesign-core.css AND DOES NOT REPLACE IT.
   The page must link them in this order:
       <link rel="stylesheet" href="style/bect-redesign-core.css" />
       <link rel="stylesheet" href="style/bect-redesign-service.css" />

   Nothing here overrides an approved core value; this file only ADDS the
   components a service page needs. Tokens, reset, accessibility primitives,
   layout, typography, buttons, header, navigation, breadcrumb, cards,
   placeholders, enquiry band, footer and the shared responsive,
   reduced-motion and print rules are all inherited from core.

   REUSED FROM CORE, no new CSS written for them:
       .grid / .grid--3 / .card / .card__metric / .card__foot  — capability
       cards and related-service cards
       .breadcrumb, .band, .site-footer, .btn, .link-arrow, .placeholder

   ⚠ KNOWN DUPLICATION, DELIBERATE AND TEMPORARY
   Four components below — .table-wrap, table.spec, .tag-list and .gallery —
   are byte-identical copies of the same components in
   bect-redesign-equipment.css. They are duplicated because a service page must
   not load the equipment stylesheet, and core.css could not be modified in this
   phase. They are generic, not equipment-specific, and belong in core.
   REMEDY, for the next approved core revision: move all four into
   bect-redesign-core.css and delete them from both template stylesheets.
   Recorded in

   PROTOTYPE ONLY. Not published. Does not modify any X5 stylesheet.
   ========================================================================== */

/* ---------- 1. SERVICE HERO --------------------------------------------- */
/* Same navy field, accent rule and split geometry as the approved equipment
   hero, so the two templates read as one site. */
.svc-hero {
  background: var(--c-navy-deep);
  color: #fff;
  padding-block: var(--s-8);
  border-bottom: 4px solid var(--c-accent);
}
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-7); align-items: center; }
.svc-hero h1 { color: #fff; }
.svc-hero__lead { color: rgba(255,255,255,.92); font-size: var(--fs-lead); margin-top: var(--s-5); max-width: 52ch; }
.svc-hero__figure { margin: 0; }
/* Native asset is 600x447. Displayed at <=600px CSS width, never upscaled. */
.svc-hero__figure img {
  width: 100%; max-width: 600px;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
}
/* Caption colour from the core token --c-caption-on-dark (#B9C0CC, 8.52:1 on
   --c-navy-deep). Size --fs-small (14px), matching the equipment template. */
.svc-hero__caption {
  font-size: var(--fs-small);
  color: var(--c-caption-on-dark);
  margin-top: var(--s-3); max-width: 600px;
}

/* ---------- 2. CAPABILITY SUMMARY PANEL --------------------------------- */
/* The service-page analogue of the equipment spec panel: what the reader most
   needs above the fold, which on a service page is scope rather than figures. */
.cap-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--s-6);
}
.cap-panel h2 { font-size: var(--fs-h3); margin-bottom: var(--s-5); }
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.cap-grid > div { border-left: 3px solid var(--c-panel); padding-left: var(--s-4); }
.cap-grid dt {
  display: block; font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted);
  margin-bottom: var(--s-2);
}
.cap-grid dd {
  margin: 0; font-size: 1.0625rem; line-height: 1.45; font-weight: 600;
  color: var(--c-navy);
}
.cap-grid dd small { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--c-body); margin-top: var(--s-2); }

/* ---------- 3. WORKFLOW STEPS ------------------------------------------- */
/* Numbered sequence. The number is generated from the list counter, so it is
   never keyed to hard-coded markup and stays correct if a step is added. */
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; margin-top: var(--s-6); }
.workflow > li {
  counter-increment: step;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.workflow > li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: var(--s-4);
  background: var(--c-navy); color: #fff;
  border-radius: 50%;
  font-size: var(--fs-small); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.workflow h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.workflow p { font-size: var(--fs-small); max-width: none; }

/* ---------- 4. SECTION SPACING HELPERS ---------------------------------- */
/* An H3 sitting directly in a section, after a table or list */
.svc-h3-spaced { margin-top: var(--s-7); margin-bottom: var(--s-4); }

/* ==========================================================================
   5–8. SHARED COMPONENTS DUPLICATED FROM bect-redesign-equipment.css
   Byte-identical. See the warning in the file header: these belong in core and
   should be promoted at the next approved core revision.
   ========================================================================== */

/* ---------- 5. DELIVERABLES / SPECIFICATION TABLE ----------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-body); min-width: 480px;
}
table.spec caption {
  text-align: left; font-size: var(--fs-small); color: var(--c-muted);
  padding-bottom: var(--s-3);
}
table.spec th, table.spec td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
table.spec thead th {
  background: var(--c-navy); color: #fff; font-weight: 600;
  font-size: var(--fs-small); letter-spacing: 0.02em;
  border-bottom: none;
}
table.spec tbody th { color: var(--c-body); font-weight: 600; width: 34%; }
table.spec td { font-variant-numeric: tabular-nums; color: var(--c-navy); font-weight: 600; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody tr:nth-child(even) { background: var(--c-page); }

/* ---------- 6. TAG LIST ------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.tag-list li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: var(--s-2) var(--s-5);
  font-size: var(--fs-small); font-weight: 600; color: var(--c-navy);
}
/* Service-page addition: tags may be links to the equipment they interface with */
.tag-list li:has(a) { padding: 0; }
.tag-list a {
  display: inline-flex; align-items: center;
  padding: var(--s-2) var(--s-5);
  color: var(--c-navy); text-decoration: none; border-radius: 999px;
}
.tag-list a:hover { text-decoration: underline; }

/* ---------- 7. GALLERY -------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.gallery figure {
  margin: 0; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-bottom: 1px solid var(--c-border);
}
.gallery figcaption {
  padding: var(--s-4); font-size: var(--fs-small);
  color: var(--c-body); line-height: 1.5;
}

/* ==========================================================================
   8. RESPONSIVE — X5 breakpoints 1162 / 720 / 480
   Shared responsive behaviour lives in the core stylesheet.
   ========================================================================== */
@media (max-width: 1161px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-hero__grid { gap: var(--s-6); }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .svc-hero { padding-block: var(--s-7); }
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .svc-hero__figure { order: -1; }          /* photograph first when stacked */
  .svc-hero__figure img { max-width: 100%; }
  .svc-hero__caption { max-width: none; }
  .cap-panel { padding: var(--s-5); }
}

/* Mobile (480px) and Mobile Fluid below it — also covers 375px */
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .workflow { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  table.spec th, table.spec td { padding: var(--s-3); }
  .tag-list { gap: var(--s-2); }
  .tag-list li { padding: var(--s-2) var(--s-4); }
  .tag-list li:has(a) { padding: 0; }
  .tag-list a { padding: var(--s-2) var(--s-4); }
}

/* ---------- 9. PRINT ---------------------------------------------------- */
@media print {
  .gallery { display: none; }
  .svc-hero { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .svc-hero h1, .svc-hero__lead, .svc-hero__caption { color: #000; }
  .cap-panel, .workflow > li, table.spec { border: 1px solid #999; break-inside: avoid; }
  .workflow > li::before { background: #eee; color: #000; }
  table.spec thead th { background: #eee; color: #000; }
}


/* ---------- GRID ITEM SHRINK -------------------- */
/* A grid item's initial `min-width: auto` resolves to its MIN-CONTENT width,
   so an item refuses to shrink below its longest word even when its track is
   minmax(0, 1fr). At 200% text that made items overflow their own tracks and
   pushed the page sideways. `min-width: 0` releases the item; the text then
   wraps inside the track via the overflow-wrap rule in core section 5.
   No effect at normal text size, where nothing needs to shrink this far. */
.svc-hero__grid > *, .cap-grid > *, .workflow > *, .gallery > * { min-width: 0; }
