/* Service detail — premium editorial (single consistent system) */

.service-detail {
  background: var(--background);
}

/* ── Page intro (same hero as other inner pages) ── */
.service-detail .sd-hero {
  padding: calc(var(--header-h) + 36px) 0 56px;
}

.service-detail .sd-hero .breadcrumb {
  margin-bottom: 24px;
}

.sd-top-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sd-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-light);
}

.sd-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  padding-left: 14px;
}

.sd-cat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.service-detail .sd-hero h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 16px;
  max-width: 18ch;
}

.sd-lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 54ch;
}

/* ── Visual / hero image band ── */
.sd-visual {
  padding: 40px 0 48px;
}

.sd-visual-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  background: transparent;
  border: none;
  overflow: visible;
}

.sd-visual-media {
  margin: 0;
  min-height: 0;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.4s ease;
}

.sd-visual-media img {
  width: 100%;
  height: 133%;
  min-height: 280px;
  /* max-height: 380px; */
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 16 / 10;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-visual-media:hover {
  border-color: rgba(253, 201, 0, 0.55);
}

.sd-visual-media:hover img {
  transform: scale(1.06);
}

.sd-visual-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.sd-visual-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 18px;
}

.sd-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sd-facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sd-facts span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.sd-facts strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--heading);
}

.sd-visual-panel .btn {
  width: 100%;
}

/* ── Shared section chrome ── */
.sd-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.sd-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 12px;
}

.sd-section-title {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 28px;
}

.sd-narrow {
  max-width: 720px;
}

/* About */
.sd-about-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.sd-about-text + .sd-about-text {
  margin-top: 16px;
}

/* What we provide */
.sd-provide-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.sd-provide-grid li {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
}

.sd-provide-grid li:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.sd-provide-grid li:nth-child(even) {
  padding-left: 40px;
}

.sd-provide-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.55em;
  width: 7px;
  height: 1px;
  background: var(--navy);
}

.sd-provide-grid li:nth-child(even)::before {
  left: 24px;
}

/* Service information */
.sd-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.sd-info-col h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sd-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sd-info-list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.sd-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--text-light);
}

.sd-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.sd-steps li:first-child {
  padding-top: 0;
}

.sd-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sd-steps span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass-dark);
  padding-top: 2px;
}

.sd-steps strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.sd-exclude {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sd-exclude h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 14px;
}

.sd-exclude-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.sd-exclude-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
}

.sd-exclude-list li::before {
  content: '— ';
}

.sd-exclude-list a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA */
.sd-cta {
  padding: 44px 0;
  background: var(--navy);
  border-top: none;
}

.sd-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sd-cta-inner h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 6px;
}

.sd-cta-inner p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 46ch;
}

.sd-cta .btn-primary {
  flex-shrink: 0;
}

/* Related */
.sd-related {
  padding: 56px 0 72px;
}

.sd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sd-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sd-related-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.sd-related-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}

.sd-related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sd-related-card:hover .sd-related-card-media img {
  transform: scale(1.04);
}

.sd-related-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sd-related-card-body span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-dark);
}

.sd-related-card-body strong {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
}

.sd-related-card-body em {
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 2px;
}

.sd-related-card-body i {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--button-text);
  background: var(--button);
  border: 2px solid var(--button);
  margin-top: auto;
  margin-top: 14px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: var(--radius);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.sd-related-card:hover .sd-related-card-body i {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--button-text);
}

.sd-related-card-body i::after {
  content: '→';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 38, 40, 0.1);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.sd-related-card:hover .sd-related-card-body i::after {
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 960px) {
  .sd-visual-frame {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sd-visual-panel {
    padding: 24px;
  }

  .sd-visual-media img {
    max-height: 320px;
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .sd-provide-grid {
    grid-template-columns: 1fr;
  }

  .sd-provide-grid li:nth-child(odd),
  .sd-provide-grid li:nth-child(even) {
    padding: 18px 0 18px 18px;
    border-right: none;
  }

  .sd-provide-grid li:nth-child(even)::before,
  .sd-provide-grid li::before {
    left: 0;
  }

  .sd-info-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sd-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .service-detail .sd-hero {
    padding: calc(var(--header-h) + 28px) 0 40px;
  }

  .service-detail .sd-hero h1 {
    font-size: 28px;
    max-width: none;
  }

  .sd-lede {
    font-size: 16px;
  }

  .sd-visual {
    padding: 28px 0 32px;
  }

  .sd-section {
    padding: 36px 0;
  }

  .sd-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sd-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .sd-related {
    padding: 40px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-related-card,
  .sd-related-card-media img,
  .sd-visual-media,
  .sd-visual-media img {
    transition: none;
  }

  .sd-related-card:hover {
    transform: none;
  }

  .sd-related-card:hover .sd-related-card-media img,
  .sd-visual-media:hover img {
    transform: none;
  }
}
