/* =========================================================================
   Service pages B: stairs-doors-joinery, furniture-restoration,
   decking-fencing-flooring, commercial-joinery.
   Linked only from those four pages. Uses the tokens in styles.css.
   ========================================================================= */

/* ---- typographic hero: crest watermark + plate ---- */
.sb-hero .ph-grid {
  align-items: center;
}
.sb-crest {
  position: absolute;
  right: -7%;
  top: 50%;
  width: min(680px, 64vw);
  aspect-ratio: 302/187;
  background: url('/img/logo.png') center/contain no-repeat;
  opacity: 0.075;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1) brightness(1.3);
}
@supports (animation-timeline: scroll()) {
  .sb-crest {
    animation: sb-drift linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90vh;
  }
}
@keyframes sb-drift {
  from {
    transform: translateY(-50%) scale(1);
  }
  to {
    transform: translateY(-34%) scale(1.07);
  }
}

.sb-plate {
  position: relative;
  margin: 0;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line-d);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(45, 46, 55, 0.7), rgba(21, 21, 26, 0.55));
  box-shadow:
    0 44px 80px -48px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(231, 233, 239, 0.08);
  animation: rise 0.95s var(--ease) 0.3s both;
}
.sb-plate::before {
  content: '';
  position: absolute;
  left: clamp(22px, 2.6vw, 34px);
  right: clamp(22px, 2.6vw, 34px);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.55;
}
.sb-plate-h {
  font-family: var(--roman);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.6;
}
.sb-plate ol {
  list-style: none;
}
.sb-plate li {
  border-top: 1px solid var(--line-d);
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 520ms);
}
.sb-plate li:first-child {
  border-top: 0;
}
.sb-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 14px;
  padding: 18px 0;
  min-height: 44px;
  color: inherit;
  position: relative;
}
.sb-n {
  font-family: var(--display);
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
  line-height: 1;
  grid-row: span 2;
  transition:
    color 0.35s,
    transform 0.45s var(--ease);
}
.sb-row b {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.sb-row .sb-d {
  display: block;
  font-size: 14.5px;
  color: var(--on-dark-soft);
  line-height: 1.5;
  margin-top: 3px;
}
a.sb-row {
  transition: padding 0.45s var(--ease);
}
a.sb-row::after {
  content: '\2192';
  position: absolute;
  right: 2px;
  top: 20px;
  color: var(--silver);
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.4s var(--ease);
}
a.sb-row:hover {
  padding-left: 8px;
}
a.sb-row:hover::after,
a.sb-row:focus-visible::after {
  opacity: 1;
  transform: none;
}
a.sb-row:hover .sb-n {
  color: #fff;
}
a.sb-row:focus-visible {
  outline: 2px solid var(--silver-bright);
  outline-offset: 2px;
}

.sb-plate--medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: clamp(30px, 3.4vw, 46px) clamp(22px, 2.6vw, 34px);
}
.sb-plate--medal .medal {
  --m: clamp(200px, 22vw, 270px);
}
.sb-plate--medal .medal .m-x {
  display: block;
}
.sb-plate--medal .sb-cap {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 24px);
  color: #fff;
  line-height: 1.3;
  font-weight: 500;
}
.sb-plate--medal .sb-cap small {
  display: block;
  margin-top: 8px;
  font-family: var(--roman);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
  line-height: 1.7;
}

/* small award line in a hero (non-gold awards) */
.sb-seal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
  max-width: 34em;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--silver-bright);
  line-height: 1.25;
}
.sb-seal svg {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--silver);
}
.sb-seal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(231, 233, 239, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}
.sb-seal a:hover {
  text-decoration-color: var(--silver-bright);
}

/* ---- features, media, quotes ---- */
.sb-media .sg-item {
  margin: 0;
}
.sb-media.narrow {
  max-width: 440px;
  width: 100%;
}
.sb-media.small {
  max-width: 380px;
  width: 100%;
}
.section.dark .sg-item button {
  border-color: var(--line-d);
  background: var(--ink-700);
}
.section.dark .sg-item figcaption {
  color: var(--on-dark-soft);
}
.section.dark .sg-item figcaption b {
  color: #fff;
}
.sb-photo-frame {
  position: relative;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(
    150deg,
    rgba(231, 233, 239, 0.55),
    rgba(154, 156, 166, 0.14) 42%,
    rgba(231, 233, 239, 0.38)
  );
  box-shadow: 0 44px 80px -42px rgba(0, 0, 0, 0.85);
}
.sb-photo-frame .sg-item button {
  border: 0;
  border-radius: 3px;
}
.sb-photo-frame figcaption {
  padding: 12px 6px 4px;
}
.split-media.sb-media {
  justify-self: center;
  width: 100%;
}
.split.sb-top {
  align-items: start;
}

.sb-quote {
  position: relative;
  margin: 30px 0 0;
  padding: 24px 26px 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  max-width: 62ch;
}
.sb-quote .stars {
  color: var(--navy-bright);
  letter-spacing: 3px;
  font-size: 15px;
}
.sb-quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.42;
  color: var(--ink);
  margin: 10px 0 16px;
}
.sb-quote figcaption {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.sb-quote figcaption b {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-size: 15px;
}
.section.dark .sb-quote {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-d);
  border-left-color: var(--silver);
}
.section.dark .sb-quote .stars {
  color: var(--silver-bright);
}
.section.dark .sb-quote blockquote {
  color: #fff;
}
.section.dark .sb-quote figcaption {
  color: var(--on-dark-soft);
}
.section.dark .sb-quote figcaption b {
  color: #fff;
}
.sb-quote.small blockquote {
  font-size: clamp(18px, 1.5vw, 20px);
}
.sb-credit {
  display: block;
  margin-top: 8px;
  font-family: var(--roman);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.section.dark .sb-credit {
  color: var(--silver-dim);
}

.sb-lede {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.65;
}
.section.dark .sb-lede {
  color: var(--on-dark-soft);
}
.sb-p {
  max-width: 60ch;
  color: var(--ink-soft);
  margin-top: 16px;
}
.section.dark .sb-p {
  color: var(--on-dark-soft);
}
.sb-p a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section.dark .sb-p a {
  color: var(--silver-bright);
}

/* two-photo mosaic (furniture) */
.sb-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  align-items: start;
}
.sb-mosaic .sg-item {
  margin: 0;
}
.sb-mosaic .sg-item.tall button {
  aspect-ratio: 1/1.08;
}
.sb-mosaic .sg-item.tall img {
  height: 100%;
  object-fit: cover;
}

/* photo request card */
.sb-prompt {
  position: relative;
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px dashed rgba(39, 64, 110, 0.5);
  border-radius: 6px;
  background: rgba(39, 64, 110, 0.05);
}
.section.dark .sb-prompt {
  border-color: rgba(199, 201, 209, 0.38);
  background: rgba(255, 255, 255, 0.03);
}
.sb-prompt .sb-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  margin-bottom: 18px;
}
.section.dark .sb-prompt .sb-ic {
  background: var(--ink-600);
  color: var(--silver-bright);
}
.sb-prompt .sb-ic svg {
  width: 22px;
  height: 22px;
}
.sb-prompt h3 {
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}
.section.dark .sb-prompt h3 {
  color: #fff;
}
.sb-prompt p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section.dark .sb-prompt p {
  color: var(--on-dark-soft);
}
.sb-prompt .hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* award band */
.sb-award {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.sb-award .medal {
  --m: clamp(150px, 16vw, 200px);
}
.sb-award .medal .m-st,
.sb-award .medal .m-yr {
  display: block;
}
.sb-award h2 {
  font-size: var(--fs-h2);
  color: #fff;
  margin: 14px 0 16px;
  line-height: 1.08;
}
.sb-award h2 em {
  color: var(--silver-bright);
}
.sb-award p {
  color: var(--on-dark-soft);
  max-width: 56ch;
}
.sb-award .sb-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: var(--roman);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.sb-award .sb-badge a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  transition: transform 0.45s var(--ease);
}
.sb-award .sb-badge a:hover {
  transform: translateY(-3px) rotate(-1.5deg);
}
.sb-award .sb-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}

/* person (decking page) */
.sb-person .sb-media {
  max-width: 360px;
  margin-inline: auto;
}
.sb-person h2 em {
  color: var(--silver-bright);
}

/* proof cards (commercial) */
.sb-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sb-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  border-radius: var(--radius);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.sb-pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(20, 28, 45, 0.45);
}
.sb-pk {
  font-family: var(--roman);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.sb-pv {
  font-family: var(--display);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.sb-pcard p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.sb-pcard.gold {
  border-top-color: var(--gold-deep);
  background: linear-gradient(180deg, rgba(215, 177, 90, 0.09), #fff 60%);
}
.sb-pcard.gold .sb-pk {
  color: var(--gold-deep);
}
.sb-note {
  margin-top: 26px;
  max-width: 66ch;
  color: var(--ink-soft);
}

/* checklist numbered (what to send) */
.sb-list {
  list-style: none;
  counter-reset: sb;
  display: grid;
  gap: 0;
  margin-top: 26px;
}
.sb-list li {
  counter-increment: sb;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
}
.sb-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.sb-list li::before {
  content: counter(sb, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
}
.sb-list li strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 980px) {
  .sb-award {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .sb-crest {
    width: min(520px, 90vw);
    right: -18%;
    top: 30%;
    opacity: 0.06;
  }
  .sb-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-plate {
    margin-top: 6px;
  }
}
@media (max-width: 680px) {
  .sb-mosaic {
    grid-template-columns: 1fr;
  }
  .sb-mosaic .sg-item.tall button {
    aspect-ratio: 4/3;
  }
  .sb-proof {
    grid-template-columns: 1fr;
  }
  .sb-seal {
    font-size: 18px;
  }
  .sb-row {
    grid-template-columns: 40px 1fr;
  }
  .sb-n {
    font-size: 30px;
  }
  .sb-prompt .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sb-plate,
  .sb-plate li,
  .sb-crest {
    animation: none;
  }
  .sb-crest {
    transform: translateY(-50%);
  }
  a.sb-row,
  a.sb-row::after,
  .sb-pcard,
  .sb-award .sb-badge a {
    transition: none;
  }
}
