/* ==========================================================================
   Web Ultra Solution - 2026 upgrade layer
   Additive only. Loaded after style.css / responsive.css so it can correct
   legacy rules without editing them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Lead forms (form.wus-lead)
   Native forms posting to /enquiry.php, generated by
   tools/build-lead-forms.php. They replaced the crm.webultrasolution.com
   iframes when that CRM was retired.
   -------------------------------------------------------------------------- */
.wus-form-embed,
.wus-modal-form {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.wus-lead {
  text-align: left;
}

.wus-lead .wus-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.wus-lead .wus-field {
  padding: 0 8px;
  margin-bottom: 14px;
}

.wus-lead .wus-col-12 { flex: 0 0 100%; max-width: 100%; }
.wus-lead .wus-col-6  { flex: 0 0 50%;  max-width: 50%; }

@media (max-width: 575px) {
  .wus-lead .wus-col-6 { flex-basis: 100%; max-width: 100%; }
}

.wus-lead label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #18254f;
}

.wus-lead .wus-req { color: #d93025; }

.wus-lead .form-control {
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  background: #fff;
  border: 1px solid #c9cfdc;
  border-radius: 6px;
  box-shadow: none;
}

.wus-lead textarea.form-control { min-height: 100px; resize: vertical; }

.wus-lead .form-control:focus {
  outline: none;
  border-color: #f7931e;
  box-shadow: 0 0 0 3px rgba(247, 147, 30, .2);
}

.wus-lead .form-control.is-invalid { border-color: #d93025; }

.wus-lead .wus-err {
  display: block;
  min-height: 0;
  margin-top: 4px;
  font-size: 12px;
  color: #d93025;
}

.wus-lead .wus-err:empty { display: none; }

.wus-lead .wus-submit {
  display: inline-block;
  min-width: 180px;
  padding: 12px 28px;
  border: 0;
  cursor: pointer;
}

.wus-lead .wus-submit[disabled] { opacity: .7; cursor: wait; }

.wus-lead .wus-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #5b6475;
}

.wus-lead .wus-status:empty { display: none; }

.wus-lead .wus-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.wus-lead .wus-status.is-ok    { background: #e7f6ec; color: #136c34; border: 1px solid #b6e2c3; }
.wus-lead .wus-status.is-error { background: #fdecea; color: #a1281d; border: 1px solid #f5c2bd; }

/* Honeypot: off-screen rather than display:none so naive bots still fill it. */
.wus-lead .wus-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   2. Global overflow guards
   Legacy pages use fixed-width tables and inline widths that break mobile.
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
}

img,
video,
iframe,
table {
  max-width: 100%;
}

.wus-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   3. Primary call-to-action
   -------------------------------------------------------------------------- */
.wus-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.wus-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.wus-btn-primary {
  background-color: #20c30c;
  border: 2px solid #20c30c;
  color: #ffffff;
}

.wus-btn-primary:hover,
.wus-btn-primary:focus {
  background-color: #1aa50a;
  border-color: #1aa50a;
  color: #ffffff;
  text-decoration: none;
}

.wus-btn-secondary {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.wus-btn-secondary:hover,
.wus-btn-secondary:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #18254f;
  text-decoration: none;
}

/* Visible keyboard focus - the legacy theme removed outlines entirely. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #20c30c;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Homepage positioning hero
   The page previously had no rendered <h1> above the fold at all - the only
   heading sat far below a four-slide carousel.
   -------------------------------------------------------------------------- */
.wus-hero {
  background: linear-gradient(135deg, #18254f 0%, #223468 100%);
  padding: 64px 0 56px;
  color: #ffffff;
}

.wus-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.wus-hero-title {
  margin: 0 0 18px !important;
  color: #ffffff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.wus-hero-sub {
  margin: 0 auto 30px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

.wus-hero-cta {
  justify-content: center;
  margin-bottom: 44px;
}

.wus-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 46px;
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.wus-trust li {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.wus-trust strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.wus-trust span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .wus-hero {
    padding: 40px 0 36px;
  }

  .wus-hero-title {
    font-size: 30px;
  }

  .wus-hero-sub {
    font-size: 16px;
  }

  .wus-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .wus-hero-cta .wus-btn {
    width: 100%;
  }

  .wus-trust {
    gap: 16px 24px;
  }

  .wus-trust strong {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   5. Presence list (request-a-proposal sidebar)
   These were 30 buttons linking to near-identical doorway pages that 404'd
   from this directory. Now plain text chips.
   -------------------------------------------------------------------------- */
.wus-presence-item {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  color: #18254f;
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Service page deep-content sections
   Generated by tools/build-service-sections.php
   -------------------------------------------------------------------------- */
.wus-svc {
  padding: 56px 0 8px;
  background: #ffffff;
}

.wus-svc-lead {
  max-width: 820px;
  margin: 0 0 46px;
}

.wus-svc-problem {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 4px solid #20c30c;
  color: #18254f;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}

.wus-svc-intro {
  margin: 0;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.8;
}

.wus-svc-h2 {
  margin: 0 0 26px !important;
  color: #18254f;
  font-size: 28px !important;
  font-weight: 700;
  line-height: 1.3;
}

/* --- What's included ------------------------------------------------------ */
.wus-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.wus-svc-card {
  padding: 22px 22px 20px;
  background: #f7f9fc;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
}

.wus-svc-card h3 {
  margin: 0 0 8px !important;
  color: #18254f;
  font-size: 17px !important;
  font-weight: 700;
}

.wus-svc-card p {
  margin: 0;
  color: #55606f;
  font-size: 14.5px;
  line-height: 1.65;
}

/* --- Process -------------------------------------------------------------- */
.wus-svc-steps {
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
  counter-reset: wus-step;
}

.wus-svc-steps li {
  display: flex;
  gap: 18px;
  padding: 0 0 22px 0;
  position: relative;
}

.wus-svc-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: #e5eaf2;
}

.wus-step-n {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #18254f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.wus-svc-steps h3 {
  margin: 6px 0 5px !important;
  color: #18254f;
  font-size: 17px !important;
  font-weight: 700;
}

.wus-svc-steps p {
  margin: 0;
  color: #55606f;
  font-size: 14.5px;
  line-height: 1.65;
}

/* --- Technologies --------------------------------------------------------- */
.wus-svc-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
}

.wus-svc-tech li {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #d8e0ec;
  border-radius: 20px;
  color: #18254f;
  font-size: 14px;
  font-weight: 600;
}

/* --- FAQs ----------------------------------------------------------------- */
.wus-faq {
  margin: 0 0 52px;
  border-top: 1px solid #e5eaf2;
}

.wus-faq-item {
  border-bottom: 1px solid #e5eaf2;
}

.wus-faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.wus-faq-item summary::-webkit-details-marker {
  display: none;
}

.wus-faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  color: #20c30c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.wus-faq-item[open] summary::before {
  content: "\2212";
}

.wus-faq-item summary h3 {
  margin: 0 !important;
  color: #18254f;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.45;
}

.wus-faq-item p {
  margin: 0;
  padding: 0 0 20px 30px;
  color: #55606f;
  font-size: 15px;
  line-height: 1.75;
}

/* --- Related services ----------------------------------------------------- */
.wus-svc-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}

.wus-related-card {
  display: block;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wus-related-card:hover,
.wus-related-card:focus {
  border-color: #20c30c;
  box-shadow: 0 4px 14px rgba(24, 37, 79, .09);
  text-decoration: none;
}

.wus-related-title {
  display: block;
  margin-bottom: 6px;
  color: #18254f;
  font-size: 16px;
  font-weight: 700;
}

.wus-related-desc {
  display: block;
  color: #55606f;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Service CTA ---------------------------------------------------------- */
.wus-svc-cta {
  margin: 0 0 10px;
  padding: 38px 34px;
  background: linear-gradient(135deg, #18254f 0%, #223468 100%);
  border-radius: 8px;
  text-align: center;
}

.wus-svc-cta h2 {
  margin: 0 0 12px !important;
  color: #ffffff;
  font-size: 26px !important;
  font-weight: 700;
}

.wus-svc-cta p {
  max-width: 640px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  line-height: 1.7;
}

.wus-svc-cta .wus-cta-row {
  justify-content: center;
}

.wus-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .55);
  color: #ffffff;
}

.wus-btn-outline:hover,
.wus-btn-outline:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: #18254f;
  text-decoration: none;
}

@media (max-width: 767px) {
  .wus-svc {
    padding: 36px 0 4px;
  }

  .wus-svc-problem {
    font-size: 17px;
  }

  .wus-svc-h2 {
    font-size: 23px !important;
  }

  .wus-svc-cta {
    padding: 28px 20px;
  }

  .wus-svc-cta h2 {
    font-size: 21px !important;
  }

  .wus-svc-cta .wus-cta-row {
    flex-direction: column;
  }

  .wus-svc-cta .wus-btn {
    width: 100%;
  }
}
