/* =============================================================================
   WEST SENECA TREE SERVICE — Service Detail Pages
   Loaded only on the 6 single-service pages (see tbts_service_page_assets()).
   Design language mirrors the homepage: light-weight display type, thin
   1.5px rules, 16–20px radii, orange (#dd9300) used sparingly as accent.
   ============================================================================= */

/* ─── Poppins (self-hosted) ─────────────────────────────────────────────────── */
/* Used for the oversized hero wordmark. Latin subset only, pulled from Google
   Fonts and stored in assets/fonts/. Poppins is licensed under the SIL Open
   Font License 1.1, which permits bundling it with the theme. */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Shared Tokens ─────────────────────────────────────────────────────────── */
.svc-main {
  --svc-rule: 1.5px solid #f0f0f0;
  --svc-ink: #111;
  --svc-body: #5a5f62;
  --svc-accent: #dd9300;
  background: #ffffff;
}

/* main.css sets `overflow-x: hidden` on #main-content, which makes it a scroll
   container and stops position:sticky working inside it. `clip` gives the same
   protection against horizontal overflow without creating that scroll
   container. ID specificity is needed to win over the #main-content rule. */
#main-content.svc-main {
  overflow-x: clip;
  overflow-y: visible;
}

/* Same reason, one level up: `.site` wraps the whole page and would otherwise
   be the nearest scrollport. Scoped to service pages only so the rest of the
   site keeps main.css behaviour untouched. */
body.tbts-service-page .site {
  overflow-x: clip;
  overflow-y: visible;
}

/* Wider content field than the global 1280px container — matches the 1440px the
   hero, about and stats sections already use, with tighter side padding so
   sections fill a little more of the viewport. */
.svc-main .container {
  max-width: 1440px;
  padding-inline: 20px;
}

.svc-section {
  padding: 120px 0;
}

.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
}

.svc-eyebrow i {
  font-style: normal;
  color: var(--svc-accent);
}

.svc-heading {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
  margin: 0;
}

.svc-heading em {
  font-style: normal;
  color: var(--svc-accent);
  font-weight: 600;
}

.svc-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--svc-body);
}

/* ─── Reveal variants ───────────────────────────────────────────────────────── */
/* These ride on the theme's existing IntersectionObserver (main.js watches
   `.reveal-item` and toggles `.is-visible`), so no second observer is needed.
   Each variant only redefines the starting transform. service-detail.css loads
   after main.css, so equal-specificity rules here win. */
.svc-main .reveal-item {
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-rv-up {
  transform: translateY(38px);
}

.svc-rv-scale {
  transform: translateY(28px) scale(0.965);
}

.svc-rv-left {
  transform: translateX(-40px);
}

.svc-rv-right {
  transform: translateX(40px);
}

.svc-rv-up.is-visible,
.svc-rv-scale.is-visible,
.svc-rv-left.is-visible,
.svc-rv-right.is-visible {
  transform: none;
}

/* ─── Card system ───────────────────────────────────────────────────────────── */
.svc-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accent rule that draws itself across the top edge on hover. Kept at top: 0
   rather than -1px so cards with `overflow: hidden` do not clip it away. */
.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--svc-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(221, 147, 0, 0.26);
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.09);
}

.svc-card:hover::after {
  transform: scaleX(1);
}

/* A revealing card must not fight its own hover transform. */
.svc-card.reveal-item:not(.is-visible):hover {
  transform: translateY(38px);
}

/* ─── Parallax ──────────────────────────────────────────────────────────────── */
[data-svc-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .svc-main .reveal-item,
  .svc-card {
    transition-duration: 0.01ms;
  }
  [data-svc-parallax] {
    transform: none !important;
    will-change: auto;
  }
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-btn .svc-btn-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-btn:hover .svc-btn-ring {
  transform: translateX(4px);
}

.svc-btn-solid {
  background: var(--svc-accent);
  color: #fff;
  border-color: var(--svc-accent);
}

.svc-btn-solid:hover {
  background: #1c1c1c;
  border-color: #1c1c1c;
  color: #fff;
  transform: translateY(-3px);
}

.svc-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.svc-btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
  transform: translateY(-3px);
}

.svc-btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.svc-btn-dark:hover {
  background: var(--svc-accent);
  border-color: var(--svc-accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.svc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  /* No bottom padding: the wordmark runs off the bottom edge and is clipped. */
  padding: 116px 0 0;
  background: #0d0d0d;
  overflow: hidden;
}

/* Taller than the hero and offset upward, so the parallax drift always has
   image to move into instead of exposing an edge. */
.svc-hero-bg {
  position: absolute;
  top: -14%;
  left: 0;
  right: 0;
  height: 128%;
  z-index: 0;
}

.svc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lighter than a standard hero scrim — the photograph needs to read through the
   translucent wordmark, while the top stays dark enough for the white nav. */
.svc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.32) 42%,
    rgba(10, 10, 10, 0.5) 100%
  );
}

.svc-hero .container {
  position: relative;
  z-index: 2;
}

/* Fills the space between the hero's top padding and the wordmark, so the
   breadcrumb sits centred in the section rather than pinned to the top. */
.svc-hero-top {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.svc-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.svc-breadcrumb a:hover {
  color: var(--svc-accent);
}

.svc-breadcrumb span[aria-hidden] {
  opacity: 0.4;
}

.svc-breadcrumb .is-current {
  color: #fff;
}

/* ── Oversized wordmark ── */
.svc-hero-wordmark {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.svc-hero-title {
  /* --svc-wm-fs is written inline per page: it is solved from the string length
     so every service name spans roughly the same share of the viewport.
     The PHP that computes it assumes Poppins' uppercase metrics — changing this
     font family means recalibrating $wm_letter_em in service/detail.php. */
  font-family: "Poppins", var(--font-heading), sans-serif;
  font-size: clamp(2rem, var(--svc-wm-fs, 11vw), 400px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.72;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.62);
  /* Pulls the glyphs toward the section's bottom edge. Less negative = the
     wordmark sits higher and less of it is clipped. */
  margin: 0 0 -0.06em;
  user-select: none;
}

/* ─── Overview ──────────────────────────────────────────────────────────────── */
.svc-overview-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px 90px;
  align-items: center;
}

/* ── Overlapping image pair ── */
.svc-overview-media {
  position: relative;
  padding-bottom: 64px;
  padding-right: 56px;
}

.svc-overview-img-main {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 4.4;
}

.svc-overview-img-main img {
  width: 100%;
  /* Overflows top and bottom so the parallax has room to drift. */
  height: 116%;
  margin-top: -8%;
  object-fit: cover;
}

.svc-overview-img-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  border: 8px solid #ffffff;
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.14);
}

.svc-overview-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-overview-media:hover .svc-overview-img-sub img {
  transform: scale(1.06);
}

.svc-overview-lead {
  margin: 0 0 26px;
  /* Capped so the wider container does not stretch lines past a readable
     measure. The stats row below stays full width for contrast. */
  max-width: 660px;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #262a2c;
}

.svc-overview-body {
  max-width: 640px;
}

.svc-overview-body p {
  margin: 0 0 22px;
}

.svc-overview-body p:last-child {
  margin-bottom: 0;
}

.svc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.svc-stat {
  padding: 36px 34px;
}

.svc-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
  line-height: 1.05;
}

.svc-stat-label {
  margin-top: 14px;
  font-size: 0.9063rem;
  line-height: 1.55;
  color: #7b8083;
}

/* ─── Section head (split) ──────────────────────────────────────────────────── */
.svc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 76px;
}

.svc-section-head-right {
  max-width: 400px;
  flex-shrink: 0;
}

.svc-section-head-right .svc-text {
  font-size: 1rem;
}

/* ─── What's included ───────────────────────────────────────────────────────── */
.svc-includes {
  background: #fdfaf7;
}

.svc-includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-include-item {
  padding: 38px 34px;
}

.svc-include-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(221, 147, 0, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--svc-accent);
  transition:
    background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-include-item:hover .svc-include-num {
  background: var(--svc-accent);
  color: #ffffff;
}

.svc-include-title {
  margin: 22px 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
  line-height: 1.3;
}

.svc-include-desc {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.72;
  color: var(--svc-body);
}

/* ─── Feature band ──────────────────────────────────────────────────────────── */
.svc-feature {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 96px 0;
  overflow: hidden;
  background: #0d0d0d;
}

/* Taller than the band so the parallax always has image to move into. */
.svc-feature-media {
  position: absolute;
  top: -12%;
  left: 0;
  right: 0;
  height: 124%;
  z-index: 0;
}

.svc-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.68) 0%,
    rgba(10, 10, 10, 0.55) 50%,
    rgba(10, 10, 10, 0.72) 100%
  );
}

.svc-feature .container {
  position: relative;
  z-index: 2;
}

.svc-feature-inner {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.svc-feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.svc-feature-label i {
  font-style: normal;
  color: var(--svc-accent);
}

.svc-feature-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.svc-feature-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--svc-accent);
}

/* ─── Process ───────────────────────────────────────────────────────────────── */
.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-process-step {
  position: relative;
  overflow: hidden;
  padding: 32px;
}

/* Breaks out of the card padding to sit flush against the top edge. */
.svc-step-img {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  margin: -32px -32px 26px;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: #f2f0ee;
}

.svc-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-process-step:hover .svc-step-img img {
  transform: scale(1.07);
}

/* Oversized number sitting behind the copy, below the thumbnail. */
.svc-step-ghost {
  position: absolute;
  bottom: -26px;
  right: 8px;
  font-family: var(--font-heading);
  font-size: 6.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(17, 17, 17, 0.045);
  pointer-events: none;
  transition:
    color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-process-step:hover .svc-step-ghost {
  color: rgba(221, 147, 0, 0.1);
  transform: translateY(4px);
}

.svc-step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--svc-ink);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-process-step:hover .svc-step-num {
  background: var(--svc-accent);
  border-color: var(--svc-accent);
  color: #fff;
}

.svc-step-title {
  position: relative;
  z-index: 1;
  margin: 22px 0 12px;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
  line-height: 1.3;
}

.svc-step-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.72;
  color: var(--svc-body);
}

/* ─── Why us (split with image) ─────────────────────────────────────────────── */
.svc-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

/* Mirrored against the overview (image left) so the two alternate down the page. */
.svc-why-media {
  position: relative;
  order: 2;
}

.svc-why-content {
  order: 1;
}

.svc-why-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

/* Overflows the rounded frame top and bottom to give the parallax headroom. */
.svc-why-img img {
  width: 100%;
  height: 118%;
  margin-top: -9%;
  object-fit: cover;
}

/* Image sits on the right of this section, so the badge hangs off its left. */
.svc-why-badge {
  position: absolute;
  left: -24px;
  bottom: 36px;
  max-width: 232px;
  padding: 24px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.svc-why-badge-value {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
  line-height: 1.1;
}

.svc-why-badge-label {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #7b8083;
}

.svc-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.svc-point {
  display: flex;
  gap: 18px;
  padding: 22px 26px;
}

.svc-point:hover {
  transform: translateX(6px);
}

.svc-point-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(221, 147, 0, 0.12);
  color: var(--svc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-point-title {
  display: block;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--svc-ink);
}

.svc-point-desc {
  margin: 0;
  max-width: 64ch;
  font-size: 0.9688rem;
  line-height: 1.72;
  color: var(--svc-body);
}

/* ─── Gallery ───────────────────────────────────────────────────────────────── */
.svc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 248px;
  gap: 20px;
}

/* First shot is the hero of the grid: 2 columns wide, 2 rows tall. */
.svc-shot:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.svc-shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #f0efed;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.svc-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-shot:hover img,
.svc-shot:focus-visible img {
  transform: scale(1.07);
}

.svc-shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 40%,
    rgba(10, 10, 10, 0.82) 100%
  );
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-shot:hover .svc-shot-overlay,
.svc-shot:focus-visible .svc-shot-overlay {
  opacity: 1;
}

.svc-shot-meta {
  display: block;
  min-width: 0;
}

.svc-shot-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--svc-accent);
}

.svc-shot-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.svc-shot-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-shot:hover .svc-shot-icon {
  background: var(--svc-accent);
  border-color: var(--svc-accent);
}

/* Smaller tiles get tighter overlay text. */
.svc-shot:not(:first-child) .svc-shot-overlay {
  padding: 20px;
}

.svc-shot:not(:first-child) .svc-shot-title {
  font-size: 0.9688rem;
}

.svc-shot:not(:first-child) .svc-shot-icon {
  width: 34px;
  height: 34px;
}

/* ─── Lightbox ──────────────────────────────────────────────────────────────── */
.svc-lightbox {
  position: fixed;
  inset: 0;
  /* Above the mobile header, which main.css pins at z-index 999999. */
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.svc-lightbox[hidden] {
  display: none;
}

.svc-lightbox.is-open {
  opacity: 1;
}

.svc-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.svc-lb-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-lightbox.is-open .svc-lb-figure {
  transform: scale(1);
}

.svc-lb-img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: 14px;
  object-fit: contain;
}

.svc-lb-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  text-align: center;
}

.svc-lb-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--svc-accent);
}

.svc-lb-title {
  font-size: 1.0625rem;
  color: #fff;
}

.svc-lb-count {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.svc-lb-btn {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-lb-btn:hover {
  background: var(--svc-accent);
  border-color: var(--svc-accent);
}

.svc-lb-close {
  top: 32px;
  right: 32px;
}

.svc-lb-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.svc-lb-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.svc-faq {
  padding-top: 0;
}

.svc-faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}

.svc-faq .faq-grid {
  max-width: 920px;
  gap: 14px;
}

/* Override the theme's hairline-divider accordion with the card treatment. */
.svc-faq .faq-item,
.svc-faq .faq-item:first-child {
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.svc-faq .faq-item.is-active {
  background: #ffffff;
  border-color: rgba(221, 147, 0, 0.28);
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.07);
}

/* The card's hover lift would fight the accordion, so only the accent shows. */
.svc-faq .faq-item.svc-card:hover {
  transform: none;
}

.svc-faq .faq-question {
  padding: 26px 28px;
  font-size: 1.1875rem;
}

.svc-faq .faq-answer-inner {
  padding: 0 28px 28px;
  max-width: 100%;
}

.svc-faq .faq-icon {
  width: 38px;
  height: 38px;
}

/* ─── CTA band ──────────────────────────────────────────────────────────────── */
.svc-cta {
  padding: 0 0 120px;
}

.svc-cta-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 78px 72px;
  border-radius: 28px;
  background: #111;
}

/* Photographic wash behind the dark CTA card. */
.svc-cta-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
}

.svc-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(17, 17, 17, 0.94) 0%,
    rgba(17, 17, 17, 0.66) 58%,
    rgba(17, 17, 17, 0.4) 100%
  );
}

.svc-cta-rings {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  color: #fff;
  opacity: 0.5;
  pointer-events: none;
}

.svc-cta-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.svc-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc-accent);
}

.svc-cta-title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}

.svc-cta-desc {
  margin: 0;
  font-size: 1.0313rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.62);
}

.svc-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  flex-shrink: 0;
}

.svc-cta-phone {
  display: block;
  font-family: var(--font-body);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.svc-cta-phone span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.svc-cta-phone:hover {
  color: var(--svc-accent);
}

.svc-cta-actions .svc-btn-solid:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

/* ─── Related services ──────────────────────────────────────────────────────── */
.svc-related {
  padding: 0 0 120px;
}

.svc-related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 76px;
  border-top: var(--svc-rule);
  margin-bottom: 56px;
}

.svc-related-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--svc-accent);
  text-decoration: none;
  white-space: nowrap;
}

.svc-related-link svg {
  transition: transform 0.4s ease;
}

.svc-related-link:hover {
  color: var(--svc-ink);
}

.svc-related-link:hover svg {
  transform: translateX(5px);
}

.svc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.svc-related-card {
  display: block;
  padding: 16px 16px 26px;
  text-decoration: none;
}

.svc-related-img {
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
}

.svc-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-related-card:hover .svc-related-img img {
  transform: scale(1.07);
}

.svc-related-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 10px 10px;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
  transition: color 0.3s ease;
}

.svc-related-title svg {
  flex-shrink: 0;
  color: var(--svc-accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-related-card:hover .svc-related-title {
  color: var(--svc-accent);
}

.svc-related-card:hover .svc-related-title svg {
  transform: translate(4px, -4px);
}

.svc-related-desc {
  margin: 0 10px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--svc-body);
}

/* Section background rhythm: two warm bands spaced apart down the page. */
.svc-gallery {
  background: #fdfaf7;
}

/* ─── Wide screens ──────────────────────────────────────────────────────────── */
/* The 1600px container gives sections more room, so open the gaps and let the
   gallery tiles grow rather than becoming long and thin. */
@media (min-width: 1400px) {
  .svc-overview-grid {
    gap: 40px 104px;
  }
  .svc-why-grid {
    gap: 100px;
  }
  .svc-includes-grid,
  .svc-process-grid {
    gap: 28px;
  }
  .svc-gallery-grid {
    grid-auto-rows: 258px;
    gap: 22px;
  }
  .svc-related-grid {
    gap: 36px;
  }
  .svc-cta-inner {
    padding: 84px 80px;
  }
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .svc-overview-grid,
  .svc-why-grid {
    gap: 40px 64px;
  }
  .svc-includes-grid,
  .svc-process-grid {
    gap: 20px;
  }
  .svc-why-badge {
    left: 16px;
  }
}

@media (max-width: 1024px) {
  .svc-section {
    padding: 90px 0;
  }
  .svc-hero {
    min-height: 340px;
    padding: 100px 0 0;
  }
  .svc-overview-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .svc-overview-media {
    padding-bottom: 52px;
    padding-right: 44px;
  }
  .svc-overview-img-main {
    aspect-ratio: 16 / 10;
  }
  .svc-feature {
    min-height: 360px;
    padding: 76px 0;
  }
  .svc-includes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .svc-why-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  /* Stacked: image back above the copy. */
  .svc-why-media {
    order: 1;
  }
  .svc-why-content {
    order: 2;
  }
  .svc-why-img {
    aspect-ratio: 16 / 10;
  }
  .svc-why-badge {
    left: 24px;
    bottom: 24px;
  }
  .svc-section-head,
  .svc-related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    margin-bottom: 56px;
  }
  .svc-cta,
  .svc-related {
    padding-bottom: 90px;
  }
  .svc-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 56px 44px;
  }
  .svc-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }
  .svc-lightbox {
    padding: 72px 20px;
  }
  .svc-lb-close {
    top: 18px;
    right: 18px;
  }
  .svc-lb-prev {
    left: 14px;
  }
  .svc-lb-next {
    right: 14px;
  }
}

@media (max-width: 768px) {
  .svc-section {
    padding: 72px 0;
  }
  .svc-hero {
    min-height: 260px;
    padding: 88px 0 0;
  }
  .svc-hero-title {
    /* Lower floor so the longest names still fit on a narrow screen. */
    font-size: clamp(1.5rem, var(--svc-wm-fs, 11vw), 400px);
    margin-bottom: -0.045em;
  }
  .svc-overview-lead {
    font-size: 1.125rem;
  }
  .svc-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 44px;
  }
  .svc-stat-value {
    font-size: 1.625rem;
  }
  .svc-includes-grid,
  .svc-process-grid,
  .svc-related-grid {
    grid-template-columns: 1fr;
  }
  .svc-process-grid {
    gap: 16px;
  }
  .svc-include-item {
    padding: 30px 26px;
  }
  .svc-process-step {
    padding: 26px;
  }
  .svc-step-img {
    margin: -26px -26px 22px;
  }
  .svc-overview-media {
    padding-bottom: 44px;
    padding-right: 34px;
  }
  .svc-overview-img-sub {
    width: 58%;
    border-width: 6px;
  }
  .svc-feature {
    min-height: 0;
    padding: 64px 0;
  }
  .svc-stat {
    padding: 30px 26px;
  }
  .svc-why-badge {
    position: static;
    max-width: none;
    margin-top: 16px;
    box-shadow: none;
    padding: 22px;
  }
  .svc-cta,
  .svc-related {
    padding-bottom: 72px;
  }
  .svc-cta-inner {
    padding: 44px 26px;
    border-radius: 20px;
  }
  .svc-cta-rings {
    display: none;
  }
  .svc-cta-actions {
    width: 100%;
  }
  .svc-cta-actions .svc-btn {
    width: 100%;
    justify-content: space-between;
  }
  .svc-related-head {
    padding-top: 56px;
  }
  .svc-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .svc-shot:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  /* Touch devices have no hover, so keep captions permanently visible. */
  .svc-shot-overlay {
    opacity: 1;
  }
  .svc-shot:not(:first-child) .svc-shot-title {
    font-size: 1.0313rem;
  }
  .svc-lightbox {
    padding: 68px 14px;
  }
  .svc-lb-img {
    max-height: 62vh;
  }
  .svc-lb-btn {
    width: 44px;
    height: 44px;
  }
  .svc-lb-prev {
    top: auto;
    bottom: 18px;
    left: calc(50% - 52px);
    transform: none;
  }
  .svc-lb-next {
    top: auto;
    bottom: 18px;
    right: calc(50% - 52px);
    transform: none;
  }
}

/* Below 640px main.css drops --container-px to 16px; match it so the service
   sections stay aligned with the header and footer containers. */
@media (max-width: 640px) {
  .svc-main .container {
    padding-inline: 16px;
  }
}

/* Hover-capable pointers only: reveal captions on hover. Touch keeps them on. */
@media (hover: none) {
  .svc-shot-overlay {
    opacity: 1;
  }
}
