.service-page { background: #f5f6fc; color: #111747; }
.service-page .header,
.service-page .about-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;
}
.service-page .header > * { pointer-events: auto; }
.service-page .header .menu-btn {
  position: fixed;
  z-index: 1002;
  top: 28px;
  right: 38px;
  display: block !important;
  width: 76px;
  height: 48px;
  opacity: 1 !important;
  visibility: visible !important;
}
.service-page .header:not(.is-dark) .menu-btn { color: #20287a !important; }
.service-page .header.is-dark .menu-btn { color: #fff !important; }
.service-page .header .menu-btn i {
  display: block !important;
  background: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.service-page .header .menu-btn b { color: currentColor !important; }
.service-page .menu-icon {
  position: absolute;
  top: 6px;
  right: 0;
  display: block;
  width: 44px;
  height: 24px;
  overflow: visible;
}
.service-page .menu-icon line {
  stroke: currentColor;
  stroke-width: 1.8;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s ease;
}
.service-page .menu-btn.active .menu-line-top { transform: translateY(6px) rotate(45deg); }
.service-page .menu-btn.active .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); }
.mobile-service-menu { display: none; }
.service-hero {
  min-height: 100vh;
  padding: 150px 8vw 90px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 7vw;
  align-items: end;
  background: #20287a;
  color: #fff;
}
.service-hero-copy { padding-bottom: 4vh; }
.service-kicker {
  margin: 0 0 28px;
  color: #cbd0ee;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.service-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(50px, 5.5vw, 88px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.065em;
  color: #fff !important;
}
.service-hero-copy > p:last-of-type {
  width: min(610px, 94%);
  margin: 42px 0 0;
  color: #dce0f3;
  font-size: 17px;
  line-height: 1.75;
}
.service-hero-image {
  min-height: 620px;
  height: 72vh;
  background-position: center;
  background-size: cover;
}
.fractional-page .service-hero-image { background-image: linear-gradient(180deg, transparent 56%, rgba(12,18,62,.48)), url("../assets/images/fractional-cfo-hero-v1.png"); }
.compliance-page .service-hero-image { background-image: linear-gradient(180deg, transparent 56%, rgba(12,18,62,.48)), url("../assets/images/compliance-taxation-hero-v1.png"); }
.audit-page .service-hero-image { background-image: linear-gradient(180deg, transparent 56%, rgba(12,18,62,.48)), url("../assets/images/audit-services-hero-v1.png"); }
.service-overview {
  padding: 16vh 8vw;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 9vw;
  background: #fff;
}
.service-overview h2,
.service-capabilities h2,
.service-image-copy h2,
.service-cta h2 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 76px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}
.service-overview-copy { padding-top: 8px; }
.service-overview-copy > p { margin: 0 0 28px; color: #56608e; font-size: 17px; line-height: 1.8; }
.service-overview-copy > p:last-child { margin-bottom: 0; }
.service-capabilities { padding: 15vh 8vw; background: #e9ecf8; }
.capability-grid { margin-top: 11vh; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #c3cae7; }
.capability-grid article { min-height: 260px; padding: 34px 44px 42px 0; border-bottom: 1px solid #c3cae7; }
.capability-grid article:nth-child(even) { padding-left: 44px; border-left: 1px solid #c3cae7; }
.capability-grid span { color: #626da8; font-size: 10px; letter-spacing: .17em; }
.capability-grid h3 { margin: 62px 0 16px; font-size: clamp(25px, 2.2vw, 36px); font-weight: 500; }
.capability-grid p { max-width: 560px; margin: 0; color: #56608e; line-height: 1.7; }
.service-image-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 82vh; background: #111747; color: #fff; }
.service-image { min-height: 650px; background-position: center; background-size: cover; }
.fractional-page .service-image { background-image: url("../assets/images/fractional-cfo-advisory-v1.png"); }
.compliance-page .service-image { background-image: url("../assets/images/compliance-training-v1.png"); }
.audit-page .service-image { background-image: url("../assets/images/audit-controls-review-v1.png"); }
.service-image-copy { padding: 11vh 8vw; display: flex; flex-direction: column; justify-content: center; }
.service-page .service-image-copy h2,
.service-page .service-cta h2 { color: #fff !important; }
.service-image-copy .service-kicker { color: #aeb6e1; }
.service-image-copy > p:last-child { margin: 40px 0 0; color: #dce0f3; font-size: 16px; line-height: 1.8; }
.service-cta { padding: 16vh 8vw; background: #20287a; color: #fff; }
.service-cta p { color: #cbd0ee; }
.service-cta a { display: inline-flex; gap: 34px; margin-top: 62px; padding-bottom: 10px; border-bottom: 1px solid #fff; color: #fff; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }

.service-switcher {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 0;
  width: calc(100% - 24px);
  max-width: 420px;
  max-height: calc(100svh - 32px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  color: #111747;
  box-shadow: 0 18px 60px rgba(12,18,62,.22);
  transform: translate(105%, -50%);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
}
.service-switcher.is-open { transform: translate(0, -50%); }
.service-switcher-toggle {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20287a;
  font: 300 30px/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}
.service-switcher-toggle span { display: block; }
.service-switcher-panel { min-width: 0; padding: 36px 44px 38px 34px; box-sizing: border-box; }
.service-switcher-panel > p { margin: 0 0 22px; color: #626da8; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.service-switcher-panel a { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 20px 0; border-top: 1px solid #dfe3f2; font: 400 18px/1.28 "DM Sans", Arial, sans-serif; letter-spacing: -.02em; }
.service-switcher-panel a:last-child { border-bottom: 1px solid #dfe3f2; }
.service-switcher-panel a span { flex: 0 0 34px; padding-top: 4px; color: #626da8; font-size: 10px; letter-spacing: .14em; }
.service-switcher-panel a strong { flex: 1 1 auto; min-width: 0; max-width: 100%; display: block; font: inherit; font-weight: 400; white-space: normal !important; overflow-wrap: anywhere; word-break: normal; }
.service-switcher-panel a:hover,
.service-switcher-panel a:focus-visible { color: #20287a; }

@media (max-width: 800px) {
  .service-page .header .menu-btn { display: none !important; }
  .mobile-service-menu {
    position: fixed;
    z-index: 1200;
    top: 18px;
    right: 16px;
    display: block !important;
    width: 58px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #fff;
    color: #20287a;
    box-shadow: 0 5px 20px rgba(12,18,62,.18);
    cursor: pointer;
  }
  .mobile-service-menu .menu-icon {
    position: absolute;
    top: 8px;
    right: 7px;
    width: 42px;
    height: 22px;
    overflow: visible;
  }
  .mobile-service-menu .menu-icon line {
    stroke: currentColor;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .35s ease;
  }
  .mobile-service-menu b {
    position: absolute;
    right: 7px;
    bottom: 4px;
    color: #20287a;
    font: 500 8px/1 "DM Sans", Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .mobile-service-menu.active .menu-line-top { transform: translateY(6px) rotate(45deg); }
  .mobile-service-menu.active .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); }
  .mobile-service-menu.active b { opacity: 0; }
  .service-hero { min-height: auto; padding: 150px 24px 60px; grid-template-columns: 1fr; gap: 42px; }
  .service-hero h1 { font-size: clamp(37px, 10.5vw, 49px); line-height: 1; }
  .service-hero-image,
  .service-image {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .service-overview h2,
  .service-capabilities h2,
  .service-image-copy h2,
  .service-cta h2 { font-size: clamp(32px, 9.3vw, 43px); line-height: 1; }
  .service-overview { padding: 105px 24px; grid-template-columns: 1fr; gap: 55px; }
  .service-capabilities { padding: 105px 24px; }
  .capability-grid { margin-top: 75px; grid-template-columns: 1fr; }
  .capability-grid article,
  .capability-grid article:nth-child(even) { min-height: 0; padding: 32px 0; border-left: 0; }
  .capability-grid h3 { margin-top: 42px; }
  .service-image-section { grid-template-columns: 1fr; }
  .service-image-copy { padding: 100px 24px; }
  .service-cta { padding: 105px 24px; }
  .service-switcher {
    top: 50%;
    bottom: auto;
    left: 12px;
    right: 0;
    width: auto;
    max-width: none;
    transform: translate(calc(100% + 24px), -50%);
  }
  .service-switcher.is-open { transform: translate(0, -50%); }
  .service-switcher-panel { width: 100%; padding: 28px 38px 28px 20px; }
  .service-switcher-panel > p { margin-bottom: 18px; font-size: 9px; }
  .service-switcher-panel a { width: 100%; gap: 8px; font-size: 15px; line-height: 1.35; padding: 15px 0; }
  .service-switcher-panel a span { flex-basis: 26px; }
}

/* Service navigation controls also use the compact treatment in narrow
   preview panes and tablets whose CSS viewport is wider than 800px. */
@media (max-width: 1100px) {
  .service-page .header .menu-btn { display: none !important; }
  .mobile-service-menu {
    position: fixed !important;
    z-index: 1200 !important;
    top: 18px !important;
    right: 16px !important;
    display: grid !important;
    width: 58px !important;
    height: 50px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px;
    place-items: center;
    background: #fff !important;
    color: #20287a !important;
    box-shadow: 0 5px 20px rgba(12,18,62,.18);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    cursor: pointer;
  }
  .mobile-service-menu .menu-icon {
    position: absolute;
    top: 8px;
    right: 7px;
    display: block !important;
    width: 42px;
    height: 22px;
    overflow: visible;
  }
  .mobile-service-menu .menu-icon line {
    stroke: #20287a !important;
    stroke-width: 2.2;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .mobile-service-menu b {
    position: absolute;
    right: 7px;
    bottom: 4px;
    display: block;
    color: #20287a !important;
    font: 500 8px/1 "DM Sans", Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .mobile-service-menu.active b { opacity: 0; }
  .service-switcher {
    left: auto;
    right: 0;
    width: calc(100% - 24px);
    max-width: 300px;
    transform: translate(calc(100% + 24px), -50%);
  }
  .service-switcher.is-open { transform: translate(0, -50%); }
  .service-switcher-panel { width: 100%; padding: 26px 34px 26px 18px; }
  .service-switcher-panel a { gap: 7px; font-size: 14px; line-height: 1.38; padding: 14px 0; }
  .service-switcher-panel a span { flex: 0 0 24px; }
}

/* Definitive service navigation layer: one universal menu control and one
   bounded card geometry across phones, preview panes, tablets and desktop. */
.service-page .universal-service-menu {
  position: fixed !important;
  top: 18px !important;
  right: 16px !important;
  z-index: 2147483647 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}
.service-page .universal-service-menu > span {
  display: block !important;
  background: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.service-page .universal-service-menu > b {
  display: block !important;
  color: currentColor !important;
  opacity: 1;
  visibility: visible !important;
  transition: opacity 180ms ease;
}
.service-page .universal-service-menu svg,
.service-page .universal-service-menu line {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.service-page .universal-service-menu line { stroke: #20287a !important; }
.service-page .universal-service-menu > .menu-line-top,
.service-page .universal-service-menu > .menu-line-bottom {
  transform-origin: center center;
  transition: transform 300ms ease, width 300ms ease;
}
.service-page .universal-service-menu.active .menu-line-top { transform: translateY(6px) rotate(45deg) !important; }
.service-page .universal-service-menu.active .menu-line-bottom { width: 42px !important; transform: translateY(-6px) rotate(-45deg) !important; }
.service-page .universal-service-menu.active > b { opacity: 0 !important; }

.service-page .service-switcher {
  left: auto !important;
  right: 0 !important;
  width: calc(100% - 24px) !important;
  max-width: 360px !important;
  max-height: calc(100svh - 32px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(24px, -50%) !important;
  transition: transform 350ms cubic-bezier(.22,.61,.36,1), opacity 250ms ease, visibility 0s linear 350ms;
}
.service-page .service-switcher.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%) !important;
  transition: transform 350ms cubic-bezier(.22,.61,.36,1), opacity 250ms ease, visibility 0s;
}
.service-page .service-switcher-panel {
  width: 100% !important;
  min-width: 0 !important;
  padding: 30px 42px 30px 24px !important;
  box-sizing: border-box;
}
.service-page .service-switcher-panel a {
  width: 100% !important;
  min-width: 0 !important;
  gap: 10px !important;
  padding: 17px 0 !important;
  font-size: 17px !important;
  line-height: 1.32 !important;
  white-space: normal !important;
}
.service-page .service-switcher-panel a span { flex: 0 0 28px !important; }
.service-page .service-switcher-panel a strong {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

@media (max-width: 420px) {
  .service-page .service-switcher-panel { padding: 27px 36px 27px 20px !important; }
  .service-page .service-switcher-panel a { font-size: 16px !important; }
}
