/* Service category pages (/services/<slug>/). Both themes via site.css tokens. */

.svc-hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--border); background-color: var(--bg);
  background-image: linear-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 48px 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: clamp(28px, 5vw, 56px); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.svc-title { font: 800 clamp(2.4rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.03em; margin-bottom: 22px; max-width: 16ch; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.svc-mark { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--r) * 2); box-shadow: var(--shadow); }
.tile-icon-lg { grid-template-columns: repeat(3, 44px); gap: 10px; }
.tile-icon-lg i { width: 44px; height: 44px; border-radius: 8px; }
.tile-icon-lg i.lift { transform: translate(10px, 14px) rotate(14deg); }

.svc-overview { padding-block: clamp(56px, 8vw, 104px); }
.svc-overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.svc-intro p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 62ch; }
.svc-intro p:first-child { color: var(--fg); }
.svc-intro p + p { color: var(--muted); }
.svc-facts { display: grid; gap: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r); }
.svc-facts .label { margin-bottom: 8px; }
.svc-facts p { margin: 0; color: var(--muted); }
.svc-facts .ticks { margin: 0; }
.svc-q { font-style: italic; color: var(--fg) !important; }

.svc-inside { padding-top: 0; }
.svc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 28px; }
.offer-grid { columns: 2; column-gap: 18px; }  /* masonry: cards differ a lot in height */
.offer { break-inside: avoid; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--r) * 2); scroll-margin-top: 96px; transition: border-color .2s; }
.offer:hover, .offer:target { border-color: var(--fg); }
.offer[hidden] { display: none; }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer-code { color: var(--accent-text); letter-spacing: .06em; }
.offer-tag { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.offer .h3 { margin: 0; }
.offer-q { margin: 0; font-style: italic; color: var(--fg); }
.offer-body { margin: 0; color: var(--muted); }
.offer-meta { margin: 0; font-size: .93rem; color: var(--muted); }
.offer-meta .label { margin-bottom: 6px; }
.offer-meta .ticks { margin: 0; font-size: .9rem; color: var(--fg); }
.offer-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .88rem; }
.offer-foot dd { margin: 6px 0 0; color: var(--fg); }
.offer-foot > div:only-child { grid-column: 1 / -1; }

.svc-cta { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(56px, 8vw, 96px); }
.svc-cta .lead { color: var(--band-muted); margin: 14px 0 0; }
.svc-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }

.others-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.other { display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--r) * 2); transition: border-color .2s, transform .2s; min-width: 0; }
.other:hover { border-color: var(--fg); transform: translateY(-2px); }
.other .tile-icon { grid-template-columns: repeat(3, 10px); gap: 3px; margin-bottom: 4px; }
.other .tile-icon i { width: 10px; height: 10px; border-radius: 2px; }
.other-title { font: 700 1.02rem/1.25 var(--font-display); }

/* service cards on the home page link here */
.service-more { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.service-card > .service-more { transform: none; }  /* a transform would trap the overlay inside the link */
.service-more::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service-more:hover span { transform: translateX(4px); }
.service-more span { transition: transform .2s; }

@media (max-width: 1080px) {
  .others-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .svc-hero-grid, .svc-overview-grid { grid-template-columns: 1fr; }
  .offer-grid { columns: 1; }
  .svc-mark { display: none; }
  .others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .offer { padding: 20px; }
  .offer-foot { grid-template-columns: 1fr; }
  .others-grid { grid-template-columns: 1fr; }
  .svc-actions .btn { width: 100%; justify-content: center; }
}
