/* ============================================================================
   DMC Facilities Management — theme stylesheet
   Ported from the dmc-fm Next.js/Tailwind site. Strict 3-colour brand:
   white #ffffff · teal #4caad4 · grey #748d95. Headings: Gilroy.
   Hand-written (no build step) so it drops straight onto cPanel.
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Light.woff2') format('woff2'),
       url('../fonts/Gilroy-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Extrabold.woff2') format('woff2'),
       url('../fonts/Gilroy-Extrabold.woff') format('woff');
  font-weight: 600 800; font-style: normal; font-display: swap;
}

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --brand: #4caad4;
  --brand-dark: #3a99c3;
  --brand-50: rgba(76, 170, 212, 0.08);
  --brand-100: rgba(76, 170, 212, 0.15);
  --grey: #748d95;
  --grey-50: rgba(116, 141, 149, 0.08);
  --grey-100: rgba(116, 141, 149, 0.15);
  --grey-200: rgba(116, 141, 149, 0.25);
  --grey-400: rgba(116, 141, 149, 0.7);
  --grey-700: #3f4d52;
  --footer-bg: #5b6b70;        /* grey-500 footer tone */
  --footer-border: rgba(255, 255, 255, 0.15);
  --white: #ffffff;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-heading: 'Gilroy', Arial, sans-serif;
  --container: 1536px;        /* matches Tailwind 2xl container cap */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.18);
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-anchor:none disables browser "scroll anchoring" — stops the
   homepage from auto-scrolling down ("anchor leap") if any above-the-fold
   asset (mosaic image / particle / web font / mobile URL-bar resize) finalises
   layout just after first paint. Harmless on these static marketing pages. */
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body.dmc-body {
  margin: 0;
  min-height: 100vh;
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--grey);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.dmc-body h1, .dmc-body h2, .dmc-body h3,
.dmc-body h4, .dmc-body h5, .dmc-body h6 {
  font-family: var(--font-heading);
  color: var(--grey);
  line-height: 1.2;
  font-weight: 700;
}
.dmc-body a { color: var(--brand); text-decoration: none; }
.dmc-body a:hover { color: var(--brand-dark); }
.dmc-main { flex: 1 0 auto; }
/* Sitewide container — mirrors Tailwind's stepped `container mx-auto` (sm→2xl) used on dmc-fm */
.dmc-container { width: 100%; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .dmc-container { max-width: 640px; } }
@media (min-width: 768px)  { .dmc-container { max-width: 768px; padding: 0 1.5rem; } }
@media (min-width: 1024px) { .dmc-container { max-width: 1024px; } }
@media (min-width: 1280px) { .dmc-container { max-width: 1280px; } }
@media (min-width: 1536px) { .dmc-container { max-width: var(--container); } }
.dmc-content { padding: 2.5rem 1rem 4rem; }
.dmc-ico { display: inline-block; vertical-align: middle; flex: none; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.dmc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: .5rem; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
  line-height: 1.2; text-align: center;
}
/* Anchor-variant selectors (.dmc-body a.dmc-btn-primary) keep specificity above
   the base `.dmc-body a` and `.dmc-footer a` link colours so button text stays white. */
.dmc-btn-primary,
.dmc-body a.dmc-btn-primary { background: var(--brand); color: var(--white); }
.dmc-btn-primary:hover,
.dmc-body a.dmc-btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.dmc-btn-block { width: 100%; padding-top: .8rem; padding-bottom: .8rem; }

/* ── Top contact bar (desktop only) ────────────────────────────────────── */
.dmc-topbar { display: none; background: var(--brand); color: var(--white); font-size: .75rem; font-weight: 500; }
@media (min-width: 768px) { .dmc-topbar { display: block; } }
.dmc-topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding: .45rem 1rem; }
@media (min-width: 768px) { .dmc-topbar-inner { padding: .45rem 1.5rem; } }
/* Anchor-qualified (.dmc-body a.dmc-topbar-link) to beat the base `.dmc-body a`
   teal link colour — otherwise teal text on the teal topbar is invisible. */
.dmc-topbar-link,
.dmc-body a.dmc-topbar-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--white); }
.dmc-topbar-link:hover,
.dmc-body a.dmc-topbar-link:hover { color: rgba(255, 255, 255, 0.7); }
.dmc-topbar-social { display: flex; align-items: center; gap: .5rem; border-left: 1px solid rgba(255, 255, 255, 0.3); padding-left: 1rem; }
.dmc-topbar-social a {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.18); color: var(--white);
}
.dmc-topbar-social a:hover { background: rgba(255, 255, 255, 0.32); color: var(--white); }

/* ── Header ────────────────────────────────────────────────────────────── */
.dmc-header { position: sticky; top: 0; z-index: 50; width: 100%; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.dmc-header-inner { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.dmc-brand { display: inline-flex; align-items: center; }
.dmc-brand:hover { opacity: .85; }
.dmc-logo { display: block; height: auto; }

/* Desktop nav — hidden until lg (1024px) */
.dmc-nav { display: none; align-items: center; }
@media (min-width: 1024px) { .dmc-nav { display: flex; } }
.dmc-nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .9rem; margin: 0 .1rem; font-size: .875rem; font-weight: 500;
  border-radius: .375rem; color: var(--grey); white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.dmc-nav-link:hover { color: var(--brand); background: var(--grey-50); }
.dmc-nav-link.is-active { color: var(--brand); background: var(--brand-50); }
.dmc-nav-divider { width: 1px; height: 1.5rem; background: var(--grey-200); margin: 0 .35rem; }
.dmc-nav-cta { margin-left: .35rem; }
.dmc-nav-cta:hover { color: var(--white); }

/* Dropdowns */
.dmc-nav-item { position: relative; display: flex; align-items: center; height: 5rem; }
.dmc-nav-item .dmc-ico { transition: transform .2s; }
.dmc-nav-item.has-children:hover .dmc-nav-link .dmc-ico { transform: rotate(180deg); }
.dmc-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 18rem; padding-top: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s; z-index: 60;
}
.dmc-nav-item.has-children:hover .dmc-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dmc-dropdown-inner { background: var(--white); border-radius: 0 0 .5rem .5rem; border-top: 2px solid var(--brand); box-shadow: var(--shadow-xl); overflow: hidden; padding: .5rem 0; }
.dmc-dropdown-link { display: block; padding: .55rem 1.5rem; font-size: .875rem; color: var(--grey); white-space: nowrap; }
.dmc-dropdown-link:hover { background: var(--grey-50); color: var(--brand); }
.dmc-dropdown-link.is-active { color: var(--brand); }

/* Hamburger */
.dmc-burger { display: inline-flex; align-items: center; justify-content: center; padding: .4rem; background: none; border: none; color: var(--grey); cursor: pointer; }
.dmc-burger:hover { color: var(--brand); }
@media (min-width: 1024px) { .dmc-burger { display: none; } }
.dmc-burger-close { display: none; }
.dmc-burger.is-open .dmc-burger-open { display: none; }
.dmc-burger.is-open .dmc-burger-close { display: inline-flex; }

/* ── Mobile menu ───────────────────────────────────────────────────────── */
.dmc-mobile {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--white); border-top: 1px solid var(--grey-100);
  box-shadow: var(--shadow-xl); max-height: 85vh; overflow-y: auto;
  padding: .5rem 0;
}
@media (min-width: 1024px) { .dmc-mobile { display: none; } }
.dmc-mobile-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .25rem 1rem .5rem; }
.dmc-mobile-contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem; font-size: .875rem; font-weight: 500; color: var(--grey);
  background: var(--grey-50); border-radius: .5rem;
}
.dmc-mobile-contact-btn .dmc-ico { color: var(--brand); }
.dmc-mobile-contact-btn:hover { background: var(--brand-50); color: var(--brand); }
.dmc-mobile-link {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; padding: .8rem 1.5rem; font-size: 1rem; font-weight: 600;
  color: var(--grey-700); background: none; border: none; border-top: 1px solid var(--grey-100);
  text-align: left; cursor: pointer; font-family: inherit;
}
.dmc-mobile-link.is-active { color: var(--brand); background: var(--brand-50); }
.dmc-mobile-toggle .dmc-ico { transition: transform .2s; }
.dmc-mobile-group.is-open .dmc-mobile-toggle .dmc-ico { transform: rotate(180deg); }
.dmc-mobile-sub { background: var(--grey-50); border-top: 1px solid var(--grey-100); }
.dmc-mobile-sublink { display: block; padding: .6rem 2rem; font-size: .875rem; color: var(--grey); border-bottom: 1px solid var(--grey-100); }
.dmc-mobile-sublink.is-active { color: var(--brand); font-weight: 500; }
.dmc-mobile-cta { padding: 1rem 1.5rem; border-top: 1px solid var(--grey-100); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.dmc-footer { background: var(--footer-bg); color: var(--white); padding: 3rem 0 1.5rem; margin-top: auto; }
.dmc-footer a { color: rgba(255, 255, 255, 0.85); }
.dmc-footer a:hover { color: var(--white); }
.dmc-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .dmc-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .dmc-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } }
.dmc-footer-logo { margin-bottom: 1.25rem; }
.dmc-footer-contact { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .875rem; }
.dmc-footer-contact li { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.dmc-footer-contact .dmc-ico { color: var(--brand); }
.dmc-footer-address { font-size: .875rem; margin-bottom: 1.25rem; color: var(--white); }
.dmc-footer-address-label { font-weight: 700; margin: 0 0 .35rem; }
.dmc-footer-address p { margin: 0; }
.dmc-footer-blurb { font-size: .875rem; line-height: 1.6; margin-bottom: 1.25rem; color: rgba(255, 255, 255, 0.92); }
.dmc-footer-social { display: flex; align-items: center; gap: .75rem; }
.dmc-footer-social a {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
}
.dmc-footer-social a:hover { background: var(--brand); color: var(--white); }
.dmc-footer-heading { color: var(--white); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 1rem; }
.dmc-footer-links { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.dmc-footer-links li { margin-bottom: .65rem; }
.dmc-footer-quote p { font-size: .875rem; margin: 0 0 1rem; color: rgba(255, 255, 255, 0.92); }
.dmc-footer-quote-phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-weight: 600; font-size: .95rem; }
.dmc-footer-quote-phone .dmc-ico { color: var(--brand); }

.dmc-footer-bottom { border-top: 1px solid var(--footer-border); padding-top: 1.5rem; }
.dmc-footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: center; font-size: .875rem; }
@media (min-width: 768px) { .dmc-footer-bottom-links { justify-content: flex-start; } }
.dmc-footer-bottom-links .dmc-sep { color: rgba(255, 255, 255, 0.4); }
.dmc-footer-bottom-meta { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .75rem; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) { .dmc-footer-bottom-meta { flex-direction: row; justify-content: space-between; } }
.dmc-footer-sponsor { display: inline-flex; align-items: center; gap: .3rem; }
.dmc-footer-sponsor a { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; text-decoration: none; transition: color .15s ease; }
.dmc-footer-sponsor a:hover { color: #25d366; }
.dmc-footer-sponsor a .dmc-ico { color: #25d366; }

/* ── Error page ────────────────────────────────────────────────────────── */
.dmc-error { max-width: 640px; margin: 0 auto; padding: 4rem 1rem; text-align: center; }
.dmc-error h1 { font-size: 2rem; margin-bottom: 1rem; }
.dmc-error .dmc-btn { margin-top: 1.5rem; }

/* ── Outline button (secondary CTA) ────────────────────────────────────── */
.dmc-btn-outline,
.dmc-body a.dmc-btn-outline {
  background: var(--white); color: var(--grey-700);
  border: 2px solid var(--grey-200);
}
.dmc-btn-outline:hover,
.dmc-body a.dmc-btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ── Homepage hero ─────────────────────────────────────────────────────── */
.dmc-hero {
  position: relative; width: 100%; overflow: hidden;
  min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--grey-50) 0%, var(--brand-50) 100%);
}

/* Left content sits above the mosaic */
.dmc-hero-inner { position: relative; z-index: 20; padding: 4rem 1rem; }
@media (min-width: 1024px) { .dmc-hero-inner { padding: 0 1.5rem; } }
.dmc-hero-content { max-width: 36rem; }

.dmc-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem; margin-bottom: 1.5rem;
  background: var(--brand); color: var(--white);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px;
}
.dmc-hero-badge-dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--white);
  animation: dmc-pulse 2s ease-in-out infinite;
}
@keyframes dmc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.dmc-hero-title {
  font-family: var(--font-heading); font-weight: 800;
  color: var(--grey); line-height: 1.15; margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
.dmc-hero-title-accent { color: var(--brand); }

.dmc-hero-subtitle {
  color: var(--grey); font-weight: 500; font-size: 1.125rem; line-height: 1.7;
  max-width: 32rem; margin: 0 0 2.5rem;
}

.dmc-hero-actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .dmc-hero-actions { flex-direction: row; } }
.dmc-hero-cta {
  padding: .9rem 2rem; border-radius: 999px; font-size: 1rem;
  box-shadow: var(--shadow-xl);
}
.dmc-hero-cta.dmc-btn-outline { box-shadow: none; }
.dmc-hero-cta:hover { transform: translateY(-2px); }
@media (max-width: 639px) { .dmc-hero-cta { width: 100%; } }

.dmc-hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  margin-top: 3rem; font-size: .875rem; font-weight: 600; color: var(--grey);
}
.dmc-hero-trust-item { display: inline-flex; align-items: center; gap: .5rem; }
.dmc-hero-trust-item .dmc-ico { color: var(--brand); }

/* Right-side slanted scrolling mosaic */
.dmc-hero-mosaic { position: absolute; top: 0; right: 0; width: 100%; height: 100%; overflow: hidden; }
@media (min-width: 1024px) { .dmc-hero-mosaic { width: 55%; } }
.dmc-hero-mosaic-skew {
  position: absolute; inset: 0;
  /* push the mosaic 3rem to the right on <1024px (dmc-fm `translate-x-12
     lg:translate-x-0`) so the photos clear the left-hand hero copy; reset at lg
     where the mosaic becomes its own 55% column. */
  transform: translateX(3rem) skewX(-6deg) scale(1.1); transform-origin: top right;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; opacity: .9;
}
@media (min-width: 1024px) { .dmc-hero-mosaic-skew { transform: skewX(-6deg) scale(1.1); } }
.dmc-hero-col { display: flex; flex-direction: column; gap: 1rem; will-change: transform; }
.dmc-hero-col-2 { margin-top: -8rem; }
.dmc-hero-col-3 { padding-top: 2.5rem; }
.dmc-hero-tile {
  width: 100%; height: 16rem; flex: none; border-radius: .75rem; overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--grey-200);
}
.dmc-hero-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the two passes make each column's content exactly 2× tall → translateY(-50%)
   lands back on an identical frame for a seamless loop */
.dmc-mosaic-up { animation: dmc-mosaic-up 40s linear infinite; }
.dmc-mosaic-down { animation: dmc-mosaic-down 40s linear infinite; }
@keyframes dmc-mosaic-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes dmc-mosaic-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Fade the mosaic into the left content. On <1024px the mosaic spans the full
   width behind the copy, so the fade stays mostly opaque to keep text legible;
   from 1024px the mosaic is its own 55% column and the fade can clear sooner. */
.dmc-hero-mosaic-fade {
  position: absolute; inset: 0; z-index: 10;
  background: linear-gradient(to right, #f2f2f2 0%, rgba(242,242,242,.94) 55%, rgba(242,242,242,.6) 100%);
}
@media (min-width: 1024px) {
  .dmc-hero-mosaic-fade {
    background: linear-gradient(to right, #f2f2f2 0%, rgba(242,242,242,.8) 40%, transparent 100%);
  }
}

/* Neon particles */
.dmc-hero-particles { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.dmc-particle {
  position: absolute; bottom: -10px; border-radius: 50%; opacity: 0;
  filter: blur(.5px);
  animation: dmc-particle-rise var(--dur) linear var(--delay) infinite;
}
@keyframes dmc-particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: var(--op); }
  90% { opacity: var(--op); }
  100% { transform: translateY(-100vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dmc-mosaic-up, .dmc-mosaic-down, .dmc-particle, .dmc-hero-badge-dot { animation: none; }
  .dmc-mosaic-down { transform: translateY(-50%); }
}

/* ===========================================================================
   "Our Services" section (partials/services.html.twig)
   =========================================================================== */
.dmc-services {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: var(--grey-50);     /* bg-grey-50 over white, matches dmc-fm */
}
.dmc-services-inner { position: relative; z-index: 2; }

/* Oversized decorative "D" watermark, desktop only */
.dmc-services-watermark {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: 50%; height: 100%;
  opacity: .03; pointer-events: none; display: none;
}
.dmc-services-watermark svg { width: 100%; height: 100%; fill: var(--brand); }
@media (min-width: 1024px) { .dmc-services-watermark { display: block; } }

/* Header + intro */
.dmc-services-head { max-width: 56rem; margin: 0 auto 3rem; text-align: center; }
.dmc-services-title {
  font-family: var(--font-heading);
  font-size: 1.875rem; font-weight: 700; color: var(--grey);
  margin: 0 0 1.5rem;
}
.dmc-services-intro {
  color: var(--grey); font-size: 1.125rem; line-height: 1.625;
  max-width: 42rem; margin: 0 auto 2rem;
}

/* Residential / Commercial toggle pill */
.dmc-services-toggle {
  display: inline-flex; gap: .25rem;
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: 9999px; padding: .375rem; box-shadow: var(--shadow-md);
}
.dmc-services-tab {
  appearance: none; border: 0; cursor: pointer;
  padding: .625rem 2rem; border-radius: 9999px;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .025em;
  background: transparent; color: var(--grey);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.dmc-services-tab:hover { color: var(--brand); background: var(--grey-50); }
.dmc-services-tab.is-active {
  background: var(--brand); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.dmc-services-tab.is-active:hover { background: var(--brand); color: var(--white); }

/* Card grid: 1 → 2 → 3 → 4 columns */
.dmc-services-grid {
  display: grid; gap: 2rem; margin-bottom: 4rem;
  grid-template-columns: 1fr;
}
.dmc-services-grid[hidden] { display: none; }
@media (min-width: 640px)  { .dmc-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dmc-services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .dmc-services-grid { grid-template-columns: repeat(4, 1fr); } }
.dmc-services-empty { grid-column: 1 / -1; text-align: center; color: var(--grey); padding: 3rem 0; }

/* Image card */
.dmc-service-card {
  display: block; background: var(--white);
  border: 1px solid var(--grey-100); border-radius: 1rem;
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: box-shadow .3s ease, transform .3s ease;
}
.dmc-service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
/* JS filter hides non-matching cards via the [hidden] attribute — but the
   author `display: block` above beats the UA `[hidden]` rule, so re-assert it. */
.dmc-service-card[hidden] { display: none; }
.dmc-service-card-media { position: relative; height: 12rem; overflow: hidden; }
.dmc-service-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .8;
  transform: scale(1);
  transition: transform .7s ease, opacity .5s ease;
}
.dmc-service-card:hover .dmc-service-card-media img { transform: scale(1.1); opacity: 1; }

/* Teal gradient veil that lifts on hover */
.dmc-service-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top,
    rgba(76, 170, 212, .6) 0%,
    rgba(76, 170, 212, .4) 50%,
    rgba(76, 170, 212, .2) 100%);
  transition: opacity .5s ease;
}
.dmc-service-card:hover .dmc-service-card-overlay { opacity: 0; }

/* Title pinned bottom-left over the image.
   Qualified with .dmc-body to beat `.dmc-body h3` (0,1,1) which sets grey —
   the recurring CSS-specificity gotcha; (0,2,0) wins. */
.dmc-body .dmc-service-card-title {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  margin: 0; padding: 1.5rem;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  line-height: 1.2; color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* Arrow chip, appears on hover */
.dmc-service-card-arrow {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .3); color: var(--white);
  opacity: 0; transition: opacity .3s ease;
}
.dmc-service-card:hover .dmc-service-card-arrow { opacity: 1; }

/* View All button */
.dmc-services-cta { text-align: center; }
a.dmc-btn-viewall {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 2rem; border-radius: 9999px;
  background: var(--white); color: var(--brand);
  border: 2px solid var(--brand-100);
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
a.dmc-btn-viewall:hover {
  border-color: var(--brand); background: var(--brand-50);
  box-shadow: var(--shadow-card); color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .dmc-service-card,
  .dmc-service-card-media img,
  .dmc-service-card-overlay,
  .dmc-service-card-arrow { transition: none; }
  .dmc-service-card:hover { transform: none; }
  .dmc-service-card:hover .dmc-service-card-media img { transform: none; }
}

/* ===========================================================================
   "Reviews" carousel (partials/reviews.html.twig)
   =========================================================================== */
.dmc-reviews { padding: 5rem 0; background: var(--white); }
.dmc-body .dmc-reviews-title {
  font-family: var(--font-heading);
  font-size: 1.875rem; font-weight: 700; color: var(--brand);
  text-align: center; margin: 0 0 3rem;
}
.dmc-reviews-carousel { position: relative; max-width: 72rem; margin: 0 auto; }
.dmc-reviews-viewport { overflow: hidden; }
.dmc-reviews-track {
  display: flex; gap: 24px;            /* keep 24px in sync with dmc.js GAP */
  transition: transform .5s ease-in-out;
  will-change: transform;
}
/* Pre-JS fallback: let the track scroll horizontally so every card is reachable */
.dmc-reviews-carousel:not(.is-enhanced) .dmc-reviews-viewport { overflow-x: auto; }
.dmc-reviews-carousel:not(.is-enhanced) .dmc-review-card { flex: 0 0 22rem; max-width: 22rem; }

.dmc-review-card {
  flex: 1 1 0; min-width: 0;
  background: var(--white); border: 1px solid var(--grey-100);
  padding: 2rem; border-radius: .75rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.dmc-review-card:hover { box-shadow: var(--shadow-md); }
.dmc-review-stars { display: flex; gap: .25rem; color: var(--brand); margin-bottom: 1rem; }
.dmc-review-text {
  color: var(--grey); font-size: .875rem; line-height: 1.625;
  margin: 0 0 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dmc-review-author { display: flex; align-items: center; gap: .75rem; }
.dmc-review-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex-shrink: 0;
  overflow: hidden; background: var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-heading); font-weight: 700;
}
.dmc-review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmc-review-avatar span { background: var(--brand); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.dmc-review-meta { display: flex; flex-direction: column; min-width: 0; }
.dmc-review-name { font-weight: 700; color: var(--grey); font-size: .875rem; }
.dmc-review-role {
  font-size: .75rem; color: var(--grey-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Arrows */
.dmc-reviews-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 9999px; border: 0;
  background: var(--white); box-shadow: var(--shadow-xl);
  display: none; align-items: center; justify-content: center;
  color: var(--grey-400); cursor: pointer; z-index: 10;
  transition: color .2s ease, transform .2s ease;
}
@media (min-width: 768px) { .dmc-reviews-carousel.is-enhanced .dmc-reviews-arrow:not([hidden]) { display: flex; } }
.dmc-reviews-prev { left: 0; margin-left: -1rem; }
.dmc-reviews-next { right: 0; margin-right: -1rem; }
.dmc-reviews-arrow:hover:not(:disabled) { color: var(--brand); transform: translateY(-50%) scale(1.1); }
.dmc-reviews-arrow:disabled { color: var(--grey-200); cursor: not-allowed; }

/* Dots */
.dmc-reviews-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.dmc-reviews-dot {
  height: .5rem; width: .5rem; border: 0; padding: 0; cursor: pointer;
  border-radius: 9999px; background: rgba(116, 141, 149, .4);
  transition: width .3s ease, background-color .3s ease;
}
.dmc-reviews-dot:hover { background: var(--grey-400); }
.dmc-reviews-dot.is-active { width: 2rem; background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .dmc-reviews-track { transition: none; }
  .dmc-reviews-arrow:hover:not(:disabled) { transform: translateY(-50%); }
}

/* ===========================================================================
   "Our Mission" banner (partials/mission.html.twig)
   NOTE: the dmc-fm band uses bg-brand-300/text-brand-100 rules which collapse
   to solid teal in this theme (invisible on the teal band) — swapped for white
   tints so the attribution stays legible.
   =========================================================================== */
.dmc-mission {
  position: relative; overflow: hidden;
  padding: 5rem 0; color: var(--white);
  background: var(--brand);
}
.dmc-mission-bg { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.dmc-mission-circle {
  position: absolute; top: 50%; width: 24rem; height: 24rem;
  background: var(--white); border-radius: 9999px;
}
.dmc-mission-circle:nth-child(1) { left: 25%; }
.dmc-mission-circle:nth-child(2) { right: 25%; }

.dmc-mission-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .dmc-mission-inner { grid-template-columns: 1fr 1fr; } }

.dmc-mission-statement { text-align: left; }
@media (min-width: 768px) {
  .dmc-mission-statement { border-right: 1px solid rgba(255, 255, 255, .1); padding-right: 3rem; }
}
.dmc-body .dmc-mission-heading {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.875rem; margin: 0 0 1.5rem; color: var(--white);
}
@media (min-width: 768px) { .dmc-body .dmc-mission-heading { font-size: 2.25rem; } }
.dmc-mission-text { color: var(--white); font-size: 1rem; line-height: 1.625; margin: 0; }

.dmc-mission-quote { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dmc-mission-quote-mark { color: rgba(255, 255, 255, .2); margin-bottom: 1.5rem; line-height: 0; }
.dmc-mission-quote-text {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; color: var(--white);
  quotes: none;
}
@media (min-width: 768px) { .dmc-mission-quote-text { font-size: 1.875rem; } }
.dmc-mission-attribution {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255, 255, 255, .9); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; font-size: .875rem;
}
.dmc-mission-rule { display: block; height: 1px; width: 2rem; background: rgba(255, 255, 255, .4); }

/* ===========================================================================
   "Trusted & Experienced" section (partials/trust.html.twig)
   =========================================================================== */
.dmc-trust { padding: 6rem 0; background: var(--white); }
.dmc-trust-head { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.dmc-trust-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.875rem; color: var(--grey); margin: 0 0 1rem;
}
.dmc-trust-underline { display: block; width: 5rem; height: .25rem; background: var(--brand); border-radius: 9999px; margin: 0 auto 1.5rem; }
.dmc-trust-intro { color: var(--grey); font-size: 1rem; line-height: 1.625; margin: 0; }

.dmc-trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-bottom: 5rem; text-align: center;
}
@media (min-width: 768px) { .dmc-trust-grid { grid-template-columns: repeat(4, 1fr); } }

.dmc-trust-card { padding: 1.5rem; border-radius: 1rem; transition: background-color .3s ease; }
.dmc-trust-card:hover { background: var(--grey-50); }
.dmc-trust-icon {
  width: 5rem; height: 5rem; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); border-radius: 1rem;
  transition: transform .3s ease;
}
.dmc-trust-card:hover .dmc-trust-icon { transform: scale(1.1); }
.dmc-trust-card-title { font-family: var(--font-heading); font-weight: 700; color: var(--grey); font-size: 1.125rem; margin: 0 0 .75rem; }
.dmc-trust-card-text { font-size: .875rem; color: var(--grey); line-height: 1.625; margin: 0; }

/* Accreditation badges */
.dmc-trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem; opacity: .6; filter: grayscale(1);
  transition: filter .5s ease, opacity .5s ease;
}
@media (min-width: 768px) { .dmc-trust-badges { gap: 4rem; } }
.dmc-trust-badges:hover { opacity: 1; filter: grayscale(0); }
.dmc-trust-badge {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem;
  color: var(--grey-400);
  border: 2px solid var(--grey-200); border-radius: .5rem;
  padding: .5rem 1rem; white-space: nowrap;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.dmc-trust-badge:hover { color: var(--brand); border-color: var(--brand); transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .dmc-trust-card, .dmc-trust-icon, .dmc-trust-badge, .dmc-trust-badges { transition: none; }
  .dmc-trust-card:hover .dmc-trust-icon, .dmc-trust-badge:hover { transform: none; }
}

/* ============================================================================
   SERVICE DETAIL PAGE (templates/service.html.twig — SVC-2 #11430)
   1:1 port of dmc-fm src/app/service/[slug]/page.tsx. Prefix .dmc-sd-* to avoid
   collision with the homepage .dmc-service-card family. Plus the shared
   .dmc-prose block that styles the ported rich-HTML body.
   ========================================================================== */

/* ── Extra button variants used by the detail page ─────────────────────── */
.dmc-btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.dmc-btn-ghost,
.dmc-body a.dmc-btn-ghost { background: var(--white); color: var(--grey-700); border: 1px solid var(--grey-200); }
.dmc-btn-ghost:hover,
.dmc-body a.dmc-btn-ghost:hover { background: var(--grey-50); color: var(--grey-700); }

/* ── .dmc-prose — ported rich-HTML body ────────────────────────────────── */
.dmc-prose { color: var(--grey); font-size: 1.0625rem; line-height: 1.75; max-width: none; overflow-x: clip; }
/* overflow-x:clip contains decorative corner accents in ported bodies — those are
   position:absolute with right:-30px inside relative gradient boxes that lost their
   Tailwind overflow-hidden in the port, so they escaped the prose and pushed the page
   wider than the viewport (horizontal wobble / white strip on the right, #11496). `clip`
   (not hidden) doesn't create a scroll container or affect the sticky sidebar. */
.dmc-body .dmc-prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--brand); margin: 2rem 0 1rem; }
.dmc-body .dmc-prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); margin: 1.5rem 0 .75rem; }
.dmc-body .dmc-prose h4 { font-size: 1.125rem; font-weight: 600; color: var(--brand-dark); margin: 1rem 0 .5rem; }
.dmc-prose p { color: var(--grey); line-height: 1.75; margin: 0 0 1rem; }
.dmc-prose strong { font-weight: 700; color: var(--grey-700); }
.dmc-body .dmc-prose a { color: var(--brand); text-decoration: underline; }
.dmc-body .dmc-prose a:hover { color: var(--brand-dark); }
.dmc-prose ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.dmc-prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0 0 1rem; }
.dmc-prose li { margin-bottom: .5rem; }
.dmc-prose blockquote {
  border-left: 4px solid var(--brand); padding-left: 1rem; margin: 1rem 0;
  font-style: italic; color: var(--grey);
}
.dmc-prose img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1rem 0; }
.dmc-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border: 1px solid var(--grey-200); font-size: .875rem; }
.dmc-prose th { background: var(--brand-50); border: 1px solid var(--grey-200); padding: .5rem .75rem; text-align: left; font-weight: 600; color: var(--grey-700); }
.dmc-prose td { border: 1px solid var(--grey-100); padding: .375rem .75rem; color: var(--grey); }
.dmc-prose code { background: var(--grey-50); padding: .1rem .35rem; border-radius: .25rem; font-size: .875rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.dmc-prose pre { background: var(--grey-700); color: var(--white); padding: 1rem; border-radius: .5rem; overflow-x: auto; margin: 1rem 0; }
.dmc-prose pre code { background: none; padding: 0; color: inherit; }
.dmc-prose > :first-child { margin-top: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.dmc-sd-hero { position: relative; overflow: hidden; display: flex; align-items: center; }
.dmc-sd-hero--gallery { min-height: 40vh; background: linear-gradient(135deg, var(--grey-50), var(--brand-50)); }
.dmc-sd-hero--cover { min-height: 40vh; background: var(--grey-700); }
@media (min-width: 768px)  { .dmc-sd-hero--gallery { min-height: 50vh; } }
@media (min-width: 1024px) { .dmc-sd-hero--gallery { min-height: 60vh; } }

/* Cover-image variant */
.dmc-sd-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.dmc-sd-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.dmc-sd-hero-veil { position: absolute; inset: 0; background: rgba(76, 170, 212, 0.6); }

/* Gallery mosaic variant (reuses .dmc-hero-col / .dmc-hero-tile / .dmc-mosaic-*) */
.dmc-sd-hero-mosaic { position: absolute; top: 0; right: 0; width: 100%; height: 100%; overflow: hidden; }
@media (min-width: 1024px) { .dmc-sd-hero-mosaic { width: 55%; } }
/* Soft readability gradient — 1:1 port of dmc-fm AnimatedTiles overlay
   `bg-gradient-to-r from-[#f2f2f2] via-[#f2f2f2]/90 to-transparent w-full
   sm:w-3/4 lg:w-1/2`. LEFT-anchored, width-stepped (not full-width with an
   opacity wash) so the copy sits over solid #f2f2f2 while the mosaic stays crisp
   on the right. */
.dmc-sd-hero-fade {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: 10;
  background: linear-gradient(to right, #f2f2f2 0%, rgba(242,242,242,.9) 50%, transparent 100%);
}
@media (min-width: 640px)  { .dmc-sd-hero-fade { width: 75%; } }
@media (min-width: 1024px) { .dmc-sd-hero-fade { width: 50%; } }

/* Service hero mosaic = 2 columns on mobile (dmc-fm AnimatedTiles `grid-cols-2
   sm:grid-cols-3`; col-3 is `hidden sm:flex`). Scoped to .dmc-sd-hero-mosaic so
   the homepage hero keeps its always-3-column mosaic. */
.dmc-sd-hero-mosaic .dmc-hero-mosaic-skew { grid-template-columns: repeat(2, 1fr); }
.dmc-sd-hero-mosaic .dmc-hero-col-3 { display: none; }
@media (min-width: 640px) {
  .dmc-sd-hero-mosaic .dmc-hero-mosaic-skew { grid-template-columns: repeat(3, 1fr); }
  .dmc-sd-hero-mosaic .dmc-hero-col-3 { display: flex; }
}

.dmc-sd-hero-inner { position: relative; z-index: 20; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .dmc-sd-hero--gallery .dmc-sd-hero-inner { padding-top: 0; padding-bottom: 0; } }
.dmc-sd-hero-content { max-width: 56rem; }
.dmc-sd-badge {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--brand-100); color: var(--brand-dark); margin-bottom: 1rem;
}
.dmc-sd-hero--cover .dmc-sd-badge { background: rgba(76,170,212,.9); color: var(--white); }
.dmc-sd-title {
  font-family: var(--font-heading); font-weight: 800; line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.75rem); margin: 0 0 .75rem; color: var(--grey);
}
.dmc-sd-hero--cover .dmc-sd-title { color: var(--white); }
.dmc-sd-subline { font-size: 1.0625rem; font-weight: 600; color: var(--brand); margin: 0 0 1.5rem; }
.dmc-sd-hero--cover .dmc-sd-subline { color: var(--white); }
.dmc-sd-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: var(--grey); margin-bottom: 2rem;
}
.dmc-sd-breadcrumb .dmc-ico { color: var(--grey-400); }
.dmc-body .dmc-sd-breadcrumb a { color: var(--grey); }
.dmc-body .dmc-sd-breadcrumb a:hover { color: var(--brand-dark); }
.dmc-sd-breadcrumb span[aria-current] { font-weight: 700; }
.dmc-sd-hero--cover .dmc-sd-breadcrumb,
.dmc-sd-hero--cover .dmc-body .dmc-sd-breadcrumb a,
.dmc-sd-hero--cover .dmc-sd-breadcrumb span[aria-current] { color: var(--white); }
.dmc-sd-hero--cover .dmc-sd-breadcrumb .dmc-ico { color: rgba(255,255,255,.6); }
.dmc-sd-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Main grid + section header ─────────────────────────────────────────── */
.dmc-sd-main { padding-top: 4rem; padding-bottom: 4rem; }
.dmc-sd-section-head { text-align: center; margin-bottom: 3rem; }
.dmc-body .dmc-sd-section-head h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--grey); margin: 0 0 .75rem; }
.dmc-sd-rule { display: block; width: 5rem; height: 4px; background: var(--brand); border-radius: 999px; margin: 0 auto; }
.dmc-sd-rule--sm { width: 4rem; }
.dmc-sd-section-head p { margin: 1rem auto 0; max-width: 42rem; color: var(--grey); }

.dmc-sd-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
/* min-width:0 on the grid columns — a grid item defaults to min-width:auto, so its
   min-content (the ported body's wide blocks: flex rows with min-width:280px children,
   two-col inline grids) forced the single mobile track to ~432px and blew the page out
   past the viewport → horizontal scroll + white strip on the right (#11496). min-width:0
   lets the track shrink to the container so the wrapping content reflows instead. */
.dmc-sd-grid > * { min-width: 0; }
/* NOTE: NO align-items:start here — dmc-fm's grid (grid-cols-12) defaults to
   align-items:stretch, so the sidebar column grows to the full row height and the
   sticky .dmc-sd-side-card inside it has room to travel. align-items:start would
   collapse the <aside> to content height → zero sticky travel (#11443). */
@media (min-width: 1024px) { .dmc-sd-grid { grid-template-columns: 2fr 1fr; gap: 3rem; } }

/* Recent work gallery — large image + clickable thumbnail strip
   (1:1 port of dmc-fm GalleryCarousel). */
.dmc-sd-gallery { margin-top: 3rem; }
.dmc-body .dmc-sd-gallery h3 { font-size: 1.5rem; font-weight: 700; color: var(--grey); margin: 0 0 1.5rem; }
.dmc-sd-gallery-carousel { display: flex; flex-direction: column; gap: 1rem; }
/* Main image */
.dmc-sd-gallery-main { position: relative; height: 400px; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); background: var(--grey-100); }
.dmc-sd-gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease-in-out; }
.dmc-sd-gallery-img.is-active { opacity: 1; }
.dmc-sd-gallery-overlay { position: absolute; inset: 0; background: rgba(116, 141, 149, 0.1); transition: background-color .3s ease; pointer-events: none; }
.dmc-sd-gallery-main:hover .dmc-sd-gallery-overlay { background: transparent; }
.dmc-sd-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border: none; border-radius: 9999px; background: rgba(255, 255, 255, 0.9); color: var(--grey); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .3s ease, background-color .3s ease; z-index: 2; }
.dmc-sd-gallery-main:hover .dmc-sd-gallery-nav { opacity: 1; }
.dmc-sd-gallery-nav:hover { background: var(--white); }
.dmc-sd-gallery-nav:focus-visible { opacity: 1; outline: 2px solid var(--brand); outline-offset: 2px; }
.dmc-sd-gallery-prev { left: 1rem; }
.dmc-sd-gallery-next { right: 1rem; }
.dmc-sd-gallery-counter { position: absolute; bottom: 1rem; right: 1rem; background: rgba(116, 141, 149, 0.7); color: var(--white); font-size: .875rem; font-weight: 500; padding: .25rem .75rem; border-radius: 9999px; z-index: 2; }
/* Thumbnail strip */
.dmc-sd-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.dmc-sd-gallery-thumb { position: relative; flex: 0 0 auto; width: 5rem; height: 4rem; padding: 0; border: none; border-radius: .5rem; overflow: hidden; cursor: pointer; background: var(--grey-100); opacity: .6; transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease; }
.dmc-sd-gallery-thumb:hover { opacity: 1; box-shadow: var(--shadow-md); }
.dmc-sd-gallery-thumb.is-active { opacity: 1; transform: scale(1.05); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand), var(--shadow-md); }
.dmc-sd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dmc-sd-gallery-thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; opacity: 1; }

/* Client stories — single-card fade carousel (1:1 port of dmc-fm ClientStoriesCarousel). */
.dmc-sd-stories { position: relative; margin-top: 3rem; padding: 2rem; background: var(--white); border: 1px solid var(--grey-100); border-radius: 1rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.dmc-sd-stories-quote { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--brand-100); z-index: 1; }
.dmc-body .dmc-sd-stories h3 { font-size: 1.5rem; font-weight: 700; color: var(--grey); margin: 0 0 1.5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--grey-100); }
/* Stage: enhanced = absolute fade slides; no-JS = stacked cards. */
.dmc-sd-stories-stage { display: grid; gap: 1.5rem; }
.dmc-sd-stories-carousel.is-enhanced .dmc-sd-stories-stage { display: block; position: relative; transition: height .5s ease-out; }
.dmc-sd-story { margin: 0; background: linear-gradient(135deg, var(--brand-50), var(--grey-50)); border: 1px solid var(--grey-100); border-radius: .75rem; padding: 1.5rem; }
.dmc-sd-stories-carousel.is-enhanced .dmc-sd-story { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(.5rem); transition: opacity .7s ease-out, transform .7s ease-out; pointer-events: none; }
.dmc-sd-stories-carousel.is-enhanced .dmc-sd-story.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dmc-sd-story-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.dmc-sd-story-who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.dmc-sd-story-avatar { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 9999px; background: var(--white); border: 1px solid var(--brand-100); color: var(--brand); font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.dmc-sd-story-meta { min-width: 0; }
.dmc-sd-story-meta strong { display: block; font-size: 1rem; color: var(--grey); font-weight: 700; }
.dmc-sd-story-meta span { display: block; font-size: .8125rem; color: var(--grey-400); }
.dmc-sd-story-stars { color: var(--brand); display: flex; gap: .1rem; flex: 0 0 auto; padding-top: .15rem; }
.dmc-sd-story blockquote { margin: 0; font-style: italic; color: var(--grey); font-size: 1.0625rem; line-height: 1.6; }
/* Controls */
.dmc-sd-stories-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.dmc-sd-stories-dots { display: flex; align-items: center; gap: .5rem; }
.dmc-sd-stories-dot { height: .5rem; width: .5rem; padding: 0; border: none; border-radius: 9999px; background: var(--grey-200); cursor: pointer; transition: all .3s ease; }
.dmc-sd-stories-dot:hover { background: var(--grey-400); }
.dmc-sd-stories-dot.is-active { width: 2rem; background: var(--brand); }
.dmc-sd-stories-arrows { display: flex; align-items: center; gap: .5rem; }
.dmc-sd-stories-arrow { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: var(--white); border: 1px solid var(--grey-200); color: var(--grey); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: color .2s ease, border-color .2s ease; }
.dmc-sd-stories-arrow:hover { color: var(--brand); border-color: var(--brand); }
.dmc-sd-stories-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Ready-to-start band */
.dmc-sd-cta-band {
  margin-top: 3rem; padding: 2rem; background: var(--grey-50); border: 1px solid var(--grey-100);
  border-radius: 1rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center;
}
@media (min-width: 768px) { .dmc-sd-cta-band { flex-direction: row; justify-content: space-between; text-align: left; } }
.dmc-body .dmc-sd-cta-band h3 { font-size: 1.25rem; font-weight: 700; color: var(--grey); margin: 0 0 .5rem; }
.dmc-sd-cta-band p { margin: 0; color: var(--grey); }
.dmc-sd-cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Sticky sidebar ─────────────────────────────────────────────────────── */
.dmc-sd-side-card { background: var(--brand); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-card); }
@media (min-width: 1024px) { .dmc-sd-side-card { position: sticky; top: 6rem; } }
.dmc-sd-side-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.dmc-body .dmc-sd-side-title { color: var(--white); text-align: center; font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem; }
.dmc-sd-side-links { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.dmc-body a.dmc-sd-side-links > a, /* fallback */
.dmc-body .dmc-sd-side-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-radius: .5rem; font-weight: 600; color: var(--white);
  background: rgba(255,255,255,.12); transition: background-color .2s;
}
.dmc-body .dmc-sd-side-links a:hover { background: rgba(255,255,255,.25); color: var(--white); }
.dmc-sd-side-links .dmc-ico { color: rgba(255,255,255,.8); }
.dmc-sd-side-quote { border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); border-radius: .75rem; padding: 2rem; text-align: center; }
.dmc-sd-side-quote-ico { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255,255,255,.2); color: var(--white); margin-bottom: 1rem; }
.dmc-body .dmc-sd-side-quote h4 { color: var(--white); font-size: 1.5rem; font-weight: 700; margin: 0 0 .75rem; }
.dmc-sd-side-quote p { color: rgba(255,255,255,.9); font-size: .875rem; line-height: 1.6; margin: 0 0 1.5rem; }
.dmc-body a.dmc-sd-side-quote-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  padding: .85rem 1rem; border-radius: .5rem; background: var(--white); color: var(--brand-dark);
  font-weight: 700; box-shadow: var(--shadow-md); transition: background-color .2s;
}
.dmc-body a.dmc-sd-side-quote-btn:hover { background: rgba(255,255,255,.9); color: var(--brand-dark); }

/* ── Why use us ─────────────────────────────────────────────────────────── */
.dmc-sd-why { background: var(--grey-50); padding: 5rem 0; border-top: 1px solid var(--grey-200); }
.dmc-sd-why-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
@media (min-width: 640px) { .dmc-sd-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .dmc-sd-why-grid { grid-template-columns: repeat(4, 1fr); } }
.dmc-sd-why-card { display: flex; flex-direction: column; align-items: center; transition: transform .3s ease; }
.dmc-sd-why-card:hover { transform: translateY(-4px); }
.dmc-sd-why-ico { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.dmc-body .dmc-sd-why-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--grey); margin: 0 0 .75rem; }
.dmc-sd-why-card p { font-size: .9375rem; color: var(--grey); line-height: 1.6; margin: 0; padding: 0 .5rem; }

/* ── Contact + Areas We Cover + map ─────────────────────────────────────── */
.dmc-sd-contact { padding: 4rem 0; background: var(--white); }
.dmc-sd-contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .dmc-sd-contact-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.dmc-sd-contact-copy { display: flex; flex-direction: column; justify-content: center; }
.dmc-body .dmc-sd-contact-copy h2 { font-size: clamp(1.75rem, 4vw, 2rem); font-weight: 700; color: var(--brand); margin: 0 0 1rem; }
.dmc-sd-contact-copy p { color: var(--grey); line-height: 1.7; margin: 0 0 1.5rem; }
.dmc-sd-contact-copy strong { color: var(--grey-700); }
.dmc-sd-contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.dmc-sd-map { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); min-height: 350px; }
.dmc-sd-map iframe { width: 100%; height: 100%; min-height: 350px; border: 0; display: block; }
@media (min-width: 1024px) { .dmc-sd-map, .dmc-sd-map iframe { min-height: 400px; } }

.dmc-sd-areas { padding-top: 2rem; border-top: 1px solid var(--grey-100); }
.dmc-sd-areas-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .dmc-sd-areas-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.dmc-body .dmc-sd-areas-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--grey); margin: 0; }
.dmc-sd-areas-head p { font-size: .875rem; color: var(--grey); margin: 0; }
.dmc-sd-areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.dmc-sd-areas-grid > * { min-width: 0; } /* let the 2 tracks shrink on narrow phones (#11496) */
@media (min-width: 768px) { .dmc-sd-areas-grid { grid-template-columns: repeat(4, 1fr); } }
.dmc-body .dmc-sd-area-col h3 { display: flex; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 700; color: var(--brand); margin: 0 0 .5rem; }
.dmc-sd-area-col ul { list-style: none; margin: 0; padding: 0; }
.dmc-sd-area-col li { font-size: .8125rem; color: var(--grey); padding: .15rem 0; }
.dmc-sd-areas-foot { font-size: .875rem; color: var(--grey); margin: 1rem 0 0; }
.dmc-body .dmc-sd-areas-foot a { color: var(--brand); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .dmc-sd-why-card, .dmc-sd-gallery-img, .dmc-sd-story, .dmc-sd-stories-carousel.is-enhanced .dmc-sd-stories-stage { transition: none; }
  .dmc-sd-why-card:hover { transform: none; }
  .dmc-sd-gallery-thumb.is-active { transform: none; }
}

/* ===========================================================================
   SERVICES LISTING PAGE (/services) — SVC-3 #11431
   1:1 port of dmc-fm services/page.tsx + ServicesContent/ServiceFilter.
   Cards reuse the .dmc-service-card family above; only the page chrome
   (teal hero, filter pill card, custom-solution CTA) is new here.
   =========================================================================== */
.dmc-services-page { position: relative; overflow: hidden; background: var(--grey-50); padding-bottom: 5rem; }

/* Full-bleed teal hero band */
.dmc-services-hero {
  background: var(--brand);
  min-height: 40vh; display: flex; align-items: center;
  padding: 5rem 0; text-align: center;
}
@media (min-width: 768px) { .dmc-services-hero { padding: 7rem 0; } }
.dmc-body .dmc-services-hero-title {
  color: var(--white); font-size: 1.875rem; font-weight: 700; margin: 0 0 1rem;
}
@media (min-width: 768px) { .dmc-body .dmc-services-hero-title { font-size: 3rem; } }
.dmc-services-hero-intro {
  color: var(--white); font-size: 1.125rem; line-height: 1.625;
  max-width: 42rem; margin: 0 auto;
}

/* Content column lifts up over the hero band (dmc-fm -mt-8 z-20) */
.dmc-services-page-inner { position: relative; z-index: 20; margin-top: -2rem; }
.dmc-services-prose { background: var(--white); border-radius: 1rem; padding: 1.5rem 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }

/* Filter pill card */
.dmc-service-filter {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: 1rem; box-shadow: var(--shadow-xl);
  padding: .5rem; margin: 0 auto 3rem; max-width: 42rem;
}
.dmc-service-filter-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.dmc-filter-tab {
  flex: 1 1 auto; min-width: 120px;
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.25rem; border-radius: .75rem;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .025em;
  background: transparent; color: var(--grey);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dmc-filter-tab:hover { color: var(--brand); background: var(--grey-50); }
.dmc-filter-tab.is-active {
  background: var(--brand); color: var(--white);
  box-shadow: var(--shadow-md); transform: scale(1.05);
}
.dmc-filter-tab.is-active:hover { background: var(--brand); color: var(--white); }
.dmc-filter-count { font-size: .75rem; font-weight: 400; opacity: .75; }

/* Staggered card entrance */
@keyframes dmc-fade-in-up { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: translateY(0); } }
.dmc-fade-in-up { animation: dmc-fade-in-up .5s ease both; }

/* "Need a Custom Solution?" CTA band */
.dmc-services-custom-cta {
  margin-top: 4rem; padding: 3rem 2rem; border-radius: 1rem;
  background: var(--brand);   /* dmc-fm from-brand-600 to-brand-500 → both #4caad4 */
  box-shadow: var(--shadow-xl); text-align: center; color: var(--white);
}
@media (min-width: 768px) { .dmc-services-custom-cta { padding: 3rem; } }
.dmc-body .dmc-services-custom-title { color: var(--white); font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
@media (min-width: 768px) { .dmc-body .dmc-services-custom-title { font-size: 1.875rem; } }
.dmc-services-custom-text { color: var(--white); font-size: 1.125rem; line-height: 1.625; max-width: 42rem; margin: 0 auto 1.5rem; opacity: .95; }
.dmc-services-custom-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: stretch; }
@media (min-width: 640px) { .dmc-services-custom-actions { flex-direction: row; align-items: center; } }
.dmc-btn-cta-light, .dmc-btn-cta-outline {
  border-radius: 9999px; padding: 1rem 2rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .8125rem;
  text-align: center;
}
.dmc-body a.dmc-btn-cta-light { background: var(--white); color: var(--brand); box-shadow: var(--shadow-md); }
.dmc-body a.dmc-btn-cta-light:hover { background: var(--brand-50); color: var(--brand-dark); box-shadow: var(--shadow-xl); }
.dmc-body a.dmc-btn-cta-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.dmc-body a.dmc-btn-cta-outline:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.dmc-services-empty--page { background: var(--white); border-radius: 1rem; box-shadow: var(--shadow-sm); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .dmc-fade-in-up { animation: none; }
  .dmc-filter-tab, .dmc-btn-cta-light, .dmc-btn-cta-outline { transition: none; }
  .dmc-filter-tab.is-active { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GENERIC TOP-LEVEL PAGE (/page/<slug>) — TLP-1 (#11445)
   1:1 port of dmc-fm src/app/page/[slug]/page.tsx hero. Body grid + sticky
   sidebar reuse the SVC-2 .dmc-sd-grid / .dmc-sd-col-* / .dmc-sd-side-card
   family and the .dmc-prose block verbatim — only the hero needs new chrome.
   ═══════════════════════════════════════════════════════════════════════════ */
.dmc-pg-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 40vh; background: var(--grey-500); }
.dmc-pg-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.dmc-pg-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.dmc-pg-hero-veil { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(76,170,212,.85), rgba(116,141,149,.55)); }
.dmc-pg-hero-particles { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.dmc-pg-hero-inner { position: relative; z-index: 10; padding-top: 5rem; padding-bottom: 5rem; }
.dmc-pg-hero-content { max-width: 56rem; }
.dmc-pg-badge {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 1.25rem;
}
/* .dmc-body-qualified to beat `.dmc-body h1` (0,1,1) which forces grey
   (the recurring dmc-grav-theme specificity gotcha). */
.dmc-body .dmc-pg-title {
  font-family: var(--font-heading); font-weight: 800; line-height: 1.1;
  font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0 0 1.5rem; color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.dmc-pg-subline { font-size: 1.25rem; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0; max-width: 42rem; }

/* Body grid wrapper */
.dmc-pg-main { padding-top: 3rem; padding-bottom: 5rem; }

/* ════════════════════════════════════════════════════════════════════════
   CONTACT PAGE (templates/contact.html.twig) — 1:1 port of dmc-fm /contact
   ════════════════════════════════════════════════════════════════════════ */
.dmc-contact-page { background: var(--grey-50); }
.dmc-contact-hero { background: var(--brand); min-height: 40vh; display: flex; align-items: center; padding: 5rem 0; text-align: center; }
.dmc-body .dmc-contact-hero-title { color: var(--white); font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; margin: 0 0 1rem; }
.dmc-contact-hero-sub { color: var(--white); max-width: 42rem; margin: 0 auto; font-size: 1.125rem; line-height: 1.6; }

.dmc-contact-body { margin-top: -2rem; padding-bottom: 5rem; position: relative; z-index: 2; }

.dmc-contact-card { background: var(--white); border-radius: 1rem; box-shadow: var(--shadow-xl); overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .dmc-contact-card { grid-template-columns: 1fr 1fr; } }

/* Left info panel (grey band) */
.dmc-contact-info { background: var(--grey); color: var(--white); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
@media (min-width: 768px) { .dmc-contact-info { padding: 3rem; } }
.dmc-body .dmc-contact-info-title { color: var(--white); font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; }
.dmc-contact-info-lead { color: var(--white); margin: 0 0 2rem; line-height: 1.6; opacity: .95; }
.dmc-contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.dmc-contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.dmc-contact-info-icon { width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.dmc-contact-info-label { font-weight: 600; font-size: .8125rem; color: rgba(255,255,255,.85); margin-bottom: .15rem; }
.dmc-contact-info-value { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--white); }
.dmc-body a.dmc-contact-info-value:hover { color: var(--brand-100); }
.dmc-contact-info-address { font-weight: 700; }
.dmc-contact-info-hours { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.25); }
.dmc-contact-info-hours-sub { font-size: .875rem; color: rgba(255,255,255,.8); margin-top: .15rem; }

/* Form */
.dmc-contact-form-wrap { padding: 2rem; background: var(--white); }
@media (min-width: 768px) { .dmc-contact-form-wrap { padding: 3rem; } }
.dmc-contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.dmc-field { display: flex; flex-direction: column; }
.dmc-field label { font-size: .875rem; font-weight: 500; color: var(--grey-700); margin-bottom: .35rem; }
.dmc-field-opt { font-weight: 400; color: var(--grey); }
.dmc-field input, .dmc-field select, .dmc-field textarea { width: 100%; padding: .75rem 1rem; border-radius: .5rem; border: 1px solid var(--grey-200); font: inherit; color: var(--grey-700); background: var(--white); outline: none; transition: border-color .15s, box-shadow .15s; }
.dmc-field input:focus, .dmc-field select:focus, .dmc-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.dmc-field textarea { resize: vertical; min-height: 7rem; }
.dmc-field-check { display: flex; align-items: flex-start; gap: .75rem; }
.dmc-field-check input { margin-top: .25rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--brand); }
.dmc-field-check label { font-size: .875rem; color: var(--grey); }
.dmc-body .dmc-field-check a { color: var(--brand-dark); text-decoration: underline; }
.dmc-contact-submit { gap: .5rem; margin-top: .25rem; }
.dmc-contact-submit:disabled { opacity: .7; cursor: not-allowed; }

/* Honeypot — visually removed, still in the DOM for bots */
.dmc-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; overflow: hidden; }

/* Alerts + success state */
.dmc-contact-alert { padding: 1rem; background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: .5rem; }
.dmc-contact-alert p { margin: 0; font-size: .875rem; color: var(--grey-700); }
.dmc-contact-alert.is-hidden { display: none; }
.dmc-contact-success { text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 18rem; }
.dmc-contact-success-icon { width: 4rem; height: 4rem; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.dmc-body .dmc-contact-success h3 { color: var(--grey-700); font-size: 1.5rem; font-weight: 700; margin: 0 0 .5rem; }
.dmc-contact-success p { color: var(--grey); margin: 0; }
.dmc-body a.dmc-contact-success-again { margin-top: 2rem; color: var(--brand-dark); font-weight: 600; }

/* Map */
.dmc-contact-map-section { margin-top: 3rem; }
.dmc-body .dmc-contact-map-title { color: var(--grey-700); font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0 0 1.5rem; }
.dmc-contact-map { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); line-height: 0; }
.dmc-contact-map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Primary-nav Contact link (rendered after the Book Us CTA, mirrors dmc-fm) */
.dmc-nav-contact { margin-left: .5rem; }

/* ════════════════════════════════════════════════════════════════════════
   BLOG DETAIL PAGE (templates/post.html.twig) — 1:1 port of dmc-fm
   /post/<slug>. Hero is new chrome; the body grid (.dmc-sd-grid /
   .dmc-sd-col-* / .dmc-sd-side-card) + .dmc-prose are reused from SVC-2.
   ════════════════════════════════════════════════════════════════════════ */
.dmc-blog { background: var(--white); position: relative; padding-bottom: 5rem; }

/* ── Hero ── */
.dmc-blog-hero { position: relative; height: 400px; display: flex; align-items: center; overflow: hidden; background: var(--grey-700); }
.dmc-blog-hero-bg { position: absolute; inset: 0; }
.dmc-blog-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
/* dmc-fm: bg-gradient-to-t from-[#4CAAD4]/80 to-[#4CAAD4]/30 (bottom→top). */
.dmc-blog-hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(76,170,212,.8), rgba(76,170,212,.3)); }
.dmc-blog-hero-particles { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.dmc-blog-hero-inner { position: relative; z-index: 10; padding-top: 2.5rem; }
.dmc-blog-hero-content { max-width: 56rem; }

.dmc-body a.dmc-blog-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); font-size: .875rem; font-weight: 500; margin-bottom: 1.5rem; }
.dmc-body a.dmc-blog-back:hover { color: rgba(255,255,255,.8); }

/* .dmc-body-qualified to beat `.dmc-body h1` (0,1,1) which forces grey. */
.dmc-body .dmc-blog-title {
  font-family: var(--font-heading); font-weight: 800; line-height: 1.1;
  font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0 0 1.5rem; color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.dmc-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; color: rgba(255,255,255,.9); font-size: .875rem; margin-bottom: 1rem; }
.dmc-blog-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.dmc-blog-meta .dmc-ico { color: rgba(255,255,255,.85); }

.dmc-blog-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.dmc-blog-chip { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .8125rem; color: var(--white); }
.dmc-blog-chip-cat { background: rgba(76,170,212,.8); font-weight: 600; }
.dmc-blog-chip-tag { background: rgba(116,141,149,.8); }

/* ── Main grid ── */
.dmc-blog-main { padding-top: 3rem; }

.dmc-blog-lead { font-size: 1.25rem; line-height: 1.6; color: var(--grey); font-weight: 500; margin: 0 0 2rem; }

.dmc-blog-infographic { margin: 0 0 2rem; }
.dmc-blog-infographic img { width: 100%; height: auto; border-radius: .75rem; box-shadow: var(--shadow-md); border: 1px solid var(--grey-200); display: block; }

/* Inline + end CTA bands */
.dmc-blog-inline-cta {
  margin: 0 0 2rem; padding: 1.5rem; border-radius: .75rem;
  background: linear-gradient(to right, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
@media (min-width: 768px) { .dmc-blog-inline-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.dmc-body .dmc-blog-inline-cta h3 { color: var(--grey-700); font-size: 1.125rem; font-weight: 700; margin: 0 0 .25rem; }
.dmc-blog-inline-cta p { color: var(--grey-700); font-size: .875rem; margin: 0; }
.dmc-blog-inline-cta .dmc-btn { white-space: nowrap; }

.dmc-blog-endcta {
  margin: 3rem 0 0; padding: 2rem; border-radius: 1rem;
  background: var(--grey-50); border: 1px solid var(--grey-100);
  display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center;
}
@media (min-width: 768px) { .dmc-blog-endcta { flex-direction: row; justify-content: space-between; text-align: left; } }
.dmc-body .dmc-blog-endcta h3 { color: var(--grey-700); font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
.dmc-blog-endcta p { color: var(--grey); margin: 0; }
.dmc-blog-endcta-actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
@media (min-width: 640px) { .dmc-blog-endcta-actions { flex-direction: row; width: auto; } }

/* ── Related Articles ── */
.dmc-blog-related { margin-top: 4rem; }
.dmc-body .dmc-blog-related > h3 { color: var(--grey-700); font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; }
.dmc-blog-related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .dmc-blog-related-grid { grid-template-columns: 1fr 1fr; } }
.dmc-blog-card { display: block; background: var(--white); border-radius: .75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200); overflow: hidden; transition: box-shadow .2s; }
.dmc-blog-card:hover { box-shadow: var(--shadow-md); }
.dmc-blog-card-img { height: 10rem; overflow: hidden; background: var(--grey-50); }
.dmc-blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dmc-blog-card:hover .dmc-blog-card-img img { transform: scale(1.05); }
.dmc-blog-card-body { padding: 1.25rem; }
.dmc-body .dmc-blog-card-body h4 { color: var(--grey-700); font-size: 1.125rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.3; }
.dmc-blog-card:hover .dmc-blog-card-body h4 { color: var(--brand-dark); }
.dmc-blog-card-body p { color: var(--grey); font-size: .875rem; line-height: 1.5; margin: 0 0 .75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dmc-blog-card-more { display: inline-flex; align-items: center; gap: .25rem; color: var(--brand-dark); font-size: .875rem; font-weight: 600; }
.dmc-blog-related-foot { margin-top: 1.5rem; text-align: center; }
.dmc-body .dmc-blog-related-foot a { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand-dark); font-weight: 600; }

/* ── Sidebar: Related Service cards (replace Need-a-Quote when present) ── */
.dmc-blog-svc-cards { display: flex; flex-direction: column; gap: 1rem; }
.dmc-blog-svc-card {
  position: relative; display: block; height: 9rem; border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-100); background: var(--brand);
}
.dmc-blog-svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .7s ease-out; }
.dmc-blog-svc-card:hover img { transform: scale(1.1); }
.dmc-blog-svc-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--brand), rgba(76,170,212,.85) 45%, rgba(76,170,212,.55)); }
.dmc-blog-svc-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .15rem .6rem; background: rgba(255,255,255,.2); color: var(--white); font-size: .7rem; font-weight: 600; border-radius: 999px; }
.dmc-blog-svc-title { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; color: var(--white); font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ════════════════════════════════════════════════════════════════════════
   BLOG LISTING PAGE (blog.html.twig, route /blog) — BLG-3 (#11459)
   Port of dmc-fm blog/page.tsx + BlogContent + BlogFilter. Full-bleed grey
   page → header + sticky filter sidebar + horizontal post-card list.
   ════════════════════════════════════════════════════════════════════════ */
.dmc-bloglist { background: var(--grey-50); min-height: 100vh; padding: 3rem 0 5rem; }
.dmc-bloglist-head { margin-bottom: 2rem; }
.dmc-body .dmc-bloglist-title { color: var(--grey); font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1.1; margin: 0 0 1rem; }
@media (min-width: 768px) { .dmc-body .dmc-bloglist-title { font-size: 3rem; } }
.dmc-bloglist-intro { color: var(--grey); font-size: 1.125rem; line-height: 1.6; margin: 0; max-width: 48rem; }

/* Grid: single column → 1fr sidebar + 3fr main at lg. */
.dmc-bloglist-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .dmc-bloglist-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }

/* ── Sticky filter sidebar ── */
@media (min-width: 1024px) { .dmc-bloglist-side { position: sticky; top: 6rem; } }
.dmc-blog-filter { background: var(--white); border: 1px solid var(--grey-200); border-radius: .75rem; box-shadow: var(--shadow-sm); padding: 1.5rem; }
.dmc-blog-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dmc-body .dmc-blog-filter-title { color: var(--grey); font-size: 1.125rem; font-weight: 700; margin: 0; }
.dmc-body button.dmc-blog-filter-clear { display: inline-flex; align-items: center; gap: .25rem; background: none; border: 0; cursor: pointer; color: var(--brand-dark); font-size: .8125rem; font-weight: 600; padding: 0; }
.dmc-blog-filter-clear:hover { color: var(--brand); }

.dmc-blog-search { position: relative; margin-bottom: 1.5rem; }
.dmc-blog-search-ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--grey-400); display: inline-flex; pointer-events: none; }
.dmc-blog-search-input { width: 100%; padding: .55rem .75rem .55rem 2.5rem; border: 1px solid var(--grey-200); border-radius: .5rem; font: inherit; font-size: .875rem; color: var(--grey-700); background: var(--white); }
.dmc-blog-search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }

.dmc-blog-filter-group { margin-bottom: 1.5rem; }
.dmc-blog-filter-group:last-child { margin-bottom: 0; }
.dmc-body .dmc-blog-filter-label { color: var(--grey-700); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .75rem; }
.dmc-blog-filter-cats { display: flex; flex-direction: column; gap: .25rem; max-height: 16rem; overflow-y: auto; }
.dmc-blog-filter-check { display: flex; align-items: center; gap: .5rem; padding: .4rem; border-radius: .375rem; cursor: pointer; transition: background .15s; }
.dmc-blog-filter-check:hover { background: var(--grey-50); }
.dmc-blog-filter-check input { width: 1rem; height: 1rem; accent-color: var(--brand); cursor: pointer; flex: none; }
.dmc-blog-filter-check span { color: var(--grey-700); font-size: .875rem; }
.dmc-blog-filter-tags { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 16rem; overflow-y: auto; }
.dmc-body button.dmc-blog-tag-pill { padding: .3rem .75rem; border: 0; border-radius: 999px; cursor: pointer; font-size: .8125rem; background: var(--grey-100); color: var(--grey-700); transition: background .15s, color .15s; }
.dmc-blog-tag-pill:hover { background: var(--grey-200); }
.dmc-body button.dmc-blog-tag-pill.is-active { background: var(--brand); color: var(--white); }

/* ── Main column ── */
.dmc-bloglist-main { min-width: 0; }
.dmc-bloglist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: var(--white); border: 1px solid var(--grey-200); border-radius: .75rem; box-shadow: var(--shadow-sm); padding: .75rem 1rem; margin-bottom: 1.5rem; }
.dmc-bloglist-bar-count { color: var(--grey); font-size: .875rem; font-weight: 600; }
.dmc-bloglist-active { display: flex; flex-wrap: wrap; gap: .5rem; }
.dmc-bloglist-active-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; background: var(--brand-100); color: var(--brand-dark); border-radius: 999px; font-size: .8125rem; }
.dmc-bloglist-active-chip button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; padding: 0; }

.dmc-bloglist-cards { display: flex; flex-direction: column; gap: 1.5rem; }

/* Horizontal post card — img 1/3 + body 2/3 (stacks on mobile). */
.dmc-blog-list-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: .75rem; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s; }
.dmc-blog-list-card:hover { box-shadow: var(--shadow-md); }
/* ★ Re-assert: .dmc-blog-list-card sets display, so the UA [hidden]{display:none}
   loses to it — restore it for the JS filter (the recurring [hidden] gotcha). */
.dmc-blog-list-card[hidden] { display: none; }
.dmc-blog-list-link { display: flex; flex-direction: column; }
@media (min-width: 768px) { .dmc-blog-list-link { flex-direction: row; } }
.dmc-blog-list-media { background: var(--grey-50); overflow: hidden; height: 12rem; }
@media (min-width: 768px) { .dmc-blog-list-media { width: 33%; flex: none; height: auto; min-height: 13rem; } }
.dmc-blog-list-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dmc-blog-list-card:hover .dmc-blog-list-media img { transform: scale(1.05); }
.dmc-blog-list-body { padding: 1.5rem; min-width: 0; }
.dmc-body .dmc-blog-list-title { color: var(--grey); font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0 0 .75rem; transition: color .2s; }
.dmc-blog-list-card:hover .dmc-blog-list-title { color: var(--brand); }
.dmc-blog-list-excerpt { color: var(--grey); font-size: .9375rem; line-height: 1.6; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dmc-blog-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; color: var(--grey); font-size: .8125rem; margin-bottom: 1rem; }
.dmc-blog-list-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.dmc-blog-list-meta .dmc-ico { color: var(--grey-400); }
.dmc-blog-list-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.dmc-blog-list-chip { display: inline-block; padding: .2rem .6rem; border-radius: .375rem; font-size: .75rem; }
.dmc-blog-list-chip-cat { background: var(--brand-100); color: var(--brand-dark); font-weight: 600; }
.dmc-blog-list-chip-tag { background: var(--grey-100); color: var(--grey); }

/* Empty states */
.dmc-bloglist-empty { background: var(--white); border: 1px solid var(--grey-200); border-radius: .75rem; box-shadow: var(--shadow-sm); padding: 3rem; text-align: center; }
.dmc-body .dmc-bloglist-empty h3 { color: var(--grey); font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
.dmc-bloglist-empty p { color: var(--grey); margin: 0; }
.dmc-bloglist-empty--page { max-width: 32rem; margin: 2rem auto; }

/* ==========================================================================
   INLINE-STYLED CONTENT GRIDS — MOBILE STACK (#11464)
   Ported bodies (service/page/post) carry inline `grid-template-columns`
   with no responsive collapse, so they stayed 2-col on mobile. 1:1 port of
   dmc-fm globals.css `@media (max-width:768px)` inline-style overrides.
   Global selectors (match only elements with these INLINE styles) — the
   theme's own grids use classes, so they are untouched.
   ========================================================================== */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
