/**
 * ============================================================
 *  components.css  — Global reusable component layer
 *
 *  Load order: reset.css → font.css → style.css → components.css
 *  → custom-style.css  (per-brand overrides last)
 *
 *  All values reference the tokens in style.css :root.
 *  DO NOT hard-code colours — use var(--royale), var(--fg), etc.
 * ============================================================
 */

/* ────────────────────────────────────────────────────────────
   1. LAYOUT UTILITIES
──────────────────────────────────────────────────────────── */

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--royale);
  background: rgba(92,46,145,.08);
  border: 1px solid rgba(92,46,145,.18);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
}
.lead.center { margin-inline: auto; }

/* ────────────────────────────────────────────────────────────
   2. EXISTING NAV/HEADER OVERRIDES
   Targets the current Power-Pages Bootstrap nav HTML.
   Re-skins it to match the new design tokens without
   changing any HTML or JavaScript.
──────────────────────────────────────────────────────────── */

/* Utility bar */
.top-bar {
  background: var(--fg) !important;
  color: #cfcfcf !important;
  font-size: 13px !important;
  height: 40px !important;
  line-height: 40px !important;
}
.top-bar a,
.top-bar .top-bar-wrapper a {
  color: #cfcfcf !important;
}
.top-bar a:hover {
  color: var(--white) !important;
}
.top-bar .top-bar-wrapper .social-icons a img,
.top-bar .social-icon img {
  filter: brightness(0) invert(1) !important;
  opacity: .7;
}
.top-bar .top-bar-wrapper .social-icons a:hover img,
.top-bar .social-icon:hover img {
  opacity: 1;
}

/* Main navbar wrapper */
.navbar-wrapper,
#navbar {
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: saturate(180%) blur(6px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(6px) !important;
  border-bottom: 1px solid var(--divider) !important;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.04) !important;
  height: 72px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  transition: box-shadow .2s ease !important;
}
.navbar-wrapper.scrolled,
#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
}

/* Nav links */
.navbar-nav .nav-link,
.navbar-wrapper .nav-link {
  color: var(--fg) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding-inline: 14px !important;
  transition: color .15s ease !important;
}
.navbar-nav .nav-link:hover,
.navbar-wrapper .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link {
  color: var(--royale) !important;
}
.navbar-nav .nav-link .arrow-icon img {
  width: 14px !important;
  opacity: .6;
  transition: opacity .15s ease;
}
.navbar-nav .nav-link:hover .arrow-icon img { opacity: 1; }

/* Logo */
.navbar-brand img,
.navbar-wrapper .brand img {
  height: 36px !important;
  width: auto !important;
}

/* Contact-us CTA button in old nav */
.navbar-wrapper .contact-us,
a.contact-us {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 20px !important;
  background: var(--royale) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background .15s ease, transform .1s ease !important;
  white-space: nowrap !important;
}
.navbar-wrapper .contact-us:hover,
a.contact-us:hover {
  background: var(--royale-hover) !important;
  transform: translateY(-1px) !important;
}

/* Dropdown menus (mega-menu) — update accent colours only */
.dropdown-menus {
  border: 1px solid var(--divider) !important;
  border-top: 3px solid var(--royale) !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
}
.dropdown-menus .menu h6,
.dropdown-menus .menu .title {
  color: var(--royale) !important;
}
.dropdown-menus .menu a:hover {
  color: var(--royale) !important;
}
.dropdown-menus .menu .highlight-card {
  background: linear-gradient(135deg, var(--royale) 0%, var(--royale-compound) 100%) !important;
}

/* Bootstrap dropdown (.dropdown-menu) recolour */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: var(--royale) !important;
  background: rgba(92,46,145,.07) !important;
}
.dropdown-menu .dropdown-item.active {
  background: var(--royale) !important;
  color: var(--white) !important;
}

/* ────────────────────────────────────────────────────────────
   3. NEW HEADER — used when pages adopt the new nav HTML
──────────────────────────────────────────────────────────── */

.utility {
  background: var(--fg);
  color: #cfcfcf;
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.utility a { color: #cfcfcf; text-decoration: none; }
.utility a:hover { color: var(--white); }
.utility .u-links { display: flex; gap: 20px; }
.utility .u-social { display: flex; gap: 10px; }
.utility .u-social img { height: 15px; filter: brightness(0) invert(1); opacity: .65; }
.utility .u-social a:hover img { opacity: 1; }

header.site {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow .2s ease;
}
header.site.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
header.site .wrap { display: flex; align-items: center; gap: 32px; width: 100%; }

.site-logo img { height: 36px; width: auto; display: block; }

nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main .nav-item { position: relative; }
nav.main .nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav.main .nav-item > a:hover,
nav.main .nav-item:hover > a { color: var(--royale); background: rgba(92,46,145,.06); }
nav.main .nav-item > a .chevron { font-size: 10px; opacity: .5; transition: transform .2s; }
nav.main .nav-item:hover > a .chevron { transform: rotate(180deg); }

/* New CSS-hover dropdown */
nav.main .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--royale);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  list-style: none;
  z-index: 200;
}
nav.main .nav-item:hover .dropdown,
nav.main .nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
nav.main .dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: color .12s, background .12s;
}
nav.main .dropdown li a:hover { color: var(--royale); background: rgba(92,46,145,.07); }

/* Header CTA */
.header-cta {
  margin-left: auto;
  flex-shrink: 0;
}
.header-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--royale);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.header-cta a:hover { background: var(--royale-hover); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--fg);
  font-size: 22px;
  margin-left: auto;
}

/* ────────────────────────────────────────────────────────────
   4. BUTTONS
──────────────────────────────────────────────────────────── */

.btn.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: var(--royale);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn.btn-primary:hover,
button.btn-primary:hover {
  background: var(--royale-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(92,46,145,.25);
}

.btn.btn-light,
button.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.btn.btn-light:hover,
button.btn-light:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

/* ────────────────────────────────────────────────────────────
   5. HERO SECTION
──────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(60px, 8vw, 120px);
  background: linear-gradient(160deg, #f0eaf8 0%, #fafafa 55%, #eef4fb 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-grid h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 20px;
}
.ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--royale);
  background: rgba(92,46,145,.08);
  border: 1px solid rgba(92,46,145,.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.ms-badge img { height: 18px; }
.hero-grid .sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 500px;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--muted); }

.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
.media-thumb video, .media-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.media-stat { padding: 12px 14px; }
.media-stat .n { font-size: 22px; font-weight: 700; color: var(--royale); }
.media-stat .l { font-size: 12px; color: var(--muted); }

.stat-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(92,46,145,.15);
}
.stat-strip .stat .n,
.stat .n { font-size: 28px; font-weight: 700; color: var(--royale); }
.stat-strip .stat .l,
.stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ────────────────────────────────────────────────────────────
   6. PARTNER BAND
──────────────────────────────────────────────────────────── */

.partner-band {
  padding-block: clamp(40px, 5vw, 72px);
  background: linear-gradient(135deg, var(--royale) 0%, #7c52b8 60%, var(--royale-compound) 100%);
  color: var(--white);
}
.partner-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-band h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.partner-band blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  max-width: 700px;
  border: none;
  padding: 0;
  margin: 0;
  font-style: italic;
}

/* ────────────────────────────────────────────────────────────
   7. CARDS & SOLUTION GRID
──────────────────────────────────────────────────────────── */

section { padding-block: clamp(48px, 6vw, 96px); }
section h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
}
section h3 { font-size: 18px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: rgba(92,46,145,.25);
}
.card .icon { margin-bottom: 16px; }
.card .icon img { height: 42px; width: auto; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--royale);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.readmore:hover { color: var(--royale-hover); text-decoration: underline; }

/* ────────────────────────────────────────────────────────────
   8. INDUSTRY TABS
──────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 32px 28px;
}
.tab {
  padding: 9px 20px;
  border: 1.5px solid var(--divider);
  border-radius: 20px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { border-color: var(--royale); color: var(--royale); }
.tab.active {
  background: var(--royale);
  border-color: var(--royale);
  color: var(--white);
}
.panel { display: none; }
.panel.active { display: block; }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}
.case .visual { height: 360px; overflow: hidden; }
.case .visual img { width: 100%; height: 100%; object-fit: cover; }
.case .body { padding: 40px 40px 40px 0; }
.tagline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--royale);
  margin-bottom: 8px;
}
.metrics { display: flex; gap: 24px; margin-block: 20px; flex-wrap: wrap; }
.metric .n { font-size: 26px; font-weight: 700; color: var(--royale); }
.metric .l { font-size: 12px; color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   9. METHODOLOGY STEPS
──────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--divider);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--royale);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h4 { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ────────────────────────────────────────────────────────────
   10. SPLIT (2-col with visual)
──────────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .visual { border-radius: 14px; overflow: hidden; }
.split .visual img { width: 100%; display: block; border-radius: 14px; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  background: rgba(92,46,145,.07);
  border: 1px solid rgba(92,46,145,.18);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--royale);
}
.pill-tag img { height: 16px; }

.comp-row { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.comp {
  padding: 10px 14px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--surface);
}
.comp img { height: 32px; display: block; }

/* ────────────────────────────────────────────────────────────
   11. CERTIFICATION CAROUSEL
──────────────────────────────────────────────────────────── */

.cert-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.cert-move {
  display: flex;
  width: max-content;
  animation: certScroll 28s linear infinite;
}
.cert-move:hover { animation-play-state: paused; }
.cert {
  flex-shrink: 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
}
.cert img { height: 52px; width: auto; filter: grayscale(.3); transition: filter .2s; }
.cert:hover img { filter: grayscale(0); }
@keyframes certScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────
   12. CLIENT LOGOS
──────────────────────────────────────────────────────────── */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 10px;
  min-width: 130px;
  transition: box-shadow .15s;
}
.logo-box:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.logo-box img { height: 36px; width: auto; filter: grayscale(.4); transition: filter .2s; }
.logo-box:hover img { filter: grayscale(0); }

/* ────────────────────────────────────────────────────────────
   13. GRID LAYOUTS
──────────────────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ────────────────────────────────────────────────────────────
   14. CUSTOMER STORIES
──────────────────────────────────────────────────────────── */

.story {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.story:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-color: rgba(92,46,145,.2); }
.story .co { font-size: 13px; font-weight: 600; color: var(--royale); text-transform: uppercase; letter-spacing: .06em; }
.story .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.story .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(92,46,145,.07);
  border-radius: 12px;
  color: var(--royale);
  font-weight: 500;
}
.story .tag img { height: 14px; }
.story h3 { font-size: 16px; font-weight: 600; color: var(--fg); line-height: 1.35; margin: 0; }
.story h5 { font-size: 13px; font-weight: 600; color: var(--fg); margin: 12px 0 4px; }
.story p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.story .results {
  display: flex;
  gap: 24px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}
.story .results .n { font-size: 22px; font-weight: 700; color: var(--royale); }
.story .results .l { font-size: 12px; color: var(--muted); }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--royale);
  text-decoration: none;
  margin-top: 6px;
}
.story-link:hover { color: var(--royale-hover); text-decoration: underline; }

/* ────────────────────────────────────────────────────────────
   15. TESTIMONIALS
──────────────────────────────────────────────────────────── */

.testi {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi .stars { color: #f0b429; font-size: 15px; }
.testi .stars span { color: var(--muted); font-size: 13px; font-weight: 600; }
.testi p { font-size: 15px; color: var(--fg); line-height: 1.7; flex: 1; font-style: italic; }
.testi .person { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royale), var(--royale-compound));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.testi .nm { font-size: 14px; font-weight: 600; color: var(--fg); }
.testi .role { font-size: 13px; color: var(--muted); }

/* ────────────────────────────────────────────────────────────
   16. FAQ ACCORDION
──────────────────────────────────────────────────────────── */

.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: color .15s;
}
.faq-q:hover { color: var(--royale); }
.faq-q .ind {
  font-size: 22px;
  font-weight: 400;
  color: var(--royale);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q { color: var(--royale); }
.faq-a {
  display: none;
  padding-bottom: 18px;
}
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ────────────────────────────────────────────────────────────
   17. AUDIT / BOTTOM CTA
──────────────────────────────────────────────────────────── */

#audit {
  background: linear-gradient(135deg, var(--royale) 0%, #7c52b8 60%, var(--royale-compound) 100%);
}
.audit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.audit h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.audit > div > div { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.audit > div > p { font-size: 15px; color: rgba(255,255,255,.9); line-height: 1.6; margin-bottom: 24px; }
.audit ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.audit ul li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.9); }
.ck { color: var(--royale-compound); font-size: 16px; font-weight: 700; }
.trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.trust span {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  color: rgba(255,255,255,.85);
}

.audit-form {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.audit-form h3 { font-size: 20px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.audit-form label { font-size: 13px; font-weight: 500; color: var(--fg); margin-top: 4px; }
.audit-form input,
.audit-form textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--divider);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--fg);
  background: var(--white);
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.audit-form input:focus,
.audit-form textarea:focus {
  outline: none;
  border-color: var(--royale);
}

/* ────────────────────────────────────────────────────────────
   18. FOOTER
──────────────────────────────────────────────────────────── */

/* Override old footer colours */
footer,
footer.site,
.site-footer {
  background: var(--fg) !important;
  color: rgba(255,255,255,.8) !important;
  padding-block: clamp(48px, 6vw, 80px) 0 !important;
}

/* New footer structure */
footer.site .wrap,
.foot-wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand img { height: 36px; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); }
.foot-brand p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; }
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a img { height: 20px; filter: brightness(0) invert(1); opacity: .6; transition: opacity .15s; }
.foot-social a:hover img { opacity: 1; }

.foot-col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .12s;
}
.foot-col ul li a:hover { color: var(--white); }

.offices {
  padding-block: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.offices h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.offices-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.office {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
}
.office img { height: 18px; margin-top: 2px; flex-shrink: 0; }
.office address { font-size: 13px; color: rgba(255,255,255,.65); font-style: normal; line-height: 1.6; }
.office address strong { color: rgba(255,255,255,.85); display: block; margin-bottom: 2px; }

.copyright {
  padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.copyright a { color: rgba(255,255,255,.6); text-decoration: none; }
.copyright a:hover { color: var(--white); }
.copyright-links { display: flex; gap: 20px; }

/* ────────────────────────────────────────────────────────────
   19. MOBILE NAV OVERLAY
──────────────────────────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 90vw);
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px 40px;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mobile-nav-header img { height: 30px; }
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fg);
  line-height: 1;
  padding: 4px;
}
.mobile-nav details { border-bottom: 1px solid var(--divider); }
.mobile-nav details summary,
.mobile-nav > a {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}
.mobile-nav details[open] summary::after { content: '−'; }
.mobile-nav details ul {
  list-style: none;
  padding: 0 0 12px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav details ul li a {
  display: block;
  padding: 8px 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.mobile-nav details ul li a:hover { color: var(--royale); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  display: block;
  padding: 12px;
  background: var(--royale);
  color: var(--white);
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.mobile-nav .mobile-cta:hover { background: var(--royale-hover); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-overlay.visible { opacity: 1; visibility: visible; }

/* ────────────────────────────────────────────────────────────
   20. RESPONSIVE
──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Hide desktop nav, show toggle */
  nav.main,
  .navbar-nav,
  .header-cta { display: none !important; }
  .nav-toggle { display: flex !important; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .cta-row { justify-content: center; }
  .hero-grid .sub { margin-inline: auto; }
  .ms-badge { margin-inline: auto; }

  .case { grid-template-columns: 1fr; }
  .case .visual { height: 220px; }
  .case .body { padding: 28px 20px; }

  .split { grid-template-columns: 1fr; }
  .split .visual { order: -1; }

  .audit { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .partner-band .wrap { flex-direction: column; text-align: center; }

  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-media { grid-template-columns: 1fr; }
  .stat-strip { gap: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .offices-grid { flex-direction: column; }
  .solutions-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
