.page-hero--has-image {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--clr-bg);
  border-bottom: none;
  padding: 0;
  /* Pull flush under the fixed nav. */
  margin-top: calc(-1 * (var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-8)));
}

.page-hero--has-image .page-hero__bg-picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.page-hero--has-image .page-hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

@media (max-width: 767px) {
  .page-hero--service-new-roofs .page-hero__bg-image {
    object-position: 85% 30%;
  }
}

.page-hero--has-image .page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(13, 21, 32, 0.55) 0%,
      rgba(13, 21, 32, 0.30) 40%,
      rgba(13, 21, 32, 0.65) 100%),
    linear-gradient(to right,
      rgba(13, 21, 32, 0.80) 0%,
      rgba(13, 21, 32, 0.20) 55%,
      transparent            100%);
  pointer-events: none;
}

.page-hero__breadcrumb-wrap {
  position: absolute;
  top: calc(var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-4));
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 10% 0 max(3%, calc(50% - 700px));
}

.page-hero__breadcrumb-wrap .breadcrumb {
  padding: 0;
}

.page-hero__breadcrumb-wrap .breadcrumb__link {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero__breadcrumb-wrap .breadcrumb__link:hover {
  color: var(--clr-accent);
}

.page-hero__breadcrumb-wrap .breadcrumb__item--current {
  color: rgba(255, 255, 255, 0.35);
}

.page-hero__breadcrumb-wrap .breadcrumb__item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.25);
}

/* Mirrors .hero-content from the home page.
   Top padding clears: nav + nav-offset + topbar + breadcrumb row + breathing room */
.page-hero--has-image .page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-20)) 10% var(--sp-20);
}

.page-hero--has-image .page-hero__heading {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  font-size: clamp(2.2rem, 1.4rem + 4.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--sp-6);
  /* Literal cubic-bezier here — var(--ease-smooth) contains a duration and
     would make the `animation` shorthand invalid when paired with a delay. */
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-hero__accent {
  color: var(--clr-accent);
  text-shadow:
    0 0 30px rgba(15, 187, 245, 0.35),
    0 0 60px rgba(15, 187, 245, 0.15),
    0 2px 20px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 1px rgba(15, 187, 245, 0.3);
  filter: brightness(1.1);
  animation: fadeInUp 0.8s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-hero--has-image .page-hero__intro {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--clr-text);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
  animation: fadeInUp 0.8s 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  padding: var(--sp-3);
  border-radius: var(--sp-2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.page-hero--has-image .page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  animation: fadeInUp 0.8s 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  animation: fadeIn 0.8s 0.95s cubic-bezier(0.4, 0, 0.2, 1) both;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: var(--sp-2) var(--sp-5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: var(--sp-8) 0 0;
  font-size: 0.92rem;
  color: var(--clr-text);
  animation: fadeIn 0.8s 0.95s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-hero__stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
}

.page-hero__badge-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-success);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Static glow — no animation keeps the paint cost flat. */
.page-hero__badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 20px 2px rgba(15, 187, 245, 0.65);
  pointer-events: none;
}

/* main.js fades this out on scroll. */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1.5s 1s both;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: fadeInUp 1s 1.2s both;
}

@media (max-width: 640px) {
  .page-hero__breadcrumb-wrap {
    padding: 0 var(--sp-6);
  }

  .page-hero--has-image .page-hero__content {
    padding: calc(var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-16)) var(--sp-6) var(--sp-16);
  }

  /* On mobile collapse to a single vertical gradient */
  .page-hero--has-image .page-hero__overlay {
    background:
      linear-gradient(to bottom,
        rgba(13, 21, 32, 0.65) 0%,
        rgba(13, 21, 32, 0.35) 50%,
        rgba(13, 21, 32, 0.75) 100%);
  }

  .page-hero--has-image .page-hero__actions {
    flex-direction: column;
  }

  .page-hero--has-image .page-hero__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.services-listing {
  background-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.svc-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-surface);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.svc-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--clr-accent);
  transform: translateY(-3px);
}

.svc-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.svc-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--clr-bg-dark);
}

.svc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.svc-card:hover .svc-card__img {
  transform: scale(1.05);
}

.svc-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, var(--clr-bg-surface-solid) 100%);
  color: var(--clr-text-muted);
}

.svc-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-3);
}

.svc-card__text {
  font-size: 0.93rem;
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  flex: 1;
}

.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent);
  transition: color var(--ease), gap var(--ease);
}

.svc-card:hover .svc-card__cta {
  color: var(--clr-accent-hover);
  gap: var(--sp-3);
}

.services-search {
  margin-bottom: var(--sp-8);
}

.services-search__wrap {
  position: relative;
  max-width: 560px;
  border-radius: var(--radius-full);
  background: rgba(36, 48, 67, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--clr-border-bright);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.services-search__wrap:focus-within {
  border-color: rgba(15, 187, 245, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 3px var(--clr-accent-subtle),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.services-search__icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-accent);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity var(--ease);
}

.services-search__wrap:focus-within .services-search__icon {
  opacity: 1;
}

.services-search__input {
  width: 100%;
  padding: 0.85rem var(--sp-5) 0.85rem 3rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--clr-text-heading);
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.services-search__input:focus {
  outline: none;
}

.services-search__input::placeholder {
  color: var(--clr-text-muted);
}

.services-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.services-no-results {
  padding: var(--sp-12) 0;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 1rem;
}

.services-no-results__clear {
  background: none;
  border: none;
  color: var(--clr-accent);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.services-no-results__clear:hover {
  color: var(--clr-accent-hover);
}

.services-search__close {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  padding: 0.375rem;
  display: none; /* revealed by JS on mobile activation */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--ease), background var(--ease);
  line-height: 0;
}
.services-search__close:hover {
  color: var(--clr-text);
  background: rgba(255, 255, 255, 0.1);
}

.services-search__panel {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-panel-item__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--sp-4) var(--sp-5);
  text-decoration: none;
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--ease);
}
.svc-panel-item__link:hover,
.svc-panel-item__link:focus-visible {
  background: rgba(15, 187, 245, 0.07);
  outline: none;
}
.svc-panel-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text-heading);
}
.svc-panel-item__desc {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}
.svc-panel-empty {
  padding: var(--sp-6) var(--sp-5);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}
.svc-panel-clear {
  background: none;
  border: none;
  color: var(--clr-accent);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}
.svc-panel-clear:hover {
  color: var(--clr-accent-hover);
}

@media (max-width: 767px) {
  @keyframes svc-search-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Reveal the X button when overlay is active */
  body.search-is-active .services-search__close {
    display: flex;
  }

  /* Widen right padding so text doesn't underrun the X button */
  body.search-is-active .services-search__input {
    padding-right: 3rem;
  }

  /* Search component becomes a fixed full-height overlay from nav-bottom to screen-bottom */
  body.search-is-active .services-search {
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-offset) + var(--nav-h) + var(--sp-2));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    margin-bottom: 0;
    padding: var(--sp-3) var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    animation: svc-search-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  /* Search bar stretches full-width (keeps pill shape, darkens slightly) */
  body.search-is-active .services-search__wrap {
    max-width: none;
    background: rgba(18, 26, 40, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-shrink: 0;
  }

  /* Results panel — sizes to content, scrolls if it would exceed the viewport */
  body.search-is-active .services-search__panel {
    flex: 0 1 auto;
    max-height: calc(100vh - var(--topbar-h) - var(--nav-offset) - var(--nav-h) - var(--sp-2) - var(--sp-3) - 3.5rem - var(--sp-2));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(14, 20, 32, 0.95);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overscroll-behavior: contain;
  }
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.trust-bar {
  position: relative;
  background-color: var(--clr-bg-dark);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(15, 187, 245, 0.12), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(15, 187, 245, 0.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 20 L20 0 L40 20 L20 40 Z M40 20 L60 0 L80 20 L60 40 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 80px 40px;
  background-repeat: no-repeat, no-repeat, repeat;
  border-top: 1px solid var(--clr-border-bright);
  border-bottom: 1px solid var(--clr-border-bright);
}

.trust-bar > .container {
  position: relative;
  z-index: 1;
}

.trust-bar__heading {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--clr-text-bright);
  text-align: center;
  margin-bottom: var(--sp-6);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.2;
  transition: border-color var(--ease), background-color var(--ease);
}

.trust-bar__item:hover {
  border-color: var(--clr-border-bright);
  background-color: rgba(36, 48, 67, 0.8);
}

a.trust-bar__item--link {
  text-decoration: none;
  cursor: pointer;
}

a.trust-bar__item--link:hover {
  border-color: var(--clr-accent);
}

a.trust-bar__item--link:hover .trust-bar__label {
  color: var(--clr-accent);
}

.trust-bar__icon {
  display: inline-flex;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.trust-bar__label {
  font-weight: 600;
  color: var(--clr-text-heading);
}

@media (max-width: 640px) {
  .trust-bar__heading {
    font-size: 1.15rem;
    margin-bottom: var(--sp-4);
  }

  .trust-bar__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  .trust-bar__item {
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
    font-size: 0.78rem;
    line-height: 1.25;
    min-width: 0;
  }

  .trust-bar__item:nth-child(odd):last-child {
    grid-column: span 2;
    justify-content: center;
  }

  .trust-bar__icon svg {
    width: 16px;
    height: 16px;
  }

  .trust-bar__label {
    font-size: 0.78rem;
  }
}

.quote-section {
  padding-block: var(--sp-16);
  background: var(--clr-bg-dark);
  border-top: 1px solid var(--clr-border);
}

.quote-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-16));
  align-items: start;
}

.quote-section__heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--clr-text-bright);
  margin-bottom: var(--sp-4);
  line-height: 1.25;
}

.quote-section__intro > p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

@media (max-width: 900px) {
  .quote-section__layout {
    grid-template-columns: 1fr;
    row-gap: var(--sp-10);
  }

  .quote-section__form {
    margin-top: var(--sp-2);
  }
}

/* Sticky section nav — two visual states:
     · default  — full-bleed bar with solid background & hairline borders
     · is-stuck — centered glassmorphism pill mirroring .main-nav
   The outer <nav> only provides sticky positioning; the inner .container
   carries all visual styling and animates between the two states.
   -------------------------------------------------------------------------- */
.sticky-nav {
  position: sticky;
  top: calc(var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-3));
  z-index: 60;
  pointer-events: none;
}

/* Jump-link landing offset. The stuck sticky-nav pill covers the top of the
   target section on every hash click, so we reserve the full stuck-stack
   height (main nav + sticky pill + shadow clearance) as scroll-margin on every
   jump target. --sticky-nav-pill-h is a fallback — sticky-nav.js overwrites it
   with the actual measured pill height on load and resize. The pill casts a
   0 15px 35px box-shadow that visually reaches ~50px below its box; the sp-20
   trailing buffer clears that with ~30px of breathing room so titles never
   appear under the shadow's outer haze. */
:root {
  --sticky-nav-pill-h: 5rem;
  --sticky-nav-jump-offset: calc(
    var(--topbar-h) + var(--nav-h) + var(--nav-offset) + var(--sp-3)
    + var(--sticky-nav-pill-h) + var(--sp-16)
  );
}

[data-nav-label],
#pricing,
.core-services__item {
  scroll-margin-top: var(--sticky-nav-jump-offset);
}

.sticky-nav__sentinel {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.sticky-nav .container {
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(20, 29, 43, 0.95);
  border: 1px solid transparent;
  border-top-color: var(--clr-border);
  border-bottom-color: var(--clr-border);
  border-radius: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    width           var(--ease-smooth),
    max-width       var(--ease-smooth),
    background      var(--ease-smooth),
    border-color    var(--ease-smooth),
    border-radius   var(--ease-smooth),
    box-shadow      var(--ease-smooth),
    backdrop-filter var(--ease-smooth),
    -webkit-backdrop-filter var(--ease-smooth);
}

.sticky-nav.is-stuck .container {
  width: 94%;
  max-width: var(--container-wide);
  background: var(--clr-bg-glass);
  border-color: var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sticky-nav__list {
  --sticky-fade: 1.75rem;
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-8);
  margin: 0;
  list-style: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--sticky-fade)), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - var(--sticky-fade)), transparent);
  transition: -webkit-mask-image var(--ease-fast), mask-image var(--ease-fast);
}

.sticky-nav__list::-webkit-scrollbar {
  display: none;
}

.sticky-nav:not(.at-start):not(.at-end) .sticky-nav__list {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sticky-fade), #000 calc(100% - var(--sticky-fade)), transparent);
          mask-image: linear-gradient(to right, transparent, #000 var(--sticky-fade), #000 calc(100% - var(--sticky-fade)), transparent);
}

.sticky-nav.at-end .sticky-nav__list {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sticky-fade));
          mask-image: linear-gradient(to right, transparent, #000 var(--sticky-fade));
}

.sticky-nav.at-start.at-end .sticky-nav__list {
  -webkit-mask-image: none;
          mask-image: none;
}

.sticky-nav__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.sticky-nav__link {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: color var(--ease-fast), background-color var(--ease-fast), border-color var(--ease-fast);
  white-space: nowrap;
}

.sticky-nav__link:hover,
.sticky-nav__link:focus-visible {
  color: var(--clr-text-heading);
  background-color: var(--clr-accent-subtle);
  outline: none;
}

.sticky-nav__link.is-active {
  color: var(--clr-bg-dark);
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
}

/* Emergency pill — leads the sticky nav on emergency-service pages. */
.sticky-nav__list > .sticky-nav__item:first-child {
  margin-left: 0;
}

.sticky-nav__item--emergency {
  margin-right: var(--sp-1);
}

.sticky-nav__link--emergency {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.38) 0%, rgba(220, 38, 38, 0.22) 100%);
  border: 1px solid rgba(239, 68, 68, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.25) inset,
    0 0 12px rgba(239, 68, 68, 0.45),
    0 0 24px rgba(239, 68, 68, 0.28);
  animation: sticky-nav-emergency-glow 2.2s ease-in-out infinite;
}

.sticky-nav__link--emergency:hover,
.sticky-nav__link--emergency:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.55) 0%, rgba(220, 38, 38, 0.38) 100%);
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.35) inset,
    0 0 16px rgba(239, 68, 68, 0.6),
    0 0 32px rgba(239, 68, 68, 0.4);
}

.sticky-nav__link-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9), 0 0 2px #fff inset;
  animation: sticky-nav-emergency-pulse 1.4s ease-in-out infinite;
}

.sticky-nav.is-stuck .sticky-nav__link--emergency {
  background: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
  animation: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sticky-nav.is-stuck .sticky-nav__link--emergency:hover,
.sticky-nav.is-stuck .sticky-nav__link--emergency:focus-visible {
  background: #b91c1c;
  border-color: #991b1b;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.5);
}

.sticky-nav.is-stuck .sticky-nav__link-dot {
  animation: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) inset;
  background: #fff;
}

@keyframes sticky-nav-emergency-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.25) inset,
      0 0 10px rgba(239, 68, 68, 0.35),
      0 0 20px rgba(239, 68, 68, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.4) inset,
      0 0 18px rgba(239, 68, 68, 0.6),
      0 0 34px rgba(239, 68, 68, 0.38);
  }
}

@keyframes sticky-nav-emergency-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.25); opacity: 0.75;}
}

@media (prefers-reduced-motion: reduce) {
  .sticky-nav__link--emergency { animation: none; }
  .sticky-nav__link--priority  { animation: none; }
  .sticky-nav__link-dot        { animation: none; }
}

/* Priority pill — leads the sticky nav on cost-led pages (e.g. new roofs).
   Emerald palette to read as "value / pricing" rather than alarm-red emergency. */
.sticky-nav__item--priority {
  margin-right: var(--sp-1);
}

.sticky-nav__link--priority {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42) 0%, rgba(5, 150, 105, 0.24) 100%);
  border: 1px solid rgba(16, 185, 129, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.28) inset,
    0 0 12px rgba(16, 185, 129, 0.45),
    0 0 24px rgba(16, 185, 129, 0.28);
  animation: sticky-nav-priority-glow 2.4s ease-in-out infinite;
}

.sticky-nav__link--priority:hover,
.sticky-nav__link--priority:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.6) 0%, rgba(5, 150, 105, 0.4) 100%);
  border-color: rgba(16, 185, 129, 0.85);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.4) inset,
    0 0 16px rgba(16, 185, 129, 0.6),
    0 0 32px rgba(16, 185, 129, 0.4);
}

.sticky-nav__link--priority .sticky-nav__link-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9), 0 0 2px #fff inset;
}

.sticky-nav.is-stuck .sticky-nav__link--priority {
  background: #059669;
  border-color: #047857;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35);
  animation: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sticky-nav.is-stuck .sticky-nav__link--priority:hover,
.sticky-nav.is-stuck .sticky-nav__link--priority:focus-visible {
  background: #047857;
  border-color: #065f46;
  box-shadow: 0 3px 10px rgba(4, 120, 87, 0.5);
}

.sticky-nav.is-stuck .sticky-nav__link--priority .sticky-nav__link-dot {
  animation: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) inset;
  background: #fff;
}

@keyframes sticky-nav-priority-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(16, 185, 129, 0.28) inset,
      0 0 10px rgba(16, 185, 129, 0.35),
      0 0 20px rgba(16, 185, 129, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(16, 185, 129, 0.45) inset,
      0 0 18px rgba(16, 185, 129, 0.6),
      0 0 34px rgba(16, 185, 129, 0.38);
  }
}

/* Mobile swipe affordance — pulsing chevron overlays right edge */
@media (min-width: 769px) {
  /* `safe center` prevents the first item from being clipped on the leading
     edge when the stuck pill narrows the container and items overflow — plain
     `center` leaves the overflow unscrollable on the start side.             */
  .sticky-nav__list { justify-content: safe center; }
}

@media (max-width: 768px) {
  .sticky-nav .container { position: relative; }

  .sticky-nav .container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.45rem;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fbbf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translate(0, -50%);
    opacity: 0.85;
    pointer-events: none;
    animation: sticky-nav-nudge 1.6s ease-in-out infinite;
    transition: opacity var(--ease-smooth);
  }

  .sticky-nav.at-end .container::after,
  .sticky-nav.at-start.at-end .container::after {
    opacity: 0;
  }

  .sticky-nav__list { --sticky-fade: 2.25rem; padding-right: var(--sp-6); }
}

@keyframes sticky-nav-nudge {
  0%, 100% { transform: translate(0, -50%); }
  50%      { transform: translate(4px, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-nav .container { transition: none; }
  .sticky-nav .container::after { animation: none; }
}

/* Collapsed "Back to Services" pill — toggled by sticky-nav.js */
.sticky-nav__back {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--clr-text-heading);
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sticky-nav__back-arrow {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: transform var(--ease-fast), opacity var(--ease-fast);
}

.sticky-nav__back:hover,
.sticky-nav__back:focus-visible {
  color: var(--clr-accent);
  outline: none;
}

.sticky-nav__back:hover .sticky-nav__back-arrow,
.sticky-nav__back:focus-visible .sticky-nav__back-arrow {
  transform: translateY(-2px);
  opacity: 1;
}

.sticky-nav.is-collapsed .sticky-nav__list { display: none; }
.sticky-nav.is-collapsed .sticky-nav__back { display: inline-flex; }

.sticky-nav.is-collapsed .container {
  width: max-content;
  max-width: 92%;
  margin-inline: auto;
  padding: 0;
  border-radius: var(--radius-full);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(20, 29, 43, 0.55), rgba(15, 23, 35, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

@media (max-width: 768px) {
  .sticky-nav.is-collapsed .container::after { display: none; }
}

.problem-section__failures-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.failure-modes {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  max-width: 72ch;
}

.failure-modes__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.failure-modes__marker {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  margin-top: 2px;
}

.failure-modes__title {
  color: var(--clr-text-heading);
  font-weight: 700;
}

.failure-modes__dash {
  color: var(--clr-text-muted);
}

.problem-section__warnings-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.problem-section__warnings-intro {
  max-width: 72ch;
  color: var(--clr-text);
  line-height: 1.75;
  margin: 0 0 var(--sp-4);
}

.warning-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.warning-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.warning-checklist__check {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 2px;
}

.warning-checklist--positive .warning-checklist__item {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}

.warning-checklist--positive .warning-checklist__check {
  color: var(--clr-success);
}

.problem-section__warnings-footer {
  max-width: 72ch;
  margin-top: var(--sp-5);
  color: var(--clr-text);
  line-height: 1.75;
}

.problem-section__warnings-footer p {
  margin: 0;
}

.problem-section__inline-callout {
  max-width: 72ch;
  margin: var(--sp-5) 0 0;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.25);
  border-radius: var(--radius-md);
  color: var(--clr-text-bright);
  font-size: 0.95rem;
  line-height: 1.6;
}

.problem-section__inline-callout p {
  margin: 0;
}

.problem-section__inline-callout a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.problem-section__inline-callout a:hover,
.problem-section__inline-callout a:focus-visible {
  text-decoration-thickness: 2px;
}

.service-detail__footnote {
  margin-top: calc(var(--sp-2) * -1);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
  font-style: italic;
}

.heritage-callout {
  padding: var(--sp-12) 0;
}

.heritage-callout__inner {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  padding: var(--sp-8);
  background: linear-gradient(135deg, var(--clr-bg-surface-solid) 0%, rgba(36, 48, 67, 0.4) 100%);
  border: 1px solid var(--clr-border-bright);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.heritage-callout__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-subtle);
  border: 1px solid rgba(15, 187, 245, 0.25);
  border-radius: var(--radius-md);
  color: var(--clr-accent);
}

.heritage-callout__content {
  flex: 1;
}

.heritage-callout__heading {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 var(--sp-3);
}

.heritage-callout__body {
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

@media (max-width: 640px) {
  .heritage-callout__inner {
    flex-direction: column;
    padding: var(--sp-6);
  }
}

/* Wrapper only — .faq-item base styling lives in core.css. */
.service-faq {
  padding: var(--sp-16) 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.faq-question {
  list-style: none;
  position: relative;
  padding-right: calc(var(--sp-6) + 18px);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  position: absolute;
  right: var(--sp-6);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform var(--ease-smooth);
  opacity: 0.7;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-25%) rotate(-135deg);
  opacity: 1;
}

.faq-answer {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  color: var(--clr-text);
  line-height: 1.75;
  font-size: 0.95rem;
  border-top: 1px solid var(--clr-border);
}

.faq-answer p {
  margin: 0;
}

.service-coverage {
  padding: var(--sp-12) 0;
  background: rgba(36, 48, 67, 0.25);
}

.coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
}

.coverage-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: border-color var(--ease-fast), color var(--ease-fast), background-color var(--ease-fast);
}

.coverage-pill:hover,
.coverage-pill:focus-visible {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background-color: var(--clr-accent-subtle);
  outline: none;
}

.coverage-pill svg {
  flex-shrink: 0;
  color: var(--clr-accent);
}

.coverage-group {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border-bright);
  border-radius: var(--radius-lg);
}

.coverage-group + .coverage-group {
  margin-top: var(--sp-6);
}

.coverage-group__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--clr-text);
}

.coverage-group__intro {
  margin: 0;
  max-width: 70ch;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.coverage-group .coverage-pills {
  margin-top: var(--sp-4);
}

/* First pill in each group = the anchor town. Filled accent treatment so
   Stockport, Bramhall, Marple, and Poynton read as anchor pins for their
   sub-region without needing a tier label on the group itself. */
.coverage-pill--anchor {
  background-color: var(--clr-accent-subtle);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  font-weight: 600;
}

.coverage-pill--anchor:hover,
.coverage-pill--anchor:focus-visible {
  background-color: var(--clr-accent);
  color: var(--clr-bg-surface-solid);
  border-color: var(--clr-accent);
}

/* Override the shared .services-grid (CSS grid) with flex so an incomplete
   final row of related cards centres instead of sticking to the left. Card
   widths mirror the .services-grid breakpoints: 1 / 2 / 3 per row. */
.related-services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.related-services__grid > * {
  flex: 0 1 100%;
}

@media (min-width: 640px) {
  .related-services__grid > * {
    flex-basis: calc((100% - var(--sp-6)) / 2);
  }
}

@media (min-width: 1024px) {
  .related-services__grid > * {
    flex-basis: calc((100% - 2 * var(--sp-6)) / 3);
  }
}

.coverage-cta,
.related-services__cta {
  margin-top: var(--sp-10);
  text-align: center;
}

.coverage-cta__note {
  margin: var(--sp-3) auto 0;
  max-width: 60ch;
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.coverage-cta__note a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.coverage-cta__note a:hover,
.coverage-cta__note a:focus-visible {
  color: var(--clr-text);
}

.before-after {
  padding: var(--sp-12) 0;
  background: rgba(36, 48, 67, 0.25);
}

.before-after__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
}

@media (min-width: 640px) {
  .before-after__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .before-after__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.before-after__step {
  margin: 0;
}

.before-after__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.before-after__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.before-after__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.before-after__caption {
  margin: 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

.project-gallery {
  padding: var(--sp-12) 0;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
}

.project-gallery__card {
  display: flex;
  flex-direction: column;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.project-gallery__card:hover {
  border-color: var(--clr-border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-gallery__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, var(--clr-bg-surface-solid) 100%);
  overflow: hidden;
}

.project-gallery__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fbbf5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px;
  opacity: 0.2;
  pointer-events: none;
}

.project-gallery__image-wrap::after {
  content: 'Project photo';
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  opacity: 0.6;
  pointer-events: none;
}

.project-gallery__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  font-size: 0;
}

.project-gallery__card-body {
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.project-gallery__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.project-gallery__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.15rem var(--sp-2);
  background: var(--clr-bg-dark);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-gallery__pill--location {
  color: var(--clr-accent);
  border-color: rgba(15, 187, 245, 0.3);
}

.project-gallery__pill svg {
  flex-shrink: 0;
}

.project-gallery__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0;
}

.project-gallery__card-description {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin: 0;
}

.project-gallery__card-description p {
  margin: 0 0 var(--sp-3) 0;
}

.project-gallery__card-description p:last-child {
  margin-bottom: 0;
}

.project-gallery__card-description a {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 187, 245, 0.35);
  transition: border-color var(--ease), color var(--ease);
}

.project-gallery__card-description a:hover,
.project-gallery__card-description a:focus-visible {
  color: var(--clr-text-heading);
  border-bottom-color: var(--clr-accent);
}

.project-gallery__meta-strip {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem var(--sp-3);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(36, 48, 67, 0.35);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.5;
}

.project-gallery__meta-strip dt {
  margin: 0;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  align-self: center;
}

.project-gallery__meta-strip dd {
  margin: 0;
  color: var(--clr-text-body);
  align-self: center;
}

.problem-section {
  padding: var(--sp-12) 0;
  background: rgba(36, 48, 67, 0.18);
}

.problem-section__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 var(--sp-5);
  max-width: 40ch;
  line-height: 1.2;
}

.problem-section__heading-subtitle {
  display: block;
  margin-top: var(--sp-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: var(--clr-accent);
  letter-spacing: 0.01em;
}

.problem-section__body {
  max-width: 72ch;
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

.problem-section__body p {
  margin: 0;
}

.problem-section__body p + p {
  margin-top: var(--sp-4);
}

.problem-section__body a {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 187, 245, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.problem-section__body a:hover,
.problem-section__body a:focus-visible {
  color: var(--clr-accent-hover);
  border-bottom-color: var(--clr-accent-hover);
}

.problem-section__pullquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.2);
  border-radius: var(--radius-md);
  color: var(--clr-text-bright);
  font-size: 1.08rem;
  line-height: 1.65;
}

.problem-section__pullquote p {
  margin: 0;
}

.problem-section__pullquote strong {
  color: #fff;
  font-weight: 700;
}

.problem-section__subheading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: var(--sp-7) 0 var(--sp-3);
  line-height: 1.3;
}

.problem-section__layer-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 var(--sp-5);
  display: grid;
  gap: var(--sp-2);
}

.problem-section__layer-list li {
  position: relative;
  padding-left: var(--sp-5);
  line-height: 1.6;
}

.problem-section__layer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
}

.problem-section__layer-list strong {
  color: var(--clr-text-heading);
  font-weight: 700;
}

/* Default (mobile) flow — main column flush, aside hidden so the existing
   .core-services__top-aside continues to handle the mobile experience.
   Desktop ≥900px promotes the aside into a sticky right rail beside the
   problem heading, replacing the centered §5 compact card. */
.problem-section__layout {
  display: block;
}

.problem-section__main {
  min-width: 0;
}

.problem-section__aside {
  display: none;
}

@media (min-width: 900px) {
  .problem-section--with-aside .problem-section__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: var(--sp-12);
    align-items: start;
  }

  .problem-section--with-aside .problem-section__aside {
    display: block;
    position: sticky;
    top: calc(
      var(--topbar-h, 0px) + var(--nav-h, 0px) + var(--nav-offset, 0px)
      + var(--sp-3) + var(--sticky-nav-pill-h, 5rem) + var(--sp-4)
    );
  }

  /* The compact §5 card is now rendered inline in §3, so suppress the
     centered duplicate at desktop widths. Mobile path is untouched
     (.service-detail--compact is already display:none below 900px). */
  .problem-section--with-aside ~ .service-detail--compact {
    display: none;
  }
}

.team-section {
  padding: var(--sp-12) 0;
}

.team-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--sp-8);
  align-items: center;
}

.team-section__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--clr-bg-surface-solid);
}

.team-section__image {
  display: block;
  width: 100%;
  height: auto;
}

.team-section__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 var(--sp-5);
  line-height: 1.2;
}

.team-section__body {
  color: var(--clr-text);
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 768px) {
  .team-section__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

.emergency-banner {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, #b91c1c 0%, #7f1d1d 60%, #5b1414 100%);
  color: #fff;
  isolation: isolate;
}

/* Diagonal warning-tape overlay — very subtle, sits behind content */
.emergency-banner__stripe {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 18px
  );
  pointer-events: none;
}

.emergency-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  align-items: center;
  justify-content: space-between;
}

.emergency-banner__content {
  flex: 1 1 380px;
}

.emergency-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: var(--sp-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.emergency-banner__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: emergency-pulse 1.6s ease-in-out infinite;
}

@keyframes emergency-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.emergency-banner__heading {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--sp-3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.emergency-banner__body {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.emergency-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  flex-shrink: 0;
}

/* Brand-blue CTA — white ring lifts it cleanly off the red field */
.emergency-banner__cta.btn--primary {
  padding: 1rem 1.9rem;
  font-size: 1rem;
  border-color: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.emergency-banner__cta.btn--primary:hover,
.emergency-banner__cta.btn--primary:focus-visible {
  background-color: var(--clr-accent-hover);
  border-color: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.28),
    0 14px 30px rgba(0, 0, 0, 0.4),
    var(--shadow-glow);
}

/* Ghost secondary — white outline, sits quietly next to the blue CTA */
.emergency-banner__ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: 1rem 1.7rem;
}

.emergency-banner__ghost:hover,
.emergency-banner__ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 768px) {
  .emergency-banner {
    padding: var(--sp-12) 0;
  }
  .emergency-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-6);
  }
  .emergency-banner__actions {
    width: 100%;
  }
  .emergency-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emergency-banner__pulse { animation: none; }
}

/* The `urgent` modifier on a core-services item turns it into a tinted red
   block with pulsing dot + inline phone CTA, so the emergency option pops. */
.core-services {
  padding: var(--sp-12) 0;
}

.core-services__list {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  max-width: 88ch;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.core-services__item {
  padding: var(--sp-6) var(--sp-7);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.core-services__item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--clr-border-bright);
}

.core-services__item-title {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--clr-text-bright);
  line-height: 1.25;
}

.core-services__item-body {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--clr-text-bright);
  font-weight: 500;
}

.core-services__item > p + p {
  margin: var(--sp-4) 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 400;
}

div.core-services__item-body > p {
  margin: 0;
}

div.core-services__item-body > p + p {
  margin-top: var(--sp-4);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 400;
}

.core-services__item-pills {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.core-services__item-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(15, 187, 245, 0.08);
  border: 1px solid rgba(15, 187, 245, 0.28);
  border-radius: 999px;
  color: var(--clr-text-bright);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.core-services__item-bullets-heading {
  margin: var(--sp-5) 0 var(--sp-4);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-bright);
}

.core-services__item-bullets {
  list-style: none;
  margin: 0;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--sp-3);
}

.core-services__item-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-text);
}

.core-services__item-bullets svg {
  flex-shrink: 0;
  color: var(--clr-accent);
  margin-top: 3px;
}

.core-services__item-spec-heading {
  margin: var(--sp-4) 0 var(--sp-3);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--clr-text-bright);
}

.core-services__item-spec-list {
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.core-services__item-spec-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--clr-text);
}

.core-services__item-spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.core-services__item-body a {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 187, 245, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.core-services__item-body a:hover,
.core-services__item-body a:focus-visible {
  color: var(--clr-accent-hover);
  border-bottom-color: var(--clr-accent-hover);
}

.tile-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}

@media (min-width: 720px) {
  .tile-compare {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}

.tile-compare__item {
  position: relative;
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.tile-compare__item--clay {
  border-color: rgba(15, 187, 245, 0.35);
  background: rgba(15, 187, 245, 0.04);
}

.tile-compare__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  margin: 0 0 var(--sp-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.tile-compare__label--premium {
  background: rgba(15, 187, 245, 0.12);
  border-color: rgba(15, 187, 245, 0.4);
  color: var(--clr-accent);
}

.tile-compare__heading {
  margin: 0 0 var(--sp-3);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-bright);
  line-height: 1.25;
}

.tile-compare__facts {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.tile-compare__facts li {
  position: relative;
  padding-left: 1.25em;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--clr-text);
}

.tile-compare__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.tile-compare__item--concrete .tile-compare__facts li::before {
  background: var(--clr-text);
  opacity: 0.55;
}

.tile-compare__item > p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--clr-text);
  font-weight: 400;
}

.core-services__item--urgent {
  padding: var(--sp-7);
  border-color: rgba(220, 38, 38, 0.35);
  border-left-width: 4px;
  border-left-color: #dc2626;
  background:
    radial-gradient(circle at 90% 0%, rgba(220, 38, 38, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, rgba(185, 28, 28, 0.16) 0%, rgba(127, 29, 29, 0.06) 100%),
    var(--clr-bg-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.core-services__item--urgent:hover {
  background:
    radial-gradient(circle at 90% 0%, rgba(220, 38, 38, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, rgba(185, 28, 28, 0.2) 0%, rgba(127, 29, 29, 0.08) 100%),
    var(--clr-bg-surface);
  border-color: rgba(220, 38, 38, 0.5);
  border-left-color: #dc2626;
}

.core-services__item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  margin: 0 0 var(--sp-4);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fca5a5;
}

.core-services__item-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75);
  animation: core-services-pulse 1.6s ease-in-out infinite;
}

@keyframes core-services-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.core-services__item-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--sp-5);
  padding: 0.85rem 1.5rem;
  background: var(--clr-accent);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.core-services__item-cta:hover,
.core-services__item-cta:focus-visible {
  background: var(--clr-accent-hover);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.25),
    0 12px 26px rgba(0, 0, 0, 0.35),
    var(--shadow-glow);
}

.core-services__item-cta-num {
  font-weight: 600;
  opacity: 0.9;
  padding-left: 0.5rem;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
  .core-services__item,
  .core-services__item--urgent {
    padding: var(--sp-5);
  }
  .core-services__item-cta {
    width: 100%;
    justify-content: center;
  }
  .core-services__item-cta-num {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .core-services__item-pulse { animation: none; }
  .core-services__item-cta { transition: none; }
}

/* Mid-list CTA inserted at the halfway point of core-services__list — uses the
   same visual language as pricing-section__cta-inline so the two sections feel
   consistent. Rendered as a non-semantic <li role="presentation"> so screen
   readers don't count it as a service. */
.core-services__cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.25);
  border-radius: var(--radius-md);
}

.core-services__cta-inline-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-text-bright);
}

.core-services__cta-inline-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.core-services__cta-inline-subtext {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .core-services__cta-inline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
  }
  .core-services__cta-inline-text {
    font-size: 0.9rem;
  }
  .core-services__cta-inline-actions {
    align-items: stretch;
    gap: var(--sp-2);
  }
}

.service-process {
  padding: var(--sp-12) 0;
}

.process-steps {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-6);
  position: relative;
}

/* Connecting line behind the circles — sits at vertical center of circles.
   The transparent ends fade out cleanly under the first/last circle without
   needing precise per-step-count offsets. */
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 187, 245, 0.32) 8%,
    rgba(15, 187, 245, 0.32) 92%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}

.process-step__number {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-bg-dark);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
  box-shadow:
    0 0 0 4px rgba(15, 187, 245, 0.08),
    0 6px 18px rgba(15, 187, 245, 0.22);
}

.process-step__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text-bright);
}

.process-step__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  max-width: 28ch;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: var(--sp-8);
  }
  .process-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
    row-gap: var(--sp-5);
  }
  /* 2-column grid (circle | text) so title and body share a single content
     column and align horizontally across every step. The circle spans both
     rows so the text stacks neatly to its right. */
  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    text-align: left;
    column-gap: var(--sp-4);
    row-gap: var(--sp-2);
  }
  .process-step__number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.92rem;
    grid-row: 1 / -1;
  }
  .process-step__body {
    max-width: none;
  }
  /* Vertical connector — runs from the bottom of each circle through the
     row-gap to the top of the next circle. Drawn behind so the opaque
     circles cap both ends cleanly. */
  .process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 2.75rem;
    bottom: calc(-1 * var(--sp-5));
    left: calc(2.75rem / 2 - 1px);
    width: 2px;
    background: rgba(15, 187, 245, 0.32);
    z-index: 0;
    pointer-events: none;
  }
}

/* --- Detailed process timeline (long, structured steps) --------------------
   Activated by .service-process--detailed when steps include body_html /
   bullets / outcome. Switches the auto-fit card grid to a vertical timeline:
   each step is left-aligned with its number on the left rail and the body
   flowing alongside. Reads cleanly on desktop and stacks on mobile. */
.service-process--detailed .process-steps {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  row-gap: var(--sp-7);
}

.service-process--detailed .process-steps::before {
  display: none;
}

/* Vertical accent connector — runs from the bottom of each circle, through
   the row-gap (and any inter-step border), to the top of the next circle.
   Mirrors the connector used on the standard (non-detailed) process steps
   on mobile, but applies at every breakpoint because the detailed layout is
   a single-column timeline at all viewport sizes. */
.service-process--detailed .process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 3rem;
  bottom: calc(-1 * var(--sp-7));
  left: calc(1.5rem - 1px);
  width: 2px;
  background: rgba(15, 187, 245, 0.32);
  z-index: 0;
  pointer-events: none;
}

.service-process--detailed .process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  text-align: left;
  column-gap: var(--sp-5);
  row-gap: var(--sp-2);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
}

.service-process--detailed .process-step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.service-process--detailed .process-step__number {
  grid-row: 1 / span 2;
  width: 3rem;
  height: 3rem;
  font-size: 0.95rem;
}

.service-process--detailed .process-step__title {
  font-size: 1.2rem;
  align-self: center;
}

.service-process--detailed .process-step__body {
  grid-column: 2;
  max-width: none;
  margin: 0;
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.65;
  display: grid;
  gap: var(--sp-3);
}

.service-process--detailed .process-step__body p {
  margin: 0;
}

.process-step__bullets-heading {
  margin: var(--sp-2) 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--clr-text-bright);
}

.process-step__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.process-step__bullets li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--clr-text);
}

.process-step__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.process-step__outcome {
  margin: var(--sp-2) 0 0;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(15, 187, 245, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--clr-text-bright);
}

.process-step__outcome-label {
  display: inline-block;
  margin-right: 0.35em;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.01em;
}

.process-outro {
  margin: var(--sp-8) auto 0;
  max-width: 800px;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  text-align: center;
}

.process-outro p {
  margin: 0;
}

.process-outro p + p {
  margin-top: var(--sp-3);
}

.process-outro strong {
  color: var(--clr-text-bright);
}

.process-outro a {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 187, 245, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.process-outro a:hover,
.process-outro a:focus-visible {
  color: var(--clr-accent-hover);
  border-bottom-color: var(--clr-accent-hover);
}

.process-cta {
  margin: var(--sp-6) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.process-cta .btn {
  min-width: 220px;
}

@media (max-width: 640px) {
  .service-process--detailed .process-step {
    column-gap: var(--sp-3);
    padding-bottom: var(--sp-5);
  }
  .service-process--detailed .process-step__number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.85rem;
  }
  .service-process--detailed .process-step:not(:last-child)::before {
    top: 2.5rem;
    left: calc(1.25rem - 1px);
    background: rgba(15, 187, 245, 0.55);
  }
  .service-process--detailed .process-step__title {
    font-size: 1.05rem;
  }
  .service-process--detailed .process-step__body {
    grid-column: 2;
  }
  .process-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .process-cta .btn {
    width: 100%;
    min-width: 0;
  }
}

.service-materials {
  padding: var(--sp-12) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 187, 245, 0.02) 100%);
}

.materials-grid {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Top accent ribbon — small visual marker so the card reads as a "system"
   rather than a generic content panel. */
.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
  opacity: 0.75;
  pointer-events: none;
}

.material-card:hover {
  border-color: rgba(15, 187, 245, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.material-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.material-card__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.32rem 0.75rem;
  background: rgba(15, 187, 245, 0.1);
  border: 1px solid rgba(15, 187, 245, 0.35);
  border-radius: 999px;
  color: var(--clr-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.material-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text-bright);
}

.material-card__body {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text);
}

.material-card__bullets {
  list-style: none;
  margin: 0;
  padding: var(--sp-4) 0 0;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.material-card__bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--clr-text);
}

.material-card__bullet svg {
  flex-shrink: 0;
  color: var(--clr-accent);
  margin-top: 0.22rem;
}

@media (max-width: 768px) {
  .materials-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .material-card {
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .material-card,
  .material-card:hover {
    transform: none;
    transition: none;
  }
}

.pricing-section {
  padding: var(--sp-16) 0;
  background:
    linear-gradient(180deg, rgba(15, 187, 245, 0.04) 0%, transparent 100%),
    var(--clr-bg-dark);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.pricing-section__heading {
  margin-bottom: var(--sp-4);
}

.pricing-section__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--clr-text);
  max-width: 72ch;
  margin: 0 0 var(--sp-10);
}

.pricing-section__lead strong {
  color: var(--clr-text-bright);
}

.pricing-section__factors-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 var(--sp-5);
}

.pricing-factors {
  list-style: none;
  margin: 0 0 var(--sp-12);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

@media (min-width: 1024px) {
  .pricing-factors {
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
  }
}

.pricing-factors__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-factors__item:hover {
  border-color: rgba(15, 187, 245, 0.35);
  transform: translateY(-2px);
}

.pricing-factors__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  margin-top: 2px;
}

.pricing-factors__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.pricing-factors__title {
  color: var(--clr-text-heading);
  font-weight: 700;
  font-size: 0.98rem;
}

.pricing-factors__text {
  color: var(--clr-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-factors__caveat {
  display: inline-block;
  margin-top: var(--sp-1);
  color: var(--clr-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.pricing-table-wrap {
  margin: 0 0 var(--sp-6);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);

  /* Scroll-shadow indicators: solid "cover" gradients (local attachment, scroll
     with content) sit on top of accent shadows (scroll attachment, fixed to
     the wrap). Covers hide the shadows at start/end positions; in the middle
     of a scroll, both shadows are revealed — making it obvious there's more
     content sideways. */
  background-color: var(--clr-bg-surface-solid);
  background-image:
    linear-gradient(to right, var(--clr-bg-surface-solid) 30%, transparent),
    linear-gradient(to left,  var(--clr-bg-surface-solid) 30%, transparent),
    radial-gradient(farthest-side at 0 50%, rgba(15, 187, 245, 0.35), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(15, 187, 245, 0.35), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 48px 100%, 48px 100%, 18px 100%, 18px 100%;
  background-attachment: local, local, scroll, scroll;

  /* Always-visible thin scrollbar so the affordance is unambiguous */
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 187, 245, 0.45) rgba(255, 255, 255, 0.05);
}

.pricing-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.pricing-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.pricing-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(15, 187, 245, 0.45);
  border-radius: 4px;
}

.pricing-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 187, 245, 0.65);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--clr-text);
}

.pricing-table__caption {
  caption-side: top;
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-style: italic;
  border-bottom: 1px solid var(--clr-border);
  background: rgba(15, 187, 245, 0.04);
}

.pricing-table thead th {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(36, 48, 67, 0.85);
  color: var(--clr-text-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background-color 0.15s ease;
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: rgba(15, 187, 245, 0.04);
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: var(--sp-4) var(--sp-5);
  vertical-align: middle;
  text-align: left;
}

.pricing-table__system {
  font-weight: 700;
  color: var(--clr-text-bright);
}

.pricing-table__price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--clr-accent);
  white-space: nowrap;
}

.pricing-table__job {
  font-variant-numeric: tabular-nums;
  color: var(--clr-text);
  white-space: nowrap;
}

.pricing-section__note {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.6;
  max-width: 72ch;
  margin: 0 0 var(--sp-8);
}

.pricing-reckoner {
  margin: var(--sp-8) 0 var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.pricing-reckoner__heading {
  margin: 0 0 var(--sp-4);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-bright);
}

.pricing-reckoner .pricing-table-wrap {
  margin: 0;
}

.pricing-table--reckoner {
  font-size: 0.95rem;
}

.pricing-table__note {
  margin: var(--sp-3) 0 var(--sp-6);
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.6;
  max-width: 72ch;
}

.pricing-reckoner__note {
  margin: var(--sp-4) 0 0;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* --- Quick answers Q&A block ----------------------------------------------
   Container surface mirrors .pricing-reckoner so the pricing section reads as
   a coherent set of modular blocks. Inside, each Q+A pair flows as a row
   separated by a hairline rather than its own bordered card — the accent dot
   on every question carries the visual rhythm. */
.pricing-quick-answers {
  margin: var(--sp-8) 0 var(--sp-6);
  max-width: 72ch;
  padding: var(--sp-6) var(--sp-7);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.pricing-quick-answers__heading {
  margin: 0 0 var(--sp-3);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-bright);
}

.pricing-quick-answers__list {
  margin: 0;
  padding: 0;
}

.pricing-quick-answers__question {
  position: relative;
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-bright);
  line-height: 1.45;
}

/* Hairline + extra spacing between pairs — first question hugs the heading. */
.pricing-quick-answers__question:not(:first-of-type) {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}

.pricing-quick-answers__question::before {
  content: '';
  position: absolute;
  top: calc(var(--sp-2) + 0.45em);
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(15, 187, 245, 0.16);
}

.pricing-quick-answers__question:not(:first-of-type)::before {
  top: calc(var(--sp-4) + var(--sp-2) + 0.45em);
}

.pricing-quick-answers__answer {
  margin: 0;
  padding: 0 0 0 var(--sp-5);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text);
}

@media (max-width: 600px) {
  .pricing-quick-answers {
    padding: var(--sp-5);
  }
  .pricing-quick-answers__question,
  .pricing-quick-answers__answer {
    padding-left: var(--sp-4);
  }
  .pricing-quick-answers__question::before {
    width: 6px;
    height: 6px;
  }
}

.pricing-exclusions {
  margin: var(--sp-8) 0 var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
}

.pricing-exclusions__heading {
  margin: 0 0 var(--sp-3);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-bright);
}

.pricing-exclusions__intro {
  margin: 0 0 var(--sp-4);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-text);
}

.pricing-exclusions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.pricing-exclusions__list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-text);
}

.pricing-exclusions__list li::before {
  content: '';
  position: absolute;
  left: var(--sp-1);
  top: 10px;
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
}

.pricing-exclusions__list strong {
  color: var(--clr-text-bright);
  font-weight: 700;
}

.pricing-exclusions__closing {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.6;
}

.pricing-section__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-7);
  background:
    linear-gradient(135deg, rgba(15, 187, 245, 0.12) 0%, rgba(15, 187, 245, 0.04) 100%);
  border: 1px solid rgba(15, 187, 245, 0.3);
  border-radius: var(--radius-lg);
}

.pricing-section__cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.25);
  border-radius: var(--radius-md);
}

.pricing-section__cta-inline-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-text-bright);
}

.pricing-section__cta-inline-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.pricing-section__cta-inline-subtext {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .pricing-section__cta-inline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
  }
  .pricing-section__cta-inline-text {
    font-size: 0.9rem;
  }
  .pricing-section__cta-inline-actions {
    align-items: stretch;
    gap: var(--sp-2);
  }
}

.pricing-section__cta-btn {
  font-size: 1rem;
  padding: var(--sp-3) var(--sp-6);
}

.pricing-section__cta-subtext {
  margin: 0;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}

@media (max-width: 600px) {
  .pricing-section {
    padding: var(--sp-12) 0;
  }

  .pricing-table thead th,
  .pricing-table tbody th,
  .pricing-table tbody td {
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.88rem;
  }

  .pricing-section__cta {
    align-items: stretch;
  }

  .pricing-section__cta-btn {
    width: 100%;
    justify-content: center;
  }
}

.service-detail {
  padding: var(--sp-16) 0;
}

/* Mobile: surface the "What We Offer" card at the top of the core-services
   section so visitors hit the quick-jump links before the long service list,
   and hide the compact §5 duplicate so the card only appears once. Desktop
   keeps the original §5 sticky/centred placement. */
.core-services__top-aside {
  display: block;
  max-width: 540px;
  margin: 0 auto var(--sp-10);
}

@media (min-width: 900px) {
  .core-services__top-aside {
    display: none;
  }
}

@media (max-width: 899px) {
  .service-detail--compact {
    display: none;
  }
}

.service-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: start;
}

/* When there's no body copy (e.g. flat-roofing renders core-services + sidebar
   only), drop the section's top padding so the sidebar tucks up against the
   section above it rather than floating in 4rem of empty space. */
.service-detail--compact {
  padding-top: var(--sp-4);
}

/* The content column still renders as an empty <div>, which on mobile counts
   as a grid item — meaning the layout's `gap` adds vertical space between the
   empty div and the sidebar. Hiding it removes that phantom gap. */
.service-detail--compact .service-detail__content {
  display: none;
}

/* Without main copy, force the layout to a single centred column so the
   "What We Offer" card sits in the middle of the page rather than floating
   in the right-hand grid track with empty space to its left. */
.service-detail--compact .service-detail__layout,
.service-detail--compact .service-detail__layout > .service-detail__sidebar {
  width: 100%;
}

.service-detail--compact .service-detail__layout {
  grid-template-columns: 1fr;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  gap: 0;
}

@media (min-width: 900px) {
  .service-detail--compact .service-detail__sidebar {
    position: static;
  }
}

@media (min-width: 900px) {
  .service-detail__layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: var(--sp-12);
  }

  /* highlights_top set: the §3 problem-section aside already renders the
     "What We Offer" card, so the detail section runs single-column full-width. */
  .service-detail--no-sidebar .service-detail__layout {
    grid-template-columns: 1fr;
  }
}

.service-detail__content {
  min-width: 0;
}

.service-detail__section {
  margin-bottom: var(--sp-10);
}

.service-detail__section:last-child {
  margin-bottom: 0;
}

.service-detail__heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--clr-text-bright);
  margin: 0 0 var(--sp-4);
  line-height: 1.3;
}

.service-detail__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin: 0;
  max-width: 70ch;
}

.service-detail__body > p {
  margin: 0 0 var(--sp-4);
}

.service-detail__body > p:last-child {
  margin-bottom: 0;
}

.service-detail__body a:not(.btn) {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 187, 245, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-detail__body a:not(.btn):hover,
.service-detail__body a:not(.btn):focus-visible {
  color: var(--clr-accent-hover);
  border-bottom-color: var(--clr-accent-hover);
}

.service-detail__callout {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.2);
  border-radius: var(--radius-md);
}

.service-detail__callout p {
  margin: 0 0 var(--sp-4);
  font-size: 1.05rem;
  color: var(--clr-text-bright);
  line-height: 1.7;
}

.service-detail__callout p:last-child {
  margin-bottom: 0;
}

.service-detail__callout .btn {
  margin-top: var(--sp-2);
}

.service-detail__callout--warning {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.28);
}

.service-detail__callout--spec {
  background: rgba(15, 187, 245, 0.06);
  border-color: rgba(15, 187, 245, 0.28);
}

.service-detail__callout-heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text-bright);
}

.service-detail__callout-icon {
  flex-shrink: 0;
  color: var(--clr-accent);
}

.service-detail__callout--warning .service-detail__callout-icon {
  color: #f59e0b;
}

.service-detail__subheading {
  margin: var(--sp-6) 0 var(--sp-3);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--clr-text-bright);
  max-width: 70ch;
}

.service-detail__subheading:first-child {
  margin-top: 0;
}

.service-detail__check-list {
  list-style: none;
  margin: var(--sp-3) 0 var(--sp-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 70ch;
}

.service-detail__check-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--clr-text);
}

.service-detail__check-list__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 2px;
  background: rgba(15, 187, 245, 0.12);
  border-radius: var(--radius-full);
  color: var(--clr-accent);
}

.service-detail__check-list--warning .service-detail__check-list__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #f59e0b;
}

.service-detail__callout .service-detail__check-list {
  margin-top: var(--sp-2);
}

.service-detail__price-anchor {
  margin-top: var(--sp-8);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(15, 187, 245, 0.06);
  border: 1px solid rgba(15, 187, 245, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-text);
}

.service-detail__sidebar {
  position: relative;
}

@media (min-width: 900px) {
  .service-detail__sidebar {
    position: sticky;
    top: calc(
      var(--topbar-h, 0px) + var(--nav-h, 0px) + var(--nav-offset, 0px)
      + var(--sp-3) + var(--sticky-nav-pill-h, 5rem) + var(--sp-6)
    );
  }
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
  background:
    linear-gradient(180deg, rgba(15, 187, 245, 0.06) 0%, transparent 60%),
    var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.service-highlights__heading {
  margin: 0;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-highlights__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--clr-text);
}

.service-highlights__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.service-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--clr-text);
}

.service-highlights__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 2px;
  background: rgba(15, 187, 245, 0.12);
  border-radius: var(--radius-full);
  color: var(--clr-accent);
}

.service-highlights__item a {
  color: var(--clr-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.service-highlights__item a:hover,
.service-highlights__item a:focus-visible {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.service-highlights .btn--block + .btn--block {
  margin-top: var(--sp-2);
}

.service-grid {
  padding: var(--sp-16) 0;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--clr-accent-subtle) 0%, transparent 70%),
    var(--clr-bg-dark);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.service-grid__heading {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.service-grid__heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: var(--sp-4) auto 0;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  border-radius: var(--radius-full);
}

.service-grid__intro {
  max-width: 680px;
  margin: 0 auto var(--sp-10);
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.service-grid__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin: var(--sp-8) 0 0;
  padding: 0;
}

@media (min-width: 600px) {
  .service-grid__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

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

.service-grid__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-6);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--ease-smooth),
              border-color var(--ease),
              box-shadow var(--ease),
              background-color var(--ease);
  overflow: hidden;
}

.service-grid__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--clr-accent-glow), transparent 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.service-grid__card:hover,
.service-grid__card:focus-within {
  transform: translateY(-4px);
  border-color: var(--clr-border-bright);
  box-shadow: var(--shadow-md);
  background-color: rgba(36, 48, 67, 0.85);
}

.service-grid__card:hover::before,
.service-grid__card:focus-within::before {
  opacity: 1;
}

.service-grid__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--clr-accent-subtle);
  color: var(--clr-accent);
  border: 1px solid rgba(15, 187, 245, 0.25);
  margin-bottom: var(--sp-2);
  flex: 0 0 auto;
  transition: background-color var(--ease), color var(--ease), transform var(--ease-smooth);
}

.service-grid__card:hover .service-grid__card-icon {
  background-color: var(--clr-accent);
  color: var(--clr-text-bright);
  transform: rotate(-4deg) scale(1.05);
}

.service-grid__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0;
  line-height: 1.3;
}

.service-grid__card-description {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: 0;
}

