/*
Theme Name: Berglund Services
Theme URI: https://berglundservicestx.com
Author: Berglund Services
Description: A blueprint-grammar block theme for a residential remodeling contractor. Built on the Industry design system: steel-blue on a light technical ground, Barlow Condensed over Barlow, wireframe frames with registration marks, and a credentials plate that puts the license, insurance and review record above the fold.
Version: 1.21.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berglund
Tags: block-theme, full-site-editing, business, portfolio, one-column, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* ══════════════════════════════════════════════════════════════════════
   1. Industry design-system tokens
   Retune the theme here; theme.json mirrors these for the editor UI.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --radius-md: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);

  --bs-tint: var(--color-accent-100);
  --bs-gutter: 48px;
  --bs-mark: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* ══════════════════════════════════════════════════════════════════════
   2. Base
   ══════════════════════════════════════════════════════════════════ */

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════
   3. Blueprint frame — the wireframe object every card, figure and plate
   wears. .bs-frame draws its four registration marks in CSS so it can sit
   on any core block; .blueprint + <i class="corner"> is kept for
   hand-authored markup.
   ══════════════════════════════════════════════════════════════════ */

.bs-frame {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: transparent;
}

.bs-frame::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0);
  background-size:
    11px 1px, 11px 1px, 11px 1px, 11px 1px,
    1px 11px, 1px 11px, 1px 11px, 1px 11px;
  background-position:
    left top 5px, right top 5px, left bottom 5px, right bottom 5px,
    left 5px top, right 5px top, left 5px bottom, right 5px bottom;
}

.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px; color: var(--bs-mark);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ══════════════════════════════════════════════════════════════════════
   4. Buttons — the primary is the one solid object on the board
   ══════════════════════════════════════════════════════════════════ */

.wp-block-button__link,
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 1.2;
  padding: 11px 22px;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
}

.wp-block-button__link { color: var(--color-bg); background: var(--color-accent); border-color: var(--color-accent); }
.wp-block-button__link:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: var(--color-bg); }
.wp-block-button__link:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }

.wp-block-button.is-style-outline > .wp-block-button__link,
.btn-secondary {
  background: transparent; color: var(--color-text); border-color: var(--color-divider);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }

.bs-btn-compact .wp-block-button__link { padding: 8px 16px; font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════
   5. Layout scaffolding
   ══════════════════════════════════════════════════════════════════ */

.bs-section { padding-left: var(--bs-gutter); padding-right: var(--bs-gutter); }
.bs-section + .bs-section { padding-top: 0; }

.bs-kicker {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; line-height: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0 0 12px;
}

.bs-rule {
  height: 1px; border: 0; margin: 0 0 32px;
  background: var(--color-divider);
  opacity: 1;
}

.bs-lede { font-size: 17px; line-height: 28px; max-width: 58ch; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.bs-note { font-size: 15px; line-height: 24px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.bs-muted { color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* ══════════════════════════════════════════════════════════════════════
   6. Header & footer
   ══════════════════════════════════════════════════════════════════ */

.bs-header {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px var(--bs-gutter);
  border-bottom: 1px solid var(--color-divider);
}
.bs-header .wp-block-site-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase;
  margin-right: auto;
}
.bs-header .wp-block-site-title a { color: var(--color-text); text-decoration: none; }
.bs-header .bs-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase;
  margin: 0 auto 0 0;
}
.bs-header .bs-brand a { color: var(--color-text); text-decoration: none; }
.bs-header .bs-brand a:hover { color: var(--color-accent-700); }
.bs-header .wp-block-navigation a { color: var(--color-text); text-decoration: none; font-size: 14px; }
.bs-header .wp-block-navigation a:hover,
.bs-header .wp-block-navigation .current-menu-item a { color: var(--color-accent-700); }

.bs-phone {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px; letter-spacing: 0.06em;
  color: var(--color-accent-700); text-decoration: none;
  white-space: nowrap;
}
.bs-phone-lg { font-size: 26px; letter-spacing: 0.02em; }

.bs-footer {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding: 24px var(--bs-gutter) 32px;
  border-top: 1px solid var(--color-divider);
  font-size: 13px; line-height: 24px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.bs-footer p { margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   7. Hero
   ══════════════════════════════════════════════════════════════════ */

.bs-hero { padding: 76px var(--bs-gutter) 56px; }
.bs-hero__title {
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0 -0.052em;
  max-width: 20ch;
}
.bs-hero__title .bs-accent { color: var(--color-accent-700); }
.bs-hero .bs-lede { margin: 32px 0 0; }
.bs-hero .wp-block-buttons { margin-top: 32px; }

/* ══════════════════════════════════════════════════════════════════════
   8. Credentials plate — the trust datasheet
   ══════════════════════════════════════════════════════════════════ */

.bs-plate { margin: 0 0 64px; }
.bs-plate__head {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-bottom: 1px solid var(--color-divider);
}
.bs-plate__head > * {
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px; line-height: 24px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0;
}
.bs-plate__head > *:first-child { flex: 1; min-width: 16ch; }
.bs-plate__head > * + * {
  border-left: 1px solid var(--color-divider);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.bs-plate__head > * { min-width: 0; overflow-wrap: anywhere; }
.bs-plate__foot {
  margin: 0; padding: 12px 24px;
  border-top: 1px solid var(--color-divider);
  font-size: 13px; line-height: 24px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.bs-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bs-table th, .bs-table td { text-align: left; }
.bs-table thead th {
  padding: 12px 24px 12px 0;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  border-bottom: 1px solid var(--color-divider);
}
.bs-table thead th:first-child { padding-left: 24px; }
.bs-table tbody td {
  padding: 12px 24px 12px 0;
  font-size: 15px; line-height: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.bs-table tbody tr:last-child td { border-bottom: 0; }
.bs-table tbody td:first-child {
  padding-left: 24px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--color-accent-700);
  width: 72px;
}
.bs-table tbody td:nth-child(3) {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 22px; letter-spacing: 0.02em;
  white-space: nowrap;
}
.bs-table tbody td:last-child { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.bs-table col.bs-col-no { width: 72px; }
.bs-table col.bs-col-item { width: 34%; }
.bs-table col.bs-col-value { width: 20%; }

/* ══════════════════════════════════════════════════════════════════════
   9. Services grid — numbering comes from a CSS counter, so adding or
   reordering a service in the admin renumbers the board automatically.
   ══════════════════════════════════════════════════════════════════ */

.bs-services {
  counter-reset: bs-svc;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.bs-services > li { margin: 0; }

.bs-card {
  height: 100%;
  padding: 20px;
}
.bs-card::before {
  counter-increment: bs-svc;
  content: counter(bs-svc, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--color-accent-700);
}
.bs-card__title {
  font-size: 21px; line-height: 24px;
  letter-spacing: 0.02em; text-transform: uppercase;
  margin: 6px 0 0;
}
.bs-card__title a { color: inherit; text-decoration: none; }
.bs-card__title a:hover { color: var(--color-accent-700); }
.bs-card__body {
  font-size: 14px; line-height: 22px;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* ══════════════════════════════════════════════════════════════════════
   10. Imagery — duotoned into the steel accent
   ══════════════════════════════════════════════════════════════════ */

.bs-figure { position: relative; }
.bs-figure img { width: 100%; }
.bs-figure figcaption {
  font-size: 13px; margin-top: 14px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.duotone { position: relative; overflow: hidden; }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}

.bs-placeholder {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--color-neutral-300) 0 7px, var(--color-neutral-200) 7px 14px);
}
.bs-placeholder span {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-neutral-800);
  background: var(--color-bg);
  padding: 6px 12px;
}

/* ══════════════════════════════════════════════════════════════════════
   11. Tags, quotes, CTA
   ══════════════════════════════════════════════════════════════════ */

.bs-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-800); }

.bs-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.bs-quote { margin: 0; }
.bs-quote blockquote,
.bs-quote p {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 21px; line-height: 28px; letter-spacing: 0;
  margin: 0;
}
.bs-quote cite,
.bs-quote figcaption {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px; line-height: 24px;
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.bs-cta {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
  padding: 36px 40px;
}
.bs-cta__title { font-size: 28px; line-height: 30px; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.bs-cta p { font-size: 15px; line-height: 24px; margin: 12px 0 0; max-width: 52ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.bs-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ══════════════════════════════════════════════════════════════════════
   12. Inner pages — service detail, project archive, single post
   ══════════════════════════════════════════════════════════════════ */

.bs-page { padding: 40px var(--bs-gutter) 56px; }
.bs-page__title {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 0.98; letter-spacing: 0.01em;
  text-transform: uppercase; margin: 0 0 0 -0.052em;
}
.bs-breadcrumb {
  padding: 22px var(--bs-gutter) 0;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.bs-prose { font-size: 16px; line-height: 26px; max-width: 64ch; }
.bs-prose h2 { font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; margin: 36px 0 12px; }
.bs-prose h3 { font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; margin: 28px 0 10px; }
.bs-prose ul, .bs-prose ol { padding-left: 1.2em; }
.bs-prose li { margin-bottom: 8px; }

.bs-aside { display: flex; flex-direction: column; gap: 20px; }
.bs-aside .bs-frame { padding: 22px; }
.bs-aside__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0 0 16px;
}

.bs-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin: 0; padding: 0; list-style: none; }
.bs-projects > li { margin: 0; }
.bs-project__title { font-size: 19px; line-height: 22px; letter-spacing: 0.02em; text-transform: uppercase; margin: 14px 0 0; }
.bs-project__title a { color: inherit; text-decoration: none; }
.bs-project__meta { font-size: 13px; margin-top: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

.bs-reviews { display: grid; gap: 0; }
.bs-review {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--color-divider);
}
.bs-review:last-child { border-bottom: 1px solid var(--color-divider); }
.bs-review__who { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.bs-review__meta { font-size: 13px; line-height: 20px; margin-top: 4px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-review__body { font-size: 16px; line-height: 26px; margin: 0; max-width: 64ch; }

/* ══════════════════════════════════════════════════════════════════════
   13. Responsive
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .bs-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-quotes { grid-template-columns: 1fr; gap: 28px; }
  .bs-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  :root { --bs-gutter: 20px; }
  .bs-hero { padding-top: 44px; padding-bottom: 36px; }
  .bs-header { gap: 12px; }
  .bs-header .wp-block-site-title, .bs-header .bs-brand { font-size: 17px; }
  .bs-plate__head > * + * { border-left: 0; border-top: 1px solid var(--color-divider); }
  .bs-plate__head > *:first-child { flex-basis: 100%; }
  .bs-table, .bs-table tbody, .bs-table tr, .bs-table td { display: block; width: auto; }
  .bs-table thead { display: none; }
  .bs-table tbody tr { border-bottom: 1px solid var(--color-divider); padding: 14px 0; }
  .bs-table tbody tr:last-child { border-bottom: 0; }
  .bs-table tbody td { border: 0; padding: 2px 24px; }
  .bs-table tbody td:first-child { width: auto; }
  .bs-table tbody td:nth-child(3) { font-size: 20px; }
  .bs-services { grid-template-columns: 1fr; gap: 24px; }
  .bs-projects { grid-template-columns: 1fr; }
  .bs-review { grid-template-columns: 1fr; gap: 12px; }
  .bs-cta { padding: 24px; }
  .bs-footer { flex-direction: column; gap: 6px; }
  .wp-block-button__link, .btn { min-height: 48px; }
}

/* Tap targets on touch devices never fall below 44px. */
@media (pointer: coarse) {
  .bs-header .wp-block-navigation a,
  .bs-phone { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ══════════════════════════════════════════════════════════════════════
   14. Block-editor bindings
   ══════════════════════════════════════════════════════════════════ */

.bs-site { max-width: 1120px; margin: 0 auto; }

/* Registered block styles (Group → Styles) */
.wp-block-group.is-style-berglund-frame {
  position: relative;
  border: 1px solid var(--color-divider);
  padding: 28px 32px;
}
.wp-block-group.is-style-berglund-frame::after {
  content: "";
  position: absolute; inset: -6px; pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0),
    linear-gradient(var(--bs-mark) 0 0), linear-gradient(var(--bs-mark) 0 0);
  background-size: 11px 1px, 11px 1px, 11px 1px, 11px 1px, 1px 11px, 1px 11px, 1px 11px, 1px 11px;
  background-position:
    left top 5px, right top 5px, left bottom 5px, right bottom 5px,
    left 5px top, right 5px top, left 5px bottom, right 5px bottom;
}

.wp-block-group.is-style-berglund-field {
  background: var(--color-accent-900);
  color: var(--color-bg);
  padding: 52px var(--bs-gutter);
}
.is-style-berglund-field :where(h1, h2, h3, h4, p) { color: var(--color-bg); }
.is-style-berglund-field .bs-kicker { color: var(--color-accent-300); }

/* core/table renders inside a <figure>, so the plate styling reaches through it */
.bs-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bs-table thead th:nth-child(1) { width: 72px; }
.bs-table thead th:nth-child(2) { width: 34%; }
.bs-table thead th:nth-child(3) { width: 20%; }

/* core/post-template emits a <ul>; the grid classes sit on it */
ul.bs-services, ul.bs-projects { display: grid; }

.bs-quotes.wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.bs-reviews.wp-block-post-template { list-style: none; padding: 0; margin: 0; }

.bs-pagination {
  display: flex; gap: 16px; padding: 32px 0 0;
  font-family: var(--font-heading); font-weight: 600;
  border-top: 1px solid var(--color-divider);
}

/* Review quotes rendered from the Reviews post type */
.bs-quote .wp-block-post-excerpt__excerpt,
.bs-quote .wp-block-post-excerpt p {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 21px; line-height: 28px; letter-spacing: 0;
  margin: 0;
}
.bs-quote__cite {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 16px 0 0 !important;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.bs-quote .wp-block-post-excerpt__more-text { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   15. Core overrides — neutralise WordPress defaults that fight the grid
   ══════════════════════════════════════════════════════════════════ */

/* Flow layout adds a block-gap margin to every child; these containers space themselves. */
body .bs-site > *,
body .bs-header > *,
body .bs-plate > *,
body .bs-plate__head > * { margin-block: 0; }
body .wp-block-group.bs-plate { margin-bottom: 64px; }
body .bs-plate__head p { margin: 0; }

/* Header and footer align to the same 1120px column as the content. */
.bs-header,
.bs-footer { padding-inline: max(var(--bs-gutter), calc((100% - 1120px) / 2 + var(--bs-gutter))); }

/* Table: drop core's cell borders and heavy header rule, keep the plate's hairlines. */
.wp-block-table.bs-table { margin: 0; overflow: visible; }
.wp-block-table.bs-table :is(table, thead, tbody, tfoot, tr, th, td) { border: 0; }
.wp-block-table.bs-table thead th { border-bottom: 1px solid var(--color-divider); }
.wp-block-table.bs-table tbody td { border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); vertical-align: middle; }
.wp-block-table.bs-table tbody tr:last-child td { border-bottom: 0; }

/* Separator: full-width hairline, not core's 100px stub. */
hr.wp-block-separator.bs-rule:not(.is-style-dots) {
  width: 100%; max-width: none; height: 1px;
  border: 0; background: var(--color-divider);
  margin: 14px 0 32px;
}

@media (max-width: 782px) {
  .wp-block-table.bs-table tbody tr { border-bottom: 1px solid var(--color-divider); }
  .wp-block-table.bs-table tbody td { border-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   16. Jobs, reviews, About and Estimate
   ══════════════════════════════════════════════════════════════════ */

body .bs-project > *,
body .bs-card > *,
body .bs-principles > *,
body .bs-contact > *,
body .bs-job-review > * { margin-block: 0; }
body .bs-card > .bs-card__title { margin-top: 6px; }
body .bs-card > .bs-card__body { margin-top: 10px; }

/* Job cards */
.bs-projects .bs-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
body .bs-project > .bs-project__type {
  margin-top: 14px;
  font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.bs-project__type a { color: inherit; text-decoration: none; }
body .bs-project > .bs-project__title { margin-top: 6px; }
body .bs-project > .bs-project__type + .bs-project__title { margin-top: 4px; }
body .bs-project > p:last-child { margin-top: 5px; }
.bs-job-line { font-size: 13px; line-height: 20px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* Job facts strip */
.bs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 30px;
}
.bs-facts__cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 20px;
  border-left: 1px solid var(--color-divider);
}
.bs-facts__cell:first-child { border-left: 0; }
.bs-facts__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.bs-facts__value {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 22px; line-height: 26px; letter-spacing: 0.02em;
}

/* Job write-up — prose stays readable, photos run the full column */
.bs-job-body { margin-top: 36px; }
.bs-job-body .wp-block-post-content > :where(p, ul, ol, h2, h3, h4) { max-width: 64ch; }
.bs-job-body p, .bs-job-body li { font-size: 16px; line-height: 26px; }
.bs-job-body h2 { font-size: 26px; line-height: 30px; letter-spacing: 0.02em; text-transform: uppercase; margin: 44px 0 14px; }
.bs-job-body h3 { font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; margin: 28px 0 10px; }
.bs-job-body .wp-block-columns { gap: 24px; }

/* Job photos wear the steel wash; hover or tap to see true color. */
.bs-job-body .wp-block-image { width: fit-content; max-width: 100%; }
.bs-job-body .wp-block-image img { border-radius: 0; }
.bs-job-body .wp-block-columns .wp-block-image { width: 100%; }
.bs-job-body .wp-block-columns .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bs-job-body .wp-block-image > figcaption,
.bs-job-body .wp-block-image > .wp-element-caption {
  margin: 0; padding-top: 10px;
  background: var(--color-bg);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.bs-job-body .wp-block-gallery { gap: 12px; margin-top: 0; }
.bs-job-body .wp-block-gallery .wp-block-image > figcaption { background: linear-gradient(0deg, rgb(0 0 0 / 55%), transparent); color: #fff; padding: 24px 10px 8px; }

/* Review linked on a job page */
.bs-job-review { margin-top: 48px; padding: 28px 32px; }
.bs-job-review blockquote { margin: 0; }
.bs-job-review blockquote p {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 24px; line-height: 32px; margin: 0 0 10px;
  max-width: 60ch;
}
.bs-job-review figcaption { font-size: 14px; line-height: 22px; margin-top: 16px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* Reviews page */
.bs-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  padding: 18px 24px; margin-bottom: 32px;
}
.bs-summary__value {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 40px; line-height: 44px; letter-spacing: 0.01em;
}
.bs-summary__label { font-size: 14px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-summary { gap: 12px 40px; }
.bs-summary__cell { display: flex; align-items: baseline; gap: 10px; }
.bs-summary__link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--color-accent-700); }
.bs-text-link, .bs-profiles a { color: var(--color-accent-700); font-weight: 600; }
.bs-text-link:hover, .bs-profiles a:hover { color: var(--color-accent-900); }
.bs-cta__actions .bs-text-link { font-size: 15px; }
.bs-footer .bs-profiles { margin-left: 8px; }

/* Work gallery */
.bs-gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bs-chip {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text); background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent); border-radius: 0;
  padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.bs-chip:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.bs-chip[aria-pressed="true"] { background: var(--color-accent-100); border-color: var(--color-accent); color: var(--color-accent-800); }
.bs-chip:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.bs-gallery__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 0; padding: 0; list-style: none;
}
.bs-gallery__cell { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bs-gallery__cell[hidden] { display: none; }
.bs-gallery__item {
  display: block; width: 100%; padding: 0; border-radius: 0; cursor: zoom-in;
  background: var(--color-surface); aspect-ratio: 4 / 3; overflow: hidden;
}
.bs-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bs-gallery__item:hover img, .bs-gallery__item:focus-visible img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .bs-gallery__item img { transition: none; } }
.bs-gallery__item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.bs-gallery__caption { font-size: 14px; line-height: 20px; color: var(--color-text); }
.bs-gallery__caption span {
  display: block; margin-bottom: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-700);
}

.bs-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--color-bg);
}
.bs-lightbox::backdrop { background: color-mix(in srgb, var(--color-accent-900) 94%, black); }
.bs-lightbox[open] { display: grid; place-items: center; }
.bs-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 160px); }
.bs-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; display: block; }
.bs-lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; font-size: 15px; text-align: center; }
.bs-lightbox__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-300); }
.bs-lightbox__kicker:empty { display: none; }
.bs-lightbox__link { color: var(--color-bg); font-weight: 600; }
.bs-lightbox__close, .bs-lightbox__nav {
  position: fixed; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  font-size: 32px; line-height: 1; font-family: var(--font-heading);
  color: var(--color-bg); background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-bg) 40%, transparent); border-radius: 0; cursor: pointer;
}
.bs-lightbox__close:hover, .bs-lightbox__nav:hover { background: color-mix(in srgb, var(--color-bg) 14%, transparent); }
.bs-lightbox__close:focus-visible, .bs-lightbox__nav:focus-visible { outline: 2px solid var(--color-accent-300); outline-offset: 2px; }
.bs-lightbox__close { top: 20px; right: 20px; }
.bs-lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.bs-lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
.bs-lightbox__nav[hidden] { display: none; }
.bs-lightbox__count { position: fixed; top: 34px; left: 24px; font-size: 13px; letter-spacing: 0.08em; color: var(--color-accent-300); }

@media (max-width: 1080px) { .bs-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 782px) {
  .bs-gallery__grid { grid-template-columns: 1fr; gap: 20px; }
  .bs-lightbox__fig { max-width: calc(100vw - 24px); }
  .bs-lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .bs-lightbox__fig img { max-height: calc(100vh - 200px); }
}
.bs-review__meta { display: block; }
.bs-review__meta a { color: var(--color-accent-700); }

/* About / Estimate */
.bs-principles {
  counter-reset: bs-svc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.bs-contact { padding: 24px 26px; }
body .bs-contact > .bs-aside__label { margin: 20px 0 4px; }
body .bs-contact > .bs-aside__label:first-child { margin-top: 0; }
.bs-contact p { margin: 0; font-size: 16px; line-height: 24px; }
.bs-form-slot .bs-placeholder { aspect-ratio: auto; min-height: 360px; }

/* Estimate request form */
.bs-form-slot { padding: 28px 32px; }
.bs-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px; margin: 0;
}
.bs-form > * { margin: 0; }
.bs-form__full { grid-column: 1 / -1; }
.bs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; }
.bs-field label, .bs-field legend { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--color-text); padding: 0; }
.bs-field legend { margin-bottom: 6px; }
.bs-opt { font-weight: 400; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.bs-input {
  font: inherit; font-size: 15px; line-height: 22px;
  color: var(--color-text);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  border-radius: 0;
  padding: 10px 12px; min-height: 44px; width: 100%;
}
.bs-input::placeholder { color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.bs-input:hover { border-color: var(--color-accent-500); }
.bs-input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); }
textarea.bs-input { min-height: 140px; resize: vertical; }
select.bs-input {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 13px center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.bs-input[type="file"] { padding: 8px 10px; cursor: pointer; }
.bs-input[type="file"]::file-selector-button {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-divider); border-radius: 0;
  padding: 6px 14px; margin-right: 12px; cursor: pointer;
}
.bs-input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.bs-form__hint { font-size: 13px; line-height: 20px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-seg { display: inline-flex; width: fit-content; border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent); }
.bs-seg label {
  position: relative; cursor: pointer;
  padding: 10px 20px; min-height: 44px;
  display: inline-flex; align-items: center;
  font-weight: 500; font-size: 14px;
  border-left: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
}
.bs-seg label:first-child { border-left: 0; }
.bs-seg label:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.bs-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bs-seg label:has(input:checked) { background: var(--color-accent-100); color: var(--color-accent-800); }
.bs-seg label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.bs-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 6px; }
.bs-form__actions .wp-block-button__link { font-size: 16px; padding: 13px 28px; }
.bs-form__notice {
  padding: 12px 16px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  font-size: 14px; line-height: 22px;
}
.bs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bs-form-sent { padding: 12px 0; }
.bs-form-sent p:last-child { font-size: 16px; line-height: 26px; margin: 12px 0 0; max-width: 48ch; }

@media (max-width: 782px) {
  .bs-form { grid-template-columns: 1fr; }
  .bs-form-slot { padding: 22px 20px; }
}

@media (max-width: 782px) {
  .bs-facts { grid-template-columns: 1fr 1fr; }
  .bs-facts__cell { border-left: 0; border-top: 1px solid var(--color-divider); }
  .bs-facts__cell:nth-child(-n + 2) { border-top: 0; }
  .bs-job-review { padding: 22px; }
}

/* Live Google reviews */
ul.bs-quotes, ul.bs-reviews { list-style: none; padding: 0; margin: 0; }
.bs-quote { display: flex; flex-direction: column; gap: 10px; }
.bs-quote .bs-google-quote__text {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 22px; line-height: 30px; margin: 0;
}
.bs-quote p.bs-quote__cite { font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 20px; margin: 0; color: var(--color-text); }
.bs-quote .bs-review__meta { margin-top: 0; }
.bs-google-reviews .bs-review__who { margin: 0; }
.bs-google-reviews .bs-review__who a { color: inherit; text-decoration: none; }
.bs-google-reviews .bs-review__who a:hover { color: var(--color-accent-700); }
.bs-google-reviews .bs-review__body p { margin: 0 0 12px; }
.bs-google-reviews .bs-review__body p:last-child { margin-bottom: 0; }
.bs-google-reviews + .bs-google-attrib { margin-bottom: 48px; }
.bs-stars { color: var(--color-accent-700); letter-spacing: 0.08em; }
.bs-stars__off { color: color-mix(in srgb, var(--color-text) 20%, transparent); }
.bs-google-attrib {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px;
  margin: 20px 0 0; font-size: 13px; line-height: 20px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.bs-google-attrib a { font-weight: 600; color: var(--color-accent-700); }
.bs-google-attrib a:hover { color: var(--color-accent-900); }

/* Rotating reviews */
.bs-rotator { display: flex; flex-direction: column; gap: 22px; }
.bs-rotator__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-rotator__rating { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 34px; line-height: 38px; color: var(--color-text); }
.bs-rotator__score .bs-stars { font-size: 18px; }
.bs-rotator__score a { margin-left: auto; font-weight: 600; color: var(--color-accent-700); }
.bs-rotator__score a:hover { color: var(--color-accent-900); }
.bs-rotator__stage { display: grid; padding: 44px 56px; min-height: 260px; }
.bs-rotator__slide {
  grid-area: 1 / 1; margin: 0; align-self: center;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.bs-rotator__slide[data-active] { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.bs-rotator__slide .bs-stars { font-size: 16px; }
.bs-rotator__slide blockquote { margin: 0; }
.bs-rotator__slide blockquote p {
  margin: 0; max-width: 46ch;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 30px; line-height: 38px; letter-spacing: 0.005em; text-wrap: pretty;
}
.bs-rotator__more { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-accent-700); white-space: nowrap; }
.bs-rotator__slide figcaption { font-size: 14px; line-height: 20px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-rotator__slide figcaption strong { color: var(--color-text); font-weight: 600; }
.bs-rotator__controls { display: flex; align-items: center; gap: 12px; }
.bs-rotator__btn, .bs-rotator__pause {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  font: inherit; color: var(--color-text); background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent); border-radius: 0;
}
.bs-rotator__btn { font-family: var(--font-heading); font-size: 26px; line-height: 1; }
.bs-rotator__pause { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.bs-rotator__btn:hover, .bs-rotator__pause:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); border-color: var(--color-accent); }
.bs-rotator__btn:active, .bs-rotator__pause:active { background: var(--color-accent-100); }
.bs-rotator__btn:focus-visible, .bs-rotator__pause:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.bs-rotator__counter { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; letter-spacing: 0.06em; min-width: 64px; text-align: center; }
.bs-rotator__bar { flex: 1; height: 1px; background: var(--color-divider); position: relative; }
.bs-rotator__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--color-accent); }
.bs-admin-hint {
  margin: 0 0 18px; padding: 10px 14px; font-size: 13px; line-height: 20px;
  border: 1px dashed var(--color-accent); color: var(--color-accent-800); background: var(--color-accent-100);
}
.bs-admin-hint a { color: var(--color-accent-900); font-weight: 600; }
@media (max-width: 782px) {
  .bs-rotator__stage { padding: 28px 22px; min-height: 300px; }
  .bs-rotator__slide blockquote p { font-size: 22px; line-height: 30px; }
  .bs-rotator__score a { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-rotator__slide, .bs-rotator__slide[data-active] { transition: none; transform: none; }
}

.bs-services__more { font-size: 17px; }
.bs-services__more a { font-weight: 600; color: var(--color-accent-700); white-space: nowrap; }
.bs-services__more a:hover { color: var(--color-accent-900); }

/* Logo */
.bs-header { padding-block: 14px; }
.bs-logo {
  display: inline-flex; align-items: center;
  margin-right: auto; padding: 4px 0;
  line-height: 0; text-decoration: none;
}
.bs-logo__img { display: block; height: 34px; width: auto; max-width: 100%; }
.bs-logo:hover .bs-logo__img { opacity: 0.78; }
.bs-logo:active .bs-logo__img { opacity: 0.62; }
.bs-logo:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
@media (max-width: 782px) {
  .bs-logo__img { height: 26px; }
}

/* Nothing may push the page wider than the phone; a stray wide line makes iOS zoom the whole page out. */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 782px) {
  .bs-plate__head > * { padding: 10px 18px; }
  .bs-table td { overflow-wrap: anywhere; }
  .bs-table tbody td:nth-child(3) { white-space: normal; }
  .bs-hero .wp-block-buttons { flex-wrap: wrap; gap: 12px; }
}

/* Hero discount plate */
.bs-hero .bs-discount {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  max-width: 600px; margin: 32px 0 0; padding: 0;
}
body .bs-discount > *, body .bs-discount__text > * { margin: 0; }
.bs-discount__value {
  padding: 16px 24px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 46px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--color-accent-700); white-space: nowrap;
}
.bs-discount__text {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 24px; align-self: stretch; justify-content: center;
  border-left: 1px solid var(--color-divider);
}
.bs-discount__who {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 24px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-text);
}
.bs-discount__note { font-size: 14px; line-height: 20px; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.bs-hero .bs-discount + .wp-block-buttons { margin-top: 28px; }
@media (max-width: 782px) {
  .bs-discount__value { font-size: 34px; padding: 14px 16px; }
  .bs-discount__text { padding: 12px 16px; }
  .bs-discount__who { font-size: 16px; line-height: 20px; }
  .bs-discount__note { font-size: 13px; }
}

/* ═════════════════════════════════════════════════════════════════
   17. Background bands — steel-ramp fields behind whole sections.
   Customize → Berglund Services → Background style toggles the body
   class (bs-bg-bands / bs-bg-steel / bs-bg-paper).
   ═════════════════════════════════════════════════════════════════ */

:is(.bs-bg-bands, .bs-bg-steel) .bs-band { position: relative; isolation: isolate; }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(50% - 50vw);
  pointer-events: none;
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-section.bs-band { padding-top: 64px !important; padding-bottom: 64px !important; }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band + .bs-section { padding-top: 64px; }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--hero + .bs-section { padding-top: 56px; }

/* Hero — pale steel with drafting-paper grid (bands) */
.bs-bg-bands .bs-band--hero::before {
  background-color: var(--bs-tint);
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-accent) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 13%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center -1px;
  box-shadow: inset 0 -1px 0 var(--color-divider);
}

/* Tinted band — How I work */
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--tint::before {
  background: var(--bs-tint);
  box-shadow: inset 0 1px 0 var(--color-divider), inset 0 -1px 0 var(--color-divider);
}

/* Steel field — reversed type, light hairlines and marks */
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel,
.bs-bg-steel .bs-band--hero {
  --bs-mark: color-mix(in srgb, var(--color-bg) 60%, transparent);
  --color-divider: color-mix(in srgb, var(--color-bg) 24%, transparent);
  color: var(--color-bg);
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel::before,
.bs-bg-steel .bs-band--hero::before { background: var(--color-accent-900); }
.bs-bg-steel .bs-band--hero::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-accent-300) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent-300) 9%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center -1px;
}

:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel :is(.bs-cta__title, .bs-phone),
.bs-bg-steel .bs-band--hero :is(.bs-hero__title, .bs-discount__who) { color: var(--color-bg); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel .bs-cta p,
.bs-bg-steel .bs-band--hero :is(.bs-note, .bs-discount__note, .bs-lede) { color: color-mix(in srgb, var(--color-bg) 80%, transparent); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel :is(.bs-text-link, a:not(.wp-block-button__link)),
.bs-bg-steel .bs-band--hero :is(.bs-kicker, .bs-accent, .bs-discount__value) { color: var(--color-accent-300); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel .bs-text-link:hover { color: var(--color-accent-200); }

/* Buttons on steel: light-steel fill, ink type; outline reversed */
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.bs-bg-steel .bs-band--hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--color-accent-300); color: var(--color-accent-900);
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.bs-bg-steel .bs-band--hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--color-accent-200); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.bs-bg-steel .bs-band--hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:active { background: var(--color-accent-400); }
.bs-bg-steel .bs-band--hero .is-style-outline .wp-block-button__link {
  color: var(--color-bg); border-color: color-mix(in srgb, var(--color-bg) 45%, transparent); background: transparent;
}
.bs-bg-steel .bs-band--hero .is-style-outline .wp-block-button__link:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-band--steel :focus-visible,
.bs-bg-steel .bs-band--hero :focus-visible { outline-color: var(--color-accent-300); }

/* Footer on steel */
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer {
  background: var(--color-accent-900);
  color: color-mix(in srgb, var(--color-bg) 78%, transparent);
  border-top: 0;
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer a { color: var(--color-accent-300); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer a:hover { color: var(--color-accent-200); }
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer :focus-visible { outline-color: var(--color-accent-300); }

@media (max-width: 782px) {
  :is(.bs-bg-bands, .bs-bg-steel) .bs-section.bs-band { padding-top: 44px !important; padding-bottom: 44px !important; }
  :is(.bs-bg-bands, .bs-bg-steel) .bs-band + .bs-section { padding-top: 44px; }
  :is(.bs-bg-bands, .bs-bg-steel) .bs-band--hero + .bs-section { padding-top: 40px; }
  :is(.bs-bg-bands, .bs-bg-steel) .bs-band--hero::before { background-size: 24px 24px; }
}

/* True-color photos: neutralise any duotone a saved Site Editor copy still carries. */
.wp-block-post-featured-image img,
.bs-figure img,
.bs-job-body img { filter: none !important; mix-blend-mode: normal !important; }
.duotone::after { content: none; }
.post-type-archive-project .wp-block-query + .bs-gallery { margin-top: 48px; }

/* "Get a quote" lives in the mobile menu only; the desktop header has its own button. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .bs-nav-quote { display: none; }
.wp-block-navigation__responsive-container.is-menu-open .bs-nav-quote a {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  color: var(--color-accent-700) !important;
}

/* Mobile header: one row — logo · call · menu. */
@media (max-width: 782px) {
  .bs-header { flex-wrap: nowrap; gap: 6px; padding-block: 10px; }
  .bs-header .bs-logo { order: 0; flex: 1 1 auto; min-width: 0; margin-right: 0; }
  .bs-header .bs-logo__img { height: 24px; }
  .bs-header .bs-phone {
    order: 1; flex: none;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; min-height: 44px; padding: 0;
    font-size: 0; color: var(--color-accent-700);
    border: 1px solid var(--color-divider);
  }
  .bs-header .bs-phone::before {
    content: ""; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .bs-header .bs-phone:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
  .bs-header .wp-block-navigation { order: 2; flex: none; }
  .bs-header .wp-block-navigation__responsive-container-open {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--color-divider);
  }
  .bs-header .bs-btn-compact { display: none; }
}

/* Owner / site photograph inside a framed figure */
.bs-figure .wp-block-image.bs-photo { margin: 0; }
.bs-figure .bs-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 60%; border-radius: 0; }

/* Service area */
ul.bs-areas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.bs-areas > li { margin: 0; }
.bs-area {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px; text-decoration: none; color: var(--color-text);
}
a.bs-area:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
a.bs-area:active { background: var(--color-accent-100); }
a.bs-area:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.bs-area__name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 22px; line-height: 26px; letter-spacing: 0.02em; text-transform: uppercase;
}
a.bs-area .bs-area__name::after { content: " →"; color: var(--color-accent-700); }
.bs-area__towns { font-size: 14px; line-height: 21px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.bs-area-intro { font-size: 16px; line-height: 26px; margin: 0; max-width: 64ch; }
.bs-area-intro a { color: var(--color-accent-700); font-weight: 600; }
ul.bs-towns {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 0; list-style: none;
}
.bs-towns li {
  margin: 0; padding: 8px 14px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--color-divider);
}
.bs-area-links { flex-basis: 100%; font-size: 13px; line-height: 20px; }
.bs-area-links a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.bs-area-links a:hover { text-decoration-color: currentColor; }
@media (max-width: 1080px) { ul.bs-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { ul.bs-areas { grid-template-columns: 1fr; } }

/* Phone call bar */
.bs-callbar { display: none; }
@media (max-width: 782px) {
  .bs-callbar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    background: color-mix(in srgb, var(--color-bg) 94%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-divider);
  }
  .bs-callbar a {
    display: grid; place-items: center; min-height: 48px;
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
    color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text) 28%, transparent);
  }
  .bs-callbar a:active { background: var(--color-accent-100); }
  .bs-callbar a.bs-callbar__call { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
  .bs-callbar a.bs-callbar__call:active { background: var(--color-accent-600); }
  .bs-callbar a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
  /* The header call button is redundant once the bar is there. */
  .bs-header .bs-phone { display: none !important; }
  body:has(.bs-lightbox[open]) .bs-callbar { display: none; }
}

/* ═════════════════════════════════════════════════════════════════
   18. Footer — brand, contact, counties, pages; base line
   ═════════════════════════════════════════════════════════════════ */

/* Header, main and footer butt together — no page-colored gap between the steel estimate band and the footer. */
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }

.bs-footer {
  --bs-ft-ink: var(--color-text);
  --bs-ft-muted: color-mix(in srgb, var(--color-text) 68%, transparent);
  --bs-ft-link: var(--color-accent-700);
  --bs-ft-link-hover: var(--color-accent-900);
  --bs-ft-rule: var(--color-divider);
  display: block !important;
  padding-top: 56px; padding-bottom: 28px;
  font-size: 14px; line-height: 22px;
  color: var(--bs-ft-muted);
  border-top: 1px solid var(--bs-ft-rule);
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer {
  --bs-ft-ink: var(--color-bg);
  --bs-ft-muted: color-mix(in srgb, var(--color-bg) 74%, transparent);
  --bs-ft-link: var(--color-bg);
  --bs-ft-link-hover: var(--color-accent-300);
  --bs-ft-rule: color-mix(in srgb, var(--color-bg) 18%, transparent);
  border-top: 1px solid var(--bs-ft-rule);
}
body .bs-footer > *, body .bs-footer__grid > *, body .bs-footer__col > *, body .bs-footer__brand > * { margin: 0; }

.bs-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px 48px;
}
.bs-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.bs-footer__logo { display: inline-block; line-height: 0; width: fit-content; }
.bs-footer__logo img { height: 30px; width: auto; }
.bs-footer__logo-light { display: none; }
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer__logo-dark { display: none; }
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer__logo-light { display: block; }
.bs-footer__logo:hover img { opacity: 0.8; }
.bs-footer__tagline { max-width: 34ch; font-size: 15px; line-height: 24px; }

.bs-footer__col { display: flex; flex-direction: column; gap: 14px; }
.bs-footer__head {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 18px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bs-ft-ink);
  padding-bottom: 10px; border-bottom: 1px solid var(--bs-ft-rule);
}
.bs-footer__head a { color: inherit !important; text-decoration: none !important; }
ul.bs-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.bs-footer__list--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bs-footer__list li { margin: 0; }
.bs-footer a { color: var(--bs-ft-link); text-decoration: none; }
.bs-footer a:hover { color: var(--bs-ft-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.bs-footer a:focus-visible { outline: 2px solid var(--bs-ft-link-hover); outline-offset: 2px; }
.bs-footer .bs-footer__phone {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 22px; line-height: 26px; letter-spacing: 0.02em;
}
:is(.bs-bg-bands, .bs-bg-steel) .bs-footer .bs-footer__phone { color: var(--color-accent-300); }

.bs-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 44px !important; padding-top: 18px;
  border-top: 1px solid var(--bs-ft-rule);
  font-size: 13px;
}
.bs-footer__base p { margin: 0; }

@media (max-width: 1080px) {
  .bs-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .bs-footer { padding-top: 40px; padding-bottom: calc(24px + 66px + env(safe-area-inset-bottom)); }
  .bs-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .bs-footer__base { margin-top: 32px !important; flex-direction: column; }
}

/* Pagination: spaced, tappable page numbers */
.wp-block-query-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 32px; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; letter-spacing: 0.04em;
  color: var(--color-text); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--color-text) 24%, transparent);
}
.wp-block-query-pagination a:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); border-color: var(--color-accent); color: var(--color-accent-700); }
.wp-block-query-pagination .page-numbers.current { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.wp-block-query-pagination .page-numbers.dots { border: 0; min-width: 0; }
.wp-block-query-pagination a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Recent jobs on county pages */
.bs-area-jobs { padding-bottom: 56px; }
.bs-area-job__img { display: block; line-height: 0; }
.bs-area-job__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bs-area-jobs ul.bs-projects { list-style: none; margin: 0; padding: 0; }

/* Leave-a-review page */
.bs-review-page { max-width: 720px; }
.bs-review-cta .wp-block-button__link { font-size: 20px; padding: 18px 36px; }

/* ═════════════════════════════════════════════════════════════════
   19. Homepage photo slider — full-bleed photos, controls on the image
   ═════════════════════════════════════════════════════════════════ */

html, body { overflow-x: clip; }
.bs-slider {
  position: relative; background: var(--color-accent-900);
  margin: 0 calc(50% - 50vw) !important; width: auto;
}
.bs-slider__track {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 16 / 6.5; max-height: min(72vh, 780px); min-height: 360px;
  touch-action: pan-y;
}
.bs-slider__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.bs-slider__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.9s ease; }
.bs-slider__slide img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 7s ease-out;
}
.bs-slider__slide.is-active img { transform: scale(1); }
/* A soft shade along the bottom edge so the controls read on bright photos. */
.bs-slider__track::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-accent-900) 55%, transparent), transparent);
}

/* Square line indicators; the active one fills as the photo plays. */
.bs-slider__dots {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 2px;
}
.bs-slider__dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.bs-slider__dot span {
  position: relative; display: block; width: 28px; height: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--color-bg) 45%, transparent);
  transition: background-color 0.2s ease;
}
.bs-slider__dot:hover span { background: color-mix(in srgb, var(--color-bg) 80%, transparent); }
.bs-slider__dot i {
  position: absolute; inset: 0; background: var(--color-bg);
  transform: scaleX(0); transform-origin: left center;
}
.bs-slider__dot[aria-current="true"] i { transform: scaleX(1); }
.bs-slider.is-running .bs-slider__dot[aria-current="true"] i { animation: bs-slide-fill var(--bs-slide-ms, 5000ms) linear both; }
@keyframes bs-slide-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.bs-slider__pause, .bs-slider__arrow {
  position: absolute; z-index: 3; padding: 0; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--color-bg); border-radius: 0;
  background: color-mix(in srgb, var(--color-accent-900) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-bg) 35%, transparent);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.bs-slider__pause { left: var(--bs-gutter); bottom: 14px; }
.bs-slider__pause .bs-i-play { display: none; }
.bs-slider__pause[aria-pressed="true"] .bs-i-play { display: block; }
.bs-slider__pause[aria-pressed="true"] .bs-i-pause { display: none; }
.bs-slider__arrow { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; opacity: 0; }
.bs-slider__arrow--prev { left: var(--bs-gutter); }
.bs-slider__arrow--next { right: var(--bs-gutter); }
.bs-slider:hover .bs-slider__arrow, .bs-slider__arrow:focus-visible { opacity: 1; }
.bs-slider__pause:hover, .bs-slider__arrow:hover { background: var(--color-accent-800); }
.bs-slider__pause:active, .bs-slider__arrow:active { background: var(--color-accent-700); }
.bs-slider :is(.bs-slider__pause, .bs-slider__arrow, .bs-slider__dot):focus-visible { outline: 2px solid var(--color-bg); outline-offset: 2px; }

/* Hero sits right under the slider now: less top padding. */
.bs-site:has(.bs-slider) .bs-hero { padding-top: 56px; }
.bs-slider-hint { margin: 24px var(--bs-gutter) 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .bs-slider__slide, .bs-slider__slide img { transition: none !important; transform: none !important; }
}
@media (hover: none) {
  .bs-slider__arrow { display: none; }
}
@media (max-width: 782px) {
  .bs-slider__track { aspect-ratio: 4 / 3; min-height: 0; max-height: 64vh; }
  .bs-slider__dots { bottom: 6px; gap: 0; }
  .bs-slider__dot { width: 30px; }
  .bs-slider__dot span { width: 20px; }
  .bs-slider__pause { bottom: 6px; width: 40px; height: 40px; left: 12px; }
  .bs-site:has(.bs-slider) .bs-hero { padding-top: 36px; }
}

/* ═════════════════════════════════════════════════════════════════
   20. Memberships — chamber badges on paper tiles
   ═════════════════════════════════════════════════════════════════ */

.bs-members { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.bs-members--band {
  margin-top: 28px; padding: 20px 24px;
  border: 1px solid var(--color-divider);
  justify-content: space-between;
}
.bs-members__head {
  margin: 0; max-width: 30ch;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 22px; line-height: 26px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text);
}
ul.bs-members__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.bs-members__list li { margin: 0; }
.bs-members__badge {
  display: flex; align-items: center; justify-content: center; padding: 10px 14px;
  background: #fff; border: 1px solid var(--color-divider);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bs-members .bs-members__badge img {
  display: block; height: 84px !important; width: auto !important; max-width: 200px !important;
  object-fit: contain; margin: 0 !important; border: 0 !important; box-shadow: none !important;
}
a.bs-members__badge:hover { border-color: var(--color-accent-500); box-shadow: var(--shadow-sm); }
a.bs-members__badge:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.bs-members--footer { gap: 10px; flex-direction: column; align-items: flex-start; margin-top: 8px; }
.bs-members--footer .bs-members__head {
  font-family: var(--font-body); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; font-weight: 600;
  color: var(--bs-ft-muted, inherit);
}
.bs-members--footer ul.bs-members__list { gap: 10px; }
.bs-members--footer .bs-members__badge { padding: 6px 8px; border-color: transparent; }
.bs-members--footer .bs-members__badge img { height: 52px !important; max-width: 120px !important; }

@media (max-width: 782px) {
  .bs-members--band { padding: 18px; }
  .bs-members__head { font-size: 19px; line-height: 23px; }
  .bs-members--band ul.bs-members__list { width: 100%; }
  .bs-members--band .bs-members__list li { flex: 1 1 0; }
  .bs-members--band .bs-members__badge img { height: 72px !important; max-width: 100% !important; }
}

/* ═════════════════════════════════════════════════════════════════
   21. Service cards with photos; jobs on service pages
   ═════════════════════════════════════════════════════════════════ */

.bs-card:has(.bs-card__img) { display: flex; flex-direction: column; }
.bs-card__img {
  order: -1; display: block; line-height: 0;
  margin: -20px -20px 16px; border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}
body .bs-card > .bs-card__img { margin: -20px -20px 16px; }
.bs-card__img img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.5s ease;
}
.bs-card:hover .bs-card__img img { transform: scale(1.03); }
.bs-service-work { padding-bottom: 56px; }
.bs-service-work ul.bs-projects { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { .bs-card__img img { transition: none; } }

/* Services directly under the hero */
.bs-band--hero + .bs-section, .bs-hero + .bs-section { padding-top: 48px; }
