/* ==========================================================================
   We Make Websites Better · page styles
   Loaded after styles.css (the AI Website Design system) and chrome.css
   (the Search Funnels header and footer). Same tokens, same 2px corners.

   Sections follow the page, top to bottom:
     0. Running inside Drupal
     1. Base and text measure
     2. Hero
     3. Slim sections (shared head and closing row)
        How We Use AI (card)
     4. Your Business Deserves
     5. AI Is a Great Tool
     6. Try Before You Buy
     7. Website Worth Marketing
     8. Nearly 30 Years
     9. Contact form
    10. Phone call bar
    11. Breakpoints (widest first)
    12. Large screens (QHD, 4K, 5K)
   ========================================================================== */

/* 0. Running inside Drupal
   --------------------------------------------------------------------------
   The live page is pasted into the .field--name-field-html-code field of the
   imageworkscreative.com theme (Bootstrap 3 plus its own CSS). Same rules as
   the Search Funnels page:
   - classes, custom properties and keyframes carry the wm- prefix, so the
     theme's .btn, .lead, .wrap and its --navy/--green/--blue can't reach them;
   - element rules sit inside :where(.wm-scope) (see styles.css, Base);
   - sizes are in px, so the theme's html { font-size: 10px } changes nothing;
   - the wrapper is #wm-main with .html-wrapper. Never id="main" or the class
     "section": the theme caps both at 975-1000px. */

/* Staging only: Drupal's body has no margin already. */
body { margin: 0; }

/* Clears the theme's floated main menu so the hero keeps its full width. */
#wm-main { display: block; clear: both; width: 100%; }

/* The theme sets overflow-x: hidden on the field, which turns it into a
   scroll container and stops position: sticky (the Try Before You Buy
   column). clip keeps the overflow hidden without that side effect. */
.field--name-field-html-code:has(> #wm-main) { overflow-x: clip; }

html:has(#wm-main) { scroll-behavior: smooth; }

/* Bootstrap's a:hover (0,1,1) recolours links; the buttons restate their
   own colours on hover and focus so the theme can't win there. */
.wm-btn--solid:is(:hover, :focus) { color: #fff; }
.wm-btn--quiet:is(:hover, :focus) { color: var(--wm-navy); }


/* 1. Base and text measure
   --------------------------------------------------------------------------
   No line of copy runs past 60% of the content width (the shell minus its
   gutters, about 660px on a desktop). Narrow columns are already under
   that, so the cap only bites on full-width copy. */

:root {
  --wm-text-60: calc((min(100vw, var(--wm-shell)) - 2 * var(--wm-gutter)) * .6);
}

#wm-main [id] { scroll-margin-top: 96px; }

#wm-main :is(p, .wm-sec-title, dt, dd) {
  max-width: min(var(--wm-text-60), 100%);
}

/* 2. Hero
   -------------------------------------------------------------------------- */

.wm-hero h1 { text-wrap: nowrap; }

.wm-hero .wm-hero-sub { max-width: 60ch; }

/* copy on the left, a small graphic on the right */
.wm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* the hero graphic: one upward curve from today to a lot better, floating
   free on the hero washes (no card), its three words as tags. */
.wm-lift {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  padding: 34px 0 0;
}

.wm-lift__chart { display: block; width: 100%; height: auto; overflow: visible; }

.wm-lift__base { stroke: rgba(20, 60, 102, .14); stroke-width: 1.5; }

.wm-lift__grid { stroke: rgba(20, 60, 102, .07); stroke-width: 1; stroke-dasharray: 2 5; }

/* the site nobody touches: flat, grey, dashed */
.wm-lift__flat {
  fill: none;
  stroke: #b8c4d4;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

/* three milestones on the way up, from the improvements the page lists */
.wm-lift__stem { stroke: rgba(92, 154, 46, .35); stroke-width: 1.5; stroke-dasharray: 2 3; }

.wm-lift__node { fill: var(--wm-white); stroke: var(--wm-green); stroke-width: 2.5; }

.wm-lift__chip {
  fill: var(--wm-white);
  stroke: var(--wm-border);
  stroke-width: 1;
  filter: drop-shadow(0 3px 6px rgba(20, 40, 80, .12));
}

.wm-lift__step use { color: var(--wm-blue); }

.wm-lift__txt {
  fill: var(--wm-navy);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
}

.wm-lift__txt--end { text-anchor: end; }

.wm-lift__area { fill: var(--wm-green); opacity: .12; }

.wm-lift__line {
  fill: none;
  stroke: var(--wm-green);
  stroke-width: 4;
  stroke-linecap: round;
}

.wm-lift__from { fill: var(--wm-white); stroke: #b8c4d4; stroke-width: 3; }

.wm-lift__halo { fill: var(--wm-green); opacity: .18; }

.wm-lift__to { fill: var(--wm-green); stroke: var(--wm-white); stroke-width: 3; }

/* the three words as tags */
.wm-lift__tag {
  position: absolute;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(20, 40, 80, .06), 0 6px 16px rgba(20, 40, 80, .1);
}

.wm-lift__tag--site {
  top: 0;
  left: 0;
  background: var(--wm-white);
  color: var(--wm-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wm-lift__tag--from {
  left: -6px;
  bottom: 14px;
  background: var(--wm-white);
  color: var(--wm-muted);
}

.wm-lift__tag--to {
  right: -10px;
  top: 4px;
  background: var(--wm-green);
  color: var(--wm-white);
}

/* it floats: a slow rise and fall, the chart and its tags together */
@media (prefers-reduced-motion: no-preference) {
  .wm-lift { animation: wm-lift-float 6s ease-in-out 2s infinite; }
}

@keyframes wm-lift-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* the line draws itself once on load */
@media (prefers-reduced-motion: no-preference) {
  .wm-lift__line { stroke-dasharray: 320; stroke-dashoffset: 320; animation: wm-lift-draw 1.4s .5s var(--wm-ease) forwards; }
  .wm-lift__halo,
  .wm-lift__to { opacity: 0; animation: wm-lift-pop .4s 1.7s var(--wm-ease) forwards; }
  .wm-lift__step { opacity: 0; animation: wm-lift-pop .45s var(--wm-ease) forwards; }
  .wm-lift__step--1 { animation-delay: 1s; }
  .wm-lift__step--2 { animation-delay: 1.25s; }
  .wm-lift__step--3 { animation-delay: 1.5s; }
  .wm-lift__halo { animation-name: wm-lift-halo; }
}

@keyframes wm-lift-draw { to { stroke-dashoffset: 0; } }

@keyframes wm-lift-pop { to { opacity: 1; } }

@keyframes wm-lift-halo { to { opacity: .18; } }

/* 3. Slim sections
   --------------------------------------------------------------------------
   Shorter bands, the title stacked over its paragraph, and a closing row. */

.wm-band--slim { padding-block: clamp(52px, 6vw, 80px); }

.wm-slim-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.wm-slim-head .wm-sec-title { margin: 0; max-width: 32ch; }

.wm-slim-head .wm-lead { margin: 0; max-width: 72ch; font-size: 17px; line-height: 1.7; }

.wm-slim-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 40px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--wm-border);
}

.wm-slim-foot > p {
  flex: 1 1 420px;
  max-width: 64ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--wm-muted);
}

.wm-slim-foot > p strong { color: var(--wm-navy); font-weight: 700; }

/* the closing text with its button underneath, no rule above */

.wm-slim-foot--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 0;
  border-top: 0;
}

.wm-slim-foot--stack > p { flex: none; }

/* How We Use AI: one white card on the tint, the copy inside. Same card as
   the marketing services (no border, soft shadow), so the page keeps one
   card language. */
.wm-ai-card {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3.6vw, 44px);
  text-align: left;
  background: var(--wm-white);
  border-radius: var(--wm-r);
  box-shadow: 0 1px 2px rgba(20, 40, 80, .05), 0 8px 24px rgba(20, 40, 80, .07);
}

.wm-ai-card .wm-sec-title { margin: 0 0 12px; }

/* "slim" here means short: inside this card the copy runs the card's full
   width (an exception to the 60% measure) so it takes fewer lines */
#wm-main .wm-ai-card :is(.wm-sec-title, p) { max-width: none; }

.wm-ai-card .wm-lead { margin: 0; font-size: 17px; line-height: 1.7; }

.wm-ai-card .wm-lead + .wm-lead { margin-top: 12px; }

#wm-main .wm-ai-lead { color: var(--wm-ink); }

.wm-ai-close {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--wm-border);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--wm-navy);
}


/* 4. Your Business Deserves
   --------------------------------------------------------------------------
   The five improvements as a list in two columns, split by hairlines. */

.wm-feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  width: 100%;
  max-width: min(var(--wm-text-60), 100%);
  margin: 28px 0 0;
  padding: 0;
}

.wm-feat-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--wm-border);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wm-navy);
}

.wm-feat-list li:nth-child(-n+2) { border-top: 1px solid var(--wm-border); }

.wm-feat-list svg { flex: none; width: 20px; height: 20px; color: var(--wm-green-ink); }

/* 5. AI Is a Great Tool
   --------------------------------------------------------------------------
   AI and the team as one strip in two columns, then the three "No" lines
   on one row. */

.wm-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px clamp(32px, 5vw, 72px);
  margin-top: 36px;
  padding: 24px clamp(20px, 3vw, 32px);
  background: var(--wm-white);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-r);
  box-shadow: var(--wm-shadow-flat);
}

.wm-duo__col p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--wm-muted); }

.wm-duo__col .wm-duo__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wm-navy);
}

.wm-duo__ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wm-tint-blue);
  color: var(--wm-blue);
}

.wm-duo__ic--team { background: var(--wm-chip-green); color: var(--wm-green-ink); }

.wm-duo__ic svg { width: 16px; height: 16px; }

.wm-nos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

.wm-nos li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wm-navy);
}

.wm-nos svg { flex: none; width: 14px; height: 14px; color: var(--wm-danger-ink); }

/* 6. Try Before You Buy
   --------------------------------------------------------------------------
   One column: the offer, the six steps on a vertical numbered rail at text
   width, then the result and the call. */

.wm-tbl__title { max-width: none; }

/* the list and the closing row share the copy's measure */
.wm-tbl .wm-tbl__list,
.wm-tbl__end { max-width: min(calc(var(--wm-text-60) + 60px), 100%); }

.wm-tbl .wm-tbl__list { margin-top: 28px; }

.wm-tbl__end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--wm-border);
}

.wm-tbl__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wm-muted);
}

.wm-tbl__stat b {
  flex: none;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--wm-green-ink);
}

.wm-tbl__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.wm-btn-note {
  align-self: center;
  font-size: 14px;
  font-style: italic;
  color: var(--wm-faint);
}

/* The six steps on a vertical rail, after the Facelift page's "How It
   Works": a numbered circle per step, one line joining them from the first
   to the last, and the circle filling in on hover. */
.wm-tbl__list {
  --wm-num: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wm-tbl__list > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--wm-num) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 0 0 30px;
}

.wm-tbl__list > li:last-child { padding-bottom: 0; }

/* the rail: from under this circle down to the next one */
.wm-tbl__list > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--wm-num) / 2 - 1px);
  top: var(--wm-num);
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--wm-green), var(--wm-blue));
  opacity: .4;
}

.wm-tbl__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--wm-num);
  height: var(--wm-num);
  border: 3px solid var(--wm-chip-blue);
  border-radius: 50%;
  background: var(--wm-white);
  box-shadow: var(--wm-shadow-flat);
  color: var(--wm-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color .35s var(--wm-ease), border-color .35s var(--wm-ease),
              color .35s var(--wm-ease), transform .35s var(--wm-ease);
}

.wm-tbl__list > li:first-child .wm-tbl__n { border-color: var(--wm-green); }

.wm-tbl__list > li:hover .wm-tbl__n {
  border-color: var(--wm-navy);
  background: var(--wm-navy);
  color: var(--wm-white);
  transform: scale(1.06);
}

/* the copy sits level with the middle of its circle */
.wm-tbl__list > li > div { padding-top: 12px; }

#wm-main .wm-tbl__list h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.2px;
  color: var(--wm-navy);
}

#wm-main .wm-tbl__list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wm-muted); }

/* Step 5, the custom design layer, is the step that matters most: a pale
   green ground, its three points on small green dots, and a closing line. */
.wm-tbl__list > li.wm-tbl__key {
  margin: -14px -18px 16px;
  padding: 14px 18px 20px;
  border-radius: var(--wm-r);
  background: var(--wm-chip-green);
}

/* inside the green ground the rail starts from the padded circle */
.wm-tbl__list > li.wm-tbl__key::after {
  left: calc(18px + var(--wm-num) / 2 - 1px);
  top: calc(14px + var(--wm-num));
  bottom: -16px;
}

/* and the short piece above it, so the line from step 4 reaches circle 5 */
.wm-tbl__list > li.wm-tbl__key::before {
  content: '';
  position: absolute;
  left: calc(18px + var(--wm-num) / 2 - 1px);
  top: 0;
  height: 14px;
  width: 2px;
  background: var(--wm-blue);
  opacity: .4;
}

.wm-tbl__key .wm-tbl__n {
  border-color: var(--wm-green);
  background: var(--wm-green);
  color: var(--wm-white);
}
.wm-tbl__sub { list-style: none; margin: 10px 0 0; padding: 0; }
#wm-main .wm-tbl__sub li {
  display: block;
  position: relative;
  margin: 0;
  padding: 0 0 0 16px;
  border: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wm-muted);
}
#wm-main .wm-tbl__sub li + li { margin-top: 6px; }
.wm-tbl__sub li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wm-green-ink);
}
#wm-main .wm-tbl__list .wm-tbl__close { margin-top: 10px; font-weight: 700; color: var(--wm-navy); }

/* 7. Website Worth Marketing
   --------------------------------------------------------------------------
   One column. The argument, the four places people find you as a checked
   list, then the services as tiles and the call. */

/* the four ways people find you: text on a check, like the "No" lines in
   Nearly 30 Years, in the light band's colours. Two on each side, sized to
   their text so the two columns sit close. */
.wm-checks {
  list-style: none;
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 12px 56px;
  margin: 28px 0 0;
  padding: 0;
}

#wm-main .wm-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wm-navy);
}

.wm-checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--wm-chip-green);
  color: var(--wm-green-ink);
}

#wm-main .wm-checks-close {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--wm-navy);
}

/* the right marketing: a short head over the grid */
.wm-mk-sub { margin-top: 64px; }

#wm-main .wm-mk-sub h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: var(--wm-navy);
}

#wm-main .wm-mk-sub p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--wm-muted); }

/* the services: an open index, no boxes. One row per service across the
   width (icon, name, description), split only by hairlines. On hover the
   name turns green and the icon steps in. */
.wm-svc {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid rgba(20, 60, 102, .14);
}

#wm-main .wm-svc li {
  display: grid;
  grid-template-columns: 44px minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 0 28px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(20, 60, 102, .14);
}

.wm-svc__ic {
  display: block;
  color: var(--wm-blue);
  transition: color .3s var(--wm-ease), transform .3s var(--wm-ease);
}

.wm-svc__ic svg { display: block; width: 28px; height: 28px; }

#wm-main .wm-svc h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: var(--wm-navy);
  transition: color .3s var(--wm-ease);
}

#wm-main .wm-svc p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--wm-muted); }

#wm-main .wm-svc li:hover h4 { color: var(--wm-green-ink); }

#wm-main .wm-svc li:hover .wm-svc__ic { color: var(--wm-green-ink); transform: translateX(4px); }

.wm-svc-cta { margin-top: 32px; }


/* 8. Nearly 30 Years
   --------------------------------------------------------------------------
   The three "No" lines sit under the copy, unboxed, and the 1997 card is
   centred against the whole left column. */

/* on the deep blue band the heading's accent takes the brighter brand green;
   the darker one is for light grounds and loses contrast here */
.wm-band--deep .wm-sec-title em { color: var(--wm-green); }

.wm-band--exp { padding-block: clamp(52px, 6.4vw, 88px); }

.wm-price-copy .wm-sec-title { margin: 0 0 4px; }

.wm-exp-rate { align-self: center; }

.wm-exp-nos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
}

.wm-exp-nos li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wm-white);
}

.wm-exp-nos svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 138, 128, .16);
  color: #ff8a80;
}

/* 9. Contact form
   -------------------------------------------------------------------------- */

.wm-contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

.wm-contact__copy { display: flex; flex-direction: column; gap: 16px; }

.wm-contact__copy .wm-sec-title { margin: 0; }

.wm-form-card {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--wm-white);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-r);
  box-shadow: var(--wm-shadow-card);
}

.wm-form-card__title {
  margin: 0 0 22px;
  font-size: var(--wm-step-2);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--wm-navy);
}

.wm-fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.wm-field { min-width: 0; margin-bottom: 16px; }

.wm-field--full { grid-column: 1 / -1; }

.wm-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wm-navy);
}

.wm-field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c2ccdb;
  border-radius: var(--wm-r);
  background: var(--wm-white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--wm-ink);
  transition: border-color .2s, box-shadow .2s;
}

.wm-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23143c66' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.wm-field textarea { min-height: 110px; resize: vertical; }

.wm-field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--wm-navy);
  box-shadow: var(--wm-ring);
}

.wm-err { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--wm-danger-ink); }

.wm-field.is-error :is(input, select) { border-color: var(--wm-danger-ink); }

.wm-field.is-error .wm-err { display: block; }

.wm-form-card__submit { width: 100%; margin-top: 4px; }

.wm-form-card__ok {
  display: none;
  padding: 28px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--wm-navy);
}

.wm-form-card__alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--wm-muted); }

.wm-form-card__alt a { color: var(--wm-blue); font-weight: 700; }

/* once sent, the form gives way to the thank-you line (set by page.js) */

.wm-form-card.is-sent form { display: none; }

.wm-form-card.is-sent .wm-form-card__ok { display: block; }

/* 10. Phone call bar
   --------------------------------------------------------------------------
   Hidden while the hero buttons or the form are on screen (page.js). */

.wm-mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--wm-white);
  box-shadow: 0 -8px 24px rgba(20, 40, 80, .14);
  transform: translateY(110%);
  transition: transform .25s var(--wm-ease);
}

.wm-mbar.is-on { transform: none; }

.wm-mbar .wm-btn { width: 100%; }

/* 11. Breakpoints (widest first)
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  #wm-main .wm-svc li { grid-template-columns: 40px minmax(0, 240px) minmax(0, 1fr); gap: 0 20px; }
  .wm-feat-list { max-width: 100%; }

  .wm-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .wm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wm-lift { justify-self: start; }
  .wm-br-d { display: none; }
}

@media (max-width: 760px) {
  #wm-main :is(p, .wm-sec-title, dt, dd),
  .wm-feat-list,
  .wm-tbl .wm-tbl__list,
  .wm-tbl__end { max-width: 100%; }
  .wm-tbl__stat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wm-checks { grid-template-rows: none; grid-auto-flow: row; }
  .wm-hero h1 { font-size: clamp(20px, 6.6vw, 46px); }
  .wm-mbar { display: block; }
  .sf-footer { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  /* every call to action spans the column, like the hero's */
  .wm-btn-row .wm-btn,
.wm-slim-foot--stack .wm-btn,
.wm-tbl__cta .wm-btn { width: 100%; }
  .wm-duo { grid-template-columns: minmax(0, 1fr); }
  .wm-fgrid { grid-template-columns: minmax(0, 1fr); }
  /* phones: icon beside the name, the description under it */
  #wm-main .wm-svc li {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 4px 14px;
    padding: 18px 0;
  }
  .wm-svc__ic { grid-row: 1 / 3; padding-top: 2px; }
  .wm-svc__ic svg { width: 24px; height: 24px; }
  #wm-main .wm-svc h4 { font-size: 17px; }
  #wm-main .wm-svc p { font-size: 15px; }
  .wm-svc-cta .wm-btn { width: 100%; }
  .wm-feat-list { grid-template-columns: minmax(0, 1fr); }
  .wm-feat-list li:nth-child(2) { border-top: 0; }
}

/* 12. Large screens
   --------------------------------------------------------------------------
   Scale the whole layout, header and footer included, so it keeps its
   proportions on QHD, 4K (3840px) and 5K (5120px) displays instead of
   shrinking into a narrow column. Same steps as the Search Funnels page. */

@media (min-width: 2200px) {
  html:has(#wm-main) { zoom: 1.25; }
}

@media (min-width: 2800px) {
  html:has(#wm-main) { zoom: 1.5; }
}

@media (min-width: 3400px) {
  html:has(#wm-main) { zoom: 1.85; }
}

@media (min-width: 4400px) {
  html:has(#wm-main) { zoom: 2.4; }
}
