.service-page {
  --bg:#101211;
  --surface:#202320;
  --text:#f6f2ea;
  --muted:#ccc6b9;
  --accent:#d3b477;
  --on-accent:#101211;
  --line:#625844;
  --display:system-ui,sans-serif;
  --radius:8px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  margin: 0;
  line-height: 1.55;
}

.service-page--soft {
  --bg:#f8f3ec;
  --surface:#eee3d9;
  --text:#302422;
  --muted:#65524b;
  --accent:#7c3f4d;
  --on-accent:#fff;
  --line:#b9a69b;
  --display:Georgia,serif;
  --radius:12px;
}

.service-page * {
  box-sizing: border-box;
}

.service-page a {
  color: inherit;
}

.service-page a:focus-visible {
  outline: 3px solid var(--focus, var(--accent));
  outline-offset: 4px;
}

.service-wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.service-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px;
  background: var(--accent);
  color: var(--on-accent) !important;
  transform: translateY(-180%);
}

.service-skip:focus {
  transform: none;
}

.service-header {
  background: var(--header-bg, var(--bg));
  border-bottom: 1px solid var(--line);
}


.service-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-width: 0;
}

.service-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.service-brand span {
  overflow-wrap: anywhere;
}

.service-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.service-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}

.service-nav__cta {
  border-bottom: 1px solid var(--accent);
  gap: 10px;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 112px);
}

.service-hero--no-image {
  grid-template-columns: 1fr;
}

.service-hero__copy {
  max-width: 560px;
}

.service-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.service-hero h1, .service-section-head h2, .service-contact h2 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 24px 0;
  overflow-wrap: anywhere;
}

.service-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
}

.service-hero__description {
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  white-space: pre-line;
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent) !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.service-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.service-hero__media {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.service-hero__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.service-list {
  padding-block: 64px 112px;
}

.service-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.service-section-head h2, .service-contact h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.service-section-head > p {
  max-width: 35ch;
  color: var(--muted);
}

.service-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 4px 12px;
  scrollbar-width: thin;
}

.service-categories a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 14px;
  text-decoration: none;
}

.service-category {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1.45fr);
  column-gap: 40px;
  padding-top: 48px;
  scroll-margin-top: 20px;
}

.service-category__title {
  grid-row: 1/span 99;
}

.service-category__title span {
  color: var(--accent);
  font-size: 12px;
}

.service-category__title h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 8px 0;
}

.service-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.service-item h4 {
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}

.service-item p {
  color: var(--muted);
  margin: 6px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.service-item__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}

.service-item__action a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.service-item__action strong, .service-item__action span {
  font-size: 14px;
}

.service-empty {
  color: var(--muted);
}

.service-contact {
  background: var(--surface);
  padding-block: 80px;
}

.service-contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.service-contact h2 {
  max-width: 16ch;
}

.service-contact__details {
  display: grid;
  gap: 20px;
  align-content: center;
}

.service-contact__details h3 {
  font-size: 14px;
  margin: 0;
  color: var(--accent);
}

.service-contact__details p {
  margin: 6px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.service-contact__details a {
  justify-self: start;
}

.service-footer {
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

.service-footer .service-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 899px) {
  .service-hero {
    grid-template-columns: 1fr;
    padding-block: 56px 72px;
  }
  .service-hero__media img {
    aspect-ratio: 4/3;
  }
  .service-section-head {
    display: block;
  }
  .service-list {
    padding-block: 32px 72px;
  }
  .service-category {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-category__title {
    grid-row: auto;
    margin-bottom: 18px;
  }
  .service-contact__inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 599px) {
  .service-header__inner {
    padding-block: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .service-nav {
    justify-content: flex-start;
    gap: 20px;
  }
  .service-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }
  .service-hero__description {
    font-size: 16px;
  }
  .service-actions {
    gap: 14px;
  }
  .service-item {
    display: block;
  }
  .service-item__action {
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
  }
  .service-contact {
    padding-block: 64px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .service-button, .service-text-link {
    transition: opacity 0.2s ease;
  }
  .service-button:hover, .service-text-link:hover {
    opacity: 0.8;
  }
}

/* Per-catalogue values are validated server-side before rendering. */
.service-page { color: var(--body-color, var(--text)); font-size: var(--body-size, 16px); line-height: var(--body-line-height, 1.55); }
.service-font-heading--serif { --display: Georgia, serif; }
.service-font-heading--sans { --display: system-ui, sans-serif; }
.service-font-body--serif { font-family: Georgia, serif; }
.service-font-body--sans { font-family: system-ui, sans-serif; }
.service-font-heading--manrope { --display: Manrope, system-ui, sans-serif; }
.service-font-heading--playfair { --display: 'Playfair Display', Georgia, serif; }
.service-font-body--manrope { font-family: Manrope, system-ui, sans-serif; }
.service-font-body--playfair { font-family: 'Playfair Display', Georgia, serif; }
.service-hero h1, .service-section-head h2, .service-contact h2 { color: var(--heading, var(--text)); font-weight: var(--heading-weight, 700); letter-spacing: var(--heading-spacing, -.03em); }
.service-category__title h3, .service-item h4 { color: var(--heading, var(--text)); }
.service-hero__description { font-size: var(--body-size, 16px); }
.service-hero h1 { font-size: clamp(2rem, 5.4vw, var(--heading-size, 64px)); }
.service-hero-uppercase .service-hero h1 { text-transform: uppercase; }
.service-align--center .service-hero__copy { text-align: center; }
.service-align--center .service-hero__copy .service-eyebrow, .service-align--center .service-actions { justify-content: center; }
.service-button { background: var(--button-bg, var(--accent)); }
.service-item__action a { color: var(--link, var(--accent)); }
.service-nav a, .service-text-link { color: var(--link, var(--text)); }
.service-page { background-image: linear-gradient(color-mix(in srgb, var(--overlay-color, #000) var(--overlay, 50%), transparent), color-mix(in srgb, var(--overlay-color, #000) var(--overlay, 50%), transparent)), var(--service-bg-image, none); background-size: cover; background-attachment: fixed; }
.service-page:not([style*="--service-bg-image:"]) { background-image: none; }
.service-hero__media img { object-fit: var(--image-fit, cover); object-position: var(--focal-x, 50%) var(--focal-y, 50%); }
.service-hero__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--overlay-color, #000) var(--hero-overlay, 0%), transparent); }
.service-hero__caption { z-index: 1; }
.service-item__image { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; flex: none; }
.service-contact__inner--stack { grid-template-columns: 1fr; }
.service-hero-layout--reverse .service-hero__media { order: -1; }
.service-hero-height--compact .service-hero { padding-block: 40px; }
.service-hero-height--large .service-hero { padding-block: 120px; }
.service-section-head h2, .service-contact h2 { font-size: clamp(1.5rem, 4vw, var(--subtitle-size, 32px)); }
.service-contact { background-image: linear-gradient(color-mix(in srgb, var(--overlay-color, #000) var(--overlay, 50%), transparent), color-mix(in srgb, var(--overlay-color, #000) var(--overlay-end, 50%), transparent)), var(--service-contact-bg, none); background-size: cover; }
.service-page:not([style*="--service-contact-bg:"]) .service-contact { background-image: none; }
.service-items--cards .service-item { background: var(--card, var(--surface)); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 12px; }
@media (min-width: 900px) { .service-columns--2 .service-category { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .service-columns--2 .service-category__title { grid-column: 1 / -1; grid-row: auto; } }
@media (hover: hover) { .service-button:hover { background: var(--hover, var(--accent)); } }
@media (max-width: 599px) { .service-page[style*="--service-mobile-bg:"] { background-image: linear-gradient(color-mix(in srgb, var(--overlay-color, #000) var(--overlay, 50%), transparent), color-mix(in srgb, var(--overlay-color, #000) var(--overlay, 50%), transparent)), var(--service-mobile-bg); background-attachment: scroll; } }
