/* RMSB website, version 2
   One stylesheet for all pages. No framework. */

/* ---------- Fonts (Gilroy, from the project's own font files) ---------- */
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0A2E5C;
  --navy-2: #1A4D8F;
  --blue: #034EA2;
  --nav: #3F74B0;          /* live-site nav blue (#477EBB) deepened slightly so white nav text passes 4.5:1 */
  --band-1: #2F6DB5;
  --band-2: #3C77BB;       /* consultancy band; lower stop deepened for white-text contrast */
  --green: #00904C;
  --green-bright: #00B862;
  --wa: #1E8E4E;
  --cta: #CF4410;          /* 4.7:1 with white (the old #FF6B35 is 2.8:1) */
  --cta-hover: #B23A0D;
  --accent-icon: #FF6B35;
  --ink: #1A1A1D;
  --text: #2E2D2C;
  --muted: #5B6472;
  --line: #DCE3EE;
  --line-soft: #E9EEF6;
  --field: #C9D3E1;
  --soft: #F6F8FB;
  --pale-blue: #E9F1FB;
  --on-dark: #E6EEF8;
  --on-dark-2: #DCE8F6;
  --on-dark-3: #B8D4F1;
  --focus-light: #0A5BC4;
  --focus-dark: #FFC400;
  --error: #B42318;

  --wrap: 1240px;
  --gutter: 40px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Gilroy', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--focus-dark); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 96px 0; }
.sec--soft { background: var(--soft); border-top: 1px solid var(--line-soft); }
.sec--soft-both { background: var(--soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2; font-weight: 700; color: var(--ink); }
.dark .h2 { color: #fff; }
.bullets { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
.bullets--tight { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--20 { gap: 20px; }
.stack--18 { gap: 18px; }
.stack--12 { gap: 12px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.two--intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.two--about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.two--clients { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.two--hse { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.two--head { gap: 56px; align-items: end; }
.two--start { align-items: start; }
.two--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: stretch; }

/* ---------- Images ---------- */
.imgbox { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.imgbox picture, .imgbox img { width: 100%; height: 100%; }
.imgbox img { object-fit: cover; }
.shape-a { border-radius: 0 48px 0 48px; }
.shape-b { border-radius: 48px 0 48px 0; }
.ar-5-4 { aspect-ratio: 5 / 4; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-16-10 { aspect-ratio: 16 / 10; }
.r-12 { border-radius: 12px; }
.r-16 { border-radius: 16px; }

/* Stacked images that cross-fade (hero, service picker, tabs, gallery) */
.fade-stack { position: relative; }
.fade-stack > .fade-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.fade-stack > .fade-item.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.fade-stack > .fade-item picture, .fade-stack > .fade-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: 25px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-hover); box-shadow: 0 6px 18px rgba(207, 68, 16, .35); transform: translateY(-1px); }
.btn--ghost { border-color: #fff; color: #fff; padding: 11px 23px; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: #fff; font-size: 16px; font-weight: 700; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--text); border-radius: 2px; padding: 10px 20px; }
.btn--light:hover { background: var(--navy); color: #fff; }
.btn--sm { min-height: 36px; padding: 8px 18px; font-size: 13px; border-radius: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue); }
.link-arrow svg { flex: none; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--wa { color: #167A42; } /* darker than the button green so text passes 4.5:1 */
.link-arrow--wa:hover { color: #0F5C31; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar__group { display: flex; align-items: center; gap: 24px; }
.topbar a { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.topbar a:hover { color: var(--on-dark-2); }
.topbar .btn { min-height: 32px; }
.topbar .btn:hover { color: #fff; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav); color: #fff;
  box-shadow: 0 2px 12px rgba(10, 46, 92, .25);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 46, 92, .35); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; }
.logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 600; }
.nav > a, .nav__item > a {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 28px 0 24px;
}
.nav > a::after, .nav__item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > a:hover::after, .nav__item > a:hover::after,
.nav > a[aria-current]::after, .nav__item > a[aria-current]::after { transform: scaleX(1); }
.nav a:hover { color: var(--on-dark); }

.nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: -6px;
  border: 0; border-radius: 6px; background: transparent; color: #fff;
}
.nav__toggle:hover { background: rgba(255, 255, 255, .14); }
.nav__toggle svg { transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% - 4px); left: 50%; width: 340px; padding: 8px;
  background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 16px 40px rgba(10, 46, 92, .22);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.submenu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.submenu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease); }
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: var(--pale-blue); color: var(--blue); }
.submenu :focus-visible { outline-color: var(--focus-light); }
.submenu li { opacity: 1; transform: none; }
.submenu.is-open li { animation: subIn .3s var(--ease) both; }
.submenu.is-open li:nth-child(2) { animation-delay: .04s; }
.submenu.is-open li:nth-child(3) { animation-delay: .08s; }
.submenu.is-open li:nth-child(4) { animation-delay: .12s; }
@keyframes subIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* Service icon chip + two-line label (desktop dropdown and mobile menu) */
.svc-ico {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; background: #FFF1EB; color: var(--cta);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.submenu a:hover .svc-ico, .submenu a:focus-visible .svc-ico, .submenu a[aria-current="page"] .svc-ico { background: var(--cta); color: #fff; transform: scale(1.05); }
.svc-lbl { display: flex; flex-direction: column; line-height: 1.3; }
.svc-lbl small { font-size: 13px; font-weight: 400; color: var(--muted); }

.burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; background: transparent; color: #fff;
}
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

.mnav {
  display: none; background: var(--nav); border-top: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
}
.mnav nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; font-weight: 600; }
.mnav nav > a:not(.btn), .mnav__row > a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav nav > a:not(.btn)[aria-current], .mnav__row > a[aria-current] { box-shadow: inset 3px 0 0 #fff; padding-left: 12px; }
.mnav .btn { margin-top: 12px; }
.mnav__row { display: flex; align-items: stretch; }
.mnav__row > a { flex: 1; }
.mnav__toggle {
  display: flex; align-items: center; justify-content: center; width: 48px; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #fff;
}
.mnav__toggle svg { transition: transform .2s var(--ease); }
.mnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__sub { list-style: none; margin: 0; padding: 6px 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav__sub a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; }
.mnav__sub a:hover, .mnav__sub a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.mnav__sub .svc-ico { width: 36px; height: 36px; background: rgba(255, 255, 255, .16); color: #fff; }
.mnav__sub .svc-lbl small { color: var(--on-dark-2); }

/* ---------- Home hero (option A: full-width photo) ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(560px, 72vh, 680px); color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .fade-item img { transform: scale(1.06); transition: transform 7s ease-out; }
.hero__media .fade-item.is-active img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 46, 92, .95) 0%, rgba(10, 46, 92, .75) 40%, rgba(10, 46, 92, .1) 75%); }
.hero__body { position: relative; width: 100%; padding-top: 56px; padding-bottom: 48px; }
.hero__panel { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.accent-bar { width: 64px; height: 5px; border-radius: 3px; background: var(--green); }
.hero__title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; font-weight: 700; }
.hero__list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--on-dark); max-width: 50ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tabs-wrap { position: relative; background: rgba(10, 46, 92, .72); border-top: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero__tab {
  display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 18px;
  border: 0; border-top: 3px solid transparent; background: transparent; color: #fff;
  font-weight: 600; text-align: left; position: relative;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.hero__tab:hover { background: rgba(255, 255, 255, .08); }
.hero__tab[aria-selected="true"] { background: rgba(255, 255, 255, .14); border-top-color: var(--green-bright); }
.hero__tab-num { font-size: 13px; color: var(--on-dark-3); }

.is-entering { animation: panelIn .5s var(--ease) both; }
.text-green { color: var(--green); }
.mw-22 { max-width: 22ch; }
.mw-54 { max-width: 54ch; }
.mw-56 { max-width: 56ch; }
.mw-44 { max-width: 44ch; }
.self-start { align-self: flex-start; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s ease-out both; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 46, 92, .95) 0%, rgba(10, 46, 92, .78) 45%, rgba(10, 46, 92, .15) 80%); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.1; font-weight: 700; max-width: 18ch; }
.page-hero p { max-width: 58ch; color: var(--on-dark); font-size: 17px; }
.breadcrumb { font-size: 14px; color: var(--on-dark-3); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10, 46, 92, .08); }
.stat svg { color: var(--blue); }
.stat__n { font-size: 40px; line-height: 1; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- Blue band ---------- */
.band { background: linear-gradient(180deg, var(--band-1), var(--band-2)); color: #fff; }
.band .bullets { color: #F2F7FD; }

/* ---------- Home service picker ---------- */
.svcgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc {
  display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 18px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 46, 92, .08); }
.svc svg { flex: none; color: var(--accent-icon); transition: color .25s var(--ease); }
.svc__text { display: flex; flex-direction: column; }
.svc__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.svc__sub { font-size: 13px; color: var(--muted); transition: color .25s var(--ease); }
.svc[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc[aria-pressed="true"] svg { color: #fff; }
.svc[aria-pressed="true"] .svc__sub { color: var(--on-dark-2); }
.svc-detail { display: flex; flex-direction: column; gap: 16px; }
.svc-detail__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.svc-detail__row p { max-width: 40ch; }

/* ---------- Client strip ---------- */
.trusted { background: var(--soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 40px 0; }
.trusted .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.trusted__title { font-weight: 700; color: var(--ink); }
.logo-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.logo-chip { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; }
.logo-chip--dark { background: var(--navy); border-color: var(--navy); }
.logo-chip img { height: 48px; width: auto; }
.logo-chip--llc img { height: 44px; }
.trusted__more { color: var(--muted); font-size: 14px; font-weight: 600; max-width: 46ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 46, 92, .95), rgba(3, 78, 162, .8)); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta-band__text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.cta-band h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; font-weight: 700; }
.cta-band p { color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark-2); font-size: 15px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot__brand { display: flex; flex-direction: column; gap: 16px; }
.foot__brand img { height: 72px; width: auto; }
.foot__brand p { max-width: 34ch; }
.foot h2 { margin-bottom: 16px; font-size: 17px; color: #fff; font-weight: 700; }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot address { display: flex; flex-direction: column; gap: 8px; }
.foot a { transition: color .2s var(--ease); }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { border-top: 1px solid rgba(255, 255, 255, .15); }
.foot__legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--on-dark-3); }
.foot__legal a { display: inline-block; padding: 4px 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.foot__legal a:hover { text-decoration-color: #fff; }
/* Ask AI (same pattern as the AI LAB Technologies site footer) */
.ask-ai { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ask-ai__label { display: flex; align-items: flex-start; gap: 10px; max-width: 34ch; font-size: 14px; line-height: 1.45; font-weight: 600; color: #fff; }
.ask-ai__spark { flex: none; margin-top: 2px; color: #FF8A80; }
.foot .ask-ai__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ask-ai__list li { position: relative; }
.ask-ai__list a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.ask-ai__list a:hover, .ask-ai__list a:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.ask-ai__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.ask-ai__list li:hover .ask-ai__tip, .ask-ai__list li:focus-within .ask-ai__tip { opacity: 1; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* ---------- Generic cards & grids ---------- */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card-lift { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10, 46, 92, .12); }

/* About: tabs */
.tabs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 10px 22px; border-radius: 24px; border: 1px solid var(--field);
  background: #fff; color: var(--ink); font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tabpanel-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 40px; }
.tabpanel-card h3 { font-size: 28px; line-height: 1.2; color: var(--blue); }

/* About: certificates */
.cert { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.cert__img { display: block; background: var(--soft); padding: 24px 24px 0; height: 300px; overflow: hidden; }
.cert__img img { width: 100%; height: auto; box-shadow: 0 4px 16px rgba(10, 46, 92, .12); transition: transform .5s var(--ease); }
.cert:hover .cert__img img { transform: translateY(-6px); }
.cert__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 700; color: var(--ink); }
.cert__view { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--blue); }
.cert__view svg { transition: transform .2s var(--ease); }
.cert:hover .cert__view svg { transform: translateX(4px); }

/* About: HSE */
.hse-img { width: 100%; max-width: 320px; height: auto; }
.hse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hse-card { border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.hse-card--blue { border-top-color: var(--blue); }
.hse-card h3 { font-size: 21px; color: var(--ink); }

/* Services */
.svc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.svc-card .imgbox img { transition: transform .6s var(--ease); }
.svc-card:hover .imgbox img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.svc-card__body svg.ico { color: var(--accent-icon); }
.svc-card h3 { font-size: 21px; line-height: 1.25; color: var(--ink); }
.svc-card__body p { flex: 1; }
.svc-card:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3, 78, 162, .25); }
.sub-h { font-size: 26px; line-height: 1.25; color: var(--ink); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--field); font-weight: 600; color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease); }
.chips li:hover { border-color: var(--blue); color: var(--blue); }

/* Clients */
.client-grid { list-style: none; padding: 0; }
.client-tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; padding: 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; font-weight: 700; font-size: 17px; color: var(--ink); }
.client-tile--dark { background: var(--navy); border-color: var(--navy); }
.client-tile img { height: 64px; width: auto; max-width: 100%; }
.client-tile--llc img { height: 60px; }
.gallery__main { aspect-ratio: 16 / 10; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .2s var(--ease); }
.thumb::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .2s var(--ease); }
.thumb:hover img { transform: scale(1.06); }
.thumb[aria-pressed="true"]::after { box-shadow: inset 0 0 0 3px var(--green); }
.thumb[aria-pressed="false"] img { opacity: .85; }

/* Contact */
.info-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.info-card h2 { font-size: 21px; color: var(--ink); }
.info-card__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--pale-blue); color: var(--blue); }
.info-card .muted { color: var(--muted); }
.phones { display: flex; flex-direction: column; gap: 4px; }
.phones a:hover strong { color: var(--blue); }
.email-link { font-weight: 700; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }

.form-card { border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 16px; padding: 40px; background: #fff; }
.form { display: flex; flex-direction: column; gap: 20px; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.fld {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px;
  color: var(--ink); background: #fff; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fld:hover { border-color: #9DB0C9; }
.fld:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #9CC0EA; }
select.fld { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.fld { resize: vertical; min-height: 132px; }
.fld[aria-invalid="true"] { border-color: var(--error); }
.fld[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .25); }
.field__error { display: flex; align-items: center; gap: 6px; color: var(--error); font-size: 14px; font-weight: 600; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: 10px; background: #FDECEA; color: var(--error); font-weight: 600; }
.form__status a { text-decoration: underline; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 40px 0; animation: panelIn .5s var(--ease) both; }
.success__ico { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #E3F5EC; color: var(--green); }
.success h2 { font-size: 30px; color: var(--ink); }
.success p { max-width: 48ch; }

.office { position: relative; border-radius: 16px; overflow: hidden; min-height: 420px; background: var(--navy); color: #fff; }
.office picture, .office img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(180deg, rgba(10, 46, 92, 0), rgba(10, 46, 92, .95) 40%); display: flex; flex-direction: column; gap: 8px; }
.office__cap .t { font-weight: 700; font-size: 18px; }
.office__cap .s { color: var(--on-dark-2); }
.office .btn { align-self: flex-start; margin-top: 6px; }

.map { width: 100%; height: clamp(320px, 36vw, 480px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--soft); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Service detail pages ---------- */
.page-hero--svc .wrap { padding-bottom: 72px; }
.page-hero--svc .hero__list { max-width: 56ch; }
.page-hero__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.lead-h { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; font-weight: 700; color: var(--ink); max-width: 26ch; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.benefit { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; }
.benefit h3 { font-size: 20px; line-height: 1.3; color: var(--ink); }
.benefit__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--pale-blue); color: var(--blue); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.benefit:hover .benefit__ico { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }

.feature + .feature { margin-top: 88px; }
.feature .two { align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__num { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #167A42; } /* darker green: 14px text needs 4.5:1 */
.feature__num::after { content: ''; width: 40px; height: 2px; background: currentColor; }
.feature .imgbox img { transition: transform .8s var(--ease); }
.feature:hover .imgbox img { transform: scale(1.04); }

.more-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.more-svc a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; }
.more-svc a:hover { border-color: var(--blue); }
.more-svc .svc-lbl { flex: 1; }
.more-svc .arrow { flex: none; color: var(--blue); transition: transform .2s var(--ease); }
.more-svc a:hover .arrow { transform: translateX(4px); }
.more-svc a:hover .svc-ico { background: var(--cta); color: #fff; }

/* ---------- Scroll reveal (only when JS is running and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .g4.svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --header-h: 72px; }
  .logo img { height: 56px; }
  .sec { padding: 72px 0; }
  .nav, .topbar__mail { display: none !important; }
  .burger { display: flex; }
  .mnav.is-open { display: block; animation: menuIn .25s var(--ease) both; }
  .hero { min-height: 0; }
  .hero__shade, .page-hero__shade { background: linear-gradient(180deg, rgba(10, 46, 92, .78), rgba(10, 46, 92, .95)); }
  .hero__body { padding-top: 40px; padding-bottom: 40px; }
  .hero__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .two--intro, .two--about, .two--clients, .two--hse, .two--form, .tabpanel-card { grid-template-columns: 1fr; gap: 40px; }
  .two--head { gap: 16px; }
  .tabpanel-card { padding: 28px; gap: 28px; }
  .order2 { order: 2; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .hse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: 1fr; }
  .more-svc { grid-template-columns: 1fr; }
  .feature + .feature { margin-top: 64px; }
  .feature--flip .feature__media { order: 0; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .sec { padding: 56px 0; }
  .logo img { height: 48px; }
  .foot__brand img { height: 64px; }
  .topbar__quote { display: none !important; }
  .hero__body { padding-top: 32px; padding-bottom: 32px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero__tab { min-height: 64px; padding: 12px 14px; gap: 8px; font-size: 15px; }
  .svcgrid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .g3, .g4, .g4.svc-cards, .hse-grid { grid-template-columns: 1fr; }
  .client-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-tile { min-height: 100px; padding: 14px; font-size: 15px; }
  .client-tile img { height: 48px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips li { font-size: 14px; }
  .formgrid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .info-card { padding: 22px; }
  .cert__img { height: 240px; }
  .cta-band .btn-row .btn { flex: 1 1 auto; }
  .trusted .wrap { gap: 16px; }
  .logo-chip { height: 64px; padding: 8px 14px; }
  .logo-chip img { height: 40px; }
  .logo-chip--llc img { height: 36px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .office { min-height: 360px; }
  .benefit { padding: 22px; }
  .page-hero--svc .wrap { padding-bottom: 48px; }
  .page-hero--svc .btn-row .btn { flex: 1 1 100%; }
  .feature + .feature { margin-top: 48px; }
}

@media (max-width: 360px) {
  .hero__tabs { grid-template-columns: 1fr; }
  .client-grid.g4 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media .fade-item img, .page-hero__media img { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .wa-float, .cta-band, .hero__tabs-wrap, .map { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
  .hero__media, .hero__shade, .page-hero__media, .page-hero__shade { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
