/* ——— Service detail ——— */

.sd-breadcrumb {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: #111;
  border: 1.333px solid rgba(255, 255, 255, 0.05);
  height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 63px;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  letter-spacing: 0.48px;
  width: 100%;
}

.sd-breadcrumb a,
.sd-breadcrumb span {
  color: #888;
}

.sd-breadcrumb .sep {
  color: #2a2a2a;
}

.sd-breadcrumb .current {
  color: #c8c8c8;
}

/* ——— Service switcher rail (Figma 1563:13500 / 1564:15642) ———
   Band is 1920x273 with 120px side + 70px vertical padding; tiles 264x133,
   ~20px apart, square, 0.65px border. Overflows 1920 by design → scroll rail
   with the scrollbar hidden (client complaint about visible scrollbars). */

/* The rail used to be a fixed 264px-per-tile scroller, which left a 120px
   gutter on the left and sliced the last tile off on the right. It is now a
   fluid 7-column grid so every service is visible at once with matched
   gutters; it only falls back to a snap-scroller below 1024px. */
.sd-svcnav {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  padding: clamp(28px, 3.4vw, 64px) clamp(16px, 6.25vw, 120px) clamp(20px, 2.2vw, 40px);
}

.sd-svcnav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sd-svcnav-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.05vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sd-svcnav-track > li {
  display: flex;
  min-width: 0;
}

.sd-svcnav-item {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 26px);
  min-height: clamp(104px, 6.9vw, 133px);
  padding: clamp(14px, 1.65vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Accent rail that slides in on hover and stays put on the current page. */
.sd-svcnav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b35, #f68121);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-svcnav-icon {
  display: block;
  width: clamp(24px, 1.7vw, 31px);
  height: clamp(24px, 1.7vw, 31px);
}

.sd-svcnav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sd-svcnav-label {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: clamp(11.5px, 0.8vw, 14px);
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: #f5f5f5;
  overflow-wrap: break-word;
}

.sd-svcnav-item:hover,
.sd-svcnav-item:focus-visible {
  border-color: rgba(246, 129, 33, 0.5);
  background: rgba(255, 107, 53, 0.06);
  color: rgba(255, 255, 255, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  outline: none;
}

.sd-svcnav-item:hover::after,
.sd-svcnav-item:focus-visible::after,
.sd-svcnav-item[aria-current="page"]::after {
  transform: scaleX(1);
}

.sd-svcnav-item[aria-current="page"] {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.09);
  color: #ff6b35;
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35), 0 16px 34px rgba(255, 107, 53, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .sd-svcnav-item,
  .sd-svcnav-item::after {
    transition: none;
  }

  .sd-svcnav-item:hover,
  .sd-svcnav-item:focus-visible {
    transform: none;
  }
}

.sd-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Figma sizes the hero band to its content (~767px), not the viewport.
     The viewport lock left ~250px of empty space under the copy. */
  height: auto;
  padding: 0;
  gap: 0;
  background: #1d1d1d;
  overflow: hidden;
  width: 100%;
}

.sd-hero-glow {
  position: absolute;
  left: 50%;
  top: -246px;
  transform: translateX(-50%);
  width: 623px;
  height: 257px;
  background: rgba(224, 105, 0, 0.5);
  border-radius: 200px;
  filter: blur(300px);
  pointer-events: none;
}

.sd-hero-inner {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 72px 120px 100px;
  position: relative;
  z-index: 1;
}

.sd-hero-copy {
  flex: 1 1 48%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.sd-hero-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sd-eyebrow {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #909090;
}

.sd-title {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.2;
  color: #fff;
}

.sd-desc {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.sd-caps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.sd-caps-label {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #f68121;
}

.sd-caps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sd-cap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sd-cap img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sd-cap span {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #ccc;
}

.sd-hero-media {
  position: relative;
  flex: 1 1 40%;
  min-width: 0;
  min-height: 0;
  max-width: 847px;
  max-height: 100%;
  aspect-ratio: 847 / 570;
  overflow: hidden;
  background: #fff;
}

.sd-hero-media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-hero-media-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 34px 43px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 10%, transparent);
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

/* Process */

.sd-process {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 80px 120px 120px;
  width: 100%;
}

.sd-process-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 1055px;
}

.sd-process-head h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: #fff;
}

.sd-process-head p {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.sd-steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  max-width: 1663px;
}

.sd-step {
  width: 315px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sd-step-num {
  font-family: "Fustat", sans-serif;
  font-weight: 300;
  font-size: 60px;
  line-height: 60px;
  color: rgba(255, 255, 255, 0.1);
}

.sd-step-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, #ff6b35 0%, transparent 100%);
}

.sd-step h3 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: #f5f5f5;
}

.sd-step p {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 22.75px;
  color: #999;
}

/* Featured projects strip */

/* Two cards side by side rather than a four-card scroller, so the strip has
   the same gutter left and right and nothing peeks in from off-canvas. */
.sd-featured {
  padding: 0 clamp(16px, 6.25vw, 120px) 80px;
  width: 100%;
}

.sd-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.sd-featured-head h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 46.3px;
  line-height: 52.8px;
  letter-spacing: -2.4px;
  color: #fff;
}

.sd-featured-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.9vw, 35px);
  width: 100%;
}

.sd-featured-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sd-feat-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 720 / 480;
  border-radius: 17px;
  overflow: hidden;
  background: #f7f7f7;
}

.sd-feat-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sd-feat-card:hover img.cover,
.sd-feat-card:focus-visible img.cover {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .sd-feat-card img.cover {
    transition: none;
  }

  .sd-feat-card:hover img.cover,
  .sd-feat-card:focus-visible img.cover {
    transform: none;
  }
}

.sd-feat-card .card-glass {
  min-height: 101px;
}

.sd-feat-card .card-title {
  font-size: 23px;
}

.sd-feat-card .card-loc {
  font-size: 19px;
}

/* Sustainability */

.sd-sustain {
  background: linear-gradient(180deg, #1e1e1e 0%, #000 100%);
  padding: 122px 120px;
  width: 100%;
}

.sd-sustain-inner {
  display: flex;
  gap: 96px;
  max-width: 1350px;
  margin: 0 auto;
  align-items: flex-start;
}

.sd-sustain-left {
  width: 630px;
  flex-shrink: 0;
}

.sd-label-orange {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #f68121;
  margin-bottom: 24px;
}

.sd-sustain-left h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 57.6px;
  letter-spacing: -1.2px;
  color: #f5f5f5;
  margin-bottom: 32px;
}

.sd-sustain-left > p {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 29.25px;
  color: #999;
  margin-bottom: 48px;
}

.sd-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sd-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sd-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f68121;
  margin-top: 8px;
  flex-shrink: 0;
}

.sd-bullet strong {
  display: block;
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.4px;
  color: #f5f5f5;
}

.sd-bullet span {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #999;
}

.sd-stats-panel {
  flex: 1;
  background: #222;
  border: 0.65px solid rgba(255, 255, 255, 0.1);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 48px;
}

.sd-stat-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.sd-stat-item strong {
  display: block;
  font-family: "Fustat", sans-serif;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: #f5f5f5;
  margin-bottom: 8px;
}

.sd-stat-item span {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #999;
}

/* Completions */

.sd-completions {
  position: relative;
  padding: 156px 285px 80px;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.sd-completions-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.sd-completions-bg img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sd-completions-bg img:first-child {
  top: 0;
  left: 0;
}

.sd-completions-bg img:last-child {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}

.sd-completions-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.sd-completions-inner .sd-label-orange {
  text-align: center;
  width: 100%;
}

.sd-completions-inner h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.2px;
  color: #f5f5f5;
  text-align: center;
  /* was margin-top: -64px, which pulled the h2 straight over the
     "Recent Completions" eyebrow inside its wrapper div. */
  margin-top: 0;
}

.sd-comp-cards {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1339px;
}

.sd-comp-card {
  flex: 1;
  background: #222;
  border: 0.65px solid rgba(255, 255, 255, 0.1);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sd-comp-card strong {
  font-family: "Fustat", sans-serif;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.2px;
  color: #f68121;
}

.sd-comp-card span {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: #999;
}

/* Certifications */

.sd-certs {
  background: #0f0f0f;
  border-top: 0.65px solid rgba(255, 255, 255, 0.1);
  padding: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.sd-certs-head {
  text-align: center;
  max-width: 672px;
}

.sd-certs-head h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.2px;
  color: #f5f5f5;
  margin: 16px 0 24px;
}

.sd-certs-head p {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #999;
}

.sd-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 431px);
  gap: 32px;
  max-width: 1357px;
}

.sd-cert {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1a1a1a;
  border: 0.65px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
}

.sd-cert img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sd-cert span {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: #f5f5f5;
}

/* `.sd-sustain-left > p` and `.sd-certs-head p` (both #999) are declared after
   `.sd-label-orange` at equal specificity, so every orange eyebrow on the page
   was rendering grey. Re-assert the accent here, after both. */
.sd-sustain-left > p.sd-label-orange,
.sd-certs-head p.sd-label-orange,
.sd-completions-inner .sd-label-orange {
  color: #f68121;
}

/* Shared bottom: blogs / enquire / faq — reuse listing patterns.
   .sd-blogs is a hook class only: the section is <section class="sd-blogs blogs">
   and every visual rule comes from .blogs in css/components.css. The copy that
   used to sit here re-declared the band at 120px gutters and a 36px gap
   (the shared value is 36.72px). */

.sd-enquire {
  background: #0d0d0d;
  padding: 180px 215px 200px;
  width: 100%;
}

.sd-enquire-inner {
  display: flex;
  gap: 111px;
  align-items: center;
}

.sd-enquire-copy {
  width: 803px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 229px;
}

.sd-enquire-copy h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 18px;
}

.sd-enquire-copy .sub {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 726px;
}

.sd-form {
  position: relative;
  width: 576px;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 33px;
}

.sd-form::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 471px;
  height: 531px;
  background: linear-gradient(90deg, rgba(255, 131, 43, 0.2), rgba(246, 129, 33, 0.2));
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.sd-form > * {
  position: relative;
  z-index: 1;
}

.sd-form h3 {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.56px;
  color: #fff;
  margin-bottom: 12px;
}

.sd-form .hint {
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.sd-form .hint a {
  color: #fff;
  text-decoration: underline;
}

.sd-form input,
.sd-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
}

.sd-form textarea {
  min-height: 122px;
  resize: vertical;
}

.sd-form input::placeholder,
.sd-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sd-faq {
  /* Figma: same #0d0d0d → #1d1d1d wash as the listing-page FAQ. */
  background: linear-gradient(180deg, #0d0d0d 0%, #1d1d1d 100%);
  padding: 120px 215px;
  width: 100%;
  text-align: center;
}

.sd-faq .sd-eyebrow {
  margin-bottom: 24px;
}

.sd-faq h2 {
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  color: #fff;
  margin-bottom: 95px;
}

.sd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 29px;
  max-width: 792px;
  margin: 0 auto;
  text-align: left;
}

/* Figma draws these as rounded #1b1b1b cards with a + that turns into an ×,
   matching the listing-page accordion. They were flat underlined rows. */
.sd-faq-item {
  background: #1b1b1b;
  border-radius: 16px;
  padding: 20px 24px;
  overflow: hidden;
}

.sd-faq-item summary {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.128px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sd-faq-item summary::-webkit-details-marker {
  display: none;
}

.sd-faq-item summary img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sd-faq-item[open] summary img {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .sd-faq-item summary img {
    transition: none;
  }
}

.sd-faq-answer {
  padding-top: 16px;
  padding-right: 40px;
}

.sd-faq-item p {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(250, 250, 250, 0.7);
}

.sd-faq-answer p + p {
  margin-top: 12px;
}

.sd-faq-more {
  margin-top: 29px;
  text-align: center;
  font-family: "Fustat", sans-serif;
  font-size: 15.9px;
  line-height: 24px;
  letter-spacing: -0.384px;
  color: #fafafa;
}

.sd-faq-more a {
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hero is content-sized now, so it scales on width, not viewport height. */
@media (max-width: 1280px) {
  .sd-title {
    font-size: 48px;
  }

  .sd-hero-copy {
    gap: 22px;
  }

  .sd-hero-inner {
    padding-top: 48px;
    padding-bottom: 64px;
    gap: 32px;
  }

  .sd-caps {
    gap: 20px;
  }
}

@media (max-width: 1440px) {
  /* .sd-blogs dropped: .blogs already gets the 60px gutters from
     css/footer.css @1440, and listing it here re-applied them at a later
     cascade position for no reason. */
  .sd-process,
  .sd-sustain,
  .sd-certs {
    padding-left: 60px;
    padding-right: 60px;
  }

  .sd-hero-inner {
    padding-left: 60px;
    padding-right: 60px;
    gap: 32px;
  }

  .sd-svcnav {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .sd-sustain-inner,
  .sd-enquire-inner,
  .sd-steps,
  .sd-comp-cards {
    flex-wrap: wrap;
  }

  .sd-sustain-left,
  .sd-enquire-copy,
  .sd-form {
    width: 100%;
  }

  .sd-cert-grid {
    grid-template-columns: 1fr;
  }

  .sd-completions,
  .sd-enquire,
  .sd-faq {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* Featured blogs — styled entirely by css/components.css (+ footer.css /
   responsive.css breakpoints). The verbatim clone removed from here pinned
   the band to 120px gutters and 492px cards. */


/* Snap-scroller fallback for narrow viewports */
@media (max-width: 1024px) {
  .sd-svcnav {
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .sd-svcnav-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding-inline: clamp(16px, 6.25vw, 60px);
  }

  .sd-svcnav-track > li {
    flex: 0 0 auto;
  }

  .sd-svcnav-item {
    width: 188px;
    min-height: 116px;
    padding: 20px;
    scroll-snap-align: center;
  }

  .sd-svcnav-label {
    font-size: 13px;
  }

  /* Fade both edges so a part-scrolled rail reads as "more this way". */
  @supports (mask-image: linear-gradient(#000, #000)) {
    .sd-svcnav {
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    }
  }
}

@media (max-width: 768px) {
  .sd-breadcrumb {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    font-size: 13px;
  }

  .sd-hero {
    height: auto;
    min-height: 0;
    padding: 0 !important;
    overflow: visible;
  }

  .sd-svcnav {
    padding: 24px 0 8px;
  }

  .sd-svcnav-track {
    gap: 12px;
    padding-inline: 16px;
  }

  .sd-svcnav-item {
    width: 178px;
    min-height: 112px;
    padding: 18px;
  }

  .sd-faq-list {
    gap: 16px;
  }

  .sd-faq-item summary {
    font-size: 17px;
  }

  .sd-hero-inner {
    flex-direction: column;
    gap: 28px;
    padding: 28px 16px 40px;
    flex: 0 1 auto;
  }

  .sd-title {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .sd-hero-media {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sd-steps {
    flex-direction: column;
  }

  .sd-featured {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sd-featured-track {
    grid-template-columns: 1fr;
  }

  .sd-grid, .sd-features, .sd-process, .sd-stats {
    flex-direction: column !important;
    display: flex !important;
    gap: 16px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .sd-card, .sd-feature, .sd-stat {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }

  .sd-enquire, .sd-faq, .sd-cta {
    padding: 48px 16px !important;
  }

  .sd-form {
    width: 100%;
  }

  /* —— 375px refinements ——
     Figma has no mobile Services frame; the 24px/16px gutters and the
     clamped display sizes follow the 375-wide Landing Page frame 669:7625.
     Without these the sustain / completions / certs bands kept the 60px
     tablet gutter, leaving ~255px of usable width. */
  .sd-sustain {
    padding: 48px 20px;
  }

  .sd-sustain-inner {
    gap: 32px;
  }

  .sd-sustain-left h2,
  .sd-completions-inner h2,
  .sd-certs-head h2 {
    font-size: clamp(26px, 7.5vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .sd-sustain-left > p {
    margin-bottom: 32px;
  }

  .sd-stats-panel {
    padding: 28px 20px;
    gap: 28px 20px;
  }

  .sd-stat-item img {
    margin-bottom: 14px;
  }

  .sd-completions {
    padding: 48px 20px 56px;
  }

  .sd-completions-inner {
    gap: 40px;
  }

  .sd-comp-cards {
    flex-direction: column;
    gap: 16px;
  }

  .sd-comp-card {
    padding: 28px 24px;
  }

  .sd-certs {
    padding: 48px 20px;
    gap: 32px;
  }

  .sd-cert {
    padding: 20px;
  }

  .sd-featured-head h2,
  .sd-process-head h2 {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .sd-process {
    gap: 32px !important;
  }

  .sd-process-head p {
    font-size: 16px;
  }

  .sd-faq h2 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.2;
    margin-bottom: 28px;
  }

  .sd-enquire-copy h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .sd-enquire-copy {
    gap: 32px;
  }

  .sd-enquire-inner {
    flex-direction: column;
    gap: 32px;
  }

  /* —— Tap targets (>=44px) —— */
  .sd-breadcrumb {
    gap: 6px;
  }

  .sd-breadcrumb a,
  .sd-breadcrumb .current {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .sd-faq-item summary {
    min-height: 44px;
  }

  .blog-know {
    min-height: 44px;
    align-items: center;
  }
}

/* ============================================================
   LIGHT MODE — Service detail (7 pages)
   Same mapping as the listing page, derived from Figma light landing
   1264:9007 (there is no light Services frame in the file):
     #1d1d1d / #0d0d0d / #0f0f0f / #010101 grounds  →  #ffffff / #f5f5f5
     dark gradients                                 →  #f5f5f5 → #ffffff
     #fff, #f5f5f5 headings                         →  var(--text)
     rgba(255,255,255,.6), #999, #ccc body copy     →  var(--text-secondary)
     #222 / #1a1a1a / #1b1b1b / #131313 panels      →  #ffffff / var(--bg-elevated)
     rgba(255,255,255,X) hairlines                  →  rgba(18,18,18,X) / var(--border)
     #909090 eyebrows and #f68121/#ff6b35 accent are IDENTICAL in both themes.
   .sd-hero-media-label keeps its black scrim: it sits on a photograph.
   ============================================================ */

/* —— Breadcrumb —— */
html[data-theme="light"] .sd-breadcrumb {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .sd-breadcrumb a,
html[data-theme="light"] .sd-breadcrumb span {
  color: #6b6b6b;
}

html[data-theme="light"] .sd-breadcrumb .sep {
  color: var(--border-strong);
}

html[data-theme="light"] .sd-breadcrumb .current {
  color: var(--text);
}

/* —— Service switcher rail ——
   Inactive tiles are drawn entirely in rgba(255,255,255,…) — border, wash and
   icon all disappear against a white ground, so each gets an ink equivalent.
   The #ff6b35 / #f68121 active + hover treatment is left untouched. */
html[data-theme="light"] .sd-svcnav-item {
  border-color: var(--border-strong);
  /* Opaque so contrast tooling reads the real ground, not a wash. */
  background: var(--bg-elevated);
  color: rgba(18, 18, 18, 0.45);
}

html[data-theme="light"] .sd-svcnav-label {
  color: var(--text);
}

html[data-theme="light"] .sd-svcnav-item:hover,
html[data-theme="light"] .sd-svcnav-item:focus-visible {
  border-color: rgba(246, 129, 33, 0.5);
  background: rgba(255, 107, 53, 0.07);
  color: rgba(18, 18, 18, 0.75);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .sd-svcnav-item[aria-current="page"] {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.09);
  color: #ff6b35;
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35), 0 16px 34px rgba(255, 107, 53, 0.12);
}

/* —— Hero —— */
html[data-theme="light"] .sd-hero {
  background: var(--bg-body);
}

html[data-theme="light"] .sd-hero-glow {
  background: rgba(224, 105, 0, 0.28);
}

html[data-theme="light"] .sd-title {
  color: var(--text);
}

html[data-theme="light"] .sd-desc,
html[data-theme="light"] .sd-cap span {
  color: var(--text-secondary);
}

/* —— Process —— */
html[data-theme="light"] .sd-process-head h2 {
  color: var(--text);
}

html[data-theme="light"] .sd-process-head p,
html[data-theme="light"] .sd-step p {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-step-num {
  color: rgba(18, 18, 18, 0.14);
}

html[data-theme="light"] .sd-step h3 {
  color: var(--text);
}

/* —— Featured projects ——
   .card-glass / .card-title / .card-loc are themed in components.css. */
html[data-theme="light"] .sd-featured-head h2 {
  color: var(--text);
}

/* —— Sustainability —— */
html[data-theme="light"] .sd-sustain {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-sunken) 100%);
}

html[data-theme="light"] .sd-sustain-left h2,
html[data-theme="light"] .sd-bullet strong,
html[data-theme="light"] .sd-stat-item strong {
  color: var(--text);
}

html[data-theme="light"] .sd-sustain-left > p,
html[data-theme="light"] .sd-bullet span,
html[data-theme="light"] .sd-stat-item span {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-stats-panel {
  background: var(--bg-body);
  border-color: var(--border);
}

/* —— Completions ——
   completions-bg-*.png are black→transparent fades; at 45% they paint two
   grey bands across a white section, so the decorative layer is dropped. */
html[data-theme="light"] .sd-completions {
  background: var(--bg-elevated);
}

html[data-theme="light"] .sd-completions-bg {
  display: none;
}

html[data-theme="light"] .sd-completions-inner h2 {
  color: var(--text);
}

html[data-theme="light"] .sd-comp-card {
  background: var(--bg-body);
  border-color: var(--border);
}

html[data-theme="light"] .sd-comp-card span {
  color: var(--text-secondary);
}

/* —— Certifications —— */
html[data-theme="light"] .sd-certs {
  background: var(--bg-body);
  border-top-color: var(--border);
}

html[data-theme="light"] .sd-certs-head h2 {
  color: var(--text);
}

html[data-theme="light"] .sd-certs-head p {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-cert {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .sd-cert span {
  color: var(--text);
}

/* The orange eyebrows are re-asserted after the #999 rules above; keep that
   ordering intact in light mode too. */
html[data-theme="light"] .sd-sustain-left > p.sd-label-orange,
html[data-theme="light"] .sd-certs-head p.sd-label-orange,
html[data-theme="light"] .sd-completions-inner .sd-label-orange,
html[data-theme="light"] .sd-caps-label,
html[data-theme="light"] .sd-comp-card strong {
  color: var(--accent-text);
}

/* —— Featured blogs — light rules live in css/components.css (band stays dark
   ink in both themes, per the homepage). .sd-blogs is only a hook class on the
   same <section class="sd-blogs blogs">, so it needs no separate rule. —— */

/* —— Enquire —— */
html[data-theme="light"] .sd-enquire {
  background: var(--bg-body);
}

html[data-theme="light"] .sd-enquire-copy h2 {
  color: var(--text);
}

html[data-theme="light"] .sd-enquire-copy .sub {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-form {
  background: var(--bg-body);
  border-color: rgba(18, 18, 18, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .sd-form h3 {
  color: var(--text);
}

html[data-theme="light"] .sd-form .hint {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-form .hint a {
  color: var(--text);
}

html[data-theme="light"] .sd-form input,
html[data-theme="light"] .sd-form textarea {
  background: var(--bg-elevated);
  border-color: rgba(18, 18, 18, 0.2);
  color: var(--text);
}

html[data-theme="light"] .sd-form input::placeholder,
html[data-theme="light"] .sd-form textarea::placeholder {
  color: rgba(18, 18, 18, 0.4);
}

/* —— FAQ —— */
html[data-theme="light"] .sd-faq {
  background: linear-gradient(180deg, var(--bg-sunken) 0%, var(--bg-page) 100%);
}

html[data-theme="light"] .sd-faq h2 {
  color: var(--text);
}

/* Figma's light accordion is a plain #fff card; the hairline keeps the rows
   readable where the section gradient reaches #fff. */
html[data-theme="light"] .sd-faq-item {
  background: var(--bg-body);
  border: 1px solid var(--border);
}

/* The +/× glyph is painted from currentColor, so it follows this. */
html[data-theme="light"] .sd-faq-item summary {
  color: var(--text);
}

html[data-theme="light"] .sd-faq-item p {
  color: var(--text-secondary);
}

/* icon-plus.svg is white-stroked; invert it to the ink colour. */
html[data-theme="light"] .sd-faq-item summary img {
  filter: invert(1);
}

html[data-theme="light"] .sd-faq-more {
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-faq-more a {
  color: var(--text);
}

/* Eyebrows are hardcoded #909090 (identical in both themes by design); in
   light they follow --text-grey so they stay in step with the token file. */
html[data-theme="light"] .sd-eyebrow {
  color: var(--text-grey);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE RAIL ARROWS — service switcher
   The switcher is a 7-up grid down to 1024px and a snap-scroller below it.
   Swiping worked, but nothing said so, and on GC / Interiors the rail opens
   part-scrolled with tiles hanging off both edges. These are the homepage
   .home-stats-arrow controls, wired by js/pages/rails.js.
   Hidden unless the rail actually overflows, so desktop is untouched.
   ═══════════════════════════════════════════════════════════════════ */

.sd-rail-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 16px 20px;
  box-sizing: border-box;
}

.sd-rail-arrow {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f4;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.sd-rail-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sd-rail-arrow:hover:not(:disabled) {
  border-color: #f68121;
  background: rgba(246, 129, 33, 0.14);
  color: #f68121;
}

.sd-rail-arrow:active:not(:disabled) {
  background: rgba(246, 129, 33, 0.22);
}

.sd-rail-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.sd-rail-arrow:focus-visible {
  outline: 2px solid #f68121;
  outline-offset: 3px;
}

html[data-theme="light"] .sd-rail-arrow {
  border-color: var(--border-strong);
  background: rgba(18, 18, 18, 0.04);
  color: var(--text-secondary);
}

html[data-theme="light"] .sd-rail-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(246, 129, 33, 0.12);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .sd-hero.is-scrollable .sd-rail-nav {
    display: flex;
  }

  /* The @1024 rail masks 40px off BOTH edges unconditionally, which greys
     out the active tile when it is parked against a hard end (EPC first,
     GC last). js/pages/rails.js flags which side still has hidden tiles. */
  @supports (mask-image: linear-gradient(#000, #000)) {
    .sd-svcnav {
      --sd-fade-start: 0px;
      --sd-fade-end: 0px;
      -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--sd-fade-start),
        #000 calc(100% - var(--sd-fade-end)),
        transparent 100%
      );
      mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--sd-fade-start),
        #000 calc(100% - var(--sd-fade-end)),
        transparent 100%
      );
    }

    .sd-svcnav.rail-can-left {
      --sd-fade-start: 40px;
    }

    .sd-svcnav.rail-can-right {
      --sd-fade-end: 40px;
    }
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE LEGIBILITY / TOUCH (<= 768px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* 13px breadcrumb was under the 14px floor, and "Home" was a 37x44 box. */
  .sd-breadcrumb {
    font-size: 14px;
    padding: 6px 12px;
    gap: 6px;
    row-gap: 0;
  }

  .sd-breadcrumb a,
  .sd-breadcrumb .current {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }

  /* 13px tile labels were under the 14px floor. */
  .sd-svcnav-label {
    font-size: 14px;
    line-height: 1.35;
  }

  /* "View More" broke across two lines next to a two-line heading. */
  .sd-featured-head {
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
  }

  .sd-featured-head .link-accent {
    flex-shrink: 0;
  }

  .sd-featured-head .link-label {
    white-space: nowrap;
  }

  /* Inline mail / help-centre links were 23px tall. */
  .sd-form .hint a,
  .sd-faq-more a {
    display: inline-block;
    padding: 12px 4px;
    margin: -12px -4px;
  }
}

/* The services switcher feather costs 40px per side; at phone widths that is a
   whole tile's worth of unreadable label. Run it edge to edge instead. */
@media (max-width: 900px) {
  .sd-svcnav {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
