/* Commercial service page - /dienst/<slug>.
 *
 * Ported from Work/Website1/components/sections/DienstCategoryDetail.module.css
 * with a `dcat-` prefix, for the reason recorded at the top of informatie.css.
 *
 * The commercial half of the pair. The educational one is informatie.css
 * (`svc-`); the two never load together, so their generic names cannot collide,
 * but the prefixes keep that true if that ever changes.
 *
 * The two files swapped names in Plan/20, following the templates: this one now
 * matches single-dienst.php and informatie.css matches single-informatie.php.
 *
 * Regenerate rather than hand-edit:
 *
 *   node tools/port-css.mjs \
 *     ../Website1/components/sections/DienstCategoryDetail.module.css dcat- \
 *     > themes/inkaart/assets/css/dienst.css
 *
 * then tools/check-css.mjs, which must report every rule identical.
 *
 * Note the module defines `.image-left` but no `.image-right`: the right-hand
 * layout is the default and needs no class. The React component asks for
 * `.image-right` anyway and renders a literal `undefined` class; the template
 * here emits nothing instead. Same rendering, no dead attribute.
 */

.dcat-page {
  --accent: var(--forest);
  --soft: #edf5e7;
  background: var(--paper);
  overflow: hidden;
}
.dcat-page-lime {
  --accent: var(--lime);
  --soft: #f0f6e9;
}
.dcat-page-blue {
  --accent: var(--blue);
  --soft: #edf4fc;
}
.dcat-page-orange {
  --accent: var(--orange);
  --soft: #fff3e8;
}
.dcat-breadcrumbs,
.dcat-hero,
.dcat-bandIntro,
.dcat-band,
.dcat-related {
  margin-inline: auto;
  max-width: 1390px;
  padding-inline: 4.5vw;
}
.dcat-breadcrumbs {
  align-items: center;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.55rem;
  padding-top: 1.2rem;
}
.dcat-breadcrumbs a:hover {
  color: var(--accent);
}
.dcat-breadcrumbs span:last-child {
  color: var(--ink);
  font-weight: 650;
}
.dcat-eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}
.dcat-hero {
  display: grid;
  gap: clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 640px;
  padding-block: clamp(3.5rem, 7vw, 7rem);
  position: relative;
}
.dcat-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: -6%;
  mask-image: linear-gradient(90deg, #000, transparent);
  position: absolute;
  top: 2rem;
  width: 48%;
}
.dcat-heroCopy {
  align-self: center;
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.dcat-hero h1 {
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  font-weight: 530;
  letter-spacing: -0.065em;
  line-height: 0.92;
  margin: 0;
}
.dcat-lead {
  color: var(--ink-muted);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  margin: 2rem 0 0;
  max-width: 700px;
}
.dcat-heroAction,
.dcat-bandAction {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.91rem;
  font-weight: 720;
  gap: 0.55rem;
  margin-top: 2rem;
}
.dcat-heroAction svg,
.dcat-bandAction svg {
  transition: transform 0.18s ease;
}
.dcat-heroAction:hover svg,
.dcat-bandAction:hover svg {
  transform: translateX(4px);
}
.dcat-figure,
.dcat-bandFigure {
  margin: 0;
  position: relative;
}
.dcat-figure {
  align-self: center;
  aspect-ratio: 1.28 / 1;
  min-height: 0;
}
.dcat-imageWindow,
.dcat-bandImage {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.dcat-imageWindow {
  aspect-ratio: 1.25 / 1;
  border-radius: 1.5rem;
  box-shadow: 0 26px 60px rgba(19, 34, 28, 0.13);
}
.dcat-imageWindow:after,
.dcat-bandImage:after {
  background: linear-gradient(180deg, transparent 58%, rgba(4, 19, 13, 0.26));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.dcat-imageWindow img,
.dcat-bandImage img {
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.dcat-figure figcaption,
.dcat-bandFigure figcaption {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 1.2rem;
  display: flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.45rem;
  left: -1.2rem;
  letter-spacing: 0.07em;
  padding: 0.7rem 0.95rem;
  position: absolute;
  text-transform: uppercase;
}
.dcat-figure figcaption svg {
  color: var(--accent);
}
.dcat-bandIntro {
  padding-block: clamp(3rem, 6vw, 5.5rem) 1rem;
}
.dcat-bandIntro h2,
.dcat-related h2,
.dcat-cta h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 550;
  letter-spacing: -0.052em;
  line-height: 1.02;
  margin: 0;
}
.dcat-bands {
  border-top: 1px solid var(--line);
}
.dcat-band {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 7vw, 8rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 680px;
  padding-block: clamp(4.5rem, 8vw, 8rem);
  scroll-margin-top: 1.5rem;
}
.dcat-band:focus {
  outline: none;
}
.dcat-band:focus-visible {
  animation: dismiss-band-focus 0.5s ease-out forwards;
  outline: 3px solid var(--accent);
  outline-offset: -4px;
}
@keyframes dismiss-band-focus {
  to {
    outline-color: transparent;
  }
}
.dcat-band:nth-child(odd) {
  background: var(--soft);
  box-shadow: 0 0 0 100vmax var(--soft);
  clip-path: inset(0 -100vmax);
}
.dcat-band.dcat-image-left .dcat-bandFigure {
  grid-column: 1;
  grid-row: 1;
}
.dcat-band.dcat-image-left .dcat-bandCopy {
  grid-column: 2;
  grid-row: 1;
}
.dcat-bandCopy {
  max-width: 590px;
}
.dcat-bandLead {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.dcat-bandMeta {
  align-items: center;
  display: flex;
  margin-bottom: 0.95rem;
}
.dcat-bandMeta::after { background: var(--accent); clip-path: polygon(0 0,100% 0,calc(100% - 9px) 100%,0 100%); content: ''; height:4px; opacity:1; width:46%; }
.dcat-band h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
}
.dcat-band h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 650;
  line-height: 1.4;
  margin: 1.25rem 0 0;
}
.dcat-bandBody,
.dcat-cta div > p:last-child {
  color: var(--ink-muted);
  line-height: 1.68;
}
.dcat-bandBody {
  margin: 1.15rem 0 0;
}
.dcat-band ul {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.dcat-band li {
  align-items: flex-start;
  color: var(--ink-muted);
  display: flex;
  font-size: 0.93rem;
  gap: 0.65rem;
  line-height: 1.5;
}
.dcat-band li svg {
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 0.16rem;
}
.dcat-bullet { background: var(--accent); border-radius: 50%; flex: 0 0 auto; height: 6px; margin-top: .48rem; width: 6px; }
.dcat-bandFigure {
  aspect-ratio: 1.28 / 1;
  height: auto;
  position: relative;
}
.dcat-bandImage {
  border-radius: 1.5rem;
  box-shadow: 0 22px 55px rgba(19, 34, 28, 0.12);
}
.dcat-image-left .dcat-bandImage { border-radius: 1.5rem; }
.dcat-bandIcon { align-items: center; background: rgba(255,255,255,.96); border: 1px solid color-mix(in srgb,var(--accent) 25%,transparent); border-radius: 50%; box-shadow: 0 8px 24px rgba(19,34,28,.1); color: var(--accent); display: flex; height: 64px; justify-content: center; position: absolute; right: -2rem; top: 2rem; width: 64px; }
.dcat-bandIcon::before,.dcat-bandIcon::after { border: 1px solid color-mix(in srgb,var(--accent) 17%,transparent); border-radius:50%; content:''; inset:-10px; position:absolute; }.dcat-bandIcon::after { inset:-20px; }.dcat-bandIcon svg { height:27px; width:27px; z-index:1; }
.dcat-bandFigure figcaption {
  bottom: 1rem;
  left: 1rem;
}
.dcat-related {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.dcat-related h2 {
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  max-width: 650px;
}
.dcat-related > div {
  border-top: 1px solid var(--line);
  display: grid;
  margin-top: 2rem;
}
.dcat-related a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  min-height: 84px;
  padding: 0.9rem 0.2rem;
  transition:
    color 0.18s ease,
    padding 0.18s ease;
}
.dcat-related a:hover {
  color: var(--accent);
  padding-left: 0.7rem;
}
.dcat-related a > svg:first-child {
  color: var(--accent);
}
.dcat-related span {
  font-size: 1rem;
  font-weight: 680;
}
.dcat-related small {
  color: var(--ink-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  margin-top: 0.2rem;
}
.dcat-cta {
  align-items: center;
  background: var(--soft);
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.8rem) max(4.5vw, calc((100vw - 1300px) /2));
  position: relative;
}
.dcat-cta::after { background-image:linear-gradient(color-mix(in srgb,var(--accent) 10%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 10%,transparent) 1px,transparent 1px); background-size:28px 28px; content:''; height:180px; position:absolute; right:9%; top:15%; width:240px; z-index:0; }
.dcat-cta>* { position:relative; z-index:1; }
.dcat-cta > svg {
  color: var(--accent);
  height: 54px;
  width: 54px;
}
.dcat-cta div > p:last-child {
  margin: 1.2rem 0 0;
  max-width: 730px;
}
.dcat-cta > a {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.91rem;
  font-weight: 680;
  gap: 0.9rem;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.3rem;
  white-space: nowrap;
}
.dcat-contactBubble {
  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));
  z-index: 15;
}
.dcat-contactBubble svg {
  color: var(--accent);
}
body:has(.dcat-page) footer {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}
@media (max-width: 800px) {
  .dcat-breadcrumbs,
  .dcat-hero,
  .dcat-bandIntro,
  .dcat-band,
  .dcat-related {
    padding-inline: 1rem;
  }
  .dcat-hero,
  .dcat-band {
    grid-template-columns: 1fr;
  }
  .dcat-hero {
    min-height: 0;
    padding-block: 3.2rem 4rem;
  }
  .dcat-figure {
    min-height: 0;
  }
  .dcat-band {
    gap: 2.3rem;
    min-height: 0;
    padding-block: 4rem;
  }
  .dcat-band.dcat-image-left .dcat-bandFigure,
  .dcat-band.dcat-image-left .dcat-bandCopy {
    grid-column: 1;
  }
  .dcat-band.dcat-image-left .dcat-bandFigure {
    grid-row: 2;
  }
  .dcat-band.dcat-image-left .dcat-bandCopy {
    grid-row: 1;
  }
  .dcat-bandFigure {
    aspect-ratio: 1.25 / 1;
  }
  .dcat-imageWindow {
    border-radius: 1.5rem 1.5rem 1.5rem 4.5rem;
  }
  .dcat-bandImage,.dcat-image-left .dcat-bandImage { border-radius: 1.25rem; }
  .dcat-bandIcon { height:54px; right:1rem; top:1rem; width:54px; }
  .dcat-figure figcaption {
    bottom: 1rem;
    left: 0.75rem;
  }
  .dcat-cta {
    align-items: start;
    grid-template-columns: auto 1fr;
    padding-inline: 1rem;
  }
  .dcat-cta > a {
    grid-column: 1/-1;
    width: 100%;
  }
}
@media (max-width: 420px) {
  .dcat-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
  .dcat-band h2 {
    overflow-wrap: anywhere;
  }
  .dcat-contactBubble {
    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));
  }
}
