/* ============================================================
   WILDMAN - Components
   Buttons, cards, badges, the signature glow, media frames.
   ============================================================ */

.wm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--wm-font-heading);
  font-size: var(--wm-text-base);
  font-weight: var(--wm-weight-semibold);
  padding: 16px 28px;
  border-radius: var(--wm-radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: box-shadow var(--wm-transition-spring),
              transform var(--wm-transition-spring),
              background var(--wm-transition-spring),
              border-color var(--wm-transition-spring);
}
/* A label that cannot wrap sets a min-content floor no grid track can
   shrink past, so one long button (an email address) was widening its whole
   column past the phone. Cap the box. */
.wm-btn { max-width: 100%; justify-content: center; }
.wm-btn svg { flex-shrink: 0; }
.wm-btn--sm { font-size: var(--wm-text-sm); padding: 11px 20px; }

.wm-btn--primary { background: var(--wm-gradient-blue); color: #fff; }
.wm-btn--primary:hover {
  box-shadow: var(--wm-shadow-button);
  transform: translateY(-3px);
  color: #fff;
}

.wm-btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--wm-fg);
  border: 1px solid var(--wm-rule);
}
.wm-btn--outline:hover {
  border-color: var(--wm-border-hover);
  background: rgba(12, 86, 191, 0.10);
  color: var(--wm-fg);
}

/* On light bands the outline button needs dark ink and a visible edge. */
.wm-theme-light .wm-btn--outline {
  background: transparent;
  border-color: var(--wm-border-light);
  color: var(--wm-text-dark);
}
.wm-theme-light .wm-btn--outline:hover {
  border-color: var(--wm-border-light-blue);
  background: rgba(12, 86, 191, 0.06);
}

/* Inverse - used on the solid blue CTA bands. */
.wm-btn--inverse { background: #fff; color: var(--wm-blue); }
.wm-btn--inverse:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  color: var(--wm-blue);
}

/* Cards */

.wm-card {
  background: var(--wm-surface-card);
  border: 1px solid var(--wm-rule);
  border-radius: var(--wm-radius-card);
  padding: var(--wm-space-lg);
  transition: border-color var(--wm-transition), transform var(--wm-transition-spring);
}
.wm-card--blue {
  background: var(--wm-gradient-card-blue);
  border-color: var(--wm-border-blue);
}
.wm-card--frosted {
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.10);
}
.wm-theme-light .wm-card { box-shadow: var(--wm-shadow-card); }

.wm-card__title {
  font-family: var(--wm-font-heading);
  font-size: var(--wm-text-lg);
  font-weight: var(--wm-weight-semibold);
  line-height: 1.4;
  color: var(--wm-fg);
}
.wm-card__body {
  font-family: var(--wm-font-body);
  font-size: var(--wm-text-base);
  line-height: 1.6;
  color: var(--wm-fg-soft);
  margin-top: 10px;
}

/* Signature glow - pointer position written to --glow-x/--glow-y by app.js.
   No mouseleave reset, so the glow trails off the edge cleanly. */

.wm-glow { position: relative; overflow: hidden; }
.wm-glow::before {
  content: '';
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
    rgba(12, 86, 191, 0.40) 0%,
    rgba(12, 86, 191, 0.10) 40%,
    transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--wm-transition);
  pointer-events: none;
  z-index: 1;
}
.wm-glow:hover::before { opacity: 1; }
.wm-glow:hover { border-color: var(--wm-border-hover); }
.wm-glow > * { position: relative; z-index: 2; }
.wm-glow--lift:hover { transform: translateY(-4px); }

.wm-theme-light .wm-glow::before {
  background: radial-gradient(circle,
    rgba(12, 86, 191, 0.14) 0%,
    rgba(12, 86, 191, 0.05) 40%,
    transparent 70%);
}
.wm-theme-light .wm-glow:hover { border-color: var(--wm-border-light-blue); }

/* Touch devices keep :hover latched after a tap, so the cursor glow and the
   lift stay stuck on the last card touched. Neither belongs on a phone. */
@media (hover: none) {
  .wm-glow::before,
  .wp-block-group.is-style-wm-glow::before,
  .wp-block-column.is-style-wm-glow::before { display: none; }

  .wm-glow--lift:hover,
  .wp-block-group.is-style-wm-glow:hover,
  .wp-block-column.is-style-wm-glow:hover { transform: none; }
}

/* Icon container */

.wm-icon {
  width: 48px;
  height: 48px;
  background: var(--wm-gradient-blue);
  border-radius: var(--wm-radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.wm-icon--sm { width: 38px; height: 38px; border-radius: 10px; }

/* Badges */

.wm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--wm-radius-pill);
  font-family: var(--wm-font-heading);
  font-size: var(--wm-text-xs);
  font-weight: var(--wm-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wm-badge--blue { background: var(--wm-gradient-blue); color: #fff; }
.wm-badge--outline {
  background: transparent;
  border: 1px solid var(--wm-border-blue);
  color: var(--wm-blue-bright);
}

/* Media frames */

.wm-frame {
  position: relative;
  width: 100%;
  border-radius: var(--wm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wm-rule);
  background: #04070d;
}
.wm-frame--16x9  { aspect-ratio: 16 / 9; }
.wm-frame--16x10 { aspect-ratio: 16 / 10; }
.wm-frame--4x3   { aspect-ratio: 4 / 3; }
.wm-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder where an image slot has no image yet - visible in the
   editor and on the front end so gaps are obvious. */
.wm-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--wm-font-body);
  font-size: var(--wm-text-sm);
  color: var(--wm-text-muted);
  background:
    linear-gradient(135deg, rgba(12, 86, 191, 0.12), rgba(3, 5, 8, 0.6)),
    repeating-linear-gradient(45deg, transparent, transparent 12px,
      rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 24px);
}

/* Proof bar */

/* Trust signals hold one row at every width. On auto-fit they collapsed to a
   single column on a phone, and the first/last padding resets then left the
   middle cell indented against the two flush ones. Three narrow cells read as
   one set; a stack reads as three unrelated numbers. */
.wm-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-proof__item { padding: 26px 24px 30px; border-top: 1px solid var(--wm-rule); }
.wm-proof__item:first-child { padding-left: 0; }
.wm-proof__item:last-child  { padding-right: 0; }
.wm-proof__num {
  font-family: var(--wm-font-heading);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: var(--wm-weight-extrabold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--wm-fg);
}
.wm-proof__label {
  font-family: var(--wm-font-body);
  font-size: 14px;
  color: var(--wm-fg-muted);
  margin-top: 8px;
}

/* Three across on a 390px screen leaves about 118px a cell, so the desktop
   26px/24px padding and 30px figure have to come down with it. */
@media (max-width: 700px) {
  .wm-proof__item { padding: 18px 10px 20px; }
  .wm-proof__num { font-size: clamp(19px, 5.2vw, 30px); }
  .wm-proof__label { font-size: clamp(10px, 2.8vw, 13px); margin-top: 5px; line-height: 1.35; }
}

.wm-head > .wm-label + * { margin-top: 16px; }
.wm-head > * + .wm-lead  { margin-top: 18px; }
/* Closing call band - the centred dark wash that ends most routes. */

.wm-ctaband {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 11vw, 148px) var(--wm-gutter);
  background: linear-gradient(135deg, rgba(12, 86, 191, 0.16), rgba(3, 5, 8, 0.4) 62%);
  border-bottom: 1px solid var(--wm-border);
}
.wm-ctaband__glow {
  position: absolute;
  width: 760px;
  height: 760px;
  left: 50%;
  top: -58%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(12, 86, 191, 0.28) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(6px);
}
.wm-ctaband__inner { position: relative; max-width: 1000px; margin-inline: auto; text-align: center; }
.wm-ctaband__title {
  font-family: var(--wm-font-heading);
  font-weight: var(--wm-weight-extrabold);
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--wm-text);
  text-wrap: balance;
}
.wm-ctaband__actions { margin-top: clamp(26px, 3.2vw, 40px); }
.wm-ctaband__btn { font-size: 17px; padding: 18px 32px; }

/* Detail-route closing band ------------------------------------- */

.wm-svccta {
  position: relative;
  overflow: hidden;
  padding: var(--wm-section-y-sm) var(--wm-gutter);
  background: var(--wm-gradient-blue);
}
.wm-svccta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 120% at 12% 0%, rgba(27, 174, 205, .35) 0%, transparent 58%);
  pointer-events: none;
}
.wm-svccta__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.wm-svccta__title {
  font-family: var(--wm-font-heading);
  font-size: clamp(21px, 2.6vw, 34px);
  font-weight: var(--wm-weight-bold);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.wm-svccta__body {
  font-family: var(--wm-font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 12px;
  max-width: 52ch;
}

.wm-svccta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The second action is a ghost button that only exists on these bands. */
.wm-btn--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
}
.wm-btn--ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }


/* ============================================================
   Phone tap targets
   Standalone links render at their text height - 19px to 26px -
   which is well under what a thumb needs. Padding lifts the hit
   area without moving the text. Links inside running prose are
   deliberately left alone: WCAG exempts them and padding there
   would break the line box.
   ============================================================ */
@media (max-width: 639px) {
  .wm-logo { padding-block: 10px; }
  .wm-footer__logo { display: inline-flex; padding-block: 8px; }

  .wm-home__more,
  .wm-post__back,
  .wm-svcpage__crumb,
  .wm-prod__crumbs a {
    display: inline-flex;
    align-items: center;
    padding-block: 9px;
  }
}

/* Service page long-form body ------------------------------- */

.wm-svcbody { padding: clamp(50px, 6vw, 90px) 0; }
.wm-svcbody__inner { max-width: var(--wm-maxw); }

/* Icon cards give the eye somewhere to land before the long-form
   sections start, so a 1,200-word page does not open as a wall. */
.wm-svccards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(16px, 1.8vw, 22px);
  margin-bottom: clamp(34px, 4vw, 56px);
}
.wm-svccard {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-lg);
  box-shadow: var(--wm-shadow-card);
  padding: clamp(22px, 2.4vw, 28px);
}
.wm-svccard__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--wm-radius-btn);
  background: rgba(12, 86, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wm-blue);
}
.wm-svccard__title {
  font-family: var(--wm-font-heading);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: var(--wm-weight-semibold);
  line-height: 1.3;
  color: var(--wm-text-dark);
  margin-top: 16px;
}
.wm-svccard__copy {
  font-family: var(--wm-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--wm-text-dark-secondary);
  margin-top: 8px;
}

/* Heading in a left rail, prose on the right. The hairline between
   blocks does the separating, so no heavy panels are needed. */
.wm-svcbody__block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(18px, 3vw, 56px);
  padding-block: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--wm-border-light);
}
.wm-svcbody__block:first-of-type { border-top: 0; padding-top: 0; }
.wm-svcbody__h2 {
  font-family: var(--wm-font-heading);
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: var(--wm-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--wm-text-dark);
  text-wrap: balance;
}
.wm-svcbody__copy { max-width: 68ch; }
.wm-svcbody__p {
  font-family: var(--wm-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--wm-text-dark-secondary);
}
.wm-svcbody__p + .wm-svcbody__p { margin-top: 14px; }

@media (max-width: 860px) {
  .wm-svcbody__block { grid-template-columns: 1fr; gap: 12px; }
}

/* Tables can be wider than the prose column, so they scroll on their
   own rather than pushing the page sideways on a phone. */
.wm-svcbody__tablewrap {
  margin-top: clamp(30px, 3.4vw, 44px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-card);
}
.wm-svctable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--wm-font-body);
  font-size: 15px;
  min-width: 640px;
}
.wm-svctable th,
.wm-svctable td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--wm-border-light);
}
.wm-svctable th {
  font-family: var(--wm-font-heading);
  font-size: 12px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wm-blue);
  background: rgba(12, 86, 191, 0.05);
  white-space: nowrap;
}
.wm-svctable td { color: var(--wm-text-dark-secondary); line-height: 1.6; }
.wm-svctable tbody tr:last-child td { border-bottom: 0; }

.wm-svcproof {
  margin-top: clamp(30px, 3.4vw, 44px);
  padding: clamp(20px, 2.4vw, 28px);
  border-left: 3px solid var(--wm-blue);
  background: rgba(12, 86, 191, 0.05);
  border-radius: 0 var(--wm-radius-card) var(--wm-radius-card) 0;
}
.wm-svcproof p {
  font-family: var(--wm-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wm-text-dark);
}
.wm-svcproof p + p { margin-top: 10px; }

.wm-svcbody__faq { margin-top: clamp(40px, 4.5vw, 64px); }
.wm-svcbody__faq .wm-svcbody__h2 { margin-bottom: 14px; }
