/* ==========================================================================
   XIVONI — Main stylesheet
   --------------------------------------------------------------------------
   HOW TO EDIT
   • Brand colours, fonts and spacing are set once in :root below.
     Change a value there and it updates across the whole site.
   • Palette: white + charcoal (#2E2E38) lead. Xivoni blue and red are accents.
   • Sections are labelled in order (1. Base, 2. Header, 3. Heroes ...).
   • Bootstrap 5 is loaded before this file, so anything here overrides it.
   ========================================================================== */

/* ---------- 0. BRAND TOKENS (edit here) ---------- */
:root {
  --xv-charcoal: #2e2e38; /* KEY COLOUR: dark grey for headings, dark sections, footer */
  --xv-charcoal-2: #3a3a46; /* slightly lighter charcoal for layering */
  --xv-charcoal-dark: #23232b; /* footer */
  --xv-navy: #070752; /* Xivoni blue: used sparingly as a brand accent (header bar, diagonal panels, feature blocks) */
  --xv-navy-2: #10106b;
  --xv-red: #e5173a; /* Xivoni red: calls to action and small accents only */
  --xv-red-dark: #c01030; /* red hover state */
  --xv-gold: #9a8738; /* gold: the short rounded bar before section labels */
  --xv-white: #ffffff;
  --xv-grey-50: #f6f6fa; /* light section background */
  --xv-grey-100: #eaeaf0;
  --xv-grey-300: #c4c4cd;
  --xv-grey-600: #5e5e6b; /* body copy (muted) */
  --xv-ink: #2e2e38; /* body copy (strong) */

  --xv-font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --xv-font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --xv-radius: 0; /* square corners throughout */
  --xv-shadow: 0 10px 30px rgba(46, 46, 56, 0.08);
  --xv-shadow-lg: 0 18px 50px rgba(46, 46, 56, 0.16);
  --xv-section-y: clamp(4rem, 8vw, 7rem);
}

/* ---------- 1. BASE ---------- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--xv-font-body);
  color: var(--xv-ink);
  background: var(--xv-white);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5 {
  font-family: var(--xv-font-head);
  color: var(--xv-charcoal);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1,
.h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
h2,
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
h3,
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
p {
  color: var(--xv-grey-600);
}
a {
  color: var(--xv-charcoal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--xv-navy);
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--xv-red);
  color: #fff;
}

/* Keyboard focus — keep visible for accessibility */
:focus-visible {
  outline: 3px solid var(--xv-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--xv-charcoal);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--xv-grey-600);
  font-weight: 400;
}
.text-navy {
  color: var(--xv-charcoal) !important;
} /* name kept for compatibility; now charcoal */
.text-red {
  color: var(--xv-red) !important;
}
.bg-navy {
  background: var(--xv-navy) !important;
} /* Xivoni blue feature block: use sparingly */
.bg-soft {
  background: var(--xv-grey-50) !important;
}

/* Small red label above headings, e.g. "OUR SERVICES" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--xv-font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xv-red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--xv-red);
}
.on-dark .eyebrow {
  color: #ff6b83;
} /* lighter red for contrast on navy */
.on-dark .eyebrow::before {
  background: #ff6b83;
}

.section {
  padding: var(--xv-section-y) 0;
}
.section-sm {
  padding: calc(var(--xv-section-y) * 0.6) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

/* ---------- 2. BUTTONS ---------- */
.btn {
  font-family: var(--xv-font-head);
  font-weight: 500;
  border-radius: var(--xv-radius);
  padding: 0.8rem 1.6rem;
  letter-spacing: 0.01em;
}
.btn-xv {
  background: var(--xv-red);
  color: #fff;
  border: 2px solid var(--xv-red);
}
.btn-xv:hover,
.btn-xv:focus {
  background: var(--xv-red-dark);
  border-color: var(--xv-red-dark);
  color: #fff;
}
.btn-xv-navy {
  background: var(--xv-navy);
  color: #fff;
  border: 2px solid var(--xv-navy);
}
.btn-xv-navy:hover {
  background: var(--xv-navy-2);
  color: #fff;
}
.btn-outline-navy {
  border: 2px solid var(--xv-charcoal);
  color: var(--xv-charcoal);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--xv-charcoal);
  color: #fff;
}
.btn-outline-light-xv {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}
.btn-outline-light-xv:hover {
  background: #fff;
  color: var(--xv-charcoal);
  border-color: #fff;
}

/* Text link with arrow, e.g. "Learn more »" */
.link-arrow {
  font-family: var(--xv-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--xv-charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.link-arrow i {
  transition: transform 0.2s ease;
  color: var(--xv-red);
}
.link-arrow:hover {
  color: var(--xv-red);
}
.link-arrow:hover i {
  transform: translateX(4px);
}
.on-dark .link-arrow {
  color: #fff;
}

/* ---------- 3. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  border-top: 4px solid var(--xv-navy); /* Xivoni blue brand bar */
  border-bottom: 1px solid var(--xv-grey-100);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(46, 46, 56, 0.08);
}
.site-header .navbar {
  padding: 0.6rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-brand img {
  height: 50px;
  width: auto;
}
.brand-word {
  font-family: var(--xv-font-head);
  font-weight: 600;
  color: var(--xv-charcoal);
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 1px solid var(--xv-grey-300);
  padding-left: 0.7rem;
}
.site-header .nav-link {
  font-family: var(--xv-font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--xv-charcoal);
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--xv-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--xv-charcoal);
}
.site-header .dropdown-toggle::after {
  display: none;
} /* hide default caret; icon used instead */
.site-header .dropdown-toggle .bi {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

/* Services mega-menu */
.mega-menu {
  border: 0;
  border-top: 3px solid var(--xv-red);
  border-radius: 0 0 var(--xv-radius) var(--xv-radius);
  box-shadow: var(--xv-shadow-lg);
  padding: 1.5rem;
  min-width: 640px;
}
/* Keep the Services menu inside the window on desktop */
@media (min-width: 992px) {
  .site-header .mega-menu {
    left: auto;
    right: 0;
  }
}
.mega-menu .dropdown-item {
  white-space: normal;
  border-radius: var(--xv-radius);
  padding: 0.6rem 0.75rem;
  font-family: var(--xv-font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--xv-charcoal);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.mega-menu .dropdown-item i {
  color: var(--xv-red);
  font-size: 1.1rem;
  line-height: 1.3;
}
.mega-menu .dropdown-item:hover {
  background: var(--xv-grey-50);
  color: var(--xv-red);
}
.mega-menu .mega-foot {
  border-top: 1px solid var(--xv-grey-100);
  margin-top: 1rem;
  padding-top: 1rem;
}

@media (max-width: 991.98px) {
  .mega-menu {
    min-width: 0;
    box-shadow: none;
    border-top: 0;
    padding: 0.25rem 0 0.75rem;
  }
  .site-header .nav-link::after {
    display: none;
  }
  .navbar-collapse {
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--xv-grey-100);
    margin-top: 0.6rem;
  }
  .brand-word {
    display: none;
  }
}

/* ---------- 4. HEROES ---------- */
/* Homepage hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--xv-charcoal);
  color: #fff;
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4.5rem, 9vw, 7.5rem);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 600;
}
.hero h1 .accent {
  color: #fff;
  box-shadow: inset 0 -0.12em 0 var(--xv-red);
} /* white text, red underline */
.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

/* Xivoni-blue diagonal panel behind the hero image (echoes the logo). Purely visual. */
.hero-shape-diag {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background: var(--xv-navy);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-shape-arc {
  display: none;
} /* arc retired for a cleaner, more corporate look */
.hero {
  border-bottom: 5px solid var(--xv-red);
}
.hero .container {
  position: relative;
  z-index: 2;
}
@media (max-width: 991.98px) {
  .hero-shape-diag {
    width: 100%;
    opacity: 0.35;
  }
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--xv-charcoal);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-hero h1 {
  color: #fff;
  max-width: 860px;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}
.page-hero::after {
  /* Xivoni-blue diagonal panel + red edge */
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 30%;
  background: var(--xv-navy);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero {
  border-bottom: 5px solid var(--xv-red);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #fff;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 5. TRUST STRIP ---------- */
.trust-strip {
  border-bottom: 1px solid var(--xv-grey-100);
  background: #fff;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 0;
}
.trust-item i {
  font-size: 1.6rem;
  color: var(--xv-red);
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-family: var(--xv-font-head);
  color: var(--xv-charcoal);
  font-size: 0.98rem;
  line-height: 1.25;
}
.trust-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--xv-grey-600);
  line-height: 1.35;
}

/* Compact badge pills (footer / About) */
.badge-pill-xv {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  margin: 0 0.35rem 0.5rem 0;
  font-family: var(--xv-font-head);
}
.badge-pill-xv i {
  color: #ff6b83;
}
.badge-pill-xv.light {
  border-color: var(--xv-grey-300);
  color: var(--xv-charcoal);
}
.badge-pill-xv.light i {
  color: var(--xv-red);
}

/* ---------- 6. CARDS ---------- */
.card-xv {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--xv-grey-100);
  border-radius: var(--xv-radius);
  padding: 2rem 1.75rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card-xv::before {
  /* red bar that grows on hover */
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--xv-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card-xv:hover {
  transform: translateY(-4px);
  box-shadow: var(--xv-shadow-lg);
  border-color: transparent;
}
.card-xv:hover::before {
  transform: scaleX(1);
}
.card-xv .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--xv-red);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.card-xv h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.card-xv p {
  font-size: 0.96rem;
}
.card-xv .stretched-link::after {
  z-index: 1;
}

/* Case study card */
.case-card {
  display: flex;
  flex-direction: column;
}
.case-card .case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tag {
  font-family: var(--xv-font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--xv-grey-50);
  color: var(--xv-charcoal);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.tag.tag-red {
  background: rgba(229, 23, 58, 0.09);
  color: #b3102c;
}
.case-card dl {
  margin: 0;
}
.case-card dt {
  font-family: var(--xv-font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xv-red);
  margin-top: 1rem;
}
.case-card dd {
  margin: 0.25rem 0 0;
  color: var(--xv-grey-600);
  font-size: 0.96rem;
}

/* Industry tiles */
.industry-tile {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  border-radius: var(--xv-radius);
  overflow: hidden;
  background: var(--xv-charcoal);
}
.industry-tile .img-ph {
  border: 0;
  border-radius: 0;
  min-height: 220px;
}
.industry-tile .tile-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.industry-tile h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.industry-tile p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
}
.industry-tile:hover h3 {
  color: #ff8599;
}

/* ---------- 7. IMAGE PLACEHOLDERS ----------
   Replace each <div class="img-ph"> with an <img> once you have the photo.
   The text inside each placeholder describes the image to source. */
.img-ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(46, 46, 56, 0.035) 0 12px,
      transparent 12px 24px
    ),
    var(--xv-grey-50);
  border: 2px dashed var(--xv-grey-300);
  border-radius: var(--xv-radius);
  color: var(--xv-grey-600);
  font-size: 0.85rem;
  line-height: 1.45;
}
.img-ph i {
  font-size: 2rem;
  color: var(--xv-grey-300);
}
.img-ph .ph-label {
  font-family: var(--xv-font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--xv-red);
  text-transform: uppercase;
}
.img-ph .ph-size {
  font-size: 0.75rem;
  opacity: 0.8;
}
.img-ph.on-navy {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      transparent 12px 24px
    ),
    var(--xv-charcoal-2);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.img-ph.on-navy i {
  color: rgba(255, 255, 255, 0.35);
}
.img-ph.on-navy .ph-label {
  color: #ff8599;
}
.ph-tall {
  min-height: 440px;
}

/* ---------- 8. STATS / FEATURE BLOCKS ---------- */
.stat {
  border-left: 3px solid var(--xv-red);
  padding-left: 1.25rem;
}
.stat .num {
  font-family: var(--xv-font-head);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--xv-charcoal);
  line-height: 1;
}
.stat .label {
  font-size: 0.92rem;
  color: var(--xv-grey-600);
  margin-top: 0.5rem;
}
.on-dark .stat .num {
  color: #fff;
}
.on-dark .stat .label {
  color: rgba(255, 255, 255, 0.75);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--xv-ink);
}
.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--xv-red);
  font-size: 1.1rem;
}
.on-dark .check-list li {
  color: rgba(255, 255, 255, 0.88);
}

/* Numbered process steps */
.step {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 2px solid var(--xv-grey-100);
  height: 100%;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--xv-font-head);
  font-weight: 600;
  color: var(--xv-red);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.steps {
  counter-reset: step;
}
.step h3 {
  font-size: 1.1rem;
}

/* Capability list (service pages) */
.cap-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--xv-grey-100);
}
.cap-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.cap-item p {
  margin: 0;
  font-size: 0.97rem;
}

/* Split "Beyond actuarial" panel */
.split-panel {
  border-radius: var(--xv-radius);
  overflow: hidden;
}
.split-panel .panel-side {
  padding: clamp(2rem, 4vw, 3.5rem);
  height: 100%;
}

/* Quote / highlight */
.highlight-quote {
  font-family: var(--xv-font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--xv-charcoal);
  line-height: 1.4;
  font-weight: 500;
  border-left: 4px solid var(--xv-red);
  padding-left: 1.5rem;
}

/* ---------- 9. OFFICE CARDS ---------- */
.office-card {
  background: #fff;
  border: 1px solid var(--xv-grey-100);
  border-radius: var(--xv-radius);
  overflow: hidden;
  height: 100%;
}
.office-card .office-body {
  padding: 2rem;
}
.office-card .office-flag {
  font-family: var(--xv-font-head);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xv-red);
  font-weight: 600;
}
.office-card h3 {
  margin: 0.35rem 0 1rem;
}
.contact-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  align-items: flex-start;
}
.contact-line i {
  color: var(--xv-red);
  margin-top: 0.2rem;
}
.contact-line a {
  text-decoration: none;
}
.contact-line a:hover {
  text-decoration: underline;
}

/* ---------- 10. CTA BAND ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--xv-charcoal);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
}
.cta-band::before {
  /* Xivoni-blue diagonal panel */
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 26%;
  background: var(--xv-navy);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
}
.cta-band .container {
  position: relative;
}

/* ---------- 11. FORMS ---------- */
.form-label {
  font-family: var(--xv-font-head);
  font-weight: 500;
  color: var(--xv-charcoal);
  font-size: 0.92rem;
}
.form-control,
.form-select {
  border-radius: var(--xv-radius);
  border-color: var(--xv-grey-300);
  padding: 0.75rem 1rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--xv-navy);
  box-shadow: 0 0 0 0.2rem rgba(46, 46, 56, 0.12);
}
.form-check-input:checked {
  background-color: var(--xv-navy);
  border-color: var(--xv-navy);
}
.form-panel {
  background: #fff;
  border: 1px solid var(--xv-grey-100);
  box-shadow: var(--xv-shadow);
  border-radius: var(--xv-radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.hp-field {
  position: absolute;
  left: -9999px;
} /* spam trap — keep hidden */
#form-result {
  display: none;
}
#form-result.show {
  display: block;
}

/* ---------- 12. PROSE (Privacy notice etc.) ---------- */
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}
.prose p,
.prose li {
  color: var(--xv-ink);
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.toc {
  position: sticky;
  top: 110px;
}
.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 2px solid var(--xv-grey-100);
  color: var(--xv-grey-600);
  text-decoration: none;
  font-size: 0.92rem;
}
.toc a:hover {
  color: var(--xv-charcoal);
  border-left-color: var(--xv-red);
}
.notice-box {
  background: rgba(229, 23, 58, 0.06);
  border-left: 4px solid var(--xv-red);
  padding: 1rem 1.25rem;
  border-radius: var(--xv-radius);
  font-size: 0.95rem;
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
  background: var(--xv-charcoal-dark);
  border-top: 4px solid var(--xv-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 0;
  font-size: 0.94rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.5rem;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  width: 92px;
  height: 92px;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding: 1.4rem 0;
  font-size: 0.85rem;
}
.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.05rem;
}
.social-link:hover {
  background: var(--xv-red);
  border-color: var(--xv-red);
  text-decoration: none !important;
}

/* ---------- 14. SCROLL REVEAL (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-xv,
  .card-xv::before,
  .link-arrow i {
    transition: none;
  }
}

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1020;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--xv-red);
  color: #fff;
  box-shadow: var(--xv-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Case study filter buttons */
.btn-outline-navy.active,
.btn-outline-navy[aria-pressed="true"] {
  background: var(--xv-charcoal);
  color: #fff;
}
.btn-sm {
  padding: 0.45rem 1rem;
}

/* Placeholders placed directly in a layout column fill a sensible height */
[class*="col-"] > .img-ph {
  min-height: 360px;
}
@media (max-width: 991.98px) {
  .page-hero::after,
  .cta-band::before {
    width: 22%;
    opacity: 0.6;
  }
}

/* ---------- 15. SECTOR QUICK LINKS (homepage) ----------
   A row of links that takes visitors straight to their sector on the Industries page. */
.audience-bar {
  background: var(--xv-grey-50);
  border-bottom: 1px solid var(--xv-grey-100);
  padding: 1.1rem 0;
}
.audience-label {
  font-family: var(--xv-font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xv-charcoal);
  margin-right: 0.5rem;
}
.audience-link {
  font-family: var(--xv-font-head);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--xv-charcoal);
  background: #fff;
  border: 1px solid var(--xv-grey-300);
  padding: 0.45rem 0.9rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.audience-link:hover,
.audience-link:focus {
  background: var(--xv-charcoal);
  border-color: var(--xv-charcoal);
  color: #fff;
}

/* 2026 redesign: a quiet editorial system, navy identity, selective red actions. */
:root {
  --xv-navy: #070751;
  --xv-navy-2: #151568;
  --xv-charcoal: #181923;
  --xv-charcoal-2: #272934;
  --xv-charcoal-dark: #070751;
  --xv-grey-50: #f4f5f6;
  --xv-grey-100: #e3e5e8;
  --xv-grey-600: #575b66;
  --xv-ink: #252831;
  --xv-font-head: "Inter", "Segoe UI", Arial, sans-serif;
  --xv-section-y: clamp(4rem, 7vw, 6.5rem);
}
body {
  font-size: 1rem;
  line-height: 1.75;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.16;
}
h3 {
  letter-spacing: -0.025em;
}
p {
  max-width: 70ch;
}
a {
  transition: color 0.2s ease;
}
.container {
  max-width: 1280px;
  padding-left: 32px;
  padding-right: 32px;
}
.eyebrow {
  color: var(--xv-navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  gap: 12px;
}
.eyebrow::before {
  width: 22px;
  height: 4px;
  border-radius: 999px; /* rounded ends */
  background: var(--xv-gold);
}
.on-dark .eyebrow {
  color: #fff;
}
.on-dark .eyebrow::before {
  background: var(--xv-gold);
}
.site-header {
  border-top: 0;
  background: #fff;
}
.site-header .navbar {
  padding: 18px 0;
}
.navbar-brand img {
  height: 48px;
}
.site-header .navbar-brand img {
  height: 36px; /* horizontal logo: mark with XIVONI beside it */
  width: auto;
  margin: 6px 4px 6px 0; /* keeps the header the same height as before */
}
.brand-word {
  color: var(--xv-navy);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.site-header .nav-link {
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem !important;
}
.site-header .btn-xv {
  background: var(--xv-navy);
  border-color: var(--xv-navy);
  font-size: 0.8rem;
  padding: 0.65rem 1.2rem;
}
.site-header .btn-xv:hover {
  background: var(--xv-navy-2);
}
.service-nav {
  display: flex;
  align-items: center;
}
.service-toggle {
  background: transparent;
  border: 0;
  padding: 6px 9px 6px 0;
  color: var(--xv-navy);
  font-size: 0.65rem;
}
.mega-menu {
  right: 0;
  left: auto;
  border-top: 2px solid var(--xv-navy);
}
.mega-menu .dropdown-item i {
  color: var(--xv-navy);
}
.btn {
  font-family: var(--xv-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  border-width: 1px;
  padding: 0.9rem 1.4rem;
}
.btn-xv {
  background: var(--xv-red);
  border-color: var(--xv-red);
}
.btn span {
  margin-left: 1.5rem;
}
.link-arrow {
  color: var(--xv-navy);
  font-weight: 500;
  font-size: 0.9rem;
  gap: 1rem;
}
.link-arrow i {
  color: var(--xv-navy);
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 630px;
  position: relative;
  background: #fff;
}
.hero-copy {
  padding: 90px 50px 75px max(32px, calc((100vw - 1216px) / 2));
  align-self: center;
}
.hero-copy h1 {
  font-size: clamp(2.9rem, 4.15vw, 4.35rem);
  line-height: 1.08;
  color: var(--xv-navy);
  margin: 16px 0 25px;
  font-weight: 500;
}
.hero-copy h1 span {
  color: var(--xv-charcoal);
}
.hero-copy p {
  font-size: 1.08rem;
  max-width: 400px;
  margin-bottom: 32px;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.photo-note {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: #fff;
  padding: 12px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--xv-navy);
  border-left: 3px solid var(--xv-red);
}
.hero-text-link {
  display: block;
  margin-top: 20px;
  color: var(--xv-navy);
  font-size: 0.9rem;
  text-decoration: none;
}
.hero-text-link span {
  margin-left: 14px;
}
.home-credentials {
  border-top: 1px solid var(--xv-grey-100);
  border-bottom: 1px solid var(--xv-grey-100);
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 30px;
  padding-bottom: 30px;
}
.credential-grid > div {
  border-right: 1px solid var(--xv-grey-100);
  padding-left: 35px;
}
.credential-grid > div:first-child {
  padding-left: 0;
}
.credential-grid > div:last-child {
  border: 0;
}
.credential-grid strong {
  display: block;
  color: var(--xv-navy);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.credential-grid span {
  font-size: 0.8rem;
  color: var(--xv-grey-600);
}
.service-row {
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  gap: 14px;
  padding: 23px 0;
  border-top: 1px solid #d9dde2;
  text-decoration: none;
  align-items: start;
}
.service-row:last-child {
  border-bottom: 1px solid #d9dde2;
}
.service-number {
  font-size: 0.72rem;
  color: #777c85;
  margin-top: 5px;
}
.service-row h3 {
  color: var(--xv-navy);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.service-row p {
  font-size: 0.87rem;
  margin: 0;
  max-width: 420px;
  line-height: 1.6;
}
.row-arrow {
  color: var(--xv-navy);
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.service-row:hover .row-arrow {
  transform: translate(3px, -3px);
  color: var(--xv-red);
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 40px;
}
.section-title-row h2 {
  margin: 0;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sector-card {
  text-decoration: none;
  background: #fff;
  display: block;
  overflow: hidden;
}
.sector-card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  transition: transform 0.5s;
}
.sector-card:hover img {
  transform: scale(1.03);
}
.sector-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 23px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--xv-navy);
}
.sector-card h3 span {
  font-size: 1.3rem;
  color: var(--xv-red);
}
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f5f6;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
}
.story-copy {
  padding: 60px 55px;
  align-self: center;
}
.story-copy h2 {
  margin-bottom: 25px;
}
.story-copy p {
  font-size: 0.95rem;
}
.story-copy .link-arrow {
  margin-top: 20px;
}
.work-section {
  background: #f4f5f6;
}
.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 0;
  border-top: 2px solid var(--xv-navy);
  text-decoration: none;
}
.work-category {
  font-size: 0.7rem;
  color: var(--xv-grey-600);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.work-card h3 {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--xv-navy);
  margin: 22px 0 16px;
  max-width: 320px;
}
.work-card p {
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.work-card .link-arrow {
  margin-top: auto;
}
.regional-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.regional-image {
  position: relative;
}
.regional-image img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.regional-image > a {
  display: flex;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--xv-navy);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}
.cta-band {
  background: var(--xv-navy);
  padding: 65px 0;
}
.cta-band::before {
  display: none;
}
.cta-band h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.cta-band p {
  font-size: 1rem;
}
.site-footer {
  background: #f4f5f6;
  border-top: 0;
  color: #555b66;
}
.site-footer h2 {
  color: var(--xv-navy);
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer a,
.site-footer p,
.site-footer .text-white,
.site-footer .text-white-50 {
  color: #555b66 !important;
}
.site-footer a:hover {
  color: var(--xv-navy) !important;
}
.site-footer .badge-pill-xv {
  color: #555b66;
  border-color: #d9dde2;
  font-size: 0.68rem;
}
.site-footer .badge-pill-xv i {
  color: var(--xv-navy);
}
.site-footer .footer-logo {
  background: transparent;
  padding: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}
/* Footer logo: the same horizontal logo as the header, flush with the text below it */
.site-footer .footer-logo img {
  display: block;
  width: auto;
  height: 36px;
}
.footer-bottom {
  border-top: 1px solid #d9dde2;
  color: #555b66;
}
.site-footer .social-link {
  color: var(--xv-navy);
  border-color: #d9dde2;
}
/* Inner pages use lighter introductions, consistent image framing and less boxed content. */
.page-hero {
  background: #f4f5f6;
  border: 0;
  color: var(--xv-charcoal);
  padding: 60px 0 65px;
}
.page-hero::after {
  display: none;
}
.page-hero h1 {
  color: var(--xv-navy);
  font-size: clamp(2.4rem, 4.3vw, 3.65rem);
  font-weight: 500;
  max-width: 980px;
}
.page-hero .lead {
  color: var(--xv-grey-600);
  font-size: 1.1rem;
  max-width: 760px;
}
.page-hero .eyebrow {
  color: var(--xv-navy);
}
.breadcrumb a,
.breadcrumb-item.active {
  color: var(--xv-grey-600);
}
.breadcrumb a:hover {
  color: var(--xv-navy);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #777;
}
.editorial-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 560px;
  object-fit: cover;
}
.industry-tile {
  background: #fff;
  border: 1px solid var(--xv-grey-100);
}
.industry-tile > .editorial-image {
  height: 230px;
  min-height: 0;
}
.industry-tile h3 {
  color: var(--xv-navy);
}
.industry-tile p {
  color: var(--xv-grey-600);
}
.industry-tile:hover h3 {
  color: var(--xv-navy);
}
.card-xv {
  border: 0;
  border-top: 1px solid #d9dde2;
  padding: 28px 24px;
  background: #fff;
}
.card-xv .card-icon {
  color: var(--xv-navy);
  font-size: 1.4rem;
}
.card-xv:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(7, 7, 81, 0.06);
  border-color: #d9dde2;
}
.card-xv::before {
  display: none;
}
.case-card dt {
  color: var(--xv-navy);
}
.tag.tag-red {
  background: #eef0f5;
  color: var(--xv-navy);
}
.check-list li::before,
.contact-line i,
.office-card .office-flag,
.step::before {
  color: var(--xv-navy);
}
.office-card {
  border: 0;
  background: #f4f5f6;
}
.office-card .editorial-image {
  min-height: 0;
  max-height: 240px;
}
.office-card .office-body {
  padding: 30px;
}
.stat {
  border-left: 1px solid #d9dde2;
}
.stat .num {
  color: var(--xv-navy);
}
.text-navy {
  color: var(--xv-navy) !important;
}
.trust-item i {
  color: var(--xv-navy);
}
.reveal {
  opacity: 1;
  transform: none;
}
section[id],
article[id] {
  scroll-margin-top: 110px;
}
@media (min-width: 1400px) {
  .home-hero {
    min-height: 680px;
  }
  .hero-copy {
    padding-right: 70px;
  }
}
@media (max-width: 991px) {
  .home-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
  }
  .hero-copy {
    padding: 55px 30px;
  }
  .hero-copy h1 {
    font-size: 2.9rem;
  }
  .hero-photo {
    min-height: 520px;
  }
  .story-copy {
    padding: 35px;
  }
  .regional-section {
    gap: 35px;
  }
  .mega-menu {
    right: auto;
  }
  .service-nav {
    justify-content: space-between;
  }
  .navbar-collapse .btn {
    display: inline-block;
  }
  .work-card h3 {
    max-width: none;
  }
}
@media (max-width: 767px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header .navbar {
    padding: 12px 0;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    padding: 48px 22px;
  }
  .hero-copy h1 {
    font-size: clamp(2.6rem, 9vw, 3.6rem);
  }
  .hero-copy h1 span br {
    display: none;
  }
  .hero-photo {
    min-height: 300px;
  }
  .photo-note {
    bottom: 18px;
    left: 22px;
    font-size: 0.7rem;
  }
  .credential-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .credential-grid > div {
    padding-left: 0;
    border: 0;
  }
  .credential-grid strong {
    font-size: 1.15rem;
  }
  .section-title-row {
    align-items: start;
    flex-direction: column;
  }
  .sector-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .sector-card h3 {
    padding: 16px;
    font-size: 0.95rem;
  }
  .sector-card img {
    aspect-ratio: 1.25;
  }
  .feature-story,
  .regional-section {
    grid-template-columns: 1fr;
  }
  .story-photo img {
    min-height: 0;
    height: 300px;
  }
  .story-copy {
    padding: 35px 25px;
  }
  .regional-section {
    gap: 30px;
  }
  .page-hero {
    padding: 38px 0 45px;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .editorial-image {
    min-height: 260px;
  }
  .cta-band {
    padding: 48px 0;
  }
  .work-card {
    padding: 25px 0;
  }
  .to-top {
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 992px) {
  .site-header .nav-item.dropdown {
    display: flex;
    align-items: center;
  }
  .site-header .service-link {
    padding-right: 7px !important;
  }
  .service-toggle {
    min-width: 28px;
    min-height: 36px;
  }
}
@media (max-width: 991px) {
  .service-link {
    display: inline-block;
  }
  .service-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .sector-card h3 span {
    flex-shrink: 0;
  }
}

.image-caption {
  display: block;
  font-size: 0.75rem;
  color: #656b75;
  margin: 8px 0;
  line-height: 1.4;
}
.office-card .image-caption {
  padding: 0 20px;
}
.office-card > div[style] {
  height: auto !important;
}

/* EDIT: supplementary layouts for the refined identity and evidence content.
   The approved visual version above is the base design. */
.hero-copy .hero-identity {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: -12px;
  margin-bottom: 28px;
  color: #575b66;
}
.photo-note {
  max-width: calc(100% - 60px);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.96);
}
.image-disclosure {
  display: block;
  margin-top: 5px;
  font-size: 0.67rem;
  letter-spacing: 0.015em;
  color: #666b75;
}
.position-card,
.value-card {
  border-top: 1px solid #d9dde2;
  padding-top: 24px;
  height: 100%;
}
.position-card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 18px 0;
}
.position-card p,
.value-card p {
  font-size: 0.95rem;
}
.position-card .link-arrow {
  font-size: 0.875rem;
  margin-top: 10px;
}
.section-aside {
  max-width: 380px;
  font-size: 1rem;
  margin-bottom: 0;
}
.value-card h3 {
  color: var(--xv-navy);
  font-size: 1.5rem;
  margin: 18px 0;
}
.value-principle {
  color: var(--xv-navy);
  font-weight: 500;
}
.purpose-pair > div {
  border-top: 1px solid #d9dde2;
  padding: 22px 0;
}
.purpose-pair h3 {
  font-size: 1.3rem;
  line-height: 1.5;
}
.image-figure {
  margin: 0;
}
.image-figure .editorial-image {
  aspect-ratio: 1.5;
  height: auto;
  min-height: 0;
  max-height: none;
}
.image-figure figcaption {
  padding: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #575b66;
}
.page-hero .btn-outline-light-xv {
  border-color: var(--xv-navy);
  color: var(--xv-navy);
}
.page-hero .btn-outline-light-xv:hover {
  background: var(--xv-navy);
  color: white;
}
.page-hero .badge-pill-xv {
  color: var(--xv-navy);
  border-color: #d9dde2;
}
.sector-card {
  display: flex;
  flex-direction: column;
}
.sector-card img {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: none;
}
.sector-card h3 {
  flex: 1;
  align-items: flex-start;
  line-height: 1.4;
}
.story-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.story-photo img {
  position: absolute;
  inset: 0;
  min-height: 0;
  max-height: none;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.regional-image .image-caption {
  margin: 0;
  padding: 10px 0;
  background: white;
}
@media (max-width: 767px) {
  .hero-copy {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }
  .hero-copy h1 {
    font-size: clamp(2.35rem, 9vw, 3.6rem);
  }
  .hero-copy h1 span br {
    display: initial;
  }
  .hero-copy .hero-identity {
    font-size: 0.9rem;
  }
  .photo-note {
    left: 22px;
    bottom: 18px;
    max-width: calc(100% - 44px);
  }
  .hero-photo {
    min-height: 340px;
  }
  .section-aside {
    max-width: none;
  }
  .position-card h3 br {
    display: none;
  }
  .row.g-5 {
    --bs-gutter-x: 2rem;
  }
  .sector-card h3 {
    padding: 16px 14px;
    min-height: 84px;
  }
  .sector-card img {
    aspect-ratio: 1.25;
  }
  .story-photo {
    height: 300px;
  }
  .story-photo img {
    position: static;
    height: 300px;
  }
}

/* ---------- Menu: About dropdown and specialist services (added 6 Oct 2026) ---------- */
.site-header .simple-menu {
  border: 0;
  border-top: 2px solid var(--xv-navy);
  border-radius: 0;
  box-shadow: var(--xv-shadow-lg);
  padding: 0.6rem;
  min-width: 230px;
}
.site-header .simple-menu .dropdown-item {
  font-family: var(--xv-font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--xv-charcoal);
  padding: 0.55rem 0.75rem;
}
.site-header .simple-menu .dropdown-item:hover,
.site-header .dropdown-item[aria-current="page"] {
  background: var(--xv-grey-50);
  color: var(--xv-navy);
}
.mega-menu .mega-sub {
  border-top: 1px solid var(--xv-grey-100);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.mega-menu .mega-label {
  display: block;
  padding: 0 0.75rem 0.25rem;
  font-family: var(--xv-font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xv-grey-600);
}
.mega-menu .mega-sub .dropdown-item {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
@media (max-width: 991.98px) {
  .site-header .simple-menu {
    box-shadow: none;
    border-top: 0;
    padding: 0.25rem 0 0.5rem;
  }
}
/* Offices dropdown: sits at the right of the menu, with a small place name under each office */
@media (min-width: 992px) {
  .site-header .simple-menu {
    right: 0;
    left: auto;
    min-width: 260px;
  }
}
.site-header .simple-menu small {
  display: block;
  font-family: var(--xv-font-body);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--xv-grey-600);
  margin-top: 1px;
}
/* Offices page */
.office-details .contact-line:first-of-type {
  margin-top: 1.25rem;
}
section[id] {
  scroll-margin-top: 90px;
}
