/*  ==========================================================================
    Xweli Outsourcing Solutions — brand layer for the Techwix HTML template
    Colours, type and graphic devices taken from the Xweli Company Profile.
    ========================================================================== */

:root {
  --x-teal: #13b0ae;
  --x-teal-deep: #0b7f7d;
  --x-teal-mid: #1f7f86;
  --x-slate: #2c4452;
  --x-slate-deep: #22394a;
  --x-green: #77cc52;
  --x-green-light: #a6dd4a;
  --x-green-text: #3a7f1f;
  --x-mist: #eef4f5;
  --x-line: #d6e3e6;
  --x-ink: #20323d;
  --x-body: #46606d;
  --x-white: #ffffff;
  --x-grad: linear-gradient(100deg, #12aaa8 0%, #1e8088 42%, #2c4452 100%);
  --x-grad-rev: linear-gradient(100deg, #2c4452 0%, #23656f 50%, #12aaa8 100%);
  --x-grad-green: linear-gradient(120deg, #a6dd4a 0%, #77cc52 55%, #3fbf8a 100%);
  --x-radius: 14px;
  --x-shadow: 0 18px 40px -18px rgba(34, 57, 74, 0.35);
  --x-font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base type ---------- */
body {
  font-family: var(--x-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--x-body);
  background: var(--x-white);
}
h1, h2, h3, h4, h5, h6,
.btn, input, textarea, select, button,
.header-menu .main-menu li a,
.offcanvas-menu .main-menu li a {
  font-family: var(--x-font);
}
h1, h2, h3, h4, h5, h6 { color: var(--x-ink); line-height: 1.25; }
p { margin-bottom: 0; }
p + p { margin-top: 1rem; }
a { color: var(--x-teal-deep); }
a:hover { color: var(--x-slate); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--x-green); color: var(--x-slate-deep); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: var(--x-slate-deep); }

:focus-visible { outline: 3px solid var(--x-green); outline-offset: 3px; }

.x-pad { padding: 110px 0; }
.x-pad-sm { padding: 80px 0; }
@media (max-width: 991px) { .x-pad { padding: 80px 0; } .x-pad-sm { padding: 64px 0; } }
@media (max-width: 575px) { .x-pad { padding: 64px 0; } .x-pad-sm { padding: 52px 0; } }

.x-bg-mist { background: var(--x-mist); }
.x-bg-grad { background: var(--x-grad); color: rgba(255, 255, 255, 0.9); }
.x-bg-grad-rev { background: var(--x-grad-rev); color: rgba(255, 255, 255, 0.9); }
.x-bg-grad h1, .x-bg-grad h2, .x-bg-grad h3, .x-bg-grad h4,
.x-bg-grad-rev h1, .x-bg-grad-rev h2, .x-bg-grad-rev h3, .x-bg-grad-rev h4 { color: var(--x-white); }

/* ---------- Profile heading device: green block + underline ---------- */
.x-heading {
  position: relative;
  display: inline-block;
  padding: 0 0 14px 30px;
  margin-bottom: 28px;
}
.x-heading::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 14px; background: var(--x-green);
}
.x-heading::after {
  content: "";
  position: absolute; left: 14px; right: -8%; bottom: 0;
  height: 6px; background: var(--x-green);
}
.x-heading .title,
.x-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 300;
  color: var(--x-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.x-heading .title em,
.x-title em { font-style: italic; font-weight: 700; }
.x-bg-grad .x-heading .title, .x-bg-grad-rev .x-heading .title,
.x-dark .x-heading .title { color: var(--x-white); }
.x-heading.center { margin-left: auto; margin-right: auto; }
@media (max-width: 991px) { .x-heading .title, .x-title { font-size: 36px; } }
@media (max-width: 575px) {
  .x-heading { padding-left: 24px; }
  .x-heading::before { width: 10px; }
  .x-heading::after { left: 10px; height: 5px; right: 0; }
  .x-heading .title, .x-title { font-size: 28px; }
}

.x-kicker {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: var(--x-green-text);
  margin-bottom: 14px;
}
.x-bg-grad .x-kicker, .x-bg-grad-rev .x-kicker, .x-dark .x-kicker { color: var(--x-green); }

.x-lead { font-size: 19px; line-height: 1.65; color: var(--x-ink); }
.x-bg-grad .x-lead, .x-bg-grad-rev .x-lead { color: var(--x-white); }
@media (max-width: 575px) { .x-lead { font-size: 17px; } }

.x-measure { max-width: 680px; }
.x-measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (Techwix .btn re-skinned) ---------- */
.btn {
  background: var(--x-green);
  color: var(--x-slate-deep);
  font-weight: 700;
  font-size: 16px;
  height: 56px;
  line-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
}
.btn::before, .btn::after { background: var(--x-slate-deep); }
.btn:hover, .btn:focus { color: var(--x-white); }
.btn i { margin-left: 10px; font-size: 14px; }
.btn-outline {
  background: transparent;
  color: var(--x-white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.btn-outline::before, .btn-outline::after { background: var(--x-white); }
.btn-outline:hover, .btn-outline:focus { color: var(--x-slate-deep); }
.btn-dark { background: var(--x-slate); color: var(--x-white); }
.btn-dark::before, .btn-dark::after { background: var(--x-green); }
.btn-dark:hover, .btn-dark:focus { color: var(--x-slate-deep); }
.x-btns { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 575px) { .x-btns .btn { width: 100%; text-align: center; padding: 0 20px; } }

.x-link {
  font-weight: 700; color: var(--x-teal-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.x-link i { transition: transform .3s ease; }
.x-link:hover { color: var(--x-slate); }
.x-link:hover i { transform: translateX(4px); }
.x-bg-grad .x-link, .x-bg-grad-rev .x-link, .x-dark .x-link { color: var(--x-green); }
.x-bg-grad .x-link:hover, .x-bg-grad-rev .x-link:hover, .x-dark .x-link:hover { color: var(--x-white); }

/* ---------- Header ---------- */
.header-section.x-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.x-header .header-logo a { display: block; }
.x-header .header-logo img { width: 150px; }
.x-header .header-logo .logo-dark { display: none; }
.x-header .header-menu .main-menu li { padding: 34px 22px; }
.x-header .header-menu .main-menu li a {
  color: var(--x-white); font-weight: 600; font-size: 15px; position: relative;
}
.x-header .header-menu .main-menu li a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px;
  height: 3px; background: var(--x-green); transition: right .3s ease;
}
.x-header .header-menu .main-menu li a:hover::after,
.x-header .header-menu .main-menu li.active-menu > a::after { right: 0; }
.x-header .header-menu .main-menu li.active-menu > a { color: var(--x-white); }
.x-header .header-btn { margin-left: 18px; }
.x-header .header-btn .btn { height: 46px; line-height: 46px; padding: 0 26px; font-size: 15px; }
.x-header .header-toggle button span { background: var(--x-white); }
.x-header .header-toggle button { padding: 8px 0; }

.x-header.sticky { background: var(--x-white); border-bottom: 0; box-shadow: 0 8px 24px -12px rgba(34, 57, 74, .35); }
.x-header.sticky .header-logo .logo-white { display: none; }
.x-header.sticky .header-logo .logo-dark { display: block; }
.x-header.sticky .header-logo img { width: 128px; }
.x-header.sticky .header-menu .main-menu li { padding: 26px 22px; }
.x-header.sticky .header-menu .main-menu li a,
.x-header.sticky .header-menu .main-menu li.active-menu > a { color: var(--x-ink); }
.x-header.sticky .header-toggle button span { background: var(--x-slate); }
@media (max-width: 1199px) {
  .x-header .header-menu .main-menu li { padding: 30px 16px; }
}
@media (max-width: 991px) {
  .header-section.x-header { padding: 14px 0; }
  .x-header .header-logo img { width: 124px; }
  .x-header.sticky .header-logo img { width: 112px; }
}

/* Offcanvas (mobile menu) */
.offcanvas.x-offcanvas { background: var(--x-grad-rev); width: 320px; max-width: 86vw; }
.x-offcanvas .offcanvas-header { padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.x-offcanvas .offcanvas-logo img { width: 120px; }
.x-offcanvas .close-btn { background: var(--x-green); color: var(--x-slate-deep); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; }
.x-offcanvas .offcanvas-body { padding: 24px; }
.x-offcanvas .offcanvas-menu .main-menu li { border-bottom: 1px solid rgba(255,255,255,.14); }
.x-offcanvas .offcanvas-menu .main-menu li a { color: var(--x-white); font-weight: 600; font-size: 17px; padding: 14px 0; display: block; }
.x-offcanvas .offcanvas-menu .main-menu li.active-menu > a { color: var(--x-green); }
.x-offcanvas .x-offcanvas-cta { margin-top: 28px; }
.x-offcanvas .x-offcanvas-cta .btn { width: 100%; text-align: center; }
.x-offcanvas .x-offcanvas-contact { margin-top: 28px; color: rgba(255,255,255,.85); font-size: 14px; }
.x-offcanvas .x-offcanvas-contact a { color: var(--x-white); }
.x-offcanvas .x-offcanvas-contact li { margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.x-offcanvas .x-offcanvas-contact i { color: var(--x-green); width: 16px; }

/* ---------- Decorative chevrons (profile graphic device) ---------- */
.x-chev { position: absolute; pointer-events: none; z-index: 0; }
.x-chev svg { width: 100%; height: auto; display: block; }
.x-slab {
  position: absolute; pointer-events: none; z-index: 0;
  background: var(--x-green);
}

/* ---------- Home hero ---------- */
.x-hero {
  position: relative;
  background: var(--x-grad);
  color: rgba(255,255,255,.9);
  padding: 190px 0 150px;
  overflow: hidden;
}
.x-hero .container { position: relative; z-index: 2; }
.x-hero .x-hero-logo-mark {
  width: 56px; margin-bottom: 26px; display: block;
}
.x-hero h1 {
  color: var(--x-white);
  font-size: 54px;
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.x-hero h1 strong { font-weight: 700; font-style: italic; color: var(--x-white); }
.x-hero h1 .hl { color: var(--x-green); font-weight: 700; font-style: italic; }
.x-hero .x-hero-sub { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.92); max-width: 560px; margin-bottom: 36px; }
.x-tagline {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 34px; font-weight: 700; color: var(--x-white); font-size: 16px;
}
.x-tagline::before { content: ""; width: 34px; height: 4px; background: var(--x-green); border-radius: 2px; }
.x-hero-media { position: relative; z-index: 1; }
.x-hero-frame {
  position: relative; z-index: 2;
  border: 10px solid var(--x-teal);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  background: var(--x-teal);
}
.x-hero-frame img { display: block; width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: 60% 20%; }
.x-hero-media .x-chev-a { width: 62%; right: -16%; top: -16%; z-index: 3; }
.x-hero-media .x-chev-b { width: 44%; left: -20%; bottom: -12%; z-index: 1; }
.x-hero .x-slab-1 { width: 34%; height: 140%; right: -6%; top: -20%; transform: skewX(-14deg); opacity: .95; }
.x-hero .x-slab-2 {
  left: 0; right: 0; bottom: 0; height: 70px;
  clip-path: polygon(0 0, 56% 0, 52% 100%, 0 100%);
}
.x-hero .x-slab-3 {
  left: 0; right: 0; bottom: 0; height: 70px; background: #d9dfe1;
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 52% 100%);
}
@media (max-width: 1199px) { .x-hero h1 { font-size: 46px; } }
@media (max-width: 991px) {
  .x-hero { padding: 150px 0 130px; }
  .x-hero-media { margin-top: 60px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .x-hero .x-slab-1 { display: none; }
}
@media (max-width: 575px) {
  .x-hero { padding: 130px 0 110px; }
  .x-hero h1 { font-size: 34px; }
  .x-hero .x-hero-sub { font-size: 16px; }
  .x-hero .x-slab-2, .x-hero .x-slab-3 { height: 42px; }
  .x-hero-frame { border-width: 7px; }
  .x-hero-media .x-chev-a { right: -8%; }
  .x-hero-media .x-chev-b { left: -8%; }
}

/* ---------- Page banner (inner pages) ---------- */
.x-banner {
  position: relative; overflow: hidden;
  background: var(--x-grad);
  padding: 200px 0 120px;
  color: rgba(255,255,255,.9);
}
.x-banner .container { position: relative; z-index: 2; }
.x-banner h1 { color: var(--x-white); font-size: 54px; font-weight: 300; line-height: 1.1; margin-bottom: 18px; }
.x-banner h1 em { font-style: italic; font-weight: 700; }
.x-banner .x-banner-sub { font-size: 19px; max-width: 640px; color: rgba(255,255,255,.92); }
.x-banner .breadcrumb { margin-bottom: 22px; background: none; padding: 0; font-size: 14px; font-weight: 600; }
.x-banner .breadcrumb-item, .x-banner .breadcrumb-item a { color: rgba(255,255,255,.85); }
.x-banner .breadcrumb-item a:hover { color: var(--x-green); }
.x-banner .breadcrumb-item.active { color: var(--x-green); }
.x-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.x-banner .x-banner-photo {
  position: absolute; top: 0; bottom: 0; right: 0; width: 42%; z-index: 1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.x-banner .x-banner-photo img { width: 100%; height: 100%; object-fit: cover; }
.x-banner .x-banner-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(44,68,82,.55), rgba(44,68,82,0) 60%);
}
.x-banner .x-slab-edge {
  top: 0; bottom: 0; right: calc(42% - 40px); width: 48px; z-index: 2;
  transform: skewX(-12deg); transform-origin: bottom;
}
.x-banner .x-chev-banner { width: 210px; right: 3%; bottom: -40px; z-index: 3; }
@media (max-width: 991px) {
  .x-banner { padding: 160px 0 90px; }
  .x-banner .x-banner-photo, .x-banner .x-slab-edge, .x-banner .x-chev-banner { display: none; }
  .x-banner h1 { font-size: 42px; }
}
@media (max-width: 575px) {
  .x-banner { padding: 136px 0 70px; }
  .x-banner h1 { font-size: 34px; }
  .x-banner .x-banner-sub { font-size: 17px; }
}

/* ---------- Photo frames ---------- */
.x-photo { position: relative; }
.x-photo .x-photo-frame {
  position: relative; z-index: 2;
  border: 9px solid var(--x-teal);
  background: var(--x-teal);
  box-shadow: var(--x-shadow);
}
.x-photo .x-photo-frame img { display: block; width: 100%; object-fit: cover; }
.x-photo .x-slab-back {
  z-index: 1; width: 46%; top: -26px; bottom: -26px; right: -26px;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.x-photo.left .x-slab-back { right: auto; left: -26px; clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%); }
.x-photo .x-chev { z-index: 3; width: 34%; }
.x-photo .x-chev.tr { right: -6%; top: -12%; }
.x-photo .x-chev.bl { left: -7%; bottom: -10%; }
@media (max-width: 575px) {
  .x-photo .x-slab-back { right: -12px; top: -12px; bottom: -12px; }
  .x-photo.left .x-slab-back { left: -12px; }
  .x-photo .x-photo-frame { border-width: 6px; }
}

/* ---------- Checklist (profile check bullets) ---------- */
.x-checks { list-style: none; padding: 0; margin: 0; }
.x-checks li {
  position: relative; padding-left: 42px; margin-bottom: 16px; color: var(--x-ink);
}
.x-checks li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--x-green); color: var(--x-white);
  font-size: 13px; line-height: 28px; text-align: center;
}
.x-dark .x-checks li, .x-bg-grad .x-checks li, .x-bg-grad-rev .x-checks li { color: var(--x-white); }
.x-dark .x-checks li::before, .x-bg-grad .x-checks li::before, .x-bg-grad-rev .x-checks li::before {
  background: var(--x-white); color: var(--x-green-text);
}
.x-checks.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 767px) { .x-checks.two-col { grid-template-columns: 1fr; } }

/* ---------- Problem section ---------- */
.x-problem .x-quote-mark {
  font-size: 56px; color: var(--x-green); line-height: 1; margin-bottom: 8px; display: block;
}
.x-problem p { font-size: 17px; }
.x-problem .x-emph {
  margin-top: 26px; padding: 22px 26px; background: var(--x-mist);
  border-left: 6px solid var(--x-green); color: var(--x-ink); font-weight: 500;
}

/* ---------- Service cards (What we do) ---------- */
.x-service-wrap { position: relative; }
.x-service-card {
  position: relative; height: 100%;
  background: var(--x-white);
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
  padding: 44px 40px 40px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.x-service-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--x-grad-green);
}
.x-service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(34,57,74,.45); }
.x-service-card .x-icon {
  width: 104px; height: 104px; border-radius: 50%; padding: 6px;
  background: var(--x-grad); margin-bottom: 26px; flex-shrink: 0;
}
.x-service-card .x-icon img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.x-service-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.x-service-card .x-card-sub { font-weight: 600; color: var(--x-green-text); margin-bottom: 16px; display: block; }
.x-service-card p { margin-bottom: 26px; }
.x-service-card .x-link { margin-top: auto; }
.x-service-card .x-card-mark { position: absolute; right: -30px; bottom: -30px; width: 150px; opacity: .08; }
.x-either {
  margin-top: 46px; text-align: center; font-size: 18px; color: var(--x-ink); font-weight: 500;
}
.x-either span { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--x-mist); }
@media (max-width: 575px) { .x-service-card { padding: 34px 26px 30px; } .x-either span { border-radius: 14px; } }

/* ---------- Principle rings (People / Process / Performance device) ---------- */
.x-principles { position: relative; overflow: hidden; }
.x-ring-item { text-align: center; padding: 0 12px; }
.x-ring {
  width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 28px;
  background: rgba(214, 227, 230, .45);
  padding: 13px;
}
.x-ring > span {
  display: flex; width: 100%; height: 100%; border-radius: 50%;
  background: var(--x-teal); padding: 14px;
}
.x-ring > span > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--x-green); color: var(--x-slate-deep); font-weight: 800; font-size: 16px; line-height: 1.15; padding: 8px;
}
.x-ring-item h3 { font-size: 21px; color: var(--x-white); margin-bottom: 10px; }
.x-ring-item p { color: rgba(255,255,255,.9); max-width: 320px; margin: 0 auto; }
@media (max-width: 767px) { .x-ring-item { margin-bottom: 44px; } .x-ring { width: 150px; height: 150px; } }

/* ---------- Why SA strip (home) ---------- */
.x-sa-strip { position: relative; overflow: hidden; background: var(--x-slate); }
.x-sa-strip .x-sa-photo {
  position: absolute; left: 0; top: 0; bottom: 0; width: 44%;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.x-sa-strip .x-sa-photo img { width: 100%; height: 100%; object-fit: cover; }
.x-sa-strip .x-slab-edge { top: 0; bottom: 0; left: calc(44% - 30px); width: 44px; transform: skewX(-9deg); transform-origin: top; z-index: 1; }
.x-sa-strip .x-sa-content { position: relative; z-index: 2; padding: 110px 0; color: rgba(255,255,255,.92); }
.x-sa-strip .x-sa-content p { font-size: 17px; }
.x-sa-strip .x-bpesa {
  display: inline-flex; align-items: center; gap: 14px; margin: 28px 0 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 18px 12px 12px;
  color: var(--x-white); font-weight: 600; font-size: 15px;
}
.x-sa-strip .x-bpesa img { width: 120px; border-radius: 8px; }
@media (max-width: 991px) {
  .x-sa-strip .x-sa-photo { position: relative; width: 100%; height: 300px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .x-sa-strip .x-slab-edge { display: none; }
  .x-sa-strip .x-sa-content { padding: 64px 0 80px; }
}

/* ---------- CTA panel ---------- */
.x-cta {
  position: relative; overflow: hidden;
  background: var(--x-grad); border-radius: 22px;
  padding: 72px 64px; color: rgba(255,255,255,.92);
}
.x-cta h2 { color: var(--x-white); font-size: 42px; font-weight: 300; line-height: 1.15; margin-bottom: 18px; }
.x-cta h2 em { font-style: italic; font-weight: 700; }
.x-cta p { font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.x-cta .x-cta-person { position: absolute; right: 2%; bottom: 0; width: 34%; max-width: 380px; z-index: 2; }
.x-cta .x-slab-corner { right: 0; top: 0; bottom: 0; width: 38%; clip-path: polygon(34% 0, 100% 0, 100% 100%, 8% 100%); opacity: .95; }
.x-cta .x-cta-inner { position: relative; z-index: 3; }
.x-cta .x-chev { width: 120px; left: -30px; bottom: -40px; opacity: .55; }
.x-cta.no-person .x-slab-corner { width: 24%; }
@media (max-width: 991px) {
  .x-cta { padding: 56px 36px 0; }
  .x-cta .x-cta-person { position: relative; right: auto; width: 70%; max-width: 320px; display: block; margin: 30px auto 0; }
  .x-cta .x-slab-corner { width: 60%; top: auto; height: 44%; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
  .x-cta.no-person { padding-bottom: 56px; }
  .x-cta.no-person .x-slab-corner { display: none; }
}
@media (max-width: 575px) {
  .x-cta { padding: 44px 24px 0; border-radius: 16px; }
  .x-cta.no-person { padding-bottom: 44px; }
  .x-cta h2 { font-size: 30px; }
  .x-cta p { font-size: 16px; }
}

/* ---------- Services page ---------- */
.x-service-block .x-who {
  background: var(--x-mist); border-radius: var(--x-radius); padding: 20px 24px; margin-bottom: 28px;
  display: flex; gap: 16px; align-items: flex-start; color: var(--x-ink);
}
.x-service-block .x-who img { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; background: var(--x-teal); padding: 3px; }
.x-service-block .x-who strong { display: block; color: var(--x-ink); margin-bottom: 2px; }
.x-sub-h { font-size: 20px; font-weight: 700; color: var(--x-ink); margin: 0 0 18px; }
.x-dark .x-sub-h, .x-bg-grad .x-sub-h, .x-bg-grad-rev .x-sub-h { color: var(--x-white); }
.x-get {
  margin-top: 30px; border-radius: var(--x-radius); padding: 26px 28px; position: relative; overflow: hidden;
  background: var(--x-slate); color: rgba(255,255,255,.92);
}
.x-get::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--x-green); }
.x-get h4 { color: var(--x-green); font-size: 17px; margin-bottom: 10px; }
.x-get ul { list-style: none; padding: 0; margin: 0; }
.x-get li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.x-get li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 4px; background: var(--x-green); border-radius: 2px; }

.x-bpo { position: relative; overflow: hidden; }
.x-bpo .x-who { background: rgba(255,255,255,.09); color: var(--x-white); border: 1px solid rgba(255,255,255,.14); }
.x-bpo .x-who strong { color: var(--x-green); }
.x-facts { margin-top: 56px; }
.x-fact {
  height: 100%; padding: 30px 28px; border-radius: var(--x-radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.x-fact i {
  width: 50px; height: 50px; border-radius: 50%; background: var(--x-white); color: var(--x-green-text);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px;
}
.x-fact h4 { color: var(--x-white); font-size: 18px; margin-bottom: 10px; }
.x-fact p { color: rgba(255,255,255,.9); font-size: 15px; }
@media (max-width: 991px) { .x-fact { margin-bottom: 20px; height: auto; } }

/* Assess → Design → Run diagram */
.x-flow { position: relative; margin-top: 56px; padding-top: 10px; }
.x-flow-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.x-flow-track::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 70px; height: 6px;
  background: var(--x-grad-green); border-radius: 3px; z-index: 0;
}
.x-flow-step { position: relative; z-index: 1; text-align: center; }
.x-flow-step .x-node {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--x-white); padding: 10px; box-shadow: var(--x-shadow);
}
.x-flow-step .x-node span {
  width: 100%; height: 100%; border-radius: 50%; background: var(--x-grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--x-white);
}
.x-flow-step .x-node i { font-size: 30px; color: var(--x-green); margin-bottom: 6px; }
.x-flow-step .x-node b { font-size: 17px; font-weight: 800; }
.x-flow-step p { font-size: 15px; max-width: 260px; margin: 0 auto; }
.x-flow-entry {
  margin-top: 36px; position: relative; border: 2px dashed var(--x-teal); border-radius: 999px;
  padding: 14px 26px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  color: var(--x-ink); font-weight: 600; font-size: 15px; text-align: center;
}
.x-flow-entry i { color: var(--x-teal-deep); }
@media (max-width: 767px) {
  .x-flow-track { grid-template-columns: 1fr; gap: 34px; }
  .x-flow-track::before { left: 50%; right: auto; top: 40px; bottom: 40px; width: 6px; height: auto; transform: translateX(-50%); }
  .x-flow-step p { background: var(--x-white); padding: 4px 0; }
  .x-flow-entry { border-radius: 16px; }
}

/* Four-step strip */
.x-steps { counter-reset: xstep; }
.x-step {
  position: relative; height: 100%; padding: 34px 28px 30px; border-radius: var(--x-radius);
  background: var(--x-white); box-shadow: var(--x-shadow); border-top: 6px solid var(--x-teal);
}
.x-step .x-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--x-grad); color: var(--x-white);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 18px;
}
.x-step h3 { font-size: 20px; margin-bottom: 10px; }
.x-step p { font-size: 15px; }
.x-step::after {
  content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--x-green); color: var(--x-slate-deep);
  font-size: 11px; line-height: 26px; text-align: center; z-index: 2;
}
.x-steps > div:last-child .x-step::after { display: none; }
@media (max-width: 991px) {
  .x-step { margin-bottom: 24px; height: auto; }
  .x-step::after { display: none; }
}

/* ---------- About page ---------- */
.x-owned {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--x-mist); color: var(--x-ink); font-weight: 700;
}
.x-owned i { width: 40px; height: 40px; border-radius: 50%; background: var(--x-green); color: var(--x-white); display: inline-flex; align-items: center; justify-content: center; }

.x-belief { position: relative; overflow: hidden; }
.x-belief blockquote {
  position: relative; margin: 0 0 34px; padding: 0 0 0 34px;
  font-size: 32px; line-height: 1.3; font-weight: 300; color: var(--x-white);
}
.x-belief blockquote strong { font-weight: 700; font-style: italic; color: var(--x-green); }
.x-belief blockquote::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 8px; background: var(--x-green); }
.x-belief .x-body { font-size: 17px; color: rgba(255,255,255,.92); }
.x-vm { margin-top: 56px; }
.x-vm-item {
  height: 100%; padding: 32px 30px; border-radius: var(--x-radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.x-vm-item .x-vm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.x-vm-item img { width: 66px; height: 66px; }
.x-vm-item h3 { color: var(--x-white); font-size: 26px; margin: 0; }
.x-vm-item p { color: rgba(255,255,255,.92); font-size: 16px; }
@media (max-width: 767px) { .x-belief blockquote { font-size: 24px; padding-left: 24px; } .x-vm-item { margin-bottom: 20px; height: auto; } }

.x-sa-card {
  height: 100%; padding: 34px 30px; border-radius: var(--x-radius); background: var(--x-white);
  box-shadow: var(--x-shadow); position: relative; overflow: hidden;
}
.x-sa-card i {
  width: 62px; height: 62px; border-radius: 50%; background: var(--x-grad); color: var(--x-white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.x-sa-card h3 { font-size: 20px; margin-bottom: 10px; }
.x-sa-card p { font-size: 15px; }
.x-sa-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 60px; height: 6px; background: var(--x-green); }
@media (max-width: 991px) { .x-sa-card { margin-bottom: 24px; height: auto; } }

.x-cred {
  height: 100%; padding: 32px 28px; border-radius: var(--x-radius); background: var(--x-white);
  border: 1px solid var(--x-line); display: flex; flex-direction: column;
}
.x-cred .x-cred-logos { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; min-height: 64px; align-items: center; }
.x-cred .x-cred-logos img { height: 64px; width: auto; }
.x-cred .x-badge {
  height: 64px; padding: 0 20px; border-radius: 10px; background: var(--x-grad); color: var(--x-white);
  display: inline-flex; align-items: center; font-weight: 800; font-size: 18px; gap: 10px;
}
.x-cred .x-badge i { color: var(--x-green); }
.x-cred h3 { font-size: 20px; margin-bottom: 10px; }
.x-cred p { font-size: 15px; }
@media (max-width: 991px) { .x-cred { margin-bottom: 24px; height: auto; } }

/* Contact */
.x-contact { position: relative; }
.x-form-card {
  background: var(--x-white); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(34,57,74,.45);
  padding: 46px 44px; border-top: 7px solid var(--x-green);
}
.x-form-card .x-form-intro { margin-bottom: 28px; }
.x-field { margin-bottom: 20px; }
.x-field label { display: block; font-weight: 600; color: var(--x-ink); font-size: 14px; margin-bottom: 8px; }
.x-field label .req { color: #b4321f; margin-left: 2px; }
.x-field label .opt { font-weight: 400; color: #5f7682; }
.x-field input, .x-field textarea, .x-field select {
  width: 100%; border: 1.5px solid #c7d6da; border-radius: 10px; background: #fbfdfd;
  padding: 13px 16px; font-size: 15px; color: var(--x-ink); transition: border-color .2s, box-shadow .2s;
}
.x-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c4452' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.x-field textarea { min-height: 150px; resize: vertical; }
.x-field input:focus, .x-field textarea:focus, .x-field select:focus {
  outline: none; border-color: var(--x-teal); box-shadow: 0 0 0 4px rgba(19,176,174,.18);
}
.x-field .x-err { display: none; color: #b4321f; font-size: 13px; margin-top: 6px; }
.x-field.invalid input, .x-field.invalid textarea, .x-field.invalid select { border-color: #b4321f; }
.x-field.invalid .x-err { display: block; }
.x-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.x-form-note { font-size: 13px; color: #5f7682; margin-top: 14px; }
.x-form-status { display: none; margin-top: 20px; padding: 16px 20px; border-radius: 12px; font-weight: 500; }
.x-form-status.ok { display: block; background: #e8f6e0; color: #24561a; border: 1px solid #b9e2a4; }
.x-form-status.fail { display: block; background: #fbecea; color: #7d2216; border: 1px solid #efc1ba; }
.x-form-status a { color: inherit; text-decoration: underline; }
.x-form-card .btn[disabled] { opacity: .7; cursor: wait; }

.x-direct {
  position: relative; overflow: hidden; height: 100%;
  background: var(--x-grad-rev); border-radius: 20px; padding: 46px 40px; color: rgba(255,255,255,.92);
}
.x-direct h3 { color: var(--x-white); font-size: 24px; margin-bottom: 6px; }
.x-direct .x-person { margin: 26px 0 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.18); }
.x-direct .x-person b { color: var(--x-white); font-size: 19px; display: block; }
.x-direct ul { list-style: none; padding: 0; margin: 0; }
.x-direct li { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; word-break: break-word; }
.x-direct li i {
  width: 38px; height: 38px; border-radius: 50%; background: var(--x-green); color: var(--x-white);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px;
}
.x-direct a { color: var(--x-white); }
.x-direct a:hover { color: var(--x-green); }
.x-direct .x-chev { width: 150px; right: -30px; bottom: -40px; opacity: .9; }
.x-direct .x-reply { margin-top: 26px; font-size: 15px; position: relative; z-index: 2; }
@media (max-width: 991px) { .x-direct { margin-top: 30px; height: auto; } }
@media (max-width: 575px) { .x-form-card, .x-direct { padding: 34px 22px; border-radius: 16px; } }

/* ---------- Footer ---------- */
.x-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #2c4452 0%, #23656f 55%, #12aaa8 100%);
  color: rgba(255,255,255,.88);
  padding-top: 100px;
}
.x-footer::before {
  content: ""; position: absolute; left: -180px; top: -260px; width: 520px; height: 520px; border-radius: 50%;
  background: var(--x-green); opacity: .95;
  -webkit-mask: radial-gradient(circle at 70% 70%, transparent 60%, #000 60.5%);
          mask: radial-gradient(circle at 70% 70%, transparent 60%, #000 60.5%);
}
.x-footer .container { position: relative; z-index: 2; }
.x-footer .x-foot-logo img { width: 190px; }
.x-footer .x-foot-tag { color: var(--x-white); font-weight: 700; font-size: 17px; margin: 24px 0 10px; }
.x-footer .x-foot-loc { font-size: 15px; max-width: 330px; }
.x-footer h4 { color: var(--x-white); font-size: 17px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.x-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 4px; background: var(--x-green); border-radius: 2px; }
.x-footer ul { list-style: none; padding: 0; margin: 0; }
.x-footer .x-foot-links li { margin-bottom: 10px; }
.x-footer a { color: rgba(255,255,255,.9); }
.x-footer a:hover { color: var(--x-green); }
.x-footer .x-foot-contact li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; word-break: break-word; }
.x-footer .x-foot-contact i {
  width: 34px; height: 34px; border-radius: 50%; background: var(--x-green); color: var(--x-white);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px;
}
.x-footer .x-social { margin-top: 22px; }
.x-footer .x-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
  display: inline-flex; align-items: center; justify-content: center; color: var(--x-white);
}
.x-footer .x-social a:hover { background: var(--x-green); border-color: var(--x-green); color: var(--x-slate-deep); }
.x-footer .x-backing { display: flex; flex-wrap: wrap; gap: 12px; }
.x-footer .x-backing figure { margin: 0; }
.x-footer .x-backing img { height: 56px; width: auto; border-radius: 8px; display: block; }
.x-footer .x-backing figcaption { font-size: 12px; margin-top: 6px; color: rgba(255,255,255,.8); }
.x-footer .x-foot-bottom {
  margin-top: 70px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.x-footer .x-foot-bottom a { color: var(--x-white); }
@media (max-width: 991px) { .x-footer .x-col { margin-bottom: 40px; } .x-footer .x-foot-bottom { margin-top: 20px; } }
@media (max-width: 575px) { .x-footer { padding-top: 80px; } .x-footer::before { width: 360px; height: 360px; left: -170px; top: -200px; } }

/* back-to-top in brand colours */
.progress-wrap { box-shadow: inset 0 0 0 2px rgba(119, 204, 82, .35); }
.progress-wrap::after { color: var(--x-teal-deep); }
.progress-wrap svg.progress-circle path { stroke: var(--x-green); }
@media (max-width: 575px) { .progress-wrap { right: 18px; bottom: 18px; } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

/* ---------- Refinements ---------- */
main { overflow-x: hidden; }
@media (max-width: 767px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .row { --bs-gutter-x: 1.25rem; }
}
/* hero: green slab sits behind the photo (profile cover), not under the header */
.x-hero .x-slab-1 { display: none; }
.x-hero-media::before {
  content: ""; position: absolute; z-index: 0;
  top: -38px; bottom: 46px; right: -48px; width: 58%;
  background: var(--x-green);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 575px) {
  .x-hero-media::before { right: -20px; top: -18px; bottom: 30px; }
  .x-hero-media .x-chev-a { width: 34%; right: -4%; top: -12%; }
  .x-hero-media .x-chev-b { width: 30%; left: -6%; }
  .x-service-card .x-card-mark { right: -10px; bottom: -10px; width: 110px; }
}
.x-ring > span > span { font-size: 14px; }
.x-field label { text-transform: none; }
.x-cred .x-cred-logos img { height: 54px; }
.x-footer .x-backing img { height: 46px; }
.x-footer .x-backing figure { flex: 0 0 auto; }
/* footer corner: green field with the profile's sweeping curve */
.x-footer::before {
  -webkit-mask: none; mask: none; border-radius: 0; opacity: 1;
  left: 0; top: 0; width: 230px; height: 230px; background: var(--x-green);
}
.x-footer::after {
  content: ""; position: absolute; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%;
  background: #2c4452; z-index: 1;
}
@media (max-width: 575px) {
  .x-footer::before { width: 120px; height: 120px; left: 0; top: 0; }
  .x-footer::after { width: 240px; height: 240px; }
}
@media (max-width: 991px) { .x-direct .x-chev { display: none; } }
.x-footer { background: linear-gradient(100deg, #2c4452 0%, #2c4452 30%, #23656f 62%, #12aaa8 100%); }
