/* DEC UI polish v4 - focused revisions requested for Services and Contact.
   Loaded after the existing styles to preserve DEC branding and app behaviour.
   Server-rendered markup; no Vite build or new library is required. */
:root {
  --dec-polish-version: dec-polish-20261023-v4;
  --dec-polish-ink: #0d3157;
  --dec-polish-muted: #4d647d;
  --dec-polish-line: #d8e5f0;
  --dec-polish-icon-bg: #e7f2fb;
  --dec-polish-ease: cubic-bezier(.22,.68,.2,1);
}

/* SERVICES - Benefit cards: roomy, aligned, and clearly separated from heading. */
#main .dec-svc-page .dec-svc-why {
  padding-block: clamp(48px, 5vw, 76px);
  background: linear-gradient(180deg, #eff6fc 0%, #f8fbfe 100%);
  border-block: 1px solid #e2ebf4;
}
#main .dec-svc-why-heading {
  margin: 0 0 clamp(22px, 2.3vw, 34px);
}
#main .dec-svc-why-heading h2,
#main .dec-svc-process-heading h2 {
  margin-top: 7px;
  color: var(--dec-polish-ink);
  font-size: clamp(27px, 2.7vw, 40px);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}
#main .dec-svc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.5vw, 20px);
}
#main .dec-svc-why-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(13px, 1.5vw, 20px);
  min-width: 0;
  min-height: 116px;
  padding: clamp(18px, 1.6vw, 24px);
  text-align: left;
  background: #fff;
  border: 1px solid var(--dec-polish-line);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgb(12 54 91 / .045);
  transition: transform 240ms var(--dec-polish-ease),
    box-shadow 240ms ease, border-color 240ms ease;
}
#main .dec-svc-why-item + .dec-svc-why-item::before { content: none; }
#main .dec-svc-why-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid #d5e8f8;
  border-radius: 13px;
  background: var(--dec-polish-icon-bg);
  color: #145789;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms var(--dec-polish-ease);
}
#main .dec-svc-why-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  stroke-width: 1.85;
  overflow: visible;
}
#main .dec-svc-why-copy {
  flex: 1 1 auto;
  display: block;
  font-size: clamp(14px, 1.11vw, 16px);
  line-height: 1.43;
  font-weight: 700;
  color: var(--dec-polish-ink);
  overflow-wrap: normal;
  text-wrap: pretty;
}
#main .dec-svc-why-item:hover {
  transform: translateY(-4px);
  border-color: #9ebfda;
  box-shadow: 0 17px 35px rgb(12 54 91 / .105);
}
#main .dec-svc-why-item:hover .dec-svc-why-icon {
  background: #0e4978;
  border-color: #0e4978;
  color: #fff;
  transform: scale(1.045);
}

/* SERVICES - Process cards: no step-number circles or floating connectors. */
#main .dec-svc-process {
  padding-block: clamp(50px, 5.6vw, 82px);
}
#main .dec-svc-process-heading { margin-bottom: clamp(22px, 2.2vw, 33px); }
#main .dec-svc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 21px);
  padding: 0;
  margin: 0;
  list-style: none;
}
#main .dec-svc-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 239px;
  padding: clamp(20px, 1.8vw, 27px);
  border: 1px solid var(--dec-polish-line);
  border-top: 3px solid #b7d5e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgb(9 47 85 / .045);
  transition: transform 240ms var(--dec-polish-ease),
    border-color 240ms ease, border-top-color 240ms ease, box-shadow 240ms ease;
}
#main .dec-svc-step:not(:last-child)::after { content: none; }
#main .dec-svc-step-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
#main .dec-svc-step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 0 25px;
  border: 1px solid #d4e6f6;
  border-radius: 14px;
  background: var(--dec-polish-icon-bg);
  color: #13598c;
  transition: transform 240ms var(--dec-polish-ease), background-color 240ms, color 240ms;
}
#main .dec-svc-step-icon svg {
  display: block;
  width: 29px;
  height: 29px;
  stroke-width: 1.85;
  overflow: visible;
}
#main .dec-svc-step h3 {
  margin: 0 0 9px;
  color: var(--dec-polish-ink);
  font-size: clamp(16px, 1.18vw, 18px);
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -.015em;
}
#main .dec-svc-step p {
  margin: 0;
  color: var(--dec-polish-muted);
  font-size: clamp(13px, .99vw, 14px);
  line-height: 1.65;
  font-weight: 440;
  overflow-wrap: break-word;
}
#main .dec-svc-step:hover {
  transform: translateY(-5px);
  border-color: #a7c6df;
  border-top-color: #1d6193;
  box-shadow: 0 18px 36px rgb(9 47 85 / .11);
}
#main .dec-svc-step:hover .dec-svc-step-icon {
  background: #0e4978;
  color: #fff;
  transform: translateY(-2px);
}

/* CONTACT - legible details with one hierarchy for icons, labels and values. */
#main .dec-contact-page-body.container-page {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(26px, 3.5vw, 55px);
  padding-block: clamp(38px, 4.4vw, 66px);
}
#main .dec-contact-page-info { min-width: 0; padding: 0; }
#main .dec-contact-page-info > h2 {
  font-size: clamp(27px, 2.65vw, 37px);
  font-weight: 770;
  line-height: 1.22;
  letter-spacing: -.029em;
}
#main .dec-contact-page-info > p {
  max-width: 58ch;
  margin-top: 11px;
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.65;
  color: var(--dec-polish-muted);
}
#main .dec-contact-page-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: clamp(22px, 2.3vw, 32px);
}
#main .dec-contact-page-info-grid article {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  min-height: 141px;
  gap: 14px;
  padding: clamp(17px, 1.4vw, 22px);
  border: 1px solid var(--dec-polish-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgb(9 45 82 / .045);
  transition: transform 230ms var(--dec-polish-ease),
    border-color 230ms ease, box-shadow 230ms ease;
}
#main .dec-contact-page-info-grid article > span {
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid #d4e7f6;
  border-radius: 12px;
  background: var(--dec-polish-icon-bg);
  color: #125789;
  box-shadow: none;
  transition: background-color 230ms, color 230ms;
}
#main .dec-contact-page-info-grid article svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke-width: 1.85;
}
#main .dec-contact-page-info-grid article > div { flex: 1 1 auto; min-width: 0; }
#main .dec-contact-page-info-grid article strong {
  margin: 1px 0 8px;
  color: #082e54;
  font-size: 13px;
  font-weight: 785;
  line-height: 1.3;
}
#main .dec-contact-page-info-grid article a,
#main .dec-contact-page-info-grid article div > span {
  display: block;
  margin: 0;
  color: #1b3958;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 640;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#main .dec-contact-page-info-grid article small {
  display: block;
  margin-top: 7px;
  color: #5a7087;
  font-size: 12px;
  line-height: 1.47;
}
#main .dec-contact-page-info-grid article:hover {
  transform: translateY(-3px);
  border-color: #aac9df;
  box-shadow: 0 15px 30px rgb(9 45 82 / .1);
}
#main .dec-contact-page-info-grid article:hover > span { background: #0e4978; color: #fff; }
#main .dec-contact-page-info-grid article a:hover { color: #11649d; }
#main .dec-contact-page-socials {
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid #e5ecf3;
}

/* Responsive grids respond to real content widths, not only mobile screen size. */
@media (max-width: 1110px) {
  #main .dec-svc-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .dec-svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .dec-svc-step { min-height: 217px; }
}
@media (min-width: 791px) and (max-width: 1310px) {
  #main .dec-contact-page-info-grid { grid-template-columns: 1fr; }
  #main .dec-contact-page-info-grid article { min-height: 0; }
}
@media (max-width: 790px) {
  #main .dec-contact-page-body.container-page { grid-template-columns: 1fr; gap: 32px; }
  #main .dec-contact-page-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .dec-contact-page-info-grid article { min-height: 142px; }
}
@media (max-width: 640px) {
  #main .dec-svc-why-grid { grid-template-columns: 1fr; gap: 12px; }
  #main .dec-svc-why-item { min-height: 88px; padding: 16px 18px; }
  #main .dec-svc-why-icon { flex-basis: 49px; width: 49px; height: 49px; }
  #main .dec-svc-why-icon svg { width: 24px; height: 24px; }
  #main .dec-svc-why-copy { font-size: 15px; }
  #main .dec-svc-steps { grid-template-columns: 1fr; gap: 14px; }
  #main .dec-svc-step { min-height: 0; padding: 21px; }
  #main .dec-svc-step-icon { flex-basis: 50px; width: 50px; height: 50px; margin-bottom: 16px; }
  #main .dec-svc-step-icon svg { width: 25px; height: 25px; }
  #main .dec-svc-step h3 { font-size: 17px; }
  #main .dec-svc-step p { font-size: 13.5px; }
  #main .dec-contact-page-info-grid { grid-template-columns: 1fr; gap: 12px; }
  #main .dec-contact-page-info-grid article { min-height: 0; gap: 15px; padding: 18px; }
  #main .dec-contact-page-info-grid article a,
  #main .dec-contact-page-info-grid article div > span { font-size: 14px; }
}

/* Scroll reveal progressively enhances three existing pages. No JS = all visible. */
#main .dec-polish-reveal { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  #main .dec-polish-reveal {
    transition: opacity 520ms var(--dec-polish-ease), transform 520ms var(--dec-polish-ease),
      border-color 240ms ease, border-top-color 240ms ease, box-shadow 240ms ease;
    transition-delay: var(--dec-polish-delay, 0ms);
  }
  #main .dec-polish-reveal.dec-polish-pending {
    opacity: 0;
    transform: translateY(17px);
  }
  #main .dec-polish-reveal.dec-polish-visible { opacity: 1; transform: none; }
  #main .dec-polish-reveal.dec-polish-visible:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  #main .dec-polish-reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  #main :is(.dec-svc-why-item, .dec-svc-step, .dec-contact-page-info-grid article):hover,
  #main :is(.dec-svc-why-item, .dec-svc-step):hover :is(.dec-svc-why-icon, .dec-svc-step-icon) {
    transform: none;
  }
}

/* ======================================================================
   DEC QUOTATION + SITE RHYTHM REFINEMENT (2026-10-23 v5)
   Repair mismatched dark-text/light-background legacy quote panel.
   This stylesheet is already loaded after Vite by layouts/storefront.blade.php;
   the filemtime() query string automatically busts the browser cache.
   All updates are presentational: no endpoints, inputs or content change.
   ====================================================================== */
:root {
  --dec-quote-ui-revision: dec-quote-spacing-20261023-v6;
  --dec-section-pad: clamp(22px, 2.6vw, 36px);
  --dec-section-pad-mobile: clamp(18px, 4.8vw, 26px);
  --dec-section-heading-gap: clamp(14px, 1.6vw, 21px);
}

/* Consistent, tighter rhythm across existing DEC public page families. Keep
   hero heights, image sections and specialized workflow interiors intact. */
#main .dec-v3-section,
#main .dec-v3-about,
#main .dec-ref-section,
#main .dec-svc-catalogue,
#main .dec-svc-why,
#main .dec-svc-process {
  padding-block: var(--dec-section-pad);
}
#main .dec-contact-page-body.container-page {
  padding-block: var(--dec-section-pad);
}
#main .dec-v3-impact-content { padding-block: clamp(22px, 2.6vw, 34px); }
#main .dec-v3-heading-row,
#main .dec-svc-catalogue-heading,
#main .dec-svc-why-heading,
#main .dec-svc-process-heading {
  margin-bottom: var(--dec-section-heading-gap);
}
#main .dec-ref-product-info-bottom { padding-block: clamp(20px, 2.3vw, 30px); }
#main .dec-ref-quote-wrap { padding-block: clamp(12px, 1.3vw, 18px) clamp(22px, 2.5vw, 34px); }
#main .dec-ref-inline-cta { padding-block: clamp(18px, 2.1vw, 27px); }
#store-footer .dec-ref-footer-cta-inner { padding-block: clamp(19px, 2.1vw, 29px); }
#store-footer .dec-ref-footer-main { padding-block: clamp(22px, 2.6vw, 36px); }

/* Also cover the catalogue, CTA and detail layouts that predate shared section
   classes. These are exterior gaps; do not compress form or card interiors. */
#main .dec-svc-page .dec-svc-why { padding-block: var(--dec-section-pad); }
#main .dec-ref-listing-wrap {
  padding-top: clamp(16px, 2vw, 26px);
  padding-bottom: clamp(22px, 2.7vw, 38px);
}
#main .dec-ref-section-header { margin-bottom: var(--dec-section-heading-gap); }
#main :is(.dec-ref-cta-bar, .dec-ref-inline-cta) {
  margin-top: clamp(14px, 1.7vw, 23px);
  margin-bottom: clamp(16px, 2vw, 25px);
}
#main .dec-ref-service-copy { margin-top: clamp(18px, 2vw, 26px); }
#main .dec-ref-service-inclusions { margin-top: clamp(18px, 2vw, 26px); }
#main .dec-about-journey {
  padding-top: clamp(14px, 1.7vw, 26px);
  padding-bottom: clamp(15px, 2vw, 30px);
}
#main .dec-about-leadership {
  padding-top: clamp(14px, 1.8vw, 27px);
  padding-bottom: clamp(14px, 1.8vw, 27px);
}

/* The quote form already collects the enquiry. Suppress only the repeated
   promotional CTA on the /quote route; keep the footer and all other CTAs. */
body.dec-page-quote #store-footer .dec-ref-footer-cta { display: none; }

/* Quotation: matching panel heights and clear hierarchy. */
#main .dec-ref-quote-wrap .decbd-quote-page {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: stretch;
  gap: clamp(16px, 2.1vw, 30px);
  margin: 0;
  padding: 0;
}
#main .dec-ref-quote-wrap .decbd-quote-intro {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid #d3e2ef;
  border-radius: 11px !important;
  background: linear-gradient(155deg, #edf6fe 0%, #e9f3fc 55%, #f7fbff 100%) !important;
  color: #173e64;
  box-shadow: 0 12px 32px rgb(15 51 87 / .055);
  overflow: hidden;
}
#main .dec-ref-quote-wrap .decbd-quote-intro::before {
  background: radial-gradient(circle at 100% 0%, rgba(138, 192, 232, .16), transparent 52%);
}
#main .dec-ref-quote-wrap .decbd-quote-intro::after {
  width: 225px;
  height: 225px;
  right: -128px;
  bottom: -120px;
  border-color: rgb(26 94 146 / .1);
}
#main .decbd-quote-intro .decbd-eyebrow { color: #a47535; }
#main .dec-ref-quote-wrap .decbd-quote-intro > h2 {
  margin: clamp(15px, 2vw, 24px) 0 0;
  max-width: 19ch;
  color: #0d3259;
  font-size: clamp(30px, 2.85vw, 42px);
  line-height: 1.17;
  letter-spacing: -.044em;
  font-weight: 790;
  text-wrap: balance;
}
#main .decbd-quote-intro > h2 em { color: #155c91; }
#main .dec-ref-quote-wrap .decbd-quote-intro > p {
  margin: clamp(13px, 1.65vw, 22px) 0 0;
  max-width: 49ch;
  color: #4a6581;
  font-size: clamp(13px, 1.04vw, 14.5px);
  line-height: 1.7;
  font-weight: 420;
}

/* Benefit icons and text sit in intentional, readable rows instead of the
   old numbered list with practically invisible light-on-light labels. */
#main .decbd-quote-points {
  display: grid;
  gap: 11px;
  margin-top: clamp(23px, 2.6vw, 36px);
  border: 0;
}
#main .decbd-quote-point {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 74px;
  padding: 12px 15px;
  border: 1px solid #d5e3f0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 4px 14px rgb(14 59 96 / .045);
  transition: border-color 200ms ease, box-shadow 200ms ease,
              transform 200ms cubic-bezier(.2,.75,.25,1);
}
#main .decbd-quote-point > span { display: none; }
#main .decbd-quote-point > svg {
  box-sizing: content-box;
  display: block;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  padding: 12px;
  border-radius: 10px;
  background: #e6f2fc;
  color: #165b8d;
  stroke-width: 1.8;
  transition: background-color 200ms ease, color 200ms ease;
}
#main .decbd-quote-point > strong {
  min-width: 0;
  color: #173e63;
  font-size: clamp(13px, 1.03vw, 14.5px);
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: break-word;
}
#main .decbd-quote-point:hover {
  border-color: #9abfdd;
  box-shadow: 0 10px 25px rgb(14 59 96 / .09);
  transform: translateY(-2px);
}
#main .decbd-quote-point:hover > svg { color: #fff; background: #165c91; }
#main .decbd-quote-side-note {
  margin-top: auto;
  padding-top: clamp(20px, 2.5vw, 32px);
  color: #5a728b;
  font-size: 10px;
  font-weight: 710;
  letter-spacing: .115em;
  line-height: 1.6;
}
#main .decbd-quote-side-note > span:first-child { display: none; }
#main .decbd-quote-side-note > span:not(:first-child) { margin: 0 8px; color: #b38a52; }

/* The form is unchanged functionally. Only its surface and hint typography
   are refined. Keep input value font >=16px to avoid iOS auto-zoom. */
#main .dec-ref-quote-wrap .decbd-quote-form-wrap {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 2.75vw, 38px);
  border: 1px solid #d8e5f1;
  border-radius: 11px;
  background: #f9fcff;
  box-shadow: 0 12px 32px rgb(15 51 87 / .035);
}
#main .decbd-quote-form-wrap > form { margin-top: clamp(20px, 2.4vw, 29px); }
#main .decbd-quote-page :is(input.field, textarea.field)::placeholder {
  color: #8092a6;
  font-size: 13px;
  font-weight: 420;
  letter-spacing: 0;
  line-height: 1.5;
  opacity: 1;
}
#main .decbd-quote-page select.field:has(option[value=""]:checked) {
  color: #8092a6;
  font-size: 13px;
  font-weight: 420;
  letter-spacing: 0;
  line-height: 1.5;
}
#main .decbd-quote-page :is(input.field, textarea.field, select.field) {
  border-color: #ccdbe8;
  color: #1a3959;
  border-radius: 6px;
}
#main .decbd-quote-page :is(input.field, textarea.field, select.field):focus-visible {
  border-color: #2d75a8;
  outline: 2px solid rgb(30 104 158 / .28);
  outline-offset: 1px;
}

@media (max-width: 900px) {
  #main .dec-ref-quote-wrap .decbd-quote-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #main .dec-ref-quote-wrap .decbd-quote-intro,
  #main .dec-ref-quote-wrap .decbd-quote-form-wrap { height: auto; }
  #main .dec-ref-quote-wrap .decbd-quote-intro { padding: clamp(23px, 5.5vw, 35px); }
  #main .decbd-quote-side-note { margin-top: 0; }
}
@media (max-width: 640px) {
  #main .dec-svc-page .dec-svc-why,
  #main .dec-v3-section,
  #main .dec-v3-about,
  #main .dec-ref-section,
  #main .dec-svc-catalogue,
  #main .dec-svc-why,
  #main .dec-svc-process,
  #main .dec-contact-page-body.container-page { padding-block: var(--dec-section-pad-mobile); }
  #main .dec-ref-quote-wrap .decbd-quote-intro,
  #main .dec-ref-quote-wrap .decbd-quote-form-wrap { padding: 23px 20px; }
  #main .dec-ref-quote-wrap .decbd-quote-intro > h2 { font-size: clamp(29px, 7.1vw, 36px); }
  #main .decbd-quote-points { gap: 9px; margin-top: 21px; }
  #main .decbd-quote-point { min-height: 65px; padding: 10px 12px; gap: 12px; }
  #main .decbd-quote-point > svg { flex-basis: 21px; width: 21px; height: 21px; padding: 10px; }
  #main .decbd-quote-side-note { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #main .decbd-quote-point,
  #main .decbd-quote-point > svg { transition: none; }
  #main .decbd-quote-point:hover { transform: none; }
}


/* v7 hero cleanup: remove eyebrow/kicker accents from hero sections,
   remove the divider line above hero fact rows, and keep title case headings. */
#main .dec-corporate-hero__eyebrow,
#main .dec-about-hero-content > .dec-ref-kicker,
#main .dec-ref-internal-hero-content > .dec-ref-kicker,
#main .dec-brand-hero .dec-ref-kicker,
#main .dec-brand-hero .dec-v3-kicker {
  display: none !important;
}

#main .dec-corporate-hero h1,
#main .dec-about-hero h1,
#main .dec-ref-internal-hero h1,
#main .dec-brand-hero h1 {
  text-transform: none;
}

#main .dec-corporate-hero h1 { margin-top: 0; }
#main .dec-about-hero-content h1,
#main .dec-ref-internal-hero-content h1 { margin-top: 0; }

#main .dec-corporate-hero__features,
#main .dec-brand-hero .dec-v3-trust-row {
  border-top: 0 !important;
}

#main .dec-corporate-hero__features {
  padding-top: clamp(10px, 1.5vw, 18px);
}

#main .dec-brand-hero .dec-v3-trust-row {
  padding-top: 10px;
}


/* v8: Compact Products hero. Change is scoped to /products; equipment and
   the other hero sections retain their existing dimensions and imagery. */
#main .dec-ref-internal-hero.dec-products-page-hero {
  min-height: clamp(235px, 21vw, 295px);
}
#main .dec-ref-internal-hero.dec-products-page-hero::before {
  background-position: center bottom;
}
#main .dec-ref-internal-hero.dec-products-page-hero .dec-ref-internal-hero-content {
  padding-block: clamp(27px, 2.8vw, 42px);
}

@media (max-width: 760px) {
  #main .dec-ref-internal-hero.dec-products-page-hero {
    min-height: 0;
  }
  #main .dec-ref-internal-hero.dec-products-page-hero::before {
    height: clamp(140px, 38vw, 210px);
    background-position: center bottom;
  }
  #main .dec-ref-internal-hero.dec-products-page-hero .dec-ref-internal-hero-content {
    padding-block: 23px 25px;
  }
}


/* v9: Products art keeps its natural aspect ratio (the previous export was
   widened non-proportionally). Keep all three category captions visible
   without changing the approved compact hero height or other page heroes. */
#main .dec-ref-internal-hero.dec-products-page-hero::before {
  background-repeat: no-repeat;
  background-size: auto 125%;
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
}
@media (min-width: 761px) and (max-width: 1024px) {
  #main .dec-ref-internal-hero.dec-products-page-hero::before {
    background-size: auto 112%;
  }
}
@media (max-width: 760px) {
  #main .dec-ref-internal-hero.dec-products-page-hero::before {
    background-size: cover;
    background-position: right bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }
}


/* v10 - Match Home and Services hero subtitle typography to Contact DEC.
   Contact's computed type is Segoe UI / Inter, regular weight, fluid size,
   1.26 line-height, and -0.022em tracking. No heading/content/layout edits. */
:root { --dec-hero-typography-version: dec-hero-subtitles-v10; }
#main .dec-brand-hero.dec-v3-hero .dec-v3-hero-lead,
#main .dec-svc-page .dec-corporate-hero__copy > h2 {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: var(--dec-refinement-subheading, clamp(17px, 1.69vw, 23px));
  font-style: normal;
  font-weight: 470;
  line-height: 1.26;
  letter-spacing: -0.022em;
  color: #08294e;
  text-transform: none;
}
@media (max-width: 760px) {
  #main .dec-brand-hero.dec-v3-hero .dec-v3-hero-lead,
  #main .dec-svc-page .dec-corporate-hero__copy > h2 {
    font-size: clamp(16px, 4.3vw, 20px);
  }
}
/* v12 - Products photo-to-copy blend (direct CSS, no Vite build).
   Corrects v9's abrupt photo edge by anchoring the mask to the visible
   right-aligned image, not to the larger background pseudo-element.
   Maintains proportional scaling and leaves other pages untouched. */
:root { --dec-products-fade-revision: dec-products-fade-v12; }

@media (min-width: 901px) {
  #main .dec-ref-internal-hero.dec-products-page-hero::before {
    background-size: auto 145%;
    background-position: right bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right,
      transparent calc(100% - clamp(700px, 58vw, 815px)),
      rgba(0, 0, 0, .64) calc(100% - clamp(610px, 50vw, 720px)),
      #000 calc(100% - clamp(500px, 39vw, 600px)));
    mask-image: linear-gradient(to right,
      transparent calc(100% - clamp(700px, 58vw, 815px)),
      rgba(0, 0, 0, .64) calc(100% - clamp(610px, 50vw, 720px)),
      #000 calc(100% - clamp(500px, 39vw, 600px)));
  }
  #main .dec-ref-internal-hero.dec-products-page-hero::after {
    background: linear-gradient(to right,
      #f3f8fe 0%,
      #f3f8fe 25%,
      rgba(243, 248, 254, .94) 35%,
      rgba(243, 248, 254, .25) 47%,
      transparent 59%);
  }
}

/* Narrow laptop: protect the complete title/subtitle from the photograph. */
@media (min-width: 901px) and (max-width: 1100px) {
  #main .dec-products-page-hero .dec-ref-internal-hero-content > h2 {
    width: min(46%, 475px);
    max-width: 475px;
  }
  #main .dec-products-page-hero .dec-ref-internal-hero-content > p {
    width: min(44%, 455px);
    max-width: 455px;
  }
  #main .dec-ref-internal-hero.dec-products-page-hero::after {
    background: linear-gradient(to right,
      #f3f8fe 0%, #f3f8fe 33%,
      rgba(243, 248, 254, .97) 42%,
      rgba(243, 248, 254, .40) 53%,
      transparent 75%);
  }
}

/* Tablet: stack the copy and image as on phones, rather than placing dark
   caption text over a photographic tile at the 761-900px boundary. */
@media (min-width: 761px) and (max-width: 900px) {
  #main .dec-ref-internal-hero.dec-products-page-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #main .dec-ref-internal-hero.dec-products-page-hero::before {
    position: relative;
    display: block;
    order: 2;
    inset: auto;
    width: 100%;
    height: clamp(175px, 28vw, 230px);
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
  #main .dec-ref-internal-hero.dec-products-page-hero::after { display: none; }
  #main .dec-ref-internal-hero.dec-products-page-hero .dec-ref-internal-hero-content {
    order: 1;
    padding-block: 22px 24px;
  }
  #main .dec-products-page-hero .dec-ref-internal-hero-content > :is(h1, h2, p) {
    width: 100%;
    max-width: 100%;
  }
}


/* DEC v23: Trusted Global Brands is a static, responsive grid.
   Every admin-managed logo stays visible and proportionally contained.
   Never scroll, auto-pan, mask, or clip this section. Footer partners are separate. */
:root { --dec-partner-display-revision: dec-brands-static-v23; }
#main .dec-about-brands .dec-about-brand-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  grid-auto-flow: row;
  align-items: stretch;
  justify-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  overflow: visible;
  background: #f8fafc;
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  -webkit-mask-image: none;
  mask-image: none;
}
#main .dec-about-brands .dec-about-brand-link {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 82px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e2e9ef;
  border-radius: 7px;
  background: #f0f5f9;
  color: #173a61;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
#main .dec-about-brands .dec-about-brand-link img {
  position: static;
  inset: auto;
  display: block;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 56px;
  max-height: 56px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 0 1px rgba(18, 51, 82, .45));
}
#main .dec-about-brands .dec-about-brand-link img[hidden],
#main .dec-about-brands .dec-about-brand-wordmark[hidden] { display: none !important; }
#main .dec-about-brands .dec-about-brand-wordmark {
  max-width: 100%;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#main .dec-about-brands a.dec-about-brand-link:hover {
  background: #e9f2fa;
  border-color: #bdd4e8;
}
#main .dec-about-brands a.dec-about-brand-link:focus-visible {
  outline: 3px solid #1f72aa;
  outline-offset: -2px;
}
@media (max-width: 580px) {
  #main .dec-about-brands .dec-about-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 9px;
  }
  #main .dec-about-brands .dec-about-brand-link {
    height: 76px;
    min-height: 76px;
    padding: 10px;
  }
  #main .dec-about-brands .dec-about-brand-link img {
    height: 52px;
    max-height: 52px;
  }
}

/* DEC v21: the footer's saturated blue-gradient tiles overwhelmed the real
   logos. Use a restrained neutral-blue paper tint that still gives transparent
   white lettering separation through a fine image shadow. */
#store-footer .dec-ref-footer-partners {
  background: #fff;
  border-bottom: 1px solid #e5ebf1;
}
#store-footer .dec-ref-footer-partners .dec-partners-track {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: max-content;
  min-width: 100%;
}
#store-footer .dec-ref-footer-partners .dec-partners-group {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  min-width: 0;
  gap: clamp(10px, 1.15vw, 16px);
  padding: 0;
}
#store-footer .dec-ref-footer-partners .dec-partners-logo {
  max-width: none;
  min-width: 0;
  flex-basis: clamp(158px, 15.7vw, 210px);
  width: clamp(158px, 15.7vw, 210px);
  height: 82px;
  padding: 13px 17px;
  border: 1px solid #e2eaf1;
  border-radius: 7px;
  background: #f2f6f9;
  box-shadow: none;
  color: #103556;
  transition: background-color .18s ease, border-color .18s ease;
}
#store-footer .dec-ref-footer-partners .dec-partners-logo img {
  display: block;
  flex-shrink: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 1px rgba(15, 41, 66, .55));
}
@media (hover: hover) {
  #store-footer .dec-ref-footer-partners a.dec-partners-logo:hover {
    background: #eaf2f8;
    border-color: #b9cfdf;
    box-shadow: none;
  }
}
@media (max-width: 680px) {
  #store-footer .dec-ref-footer-partners .dec-partners-logo {
    flex-basis: 150px;
    width: 150px;
    height: 72px;
    padding: 12px 14px;
  }
  #store-footer .dec-ref-footer-partners .dec-partners-logo img { max-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  #main .dec-about-brands .dec-about-brand-link,
  #store-footer .dec-ref-footer-partners .dec-partners-logo { transition: none; }
}

/* DEC v25: more breathing room for uploaded manufacturer artwork.
   Note: pixels cut off INSIDE a source file cannot be restored by CSS. */
#main .dec-about-brands .dec-about-brand-grid {
  padding: 6px;
  gap: 8px;
}
#main .dec-about-brands .dec-about-brand-link {
  padding: 6px 5px;
}
#main .dec-about-brands .dec-about-brand-link img {
  width: calc(100% - 8px);
  max-width: 100%;
  height: 62px;
  max-height: calc(100% - 8px);
  object-fit: contain;
  object-position: center;
}
#main .dec-about-brands .dec-about-brand-wordmark {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 750;
  letter-spacing: -.015em;
}
@media (max-width: 580px) {
  #main .dec-about-brands .dec-about-brand-grid { padding: 6px; gap: 8px; }
  #main .dec-about-brands .dec-about-brand-link { padding: 6px; }
  #main .dec-about-brands .dec-about-brand-link img { height: 55px; }
}
