/* Service detail page - /informatie/<slug>.
 *
 * Ported from Work/Website1/components/sections/ServiceDetail.module.css.
 *
 * Every class carries an `svc-` prefix. CSS Modules hashed these names per
 * file, so `.hero`, `.cta` and `.results` could never collide with anything
 * else; as plain global CSS those names are far too generic to sit safely next
 * to chrome.css and the other page styles. The prefix restores the module
 * boundary without changing a single declaration - this file is otherwise a
 * declaration-for-declaration copy, so it can be diffed to prove the port.
 *
 * Regenerate rather than hand-edit:
 *
 *   node tools/port-css.mjs \
 *     ../Website1/components/sections/ServiceDetail.module.css svc- \
 *     > themes/inkaart/assets/css/informatie.css
 *
 * then `node tools/check-css.mjs <source> <this file> svc-`, which must report
 * every rule identical. The previous hand-run sed transform had drifted to 55
 * of 118 rules by the time the /dienst split landed.
 *
 * This file is also loaded on the two hub pages: page-dienst.php and
 * page-informatie.php reuse the breadcrumb, hero, process and CTA blocks, in
 * the same way both hub routes in the React build import this module as
 * `shared`.
 *
 * --panel selects which quarter of application-panels.webp to show. It is set
 * with a data-panel attribute rather than an inline style; see tokens.css.
 */

.svc-page {
  --accent: var(--green-deep);
  --accent-soft: #edf5e7;
  background: var(--paper);
  overflow: hidden;
}
.svc-page-green {
  --accent: var(--forest);
  --accent-soft: #edf5e7;
}
.svc-page-lime {
  --accent: var(--lime);
  --accent-soft: #f0f6e9;
}
.svc-page-blue {
  --accent: var(--blue);
  --accent-soft: #edf4fc;
}
.svc-page-orange {
  --accent: var(--orange);
  --accent-soft: #fff3e8;
}
.svc-breadcrumbs {
  align-items: center;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.55rem;
  margin: 0 auto;
  max-width: 1390px;
  padding: 1.2rem 4.5vw 0;
}
.svc-breadcrumbs a:hover {
  color: var(--accent);
}
.svc-breadcrumbs span:last-child {
  color: var(--ink);
  font-weight: 650;
}
.svc-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  margin: 0 auto;
  max-width: 1390px;
  min-height: 640px;
  padding: clamp(3rem, 6vw, 6.5rem) 4.5vw clamp(4rem, 7vw, 7rem);
  position: relative;
}
.svc-hero::before {
  background-image:
    linear-gradient(rgba(19, 34, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 28, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  content: '';
  height: 250px;
  left: -8%;
  mask-image: linear-gradient(90deg, black, transparent);
  position: absolute;
  top: 2.5rem;
  width: 46%;
}
.svc-hero-copy {
  align-self: center;
  max-width: 760px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.svc-eyebrow,
.svc-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}
.svc-eyebrow {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}
.svc-eyebrow svg {
  height: 19px;
  width: 19px;
}
.svc-hero h1 {
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  font-weight: 530;
  letter-spacing: -0.065em;
  line-height: 0.91;
  margin: 0;
  max-width: 850px;
}
.svc-hero[data-service='green'] h1 {
  font-size: clamp(3rem, 5.3vw, 5.4rem);
}
.svc-lead {
  color: var(--ink-muted);
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
  line-height: 1.62;
  margin: 2rem 0 0;
  max-width: 710px;
}
.svc-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.7rem;
}
.svc-signals span {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-size: 0.79rem;
  font-weight: 650;
  padding: 0.55rem 0.8rem;
}
.svc-text-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-top: 2.2rem;
}
.svc-text-link svg {
  transition: transform 180ms ease;
}
.svc-text-link:hover svg {
  transform: translateX(4px);
}
.svc-hero-figure {
  align-self: stretch;
  margin: 0;
  min-height: 540px;
  position: relative;
}
.svc-image-window {
  border-radius: 1rem 1rem 1rem 5.5rem;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.svc-image-window::after {
  background: linear-gradient(180deg, transparent 65%, rgba(3, 18, 12, 0.34));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.svc-image-window img {
  height: 100%;
  left: calc(var(--panel) * -100%);
  max-width: none;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 400%;
}
.svc-hero-figure figcaption {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 1.2rem;
  color: var(--ink);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.45rem;
  left: -1.3rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 0.95rem;
  position: absolute;
  text-transform: uppercase;
}
.svc-hero-figure figcaption svg {
  color: var(--accent);
}
.svc-hero[data-service='blue'] {
  background: var(--paper);
  gap: clamp(2.5rem, 4.5vw, 5.5rem);
  margin: 0 auto;
  max-width: 1390px;
  min-height: 610px;
  overflow: hidden;
  padding: clamp(3.5rem, 5.5vw, 5.8rem) 4.5vw clamp(4rem, 6vw, 6rem);
}
.svc-hero[data-service='blue']::before {
  background-image:
    linear-gradient(rgba(19, 34, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 28, 0.05) 1px, transparent 1px);
  left: auto;
  mask-image: linear-gradient(90deg, transparent, black);
  right: 0;
}
.svc-hero[data-service='blue'] .svc-hero-copy {
  padding-block: 0.5rem;
}
.svc-hero[data-service='blue'] h1 {
  font-size: clamp(3rem, 6.2vw, 6.2rem);
}
.svc-hero[data-service='blue'] .svc-hero-figure {
  min-height: 500px;
}
.svc-hero[data-service='blue'] .svc-image-window {
  border: 1px solid var(--line);
  border-radius: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 91% 100%, 0 100%);
}
.svc-situations {
  background: var(--mist);
  padding: clamp(4rem, 8vw, 7rem) 4.5vw;
}
.svc-offerings {
  margin: 0 auto;
  max-width: 1300px;
  padding: clamp(4rem, 8vw, 7rem) 4.5vw;
}
.svc-offerings article {
  scroll-margin-top: 1.5rem;
}
.svc-offerings article:focus {
  outline: none;
}
.svc-offerings article:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.svc-section-intro {
  margin: 0 auto 2.8rem;
  max-width: 880px;
  text-align: center;
}
.svc-section-intro h2,
.svc-process h2,
.svc-results h2,
.svc-related h2,
.svc-cta h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  font-weight: 550;
  letter-spacing: -0.052em;
  line-height: 1.02;
  margin: 0;
}
.svc-section-intro > p:last-child,
.svc-process-heading > p:last-child,
.svc-result-copy > p,
.svc-cta div > p:last-child {
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 1.25rem auto 0;
  max-width: 730px;
}
.svc-situation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1200px;
}
.svc-situation-grid article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  min-height: 230px;
  padding: 1.6rem;
}
.svc-situation-grid .svc-title-rule {
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  display: block;
  height: 4px;
  margin: 0 0 0.95rem;
  width: 46%;
}
.svc-situation-grid h3 {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
}
.svc-situation-grid p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}
.svc-process {
  display: grid;
  gap: clamp(3rem, 7vw, 7.5rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin: 0 auto;
  max-width: 1300px;
  padding: clamp(4rem, 8vw, 8rem) 4.5vw;
}
.svc-process-heading {
  align-self: start;
  position: sticky;
  top: 2rem;
}
.svc-process-heading > p:last-child {
  margin-left: 0;
}
.svc-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Canonical step-list geometry. The same numbers are mirrored in
   DienstCategoryDetail.svc-module.svc-css and the WordPress theme; the dienst and
   informatie hub pages reuse these rules and only override the accent. */
.svc-process-list li {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 5px minmax(0, 1fr);
  padding: 1.7rem 0;
}
.svc-process-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-step-bar {
  background: var(--accent);
  border-radius: 2px;
  height: 26px;
  margin-top: 0.1rem;
  width: 5px;
}
.svc-process-list h3 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}
.svc-process-list p {
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}
.svc-results {
  background: var(--ink);
  color: white;
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  padding: clamp(4rem, 8vw, 7.5rem) max(4.5vw, calc((100vw - 1300px) /2));
}
.svc-result-visual {
  align-self: center;
  aspect-ratio: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  max-width: 410px;
  overflow: hidden;
  position: relative;
}
.svc-result-visual > svg {
  color: var(--accent);
  height: 30%;
  left: 35%;
  position: absolute;
  top: 35%;
  width: 30%;
}
.svc-result-visual > span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  position: absolute;
}
.svc-map-line-one {
  inset: 16%;
}
.svc-map-line-two {
  inset: 29%;
}
.svc-result-visual i {
  background: var(--accent);
  border: 4px solid var(--ink);
  border-radius: 50%;
  height: 14px;
  position: absolute;
  width: 14px;
}
.svc-result-visual i:nth-of-type(1) {
  left: 19%;
  top: 32%;
}
.svc-result-visual i:nth-of-type(2) {
  right: 19%;
  top: 41%;
}
.svc-result-visual i:nth-of-type(3) {
  bottom: 22%;
  left: 38%;
}
.svc-result-visual i:nth-of-type(4) {
  right: 34%;
  top: 18%;
}
.svc-result-visual small {
  bottom: 12%;
  color: #a9b8b1;
  font-size: 0.62rem;
  left: 38%;
  letter-spacing: 0.18em;
  position: absolute;
}
.svc-result-copy {
  align-self: center;
}
.svc-result-copy > p {
  color: #b8c5bf;
  margin-left: 0;
}
.svc-result-copy ul {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.svc-result-copy li {
  align-items: flex-start;
  color: #eaf0ed;
  display: flex;
  gap: 0.7rem;
  line-height: 1.5;
}
.svc-result-copy li svg {
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 0.2rem;
}
.svc-related {
  margin: 0 auto;
  max-width: 1300px;
  padding: clamp(4rem, 8vw, 7rem) 4.5vw;
}
.svc-related > div:first-child {
  margin-bottom: 2rem;
  max-width: 670px;
}
.svc-related h2 {
  font-size: clamp(2rem, 3.7vw, 3.3rem);
}
.svc-related-links {
  border-top: 1px solid var(--line);
  display: grid;
}
.svc-related-links a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  min-height: 84px;
  padding: 1rem 0.2rem;
  transition:
    color 180ms ease,
    padding 180ms ease;
}
.svc-related-links a:hover {
  color: var(--accent);
  padding-left: 0.7rem;
}
.svc-related-links a > svg:first-child {
  color: var(--accent);
}
.svc-related-links a > svg:last-child {
  height: 19px;
  width: 19px;
}
.svc-related-links span {
  font-size: 1rem;
  font-weight: 680;
}
.svc-related-links small {
  color: var(--ink-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 0.2rem;
}
.svc-cta {
  align-items: center;
  background: var(--accent-soft);
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
  padding: clamp(3rem, 6vw, 5.5rem) max(4.5vw, calc((100vw - 1300px) /2));
}
.svc-cta > svg {
  color: var(--accent);
  height: 54px;
  width: 54px;
}
.svc-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
}
.svc-cta div > p:last-child {
  margin-left: 0;
}
.svc-cta > a {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.91rem;
  font-weight: 680;
  gap: 1rem;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.3rem;
  white-space: nowrap;
}
.svc-contact-bubble {
  align-items: center;
  background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #fff);
  border-radius: 999px;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  box-shadow: 0 6px 24px rgba(19, 34, 28, 0.2);
  color: white;
  display: flex;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  transition: background 180ms ease;
  z-index: 15;
}
.svc-contact-bubble svg {
  color: var(--accent);
  flex: 0 0 auto;
}
.svc-contact-bubble:hover {
  background: color-mix(in srgb, var(--accent) 70%, var(--ink));
}
body:has(.svc-contact-bubble) footer {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

@media (max-width: 980px) {
  .svc-hero {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  }
  .svc-hero[data-service='blue'] {
    min-height: 0;
    padding: 3.5rem clamp(2rem, 4vw, 3rem);
  }
  .svc-hero[data-service='blue'] .svc-hero-figure {
    min-height: 500px;
  }
  .svc-process {
    gap: 3rem;
  }
  .svc-results {
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .svc-breadcrumbs {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .svc-hero,
  .svc-hero[data-service='blue'] {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    min-height: 0;
    padding: 3rem 1rem 4rem;
  }
  .svc-hero h1 {
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }
  .svc-hero[data-service='blue'] h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 0.95;
  }
  .svc-lead {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
  .svc-hero-figure {
    height: 430px;
    min-height: 430px;
  }
  .svc-hero[data-service='blue'] .svc-hero-figure {
    height: min(108vw, 410px);
    min-height: min(108vw, 410px);
  }
  .svc-image-window {
    border-radius: 0.8rem 0.8rem 0.8rem 3.5rem;
  }
  .svc-hero-figure figcaption {
    bottom: 1rem;
    left: 0.75rem;
    right: auto;
  }
  .svc-situations,
  .svc-offerings,
  .svc-process,
  .svc-related {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .svc-situation-grid {
    grid-template-columns: 1fr;
  }
  .svc-situation-grid article {
    min-height: 0;
  }
  .svc-process {
    display: block;
  }
  .svc-process-heading {
    position: static;
  }
  .svc-process-list {
    margin-top: 2.5rem;
  }
  .svc-results {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .svc-result-visual {
    margin: 0 auto;
    width: min(88vw, 350px);
  }
  .svc-cta {
    align-items: start;
    grid-template-columns: auto 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .svc-cta > svg {
    height: 38px;
    width: 38px;
  }
  .svc-cta > a {
    grid-column: 1 / -1;
    width: 100%;
  }
  .svc-contact-bubble {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    font-size: 0.84rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    right: max(0.75rem, env(safe-area-inset-right));
  }
}
