/* ==========================================================================
   DMU Construction — Services page

   Loads on top of css/index.css, which supplies the tokens, base styles,
   header, footer, quick-contact bar, the .index-btn button system, the
   reveal utility and the back-to-top button. Everything here is specific to
   this page: masthead, service grid, process band, contact band, and the
   service enquiry modal.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared container + base
   Mirrors the container rule in index.css so the left content edge is
   identical from the header down to the footer base.
   -------------------------------------------------------------------------- */
.services-masthead__inner,
.services-list__inner,
.services-process__inner,
.services-cta__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* index.css styles h1/h2; this page is the first to use h3 */
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--dmu-navy);
  letter-spacing: -0.015em;
}

.services-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* --------------------------------------------------------------------------
   2. MASTHEAD
   Deliberately not a full-viewport hero: the home page owns that treatment,
   so this is roughly half height and the services come into view at once.
   -------------------------------------------------------------------------- */
.services-masthead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 46vw, 560px);
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(44px, 6vw, 86px);
  background: var(--dmu-navy);
  isolation: isolate;
  overflow: hidden;
}

.services-masthead__media { position: absolute; inset: 0; z-index: 0; }
.services-masthead__media img { width: 100%; height: 100%; object-fit: cover; }

.services-masthead__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 28, 43, .78) 0%, rgba(26, 28, 43, .40) 46%, rgba(26, 28, 43, .90) 100%),
    linear-gradient(90deg, rgba(26, 28, 43, .78) 0%, rgba(26, 28, 43, 0) 70%);
}

.services-masthead__inner { position: relative; z-index: 2; }

/* -- breadcrumb -- */
.services-crumbs { margin-bottom: clamp(18px, 2.4vw, 30px); }
.services-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.services-crumbs li {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.services-crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, .34);
}
.services-crumbs a { transition: color var(--dur-base) var(--ease-out); }
.services-crumbs a:hover { color: #fff; }
.services-crumbs [aria-current="page"] { color: #fff; }

.services-masthead__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #fff;
}
.services-masthead__eyebrow::before {
  content: "";
  width: clamp(32px, 5vw, 64px);
  height: 3px;
  background: var(--dmu-red);
  flex: none;
}

.services-masthead__heading {
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 40px rgba(15, 16, 26, .35);
}

.services-masthead__lead {
  max-width: 56ch;
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
}

/* --------------------------------------------------------------------------
   3. SERVICES GRID
   -------------------------------------------------------------------------- */
.services-list {
  padding-block: var(--sp-section);
  background: var(--dmu-paper);
}

.services-list__head {
  max-width: 62ch;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.services-list__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.services-list__heading { max-width: 18ch; color: var(--dmu-navy); }
.services-list__intro {
  max-width: 54ch;
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: var(--fs-lead);
  line-height: 1.72;
  color: var(--dmu-body);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

/* -- card -- */
.services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--dmu-line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.services-card:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -34px rgba(26, 28, 43, .55);
  transform: translateY(-4px);
}
/* the CTA's hit area covers the whole card, so its own outline would be
   invisible — draw the ring on the card instead */
.services-card:focus-within {
  border-color: var(--dmu-red);
  box-shadow: 0 30px 60px -34px rgba(26, 28, 43, .55);
}

.services-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dmu-sand);
}
.services-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.services-card:hover .services-card__media img { transform: scale(1.09); }

.services-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 28, 43, 0) 42%, rgba(26, 28, 43, .55) 100%);
  opacity: .85;
  transition: opacity var(--dur-base) var(--ease-out);
}
.services-card:hover .services-card__media::after { opacity: 1; }

.services-card__index {
  position: absolute;
  left: 0;
  top: clamp(16px, 2vw, 22px);
  z-index: 2;
  padding: 7px 14px 7px clamp(14px, 1.6vw, 20px);
  background: var(--dmu-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.services-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 2.6vw, 34px) clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 30px);
}

.services-card__title {
  font-size: clamp(1.25rem, 1.06rem + 0.62vw, 1.5rem);
  line-height: 1.24;
  margin-bottom: 14px;
}

.services-card__text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--dmu-body);
}

.services-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2vw, 24px);
}
.services-card__tags li {
  padding: 6px 12px;
  background: var(--dmu-sand);
  border: 1px solid var(--dmu-line);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #4B4F63;
}

/* -- card CTA --
   The ::after stretches over the whole card, so a click anywhere on the card
   opens the enquiry modal while the accessible control stays a real button. */
.services-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: clamp(18px, 2vw, 24px) 0 0;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dmu-navy);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}
.services-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.services-card__cta svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.services-card:hover .services-card__cta { color: var(--dmu-red); }
.services-card:hover .services-card__cta svg { transform: translateX(6px); }
.services-card__cta:focus-visible { outline: none; }

/* -- general-enquiry card closing the grid --
   Seven services plus this tile leaves one empty cell on a 3-up grid, so the
   tile takes the two remaining columns and the last row reads as complete. */
.services-card--cta {
  grid-column: span 2;
  justify-content: center;
  background: var(--dmu-navy);
  border-color: var(--dmu-navy);
}
.services-card--cta:hover,
.services-card--cta:focus-within { transform: none; box-shadow: none; border-color: var(--dmu-navy); }

.services-card__cta-body { padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px); }

.services-card__cta-title {
  font-size: clamp(1.25rem, 1.06rem + 0.62vw, 1.5rem);
  line-height: 1.24;
  color: #fff;
  margin-bottom: 12px;
}
.services-card__cta-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
}
.services-card__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 2.4vw, 28px);
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  /* a 2-column span would force an implicit second column */
  .services-card--cta { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   4. PROCESS BAND
   -------------------------------------------------------------------------- */
.services-process {
  position: relative;
  padding-block: var(--sp-section);
  background: var(--dmu-sand);
  overflow: hidden;
}

/* Sits beside the section head, in the empty right-hand half. Centring it in
   the section would put it behind the fourth step's copy. */
.services-process__watermark {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: clamp(12px, 3vw, 56px);
  width: clamp(200px, 22vw, 330px);
  opacity: .045;
  pointer-events: none;
}
.services-process__watermark img { width: 100%; height: auto; }

.services-process__inner { position: relative; }

.services-process__head { margin-bottom: clamp(40px, 5vw, 70px); }
.services-process__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.services-process__heading { max-width: 14ch; color: var(--dmu-navy); }
.services-process__rule {
  display: block;
  width: clamp(64px, 8vw, 110px);
  height: 3px;
  margin-top: clamp(24px, 3vw, 36px);
  background: var(--dmu-red);
}

.services-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-step { padding-top: clamp(20px, 2.2vw, 28px); border-top: 2px solid var(--dmu-line); }

.services-step__num {
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--dmu-red);
}

.services-step__title {
  font-size: clamp(1.0625rem, 0.99rem + 0.31vw, 1.25rem);
  line-height: 1.3;
  margin-bottom: 10px;
}

.services-step__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--dmu-body);
}

@media (max-width: 991px) {
  .services-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-process__watermark { display: none; }
}
@media (max-width: 575px) {
  .services-steps { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   5. CONTACT / CTA BAND
   -------------------------------------------------------------------------- */
.services-cta {
  padding-block: clamp(60px, 7vw, 110px);
  background: var(--dmu-navy);
}

.services-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.services-cta__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.services-cta__heading { color: #fff; max-width: 18ch; }
.services-cta__text {
  max-width: 56ch;
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
}
.services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.services-cta__details {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin: 0;
  padding: clamp(24px, 2.6vw, 34px);
  list-style: none;
  border: 1px solid var(--dmu-line-dark);
}
.services-cta__detail { display: grid; gap: 7px; }
.services-cta__detail-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.services-cta__detail-value {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  transition: color var(--dur-base) var(--ease-out);
}
a.services-cta__detail-value:hover { color: rgba(255, 255, 255, .7); }

@media (max-width: 991px) {
  .services-cta__inner { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   6. ENQUIRY MODAL
   -------------------------------------------------------------------------- */
.services-modal {
  position: fixed;
  inset: 0;
  /* the overlay must clear every other layer on the site: the sticky header
     (index.css, 300) and stellarnav's fixed/mobile states (stellarnav.css,
     up to 9999). Anything lower and the nav paints over the backdrop. */
  z-index: 10000;
  /* inset:0 already sizes it; the explicit w/h stops a stray inherited width
     from shrinking the backdrop, and dvh tracks the mobile address bar */
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 44px);
  /* the panel scrolls internally; the overlay itself never does */
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}
/* JS removes [hidden] one frame before adding .is-open, so the panel has a
   state to transition from */
.services-modal[hidden] { display: none; }
.services-modal.is-open { opacity: 1; visibility: visible; }

.services-modal__backdrop {
  /* fixed, not absolute: stays pinned to the viewport however the overlay
     or panel is sized */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(20, 22, 35, .76);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.services-modal__panel {
  position: relative;
  width: min(640px, 100%);
  /* 100% of the flex line, already inset by the overlay padding, so the
     panel never touches the screen edge and only it scrolls */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.4vw, 48px) clamp(26px, 3.4vw, 44px);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 50px 90px -40px rgba(10, 11, 20, .7);
  transform: translateY(24px) scale(.985);
  transition: transform var(--dur-base) var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.services-modal.is-open .services-modal__panel { transform: none; }

.services-modal__close {
  position: absolute;
  top: clamp(12px, 1.6vw, 18px);
  right: clamp(12px, 1.6vw, 18px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--dmu-sand);
  color: var(--dmu-navy);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.services-modal__close svg { width: 17px; height: 17px; }
.services-modal__close:hover { background: var(--dmu-red); color: #fff; }

.services-modal__head { margin-bottom: clamp(22px, 2.6vw, 32px); padding-right: 44px; }
/* once the enquiry is in, the form's instructions no longer apply and the
   confirmation carries its own heading */
.services-modal__panel.is-done .services-modal__head { display: none; }

.services-modal__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}

.services-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--dmu-navy);
}

.services-modal__intro {
  margin-top: 12px;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--dmu-body);
}

/* the service the user clicked, echoed back so the association is visible */
.services-modal__chip[hidden] { display: none; }
.services-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  background: var(--dmu-sand);
  border-left: 3px solid var(--dmu-red);
}
.services-modal__chip-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dmu-muted);
}
.services-modal__chip-value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--dmu-navy);
}

/* -- form -- */
.services-form[hidden] { display: none; }
.services-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.services-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.services-field--full { grid-column: 1 / -1; }

.services-field__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dmu-navy);
}
.services-field__req { color: var(--dmu-red); }

.services-field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--dmu-line);
  border-radius: 2px;
  background: #FCFBFA;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dmu-ink);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.services-field__input::placeholder { color: #A8ACBB; }
.services-field__input:hover { border-color: #CFCCC7; }
.services-field__input:focus {
  border-color: var(--dmu-red);
  background: #fff;
  outline: none;
}

textarea.services-field__input { resize: vertical; min-height: 118px; }

.services-field__select { position: relative; display: flex; }
.services-field__select select { flex: 1; min-width: 0; padding-right: 42px; cursor: pointer; }
.services-field__select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--dmu-navy);
  pointer-events: none;
}

.services-field.is-invalid .services-field__input { border-color: var(--dmu-red); background: #FDF7F6; }
.services-field__error {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dmu-red);
}

.services-form__actions {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: clamp(4px, 1vw, 10px);
}
.services-form__note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dmu-muted);
}

@media (max-width: 575px) {
  .services-form { grid-template-columns: minmax(0, 1fr); }
  .services-form__actions { flex-direction: column; align-items: stretch; }
  .services-form__actions .index-btn { width: 100%; }
}

/* -- success state -- */
.services-modal__done[hidden] { display: none; }
.services-modal__done { text-align: center; padding-block: clamp(10px, 2vw, 22px); }

.services-modal__done-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto clamp(18px, 2.2vw, 26px);
  border-radius: 50%;
  background: var(--dmu-sand);
  color: var(--dmu-red);
}
.services-modal__done-mark svg { width: 26px; height: 26px; }

.services-modal__done-title {
  font-size: clamp(1.1875rem, 1.06rem + 0.62vw, 1.4375rem);
  line-height: 1.24;
  margin-bottom: 10px;
}
.services-modal__done-text {
  max-width: 44ch;
  margin: 0 auto clamp(22px, 2.6vw, 30px);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--dmu-body);
}

/* Scroll lock. --sb-gap is the width of the scrollbar that overflow:hidden
   removes; adding it back as padding stops the page and the two fixed
   elements jumping sideways when the modal opens. */
html.is-modal-open,
body.is-modal-open { overflow: hidden; }
/* iOS Safari ignores overflow:hidden on body alone, so the JS also pins the
   body with position:fixed and restores the scroll offset on close */
body.is-modal-open { width: 100%; padding-right: var(--sb-gap, 0px); }
body.is-modal-open .index-header { padding-right: var(--sb-gap, 0px); }
body.is-modal-open .index-totop { margin-right: var(--sb-gap, 0px); }

/* --------------------------------------------------------------------------
   7. Quick-contact bar
   index.css clears the bar for .index-page only; the bar is on this page too.
   Its "Enquire" control is a <button> here rather than a link to contact.html,
   so it needs the default button borders taken off.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.services-page { padding-bottom: 60px; }
}

button.index-quickbar__item {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   8. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .services-card,
  .services-card__media img,
  .services-modal__panel,
  .services-card__cta svg {
    transition: none !important;
    transform: none !important;
  }
  .services-card:hover { transform: none; }
  .services-card:hover .services-card__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE REFINEMENTS — laptop tier + small-screen hardening
   Adds the missing 1200–1400px step and hardens the modal/form below 400px.
   -------------------------------------------------------------------------- */

/* -- laptop: three cards and four steps both tighten before they drop -- */
@media (max-width: 1320px) {
  .services-grid { gap: clamp(16px, 1.6vw, 24px); }
  .services-steps { gap: clamp(18px, 2vw, 30px); }
}

/* -- laptop: four process steps are too narrow to hold a line of copy -- */
@media (max-width: 1199px) {
  .services-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -- short screens: tighten the frame so the panel keeps more of the height.
   The panel still does the scrolling; the overlay never scrolls, or the fixed
   backdrop would slide out from under the content. -- */
@media (max-height: 620px) {
  .services-modal { padding-block: 10px; }
}

@media (max-width: 479px) {
  .services-cta__detail-value,
  .services-modal__chip-value { overflow-wrap: anywhere; }
  .services-cta__heading { max-width: 100%; }
  .services-cta__actions .index-btn { width: 100%; justify-content: center; }
}

@media (hover: none) {
  .services-card:hover { transform: none; }
  .services-card:hover .services-card__media img { transform: none; }
}
